tag | e6d48e008a49970c72dd38550b7757534a204a43 | |
---|---|---|
tagger | Howard Chen <howardsoc@google.com> | Mon Aug 12 11:47:12 2024 +0800 |
object | c9d4853686565c10ae86bb4b6d607b6ca2e56a98 |
android13-5.10 July 2024 release 2 Artifacts: https://ci.android.com/builds/submitted/12207957/kernel_aarch64/latest
commit | c9d4853686565c10ae86bb4b6d607b6ca2e56a98 | [log] [tgz] |
---|---|---|
author | Kever Yang <kever.yang@rock-chips.com> | Fri Aug 02 16:35:01 2024 +0800 |
committer | Jhih-Chen Huang <jhihchen@google.com> | Fri Aug 09 09:51:38 2024 +0000 |
tree | 3a83de91a89cdc2d4253a1e3c2ae6f888c498739 | |
parent | 4c868a6e89f513ad87da42757e9e83cc193bc094 [diff] |
ANDROID: Fix scmi driver for platform do not have a a2p interrupt The "scmi_info->irq" get -22 (-EINVAL) when no "a2p" interrupt, keep to use (scmi_info->irq > 0) as if condition to avoid BUG happen like this: For cherry picked patch 18126b265062 (UPSTREAM: firmware: arm_scmi: Fix chan_free cleanup on SMC), it depends on below two patches from mainline to avoid the BUG we met. f716cbd33f03 firmware: arm_scmi: Make smc transport use common completions a690b7e6e774 firmware: arm_scmi: Add configurable polling mode for transports These two patch can't apply directly now, quiet a lot of changes need to merge, which is much higher risk than just apply this simple fix. [ 0.199652][ T1] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled. [ 0.200296][ T1] list_add corruption. prev is NULL. [ 0.200773][ T1] ------------[ cut here ]------------ [ 0.201242][ T1] kernel BUG at lib/list_debug.c:24! [ 0.201696][ T1] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP [ 0.202246][ T1] Modules linked in: [ 0.202581][ T1] CPU: 4 PID: 1 Comm: swapper/0 Not tainted 5.10.214-android13-4-00002-g4c868a6e89f5-ab12097184 #1 [ 0.203511][ T1] Hardware name: Rockchip RK3588S EVB8 LP4X V10 Board (DT) [ 0.204137][ T1] pstate: 60800085 (nZCv daIf -PAN +UAO -TCO BTYPE=--) [ 0.204735][ T1] pc : list_add_valid+0x80/0xc0 [ 0.205168][ T1] lr : __list_add_valid+0x80/0xc0 [ 0.205599][ T1] sp : ffffffc00b24b700 [ 0.205958][ T1] x29: ffffffc00b24b700 x28: 0000000000000002 [ 0.206494][ T1] x27: 00000000000000e0 x26: ffffff810019ca00 [ 0.207027][ T1] x25: 0000000000000000 x24: ffffff810122c1e0 [ 0.207560][ T1] x23: ffffff810122c1d8 x22: ffffffc00b24b728 [ 0.208097][ T1] x21: ffffff810122c1d0 x20: 0000000000000000 [ 0.208631][ T1] x19: 7fffffffffffffff x18: ffffffc00b2350b8 [ 0.209165][ T1] x17: ffffffffffffffff x16: 0000000000000000 [ 0.209697][ T1] x15: 0000000000000004 x14: ffffffc00af6d130 [ 0.210231][ T1] x13: 0000000000000fff x12: 0000000000000003 [ 0.210769][ T1] x11: 00000000ffffffff x10: c0000000ffffefff [ 0.211300][ T1] x9 : 91b264ed20239600 x8 : 91b264ed20239600 [ 0.211834][ T1] x7 : 322e30202020205b x6 : ffffffc00b1873d8 [ 0.212365][ T1] x5 : ffffffc00b184fee x4 : 0000000000000000 [ 0.212896][ T1] x3 : 0000000000000000 x2 : 0000000000000000 [ 0.213426][ T1] x1 : ffffffc00b24b4d0 x0 : 0000000000000022 [ 0.213959][ T1] Call trace: [ 0.214239][ T1] __list_add_valid+0x80/0xc0 [ 0.214645][ T1] wait_for_common+0x104/0x308 [ 0.215059][ T1] smc_send_message+0x100/0x2a8 [ 0.215477][ T1] do_xfer+0x128/0x858 [ 0.215826][ T1] version_get+0x88/0x20c [ 0.216198][ T1] scmi_base_protocol_init+0x6c/0x720 [ 0.216663][ T1] scmi_get_protocol_instance+0x1f4/0x49c [ 0.217156][ T1] scmi_probe+0x244/0x724 [ 0.217531][ T1] platform_drv_probe+0x60/0x17c [ 0.217956][ T1] really_probe+0x310/0x974 [ 0.218342][ T1] driver_probe_device+0x74/0x298 [ 0.218776][ T1] device_driver_attach+0x158/0x208 [ 0.219224][ T1] __driver_attach+0x248/0x420 [ 0.219634][ T1] bus_add_driver+0x1d4/0x498 [ 0.220036][ T1] driver_register+0x84/0x17c [ 0.220442][ T1] scmi_driver_init+0xb0/0xc0 [ 0.220846][ T1] __initstubkmod_scmi_module__425_1626_scmi_driver_init4.cfi+0x14/0x24 [ 0.221589][ T1] do_one_initcall+0x114/0x3b0 [ 0.221998][ T1] do_initcall_level+0xdc/0x1bc [ 0.222415][ T1] do_initcalls+0x58/0x9c [ 0.222785][ T1] do_basic_setup+0x28/0x38 [ 0.223172][ T1] kernel_init_freeable+0xfc/0x1bc [ 0.223616][ T1] kernel_init+0x2c/0x304 [ 0.223988][ T1] ret_from_fork+0x10/0x30 [ 0.224369][ T1] Code: d4210000 d000c600 9118a800 97e0729d (d4210000) [ 0.224974][ T1] ---[ end trace 6c77dafcd8f3982d ]--- [ 0.225881][ T1] Kernel panic - not syncing: Oops - BUG: Fatal exception Bug: 357011632 Bug: 358529695 Fixes: 18126b265062 ("UPSTREAM: firmware: arm_scmi: Fix chan_free cleanup on SMC") Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Change-Id: I9d9edb48a313b1e4277749082e41ea02ca5ec2a5 (cherry picked from commit fcc95b0adc7f1387fc638592ab284d69d96ef91b)
BEST: Make all of your changes to upstream Linux. If appropriate, backport to the stable releases. These patches will be merged automatically in the corresponding common kernels. If the patch is already in upstream Linux, post a backport of the patch that conforms to the patch requirements below.
EXPORT_SYMBOL_GPL()
require an in-tree modular driver that uses the symbol -- so include the new driver or changes to an existing driver in the same patchset as the export.LESS GOOD: Develop your patches out-of-tree (from an upstream Linux point-of-view). Unless these are fixing an Android-specific bug, these are very unlikely to be accepted unless they have been coordinated with kernel-team@android.com. If you want to proceed, post a patch that conforms to the patch requirements below.
script/checkpatch.pl
UPSTREAM:
, BACKPORT:
, FROMGIT:
, FROMLIST:
, or ANDROID:
.Change-Id:
tag (see https://gerrit-review.googlesource.com/Documentation/user-changeid.html)Bug:
tag.Signed-off-by:
tag by the author and the submitterAdditional requirements are listed below based on patch type
UPSTREAM:
, BACKPORT:
UPSTREAM:
.(cherry picked from commit ...)
lineimportant patch from upstream This is the detailed description of the important patch Signed-off-by: Fred Jones <fred.jones@foo.org>
- then Joe Smith would upload the patch for the common kernel as
UPSTREAM: important patch from upstream This is the detailed description of the important patch Signed-off-by: Fred Jones <fred.jones@foo.org> Bug: 135791357 Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01 (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1) Signed-off-by: Joe Smith <joe.smith@foo.org>
BACKPORT:
instead of UPSTREAM:
.UPSTREAM:
(cherry picked from commit ...)
lineBACKPORT: important patch from upstream This is the detailed description of the important patch Signed-off-by: Fred Jones <fred.jones@foo.org> Bug: 135791357 Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01 (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1) [joe: Resolved minor conflict in drivers/foo/bar.c ] Signed-off-by: Joe Smith <joe.smith@foo.org>
FROMGIT:
, FROMLIST:
,FROMGIT:
(cherry picked from commit <sha1> <repo> <branch>)
. This must be a stable maintainer branch (not rebased, so don't use linux-next
for example).BACKPORT: FROMGIT:
important patch from upstream This is the detailed description of the important patch Signed-off-by: Fred Jones <fred.jones@foo.org>
- then Joe Smith would upload the patch for the common kernel as
FROMGIT: important patch from upstream This is the detailed description of the important patch Signed-off-by: Fred Jones <fred.jones@foo.org> Bug: 135791357 (cherry picked from commit 878a2fd9de10b03d11d2f622250285c7e63deace https://git.kernel.org/pub/scm/linux/kernel/git/foo/bar.git test-branch) Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01 Signed-off-by: Joe Smith <joe.smith@foo.org>
FROMLIST:
Link:
tag with a link to the submittal on lore.kernel.orgBug:
tag with the Android bug (required for patches not accepted into a maintainer tree)BACKPORT: FROMLIST:
FROMLIST: important patch from upstream This is the detailed description of the important patch Signed-off-by: Fred Jones <fred.jones@foo.org> Bug: 135791357 Link: https://lore.kernel.org/lkml/20190619171517.GA17557@someone.com/ Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01 Signed-off-by: Joe Smith <joe.smith@foo.org>
ANDROID:
ANDROID:
Fixes:
tag that cites the patch with the bugANDROID: fix android-specific bug in foobar.c This is the detailed description of the important fix Fixes: 1234abcd2468 ("foobar: add cool feature") Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01 Signed-off-by: Joe Smith <joe.smith@foo.org>
ANDROID:
Bug:
tag with the Android bug (required for android-specific features)