~vicamo/+git/ubuntu-kernel:bug-2002089/mtk-fm350-gl-init-fail/oem-6.0

Last commit made on 2023-01-06
Get this branch:
git clone -b bug-2002089/mtk-fm350-gl-init-fail/oem-6.0 https://git.launchpad.net/~vicamo/+git/ubuntu-kernel
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Branch information

Name:
bug-2002089/mtk-fm350-gl-init-fail/oem-6.0
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

41e3c87... by You-Sheng Yang

Bug 2002089: Mediatek FM350-GL wwan module init failure

Change-Id: I403eed2557f8673d4d8a73dcbd56dd36f9a923b0

ee50d88... by M Chetan Kumar <email address hidden>

UBUNTU: SAUCE: net: wwan: t7xx: Devlink documentation

BugLink: https://bugs.launchpad.net/bugs/2002089

Document the t7xx devlink commands usage for fw flashing &
coredump collection.

Refer to t7xx.rst file for details.

Change-Id: I918f6583c776dc537ad13dfbd7cbe0b0c6b305ca
Signed-off-by: M Chetan Kumar <email address hidden>
Signed-off-by: Devegowda Chandrashekar <email address hidden>
(cherry picked from https://patchwork.kernel.org<email address hidden>/)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

34f0e12... by M Chetan Kumar <email address hidden>

UBUNTU: SAUCE: net: wwan: t7xx: Enable devlink based fw flashing and coredump collection

BugLink: https://bugs.launchpad.net/bugs/2002089

Adds support for t7xx wwan device firmware flashing & coredump collection
using devlink.

1> Driver Registers with Devlink framework.
2> Implements devlink ops flash_update callback that programs modem fw.
3> Creates region & snapshot required for device coredump log collection.

On early detection of wwan device in fastboot mode driver sets up CLDMA0 HW
tx/rx queues for raw data transfer and then registers to devlink framework.
On user space application issuing command for firmware update the driver
sends fastboot flash command & firmware to program NAND.

In flashing procedure the fastboot command & response are exchanged between
driver and device. Once firmware flashing is success completion status is
reported to user space application.

Below is the devlink command usage for firmware flashing

$devlink dev flash pci/$BDF file ABC.img component ABC

Note: ABC.img is the firmware to be programmed to "ABC" partition.

In case of coredump collection when wwan device encounters an exception
it reboots & stays in fastboot mode for coredump collection by host driver.
On detecting exception state driver collects the core dump, creates the
devlink region & reports an event to user space application for dump
collection. The user space application invokes devlink region read command
for dump collection.

Below are the devlink commands used for coredump collection.

devlink region new pci/$BDF/mr_dump
devlink region read pci/$BDF/mr_dump snapshot $ID address $ADD length $LEN
devlink region del pci/$BDF/mr_dump snapshot $ID

Change-Id: I36c87dc3b7433439716023a4841820093ece3cdc
Signed-off-by: M Chetan Kumar <email address hidden>
Signed-off-by: Devegowda Chandrashekar <email address hidden>
Signed-off-by: Mishra Soumya Prakash <email address hidden>
(cherry picked from https://patchwork.kernel.org<email address hidden>/)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

8bb4600... by M Chetan Kumar <email address hidden>

UBUNTU: SAUCE: net: wwan: t7xx: PCIe reset rescan

BugLink: https://bugs.launchpad.net/bugs/2002089

PCI rescan module implements "rescan work queue".
In firmware flashing or coredump collection procedure
WWAN device is programmed to boot in fastboot mode and
a work item is scheduled for removal & detection.

The WWAN device is reset using APCI call as part driver
removal flow. Work queue rescans pci bus at fixed interval
for device detection, later when device is detect work queue
exits.

Change-Id: I4bc254ae0eae76c41da75b1b76fcef36ec866e84
Signed-off-by: Haijun Liu <email address hidden>
Co-developed-by: Madhusmita Sahu <email address hidden>
Signed-off-by: Madhusmita Sahu <email address hidden>
Signed-off-by: Ricardo Martinez <email address hidden>
Signed-off-by: M Chetan Kumar <email address hidden>
Signed-off-by: Devegowda Chandrashekar <email address hidden>
(cherry picked from https://patchwork.kernel.org<email address hidden>/)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

e93621f... by M Chetan Kumar <email address hidden>

UBUNTU: SAUCE: net: wwan: t7xx: Infrastructure for early port configuration

BugLink: https://bugs.launchpad.net/bugs/2002089

To support cases such as FW update or Core dump, the t7xx
device is capable of signaling the host that a special port
needs to be created before the handshake phase.

This patch adds the infrastructure required to create the
early ports which also requires a different configuration of
CLDMA queues.

Change-Id: Ib4b9d5c0328be89f0290706390ee0293530d7b70
Signed-off-by: Haijun Liu <email address hidden>
Co-developed-by: Madhusmita Sahu <email address hidden>
Signed-off-by: Madhusmita Sahu <email address hidden>
Signed-off-by: Ricardo Martinez <email address hidden>
Signed-off-by: Devegowda Chandrashekar <email address hidden>
Signed-off-by: M Chetan Kumar <email address hidden>
(cherry picked from https://patchwork.kernel.org<email address hidden>/)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

8e99468... by Haijun Liu <email address hidden>

UBUNTU: SAUCE: net: wwan: t7xx: Add AP CLDMA

BugLink: https://bugs.launchpad.net/bugs/2002089

The t7xx device contains two Cross Layer DMA (CLDMA) interfaces to
communicate with AP and Modem processors respectively. So far only
MD-CLDMA was being used, this patch enables AP-CLDMA.

Rename small Application Processor (sAP) to AP.

Change-Id: I37d4311f013ff19891ca3801ee048b08b27c4847
Signed-off-by: Haijun Liu <email address hidden>
Co-developed-by: Madhusmita Sahu <email address hidden>
Signed-off-by: Madhusmita Sahu <email address hidden>
Signed-off-by: Moises Veleta <email address hidden>
Signed-off-by: Devegowda Chandrashekar <email address hidden>
Signed-off-by: M Chetan Kumar <email address hidden>
Reviewed-by: Ilpo Järvinen <email address hidden>
Reviewed-by: Sergey Ryazanov <email address hidden>
(cherry picked from https://patchwork.kernel.org<email address hidden>/)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

55ec43a... by Jiri Pirko <email address hidden>

net: devlink: extend info_get() version put to indicate a flash component

BugLink: https://bugs.launchpad.net/bugs/2002089

Whenever the driver is called by his info_get() op, it may put multiple
version names and values to the netlink message. Extend by additional
helper devlink_info_version_running/stored_put_ext() that allows to
specify a version type that indicates when particular version name
represents a flash component.

This is going to be used in follow-up patch calling info_get() during
flash update command checking if version with this the version type
exists.

Change-Id: I12e90edc8f190b54cfd72d296623351a8b460657
Signed-off-by: Jiri Pirko <email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit bb67012331f7f07ff325877fbbb430bc515d371e)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

18ebc42... by You-Sheng Yang

UBUNTU: SAUCE: Revert "net: wwan: t7xx: Add AP CLDMA"

BugLink: https://bugs.launchpad.net/bugs/2002089

This reverts commit 3995b668ff392d37d968b66414bf984d111deb2c.

Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

2d8628d... by You-Sheng Yang

Experimental linux-oem-6.0/jammy changes

Change-Id: I8b862a373c9b735ed65aa8a70a4199818c473fb7

d080652... by Szuying Chen <email address hidden>

thunderbolt: Add support for ASMedia NVM image format

BugLink: https://bugs.launchpad.net/amd/+bug/1989001

Add support for ASMedia specific NVM image format. This makes it
possible to upgrade the NVM firmware of ASMedia routers in addition to
Intel ones.

Change-Id: I704bffea3eb495762877ac7e80cf2c990f8f1d4a
Signed-off-by: Szuying Chen <email address hidden>
Signed-off-by: Mika Westerberg <email address hidden>
(cherry picked from commit a52958321bbb4e8b2b4ab5849b8cbb0202b1029d linux-next)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>