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

Last commit made on 2023-01-06
Get this branch:
git clone -b bug-2002089/mtk-fm350-gl-init-fail/oem-6.1 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.1
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

82754c9... by You-Sheng Yang

Bug 2002089: Mediatek FM350-GL wwan module init failure

Change-Id: I403eed2557f8673d4d8a73dcbd56dd36f9a923b0

e17a1f9... 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>

fc0e995... 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>

93c9363... 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>

c97d378... 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>

aaf22fd... 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>

917f3ef... by You-Sheng Yang

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

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

This reverts commit 11494809311ff053779c77e843707fae981febfd.

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

826f4c7... by You-Sheng Yang

Experimental linux-oem-6.1/jammy changes

Change-Id: Ibec43d96b9e2b6c08754be44ec5d82298c48cf9c

b2fbf07... by You-Sheng Yang

[DONOTSUBMIT] UBUNTU: abi: update removed symbols

BugLink: https://bugs.launchpad.net/somerville/+bug/1978554

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

93e6b21... by Johannes Berg

wifi: realtek: remove duplicated wake_tx_queue

BugLink: https://bugs.launchpad.net/somerville/+bug/1978554

By accident, the previous patch duplicated the initialization
of the wake_tx_queue callback. Fix that by removing the new
initializations.

Fixes: a790cc3a4fad ("wifi: mac80211: add wake_tx_queue callback to drivers")
Change-Id: I9ed907bbe8ccedf1bd82f4357a52ec2e5d8e95f5
Signed-off-by: Johannes Berg <email address hidden>
(cherry picked from commit 53d0ce0c56d9330f137936b8850d4a5f2f70907d)
Signed-off-by: Koba Ko <email address hidden>