This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
ARM64: configs: elish: Disable rmnet module #25
Closed
Aquarius223
wants to merge
220
commits into
UtsavBalar1231:android12-next
from
sticpaper:android12-next
Closed
ARM64: configs: elish: Disable rmnet module #25
Aquarius223
wants to merge
220
commits into
UtsavBalar1231:android12-next
from
sticpaper:android12-next
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Change-Id: If5d86d9b773141c052e7dc00ab4d204226c1aedb
Change-Id: Id6d0dc3bd3d1ea6089563330421727ad5bd27234
Correct the DMA RX interrupt handling logic to check for RX_DMA_DONE done as sometimes RX_EOT bit may not be set for a successful transfer. But, the RX_DMA_DONE will always be set for a transfer. This issue is caused by the change with commit : 6a0ff35 Disable and enable interrupt in pm runtime suspend, pm runtime resume respectively for uart so that there will not be any spurious core interrupt occurring when the driver is in suspend state. Change-Id: I9074d9f373d08982cb82af50a36289061962cf2d Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
This change restricts disabling of core interrupt only for HSUART case from probe function. Console usecase requires irq to be in enable state to handle RX data. Change-Id: I244c68e8e327729734bda42aa1b90a914375e147 Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Change-Id: I685d48c2a2f4bc472ec27c60e606461c0b1834a1
Change-Id: Ie5d89309b878d2bcaa50eed2e30d5ae78cc44336
Change-Id: I8977a5a9f2380ad4aaaad1a39e3b8c069227d4e3
The property to configure dynamic low latency to firmware is set by driver during start streaming. Set the property only when userspace has enabled the feature Change-Id: Ic89b131c8e06adf95ad70a9acf2041535a273c57 Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Change-Id: I968dea29d098117ebe9758625f10b0c18a351438 Signed-off-by: junj <junj@codeaurora.org>
Change-Id: I90e3aae1888604a1404ff8bbb36b1737a8c169c8
Change-Id: I57815f6d5d467ffd6c4c01bf80eeff18288e8c13
Change-Id: Ief56da62f7134b7fd70760d6c8127bd15cbea7fb
Change-Id: I218e3a6d9bb878366c46180623a1f87880a99ffb
Change-Id: Icfa8d99e3f3075c6421f1bb7778efabb158c209f
Change-Id: Iedba7c34160c6cee927d73ca97c483e2b0fccd56
Change-Id: I0de78778cb071b613de457ae69681bcfa72c02df
Change-Id: Iad2ca5465fa794a8c8adf528d2e610bf65932bf9
Change-Id: I9d1aa113dc18f69b759ebb8a13aedaba505192ab
Change-Id: Ia8d15a0b89974bf79070c1998fc988f94fb37959
Change-Id: I687d743ccbb9049a1909cbdb1fb2f7b2e6b511dd
Change-Id: I792172a2e0d3bd1cbe4bec6a94da89d5acd9c754
Change-Id: I9fb87a34edd6473bdd45556e9a0d8f75ab110a02
Change-Id: I98253ac0fa5467fa8669bf148d9f3f9a4bb23c24
Change-Id: I41132f48bb8d7592e21ba3938113865490e029df
Change-Id: I15dfd5a687b778741a398e936685b8775b3940e6
Change-Id: Ib258b432fda751e1b3a73d34fcd2ce5a5deb267c
Change-Id: I14d36c01a7d246d5fa46d188974a35104c28fa2d
Change-Id: I0224ac15ba1b07502322c169048c6eeef32566ed
Change-Id: I4650a0791495071b92975606b526583fd66ea1bb
Change-Id: I5ad4e124e1f8ccd1130566552231eed0f064f490
Change-Id: I47599ad874f51fc9ba4ce457a6f3feaa057d8ea9
Change-Id: I853e3379cdee142d92cbc8b72c178f16fbb59ab4
Change-Id: I67035edf07b3724f4299ba414710318b7c890f16
Change-Id: I6daefec9209c0f8b5efca943f8d2774aa1d01e20
Change-Id: Ie1074d7fa5d5d423e959b457a89b212c433238fe
…inaro.org/clo/la/kernel/msm-4.19 into android12-base "LA.UM.9.15.r1-06700-KAMORTA.QSSI13.0" * tag 'LA.UM.9.15.r1-06700-KAMORTA.QSSI13.0' of https://git.codelinaro.org/clo/la/kernel/msm-4.19: soc: qcom: core_hang: Add support to check available cpus soc: qcom: socinfo: Add API for defective core/part information clk: qcom: clk-rcg2: Update logic to calculate D value for RCG cnss2: Only assert for remap window register when link is not down cnss2: Make sure the write to remap window register take effect qcom/l2cache_counters: Add support to check available CPUS UPSTREAM: binderfs: use refcount for binder control devices too FROMGIT: arm64: fix oops in concurrently setting insn_emulation sysctls media:uvc: supports dynamic setting of urb configuration msm: camera: Increase the total number of camera ID's supported cpu-topology: Don't error on more than CONFIG_NR_CPUS CPUs in device tree usb: gadget: rndis: prevent integer overflow in rndis_set_response() FROMLIST: binder: fix UAF of ref->proc caused by race condition msm_perf: check cpu_possible to improve stability msm: adsprpc: Validate the CID soc: qcom: socinfo: Add soc information for Khaje IOT power: qpnp-fg-gen4: Improve SDAM corruption check msm: ADSPRPC: Restrict untrusted applications from attaching to GuestOS msm: kgsl: Zap performance counters across context switches msm: kgsl: Add a sysfs node to control performance counter reads tzlog: update struct to get normal and fatal diag logs firmware: qcom: Remove garbage characters from qsee log firmware: qcom: add enlarged qsee log support firmware: qcom: encrypted tz and qsee log support serial: msm_geni_serial: Reduce stale delay added in stop_rx_sequencer clk: qcom: debugcc: Remove the gcc_camss_camnoc clocks defconfig: Enable CONFIG_ION_SYSTEM_HEAP for bengal f2fs: fix the periodic wakeups of discard thread f2fs: allow to change discard policy based on cached discard cmds msm: adsprpc: Lock list before removing node clk: qcom: gpucc: Update the post div ops for GPUCC PLL for KHAJE clk: qcom: clk-alpha-pll: Update implementation for Zonda PLL msm: kgsl: Use pid struct to find the process to reclaim mm: process_reclaim: pass pid struct instead of tgid msm: kgsl: Change vma->vm_file to shmem file mm: process_reclaim: skip target_vma net: qrtr: Excessive logging casuing boot failure Revert "msm: kgsl: Add GPUCC register dumps to A6xx GPU snapshot" defconfig: msm: Enable CONFIG_STATIC_USERMODEHELPER for bengal_32 fdt: Update CRC check for rng-seed defconfig: Enable blk-crypto-fallback to handle sw crypto request md: dm-default-key: Use system sector size for SDHCI devices msm: mink: Fix copy_to_user issue fix corrupt merge serial: msm_geni_serial: Disable irq only for HSUART usecase msm_geni_serial: Correct the DMA RX interrupt logic Change-Id: I1382d589eff7d60901f14b18383291ef76bb1074 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
…2-base * commit '423d89e7860a4a5d6b210c3502c13f7147555b6e': Release 5.2.022.11O qcacld-3.0: Avoid double free in sch_gen_timing_advert_frame Release 5.2.022.11N qcacld-3.0: Add support for dynamic GRO for Helium target Release 5.2.022.11M qcacld-3.0: Properly set htCapable and vhtCapable Release 5.2.022.11L qcacld-3.0: Control GRO en/dis based on TC filter prio qcacld-3.0: Add an ini control to disable Dynamic GRO feature qcacld-3.0: Do GRO en/dis based on qdisc only for standalone STA qcacld-3.0: Dynamically control rx aggregation based on ingress filter Release 5.2.022.11K qcacld-3.0: validate vdev id for APF enable command qcacld-3.0: Correct the condition to reject TDLS qcacld-3.0: Invalid rem_len computation in roam stats evt handler qcacld-3.0: Send vdev create cmd from vdevmgr_mlme_ext_hdl_create Change-Id: I3536cac3eabd12873d6fa034f574401807adef13 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
…2-base * commit '5c097ff1c8b56712f0822dec11f42f68b5fcb645': fw-api: CL 19622099 - update fw common interface files fw-api: CL 19606967 - update fw common interface files fw-api: CL 19556986 - update fw common interface files fw-api: CL 19533452 - update fw common interface files fw-api: CL 19477285 - update fw common interface files fw-api: CL 19472001 - update fw common interface files fw-api: CL 19468705 - update fw common interface files fw-api: CL 19457721 - update fw common interface files fw-api: CL 19438550 - update fw common interface files fw-api: CL 19435748 - update fw common interface files fw-api: CL 19429798 - update fw common interface files fw-api: CL 19427858 - update fw common interface files fw-api: Add ipq5332 target header files to fw-api project fw-api: CL 19415475 - update fw common interface files fw-api: CL 19412691 - update fw common interface files fw-api: CL 19398158 - update fw common interface files fw-api: CL 19397642 - update fw common interface files fw-api: CL 19394669 - update fw common interface files fw-api: CL 19391619 - update fw common interface files fw-api: CL 19391596 - update fw common interface files fw-api: CL 19370853 - update fw common interface files fw-api: CL 19370849 - update fw common interface files fw-api: CL 19349228 - update fw common interface files fw-api: CL 19348400 - update fw common interface files fw-api: CL 19327828 - update fw common interface files fw-api: CL 19327825 - update fw common interface files fw-api: CL 19280734 - update fw common interface files fw-api: CL 19280530 - update fw common interface files fw-api: CL 19259024 - update fw common interface files fw-api: CL 19232954 - update fw common interface files fw-api: CL 19207537 - update fw common interface files fw-api: CL 19198716 - update fw common interface files fw-api: CL 19196446 - update fw common interface files fw-api: CL 19192070 - update fw common interface files fw-api: CL 19177839 - update fw common interface files fw-api: CL 19172232 - update fw common interface files fw-api: CL 19168628 - update fw common interface files fw-api: CL 19157233 - update fw common interface files fw-api: CL 19115988 - update fw common interface files fw-api: CL 19090770 - update fw common interface files fw-api: Add wlanfw_health_mon.h for FW Health Monitor fw-api: CL 19087861 - update fw common interface files fw-api: CL 19061926 - update fw common interface files fw-api: CL 19061219 - update fw common interface files fw-api: CL 19047183 - update fw common interface files fw-api: CL 19029549 - update fw common interface files fw-api: CL 19024619 - update fw common interface files fw-api: CL 19024615 - update fw common interface files fw-api: CL 19010813 - update fw common interface files fw-api: CL 18998456 - update fw common interface files fw-api: CL 18987039 - update fw common interface files fw-api: CL 18966584 - update fw common interface files fw-api: CL 18946469 - update fw common interface files fw-api: CL 18946444 - update fw common interface files fw-api: CL 18916860 - update fw common interface files fw-api: Add headers for qcn9224 v2 fw-api: CL 18860032 - update fw common interface files fw-api: CL 18844589 - update fw common interface files fw-api: CL 18844583 - update fw common interface files fw-api: CL 18827872 - update fw common interface files fw-api: CL 18809954 - update fw common interface files fw-api: CL 18774949 - update fw common interface files fw-api: CL 18757174 - update fw common interface files fw-api: CL 18739769 - update fw common interface files fw-api: CL 18709242 - update fw common interface files fw-api: CL 18685702 - update fw common interface files Change-Id: I96c73a09b0e3d477aed298bd1ee9091be54676b1 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
…2-base * commit '856d77a69aafe7e629b528d172675209d9e688ae': qcacmn: Update set ch params API to consider passive ch qcacmn: Add support for dynamic GRO for Helium target qcacmn: Add ini to set priority for TC ingress filter qcacmn: Add an ini control to disable Dynamic GRO feature qcacmn: Check function pointer to avoid NULL point dereference qcacmn: Fix OOB read issue in SSID ie qcacmn: Possible Integer overflow in wifi_pos_oem_rsp_handler qcacmn: Use local skb pointer for reentrant cld80211_msg_allocator qcacmn: Fix possible OOB in wmi_extract_dbr_buf_release_entry qcacmn: Validate NDP app info length before accessing NDP app info qcacmn: Add length check in ndp event handler Change-Id: Iee1801b5f3c11d05c53fec34312ff3d09ac26b3f Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
…2-base * commit 'a7bce27336146b31530aa552d3d630781eb773ee': msm: vidc: Update maximum supported slice count msm: vidc: Enable intra cyclic refresh msm: vidc: set ib bandwidth for holi msm: vidc: update all intra to allow more than 30 fps msm: vdec: set hfi property when set by client Change-Id: I5935df4e74a7a23b02148ac174f91eb100751350 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
* origin/android12-base: soc: qcom: core_hang: Add support to check available cpus soc: qcom: socinfo: Add API for defective core/part information clk: qcom: clk-rcg2: Update logic to calculate D value for RCG cnss2: Only assert for remap window register when link is not down cnss2: Make sure the write to remap window register take effect qcom/l2cache_counters: Add support to check available CPUS fw-api: CL 19622099 - update fw common interface files fw-api: CL 19606967 - update fw common interface files UPSTREAM: binderfs: use refcount for binder control devices too FROMGIT: arm64: fix oops in concurrently setting insn_emulation sysctls media:uvc: supports dynamic setting of urb configuration qcacmn: Update set ch params API to consider passive ch msm: camera: Increase the total number of camera ID's supported cpu-topology: Don't error on more than CONFIG_NR_CPUS CPUs in device tree msm: vidc: Update maximum supported slice count fw-api: CL 19556986 - update fw common interface files usb: gadget: rndis: prevent integer overflow in rndis_set_response() FROMLIST: binder: fix UAF of ref->proc caused by race condition fw-api: CL 19533452 - update fw common interface files fw-api: CL 19477285 - update fw common interface files fw-api: CL 19472001 - update fw common interface files fw-api: CL 19468705 - update fw common interface files fw-api: CL 19457721 - update fw common interface files fw-api: CL 19438550 - update fw common interface files fw-api: CL 19435748 - update fw common interface files fw-api: CL 19429798 - update fw common interface files fw-api: CL 19427858 - update fw common interface files msm_perf: check cpu_possible to improve stability msm: adsprpc: Validate the CID Release 5.2.022.11O qcacld-3.0: Avoid double free in sch_gen_timing_advert_frame fw-api: Add ipq5332 target header files to fw-api project msm: vidc: Enable intra cyclic refresh Release 5.2.022.11N qcacld-3.0: Add support for dynamic GRO for Helium target Release 5.2.022.11M qcacld-3.0: Properly set htCapable and vhtCapable Release 5.2.022.11L qcacld-3.0: Control GRO en/dis based on TC filter prio qcacld-3.0: Add an ini control to disable Dynamic GRO feature qcacld-3.0: Do GRO en/dis based on qdisc only for standalone STA qcacld-3.0: Dynamically control rx aggregation based on ingress filter fw-api: CL 19415475 - update fw common interface files fw-api: CL 19412691 - update fw common interface files soc: qcom: socinfo: Add soc information for Khaje IOT fw-api: CL 19398158 - update fw common interface files fw-api: CL 19397642 - update fw common interface files fw-api: CL 19394669 - update fw common interface files fw-api: CL 19391619 - update fw common interface files fw-api: CL 19391596 - update fw common interface files fw-api: CL 19370853 - update fw common interface files fw-api: CL 19370849 - update fw common interface files fw-api: CL 19349228 - update fw common interface files fw-api: CL 19348400 - update fw common interface files fw-api: CL 19327828 - update fw common interface files fw-api: CL 19327825 - update fw common interface files fw-api: CL 19280734 - update fw common interface files fw-api: CL 19280530 - update fw common interface files fw-api: CL 19259024 - update fw common interface files qcacmn: Add support for dynamic GRO for Helium target fw-api: CL 19232954 - update fw common interface files fw-api: CL 19207537 - update fw common interface files fw-api: CL 19198716 - update fw common interface files fw-api: CL 19196446 - update fw common interface files fw-api: CL 19192070 - update fw common interface files fw-api: CL 19177839 - update fw common interface files fw-api: CL 19172232 - update fw common interface files fw-api: CL 19168628 - update fw common interface files fw-api: CL 19157233 - update fw common interface files fw-api: CL 19115988 - update fw common interface files fw-api: CL 19090770 - update fw common interface files fw-api: Add wlanfw_health_mon.h for FW Health Monitor Release 5.2.022.11K qcacld-3.0: validate vdev id for APF enable command fw-api: CL 19087861 - update fw common interface files fw-api: CL 19061926 - update fw common interface files fw-api: CL 19061219 - update fw common interface files fw-api: CL 19047183 - update fw common interface files fw-api: CL 19029549 - update fw common interface files fw-api: CL 19024619 - update fw common interface files fw-api: CL 19024615 - update fw common interface files fw-api: CL 19010813 - update fw common interface files fw-api: CL 18998456 - update fw common interface files fw-api: CL 18987039 - update fw common interface files fw-api: CL 18966584 - update fw common interface files fw-api: CL 18946469 - update fw common interface files fw-api: CL 18946444 - update fw common interface files fw-api: CL 18916860 - update fw common interface files qcacmn: Add ini to set priority for TC ingress filter qcacmn: Add an ini control to disable Dynamic GRO feature power: qpnp-fg-gen4: Improve SDAM corruption check qcacld-3.0: Correct the condition to reject TDLS fw-api: Add headers for qcn9224 v2 fw-api: CL 18860032 - update fw common interface files fw-api: CL 18844589 - update fw common interface files fw-api: CL 18844583 - update fw common interface files msm: ADSPRPC: Restrict untrusted applications from attaching to GuestOS fw-api: CL 18827872 - update fw common interface files fw-api: CL 18809954 - update fw common interface files fw-api: CL 18774949 - update fw common interface files fw-api: CL 18757174 - update fw common interface files fw-api: CL 18739769 - update fw common interface files fw-api: CL 18709242 - update fw common interface files fw-api: CL 18685702 - update fw common interface files msm: kgsl: Zap performance counters across context switches msm: kgsl: Add a sysfs node to control performance counter reads tzlog: update struct to get normal and fatal diag logs firmware: qcom: Remove garbage characters from qsee log firmware: qcom: add enlarged qsee log support firmware: qcom: encrypted tz and qsee log support qcacmn: Check function pointer to avoid NULL point dereference msm: vidc: set ib bandwidth for holi qcacld-3.0: Invalid rem_len computation in roam stats evt handler serial: msm_geni_serial: Reduce stale delay added in stop_rx_sequencer qcacmn: Fix OOB read issue in SSID ie qcacmn: Possible Integer overflow in wifi_pos_oem_rsp_handler qcacmn: Use local skb pointer for reentrant cld80211_msg_allocator clk: qcom: debugcc: Remove the gcc_camss_camnoc clocks qcacmn: Fix possible OOB in wmi_extract_dbr_buf_release_entry defconfig: Enable CONFIG_ION_SYSTEM_HEAP for bengal f2fs: fix the periodic wakeups of discard thread f2fs: allow to change discard policy based on cached discard cmds msm: adsprpc: Lock list before removing node clk: qcom: gpucc: Update the post div ops for GPUCC PLL for KHAJE clk: qcom: clk-alpha-pll: Update implementation for Zonda PLL msm: kgsl: Use pid struct to find the process to reclaim mm: process_reclaim: pass pid struct instead of tgid msm: kgsl: Change vma->vm_file to shmem file mm: process_reclaim: skip target_vma net: qrtr: Excessive logging casuing boot failure Revert "msm: kgsl: Add GPUCC register dumps to A6xx GPU snapshot" qcacmn: Validate NDP app info length before accessing NDP app info qcacld-3.0: Send vdev create cmd from vdevmgr_mlme_ext_hdl_create qcacmn: Add length check in ndp event handler defconfig: msm: Enable CONFIG_STATIC_USERMODEHELPER for bengal_32 fdt: Update CRC check for rng-seed msm: vidc: update all intra to allow more than 30 fps defconfig: Enable blk-crypto-fallback to handle sw crypto request md: dm-default-key: Use system sector size for SDHCI devices msm: mink: Fix copy_to_user issue fix corrupt merge msm: vdec: set hfi property when set by client serial: msm_geni_serial: Disable irq only for HSUART usecase msm_geni_serial: Correct the DMA RX interrupt logic Change-Id: I3d2c79635d7186da89d9f802a5955540a182b8f1 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
While the $val values passed in from userspace are always >= 0 integers, the limits of the control can be signed integers and the $min can be non-zero and less than zero. To correctly validate $val against platform_max, add the $min offset to val first. bug: 237991015 Signed-off-by: Jason Hsu <jasonchhsu@google.com> Change-Id: I36c4e64e3c8bf629957217633c5aa85388cccd30
commit bf594d1d0c1d7b895954018043536ffd327844f9 upstream. The list_for_each_entry_safe() macro saves the current item (n) and the item after (n+1), so that n can be safely removed without corrupting the list. However, when traversing the list and removing items using gadget giveback, the DWC3 lock is briefly released, allowing other routines to execute. There is a situation where, while items are being removed from the cancelled_list using dwc3_gadget_ep_cleanup_cancelled_requests(), the pullup disable routine is running in parallel (due to UDC unbind). As the cleanup routine removes n, and the pullup disable removes n+1, once the cleanup retakes the DWC3 lock, it references a request who was already removed/handled. With list debug enabled, this leads to a panic. Ensure all instances of the macro are replaced where gadget giveback is used. Example call stack: Thread#1: __dwc3_gadget_ep_set_halt() - CLEAR HALT -> dwc3_gadget_ep_cleanup_cancelled_requests() ->list_for_each_entry_safe() ->dwc3_gadget_giveback(n) ->dwc3_gadget_del_and_unmap_request()- n deleted[cancelled_list] ->spin_unlock ->Thread#2 executes ... ->dwc3_gadget_giveback(n+1) ->Already removed! Thread#2: dwc3_gadget_pullup() ->waiting for dwc3 spin_lock ... ->Thread#1 released lock ->dwc3_stop_active_transfers() ->dwc3_remove_requests() ->fetches n+1 item from cancelled_list (n removed by Thread#1) ->dwc3_gadget_giveback() ->dwc3_gadget_del_and_unmap_request()- n+1 deleted[cancelled_list] ->spin_unlock Fixes: d4f1afe5e896 ("usb: dwc3: gadget: move requests to cancelled_list") Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com> Link: https://lore.kernel.org/r/20220414183521.23451-1-quic_wcheng@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Bug: 241412400 Test: build, boot Signed-off-by: Jimmy Hu <hhhuuu@google.com> Change-Id: I03102cdb277db5ccfd29a175df5eff5c77cf7285
CRYPTO_LIB_CHACHA_GENERIC doesn't need to select XOR_BLOCKS. It perhaps was thought that it's needed for __crypto_xor, but that's not the case. Enabling XOR_BLOCKS is problematic because the XOR_BLOCKS code runs a benchmark when it is initialized. That causes a boot time regression on systems that didn't have it enabled before. Therefore, remove this unnecessary and problematic selection. Bug: 242983064 Fixes: e56e18985596 ("lib/crypto: add prompts back to crypto libraries") Test: asit/perf/boottime_test(BootAnimationShownTiming-mean) Cc: stable@vger.kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: I32938d078243176d218ebef467f4a0045ea7bd8c
Change-Id: I71feddbea54ad18f3c4ad3bba5cfaf34f8edf662 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Change-Id: I458f8cb2872f51689aebd6fb5db4a21f32c0a019 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Change-Id: I5a28e709523bab093af10a0716754a30b4f4ca46 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Change-Id: I57037924f60c4ff5972b3d3efe1f5b2da44ba960 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Change-Id: If4eacc26c03433fcfc9a1e4d1f02422ccebb6a33 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Change-Id: Id50532003c23326969703590ca1e425c62490444 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This update is generated automatically by using the update_defconfig script HEAD of the project used to prepare this commit: https://github.com/UtsavBalar1231/kernel_xiaomi_sm8250/tree/b62ab50b14bba3869a0abd819917fcd932a5a948 Change-Id: Ifafc3dd18119c504a98b8e36ab3493eb00e6170f Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Xiaomi Pad 5 Pro don't need this, enuma need it Check kernel modules loaded under stock kernel with lsmod: elish: wlan 7213056 0 sla 20480 0 fpc1540 20480 0 exfat 139264 0 machine_dlkm 192512 0 cs35l41_dlkm 143360 8 wcd938x_slave_dlkm 16384 0 wcd938x_dlkm 110592 2 machine_dlkm wcd9xxx_dlkm 57344 19 wcd938x_dlkm mbhc_dlkm 81920 1 wcd938x_dlkm tx_macro_dlkm 114688 1 mbhc_dlkm rx_macro_dlkm 106496 0 va_macro_dlkm 106496 0 wsa_macro_dlkm 69632 1 machine_dlkm swr_ctrl_dlkm 65536 4 tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm bolero_cdc_dlkm 57344 6 machine_dlkm,tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm wsa881x_dlkm 49152 1 machine_dlkm wcd_core_dlkm 32768 8 machine_dlkm,wcd938x_dlkm,mbhc_dlkm,tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm,wsa881x_dlkm stub_dlkm 16384 1 hdmi_dlkm 24576 0 swr_dlkm 24576 4 wcd938x_slave_dlkm,wcd938x_dlkm,swr_ctrl_dlkm,wsa881x_dlkm pinctrl_lpi_dlkm 24576 6 pinctrl_wcd_dlkm 16384 0 usf_dlkm 57344 0 native_dlkm 184320 0 platform_dlkm 2965504 64 native_dlkm q6_dlkm 1134592 11 machine_dlkm,wcd9xxx_dlkm,va_macro_dlkm,swr_ctrl_dlkm,bolero_cdc_dlkm,pinctrl_lpi_dlkm,usf_dlkm,native_dlkm,platform_dlkm adsp_loader_dlkm 16384 0 apr_dlkm 233472 4 usf_dlkm,platform_dlkm,q6_dlkm,adsp_loader_dlkm snd_event_dlkm 16384 5 machine_dlkm,bolero_cdc_dlkm,pinctrl_lpi_dlkm,q6_dlkm,apr_dlkm q6_notifier_dlkm 16384 3 pinctrl_lpi_dlkm,q6_dlkm,apr_dlkm q6_pdr_dlkm 16384 1 q6_notifier_dlkm enuma: rmnet_perf 36864 0 rmnet_shs 114688 0 wlan 7213056 0 sla 20480 0 fpc1540 20480 0 exfat 139264 0 machine_dlkm 192512 0 cs35l41_dlkm 143360 8 wcd938x_slave_dlkm 16384 0 wcd938x_dlkm 110592 2 machine_dlkm wcd9xxx_dlkm 57344 19 wcd938x_dlkm mbhc_dlkm 81920 1 wcd938x_dlkm tx_macro_dlkm 114688 1 mbhc_dlkm rx_macro_dlkm 106496 0 va_macro_dlkm 106496 0 wsa_macro_dlkm 69632 1 machine_dlkm swr_ctrl_dlkm 65536 4 tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm bolero_cdc_dlkm 57344 6 machine_dlkm,tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm wsa881x_dlkm 49152 1 machine_dlkm wcd_core_dlkm 32768 8 machine_dlkm,wcd938x_dlkm,mbhc_dlkm,tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm,wsa881x_dlkm stub_dlkm 16384 1 hdmi_dlkm 24576 0 swr_dlkm 24576 4 wcd938x_slave_dlkm,wcd938x_dlkm,swr_ctrl_dlkm,wsa881x_dlkm pinctrl_lpi_dlkm 24576 6 pinctrl_wcd_dlkm 16384 0 usf_dlkm 57344 0 native_dlkm 184320 0 platform_dlkm 2965504 64 native_dlkm q6_dlkm 1134592 11 machine_dlkm,wcd9xxx_dlkm,va_macro_dlkm,swr_ctrl_dlkm,bolero_cdc_dlkm,pinctrl_lpi_dlkm,usf_dlkm,native_dlkm,platform_dlkm adsp_loader_dlkm 16384 0 apr_dlkm 233472 4 usf_dlkm,platform_dlkm,q6_dlkm,adsp_loader_dlkm snd_event_dlkm 16384 5 machine_dlkm,bolero_cdc_dlkm,pinctrl_lpi_dlkm,q6_dlkm,apr_dlkm q6_notifier_dlkm 16384 3 pinctrl_lpi_dlkm,q6_dlkm,apr_dlkm q6_pdr_dlkm 16384 1 q6_notifier_dlkm Change-Id: If86bb9f86c032ee4dfd15fb0b02ff27a7474ab39
Actually its fine even if these are enabled for elish. |
UtsavBalar1231
force-pushed
the
android12-next
branch
from
October 19, 2022 05:40
18b70a4
to
8a4b8f4
Compare
mesziman
pushed a commit
to mesziman/kernel_xiaomi_sm8250
that referenced
this pull request
Nov 14, 2022
commit 1e41e693f458eef2d5728207dbd327cd3b16580a upstream. UBSAN complains about array-index-out-of-bounds: [ 1.980703] kernel: UBSAN: array-index-out-of-bounds in /build/linux-9H675w/linux-5.15.0/drivers/ata/libahci.c:968:41 [ 1.980709] kernel: index 15 is out of range for type 'ahci_em_priv [8]' [ 1.980713] kernel: CPU: 0 PID: 209 Comm: scsi_eh_8 Not tainted 5.15.0-25-generic UtsavBalar1231#25-Ubuntu [ 1.980716] kernel: Hardware name: System manufacturer System Product Name/P5Q3, BIOS 1102 06/11/2010 [ 1.980718] kernel: Call Trace: [ 1.980721] kernel: <TASK> [ 1.980723] kernel: show_stack+0x52/0x58 [ 1.980729] kernel: dump_stack_lvl+0x4a/0x5f [ 1.980734] kernel: dump_stack+0x10/0x12 [ 1.980736] kernel: ubsan_epilogue+0x9/0x45 [ 1.980739] kernel: __ubsan_handle_out_of_bounds.cold+0x44/0x49 [ 1.980742] kernel: ahci_qc_issue+0x166/0x170 [libahci] [ 1.980748] kernel: ata_qc_issue+0x135/0x240 [ 1.980752] kernel: ata_exec_internal_sg+0x2c4/0x580 [ 1.980754] kernel: ? vprintk_default+0x1d/0x20 [ 1.980759] kernel: ata_exec_internal+0x67/0xa0 [ 1.980762] kernel: sata_pmp_read+0x8d/0xc0 [ 1.980765] kernel: sata_pmp_read_gscr+0x3c/0x90 [ 1.980768] kernel: sata_pmp_attach+0x8b/0x310 [ 1.980771] kernel: ata_eh_revalidate_and_attach+0x28c/0x4b0 [ 1.980775] kernel: ata_eh_recover+0x6b6/0xb30 [ 1.980778] kernel: ? ahci_do_hardreset+0x180/0x180 [libahci] [ 1.980783] kernel: ? ahci_stop_engine+0xb0/0xb0 [libahci] [ 1.980787] kernel: ? ahci_do_softreset+0x290/0x290 [libahci] [ 1.980792] kernel: ? trace_event_raw_event_ata_eh_link_autopsy_qc+0xe0/0xe0 [ 1.980795] kernel: sata_pmp_eh_recover.isra.0+0x214/0x560 [ 1.980799] kernel: sata_pmp_error_handler+0x23/0x40 [ 1.980802] kernel: ahci_error_handler+0x43/0x80 [libahci] [ 1.980806] kernel: ata_scsi_port_error_handler+0x2b1/0x600 [ 1.980810] kernel: ata_scsi_error+0x9c/0xd0 [ 1.980813] kernel: scsi_error_handler+0xa1/0x180 [ 1.980817] kernel: ? scsi_unjam_host+0x1c0/0x1c0 [ 1.980820] kernel: kthread+0x12a/0x150 [ 1.980823] kernel: ? set_kthread_struct+0x50/0x50 [ 1.980826] kernel: ret_from_fork+0x22/0x30 [ 1.980831] kernel: </TASK> This happens because sata_pmp_init_links() initialize link->pmp up to SATA_PMP_MAX_PORTS while em_priv is declared as 8 elements array. I can't find the maximum Enclosure Management ports specified in AHCI spec v1.3.1, but "12.2.1 LED message type" states that "Port Multiplier Information" can utilize 4 bits, which implies it can support up to 16 ports. Hence, use SATA_PMP_MAX_PORTS as EM_MAX_SLOTS to resolve the issue. BugLink: https://bugs.launchpad.net/bugs/1970074 Cc: stable@vger.kernel.org Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
macka69
pushed a commit
to macka69/kernel_xiaomi_sm8250-1
that referenced
this pull request
Nov 4, 2023
[ Upstream commit 0b0747d507bffb827e40fc0f9fb5883fffc23477 ] The following processes run into a deadlock. CPU 41 was waiting for CPU 29 to handle a CSD request while holding spinlock "crashdump_lock", but CPU 29 was hung by that spinlock with IRQs disabled. PID: 17360 TASK: ffff95c1090c5c40 CPU: 41 COMMAND: "mrdiagd" !# 0 [ffffb80edbf37b58] __read_once_size at ffffffff9b871a40 include/linux/compiler.h:185:0 !# 1 [ffffb80edbf37b58] atomic_read at ffffffff9b871a40 arch/x86/include/asm/atomic.h:27:0 !# 2 [ffffb80edbf37b58] dump_stack at ffffffff9b871a40 lib/dump_stack.c:54:0 # 3 [ffffb80edbf37b78] csd_lock_wait_toolong at ffffffff9b131ad5 kernel/smp.c:364:0 # 4 [ffffb80edbf37b78] __csd_lock_wait at ffffffff9b131ad5 kernel/smp.c:384:0 # 5 [ffffb80edbf37bf8] csd_lock_wait at ffffffff9b13267a kernel/smp.c:394:0 # 6 [ffffb80edbf37bf8] smp_call_function_many at ffffffff9b13267a kernel/smp.c:843:0 # 7 [ffffb80edbf37c50] smp_call_function at ffffffff9b13279d kernel/smp.c:867:0 # 8 [ffffb80edbf37c50] on_each_cpu at ffffffff9b13279d kernel/smp.c:976:0 # 9 [ffffb80edbf37c78] flush_tlb_kernel_range at ffffffff9b085c4b arch/x86/mm/tlb.c:742:0 UtsavBalar1231#10 [ffffb80edbf37cb8] __purge_vmap_area_lazy at ffffffff9b23a1e0 mm/vmalloc.c:701:0 UtsavBalar1231#11 [ffffb80edbf37ce0] try_purge_vmap_area_lazy at ffffffff9b23a2cc mm/vmalloc.c:722:0 UtsavBalar1231#12 [ffffb80edbf37ce0] free_vmap_area_noflush at ffffffff9b23a2cc mm/vmalloc.c:754:0 UtsavBalar1231#13 [ffffb80edbf37cf8] free_unmap_vmap_area at ffffffff9b23bb3b mm/vmalloc.c:764:0 UtsavBalar1231#14 [ffffb80edbf37cf8] remove_vm_area at ffffffff9b23bb3b mm/vmalloc.c:1509:0 UtsavBalar1231#15 [ffffb80edbf37d18] __vunmap at ffffffff9b23bb8a mm/vmalloc.c:1537:0 UtsavBalar1231#16 [ffffb80edbf37d40] vfree at ffffffff9b23bc85 mm/vmalloc.c:1612:0 UtsavBalar1231#17 [ffffb80edbf37d58] megasas_free_host_crash_buffer [megaraid_sas] at ffffffffc020b7f2 drivers/scsi/megaraid/megaraid_sas_fusion.c:3932:0 UtsavBalar1231#18 [ffffb80edbf37d80] fw_crash_state_store [megaraid_sas] at ffffffffc01f804d drivers/scsi/megaraid/megaraid_sas_base.c:3291:0 UtsavBalar1231#19 [ffffb80edbf37dc0] dev_attr_store at ffffffff9b56dd7b drivers/base/core.c:758:0 UtsavBalar1231#20 [ffffb80edbf37dd0] sysfs_kf_write at ffffffff9b326acf fs/sysfs/file.c:144:0 UtsavBalar1231#21 [ffffb80edbf37de0] kernfs_fop_write at ffffffff9b325fd4 fs/kernfs/file.c:316:0 UtsavBalar1231#22 [ffffb80edbf37e20] __vfs_write at ffffffff9b29418a fs/read_write.c:480:0 UtsavBalar1231#23 [ffffb80edbf37ea8] vfs_write at ffffffff9b294462 fs/read_write.c:544:0 UtsavBalar1231#24 [ffffb80edbf37ee8] SYSC_write at ffffffff9b2946ec fs/read_write.c:590:0 UtsavBalar1231#25 [ffffb80edbf37ee8] SyS_write at ffffffff9b2946ec fs/read_write.c:582:0 UtsavBalar1231#26 [ffffb80edbf37f30] do_syscall_64 at ffffffff9b003ca9 arch/x86/entry/common.c:298:0 UtsavBalar1231#27 [ffffb80edbf37f58] entry_SYSCALL_64 at ffffffff9ba001b1 arch/x86/entry/entry_64.S:238:0 PID: 17355 TASK: ffff95c1090c3d80 CPU: 29 COMMAND: "mrdiagd" !# 0 [ffffb80f2d3c7d30] __read_once_size at ffffffff9b0f2ab0 include/linux/compiler.h:185:0 !# 1 [ffffb80f2d3c7d30] native_queued_spin_lock_slowpath at ffffffff9b0f2ab0 kernel/locking/qspinlock.c:368:0 # 2 [ffffb80f2d3c7d58] pv_queued_spin_lock_slowpath at ffffffff9b0f244b arch/x86/include/asm/paravirt.h:674:0 # 3 [ffffb80f2d3c7d58] queued_spin_lock_slowpath at ffffffff9b0f244b arch/x86/include/asm/qspinlock.h:53:0 # 4 [ffffb80f2d3c7d68] queued_spin_lock at ffffffff9b8961a6 include/asm-generic/qspinlock.h:90:0 # 5 [ffffb80f2d3c7d68] do_raw_spin_lock_flags at ffffffff9b8961a6 include/linux/spinlock.h:173:0 # 6 [ffffb80f2d3c7d68] __raw_spin_lock_irqsave at ffffffff9b8961a6 include/linux/spinlock_api_smp.h:122:0 # 7 [ffffb80f2d3c7d68] _raw_spin_lock_irqsave at ffffffff9b8961a6 kernel/locking/spinlock.c:160:0 # 8 [ffffb80f2d3c7d88] fw_crash_buffer_store [megaraid_sas] at ffffffffc01f8129 drivers/scsi/megaraid/megaraid_sas_base.c:3205:0 # 9 [ffffb80f2d3c7dc0] dev_attr_store at ffffffff9b56dd7b drivers/base/core.c:758:0 UtsavBalar1231#10 [ffffb80f2d3c7dd0] sysfs_kf_write at ffffffff9b326acf fs/sysfs/file.c:144:0 UtsavBalar1231#11 [ffffb80f2d3c7de0] kernfs_fop_write at ffffffff9b325fd4 fs/kernfs/file.c:316:0 UtsavBalar1231#12 [ffffb80f2d3c7e20] __vfs_write at ffffffff9b29418a fs/read_write.c:480:0 UtsavBalar1231#13 [ffffb80f2d3c7ea8] vfs_write at ffffffff9b294462 fs/read_write.c:544:0 UtsavBalar1231#14 [ffffb80f2d3c7ee8] SYSC_write at ffffffff9b2946ec fs/read_write.c:590:0 UtsavBalar1231#15 [ffffb80f2d3c7ee8] SyS_write at ffffffff9b2946ec fs/read_write.c:582:0 UtsavBalar1231#16 [ffffb80f2d3c7f30] do_syscall_64 at ffffffff9b003ca9 arch/x86/entry/common.c:298:0 UtsavBalar1231#17 [ffffb80f2d3c7f58] entry_SYSCALL_64 at ffffffff9ba001b1 arch/x86/entry/entry_64.S:238:0 The lock is used to synchronize different sysfs operations, it doesn't protect any resource that will be touched by an interrupt. Consequently it's not required to disable IRQs. Replace the spinlock with a mutex to fix the deadlock. Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com> Link: https://lore.kernel.org/r/20230828221018.19471-1-junxiao.bi@oracle.com Reviewed-by: Mike Christie <michael.christie@oracle.com> Cc: stable@vger.kernel.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Xiaomi Pad 5 Pro(elish) don't need this, Xiaomi Pad 5 Pro 5G(enuma) need it
Check kernel modules loaded under stock kernel with lsmod: elish:
wlan 7213056 0
sla 20480 0
fpc1540 20480 0
exfat 139264 0
machine_dlkm 192512 0
cs35l41_dlkm 143360 8
wcd938x_slave_dlkm 16384 0
wcd938x_dlkm 110592 2 machine_dlkm
wcd9xxx_dlkm 57344 19 wcd938x_dlkm
mbhc_dlkm 81920 1 wcd938x_dlkm
tx_macro_dlkm 114688 1 mbhc_dlkm
rx_macro_dlkm 106496 0
va_macro_dlkm 106496 0
wsa_macro_dlkm 69632 1 machine_dlkm
swr_ctrl_dlkm 65536 4 tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm
bolero_cdc_dlkm 57344 6 machine_dlkm,tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm
wsa881x_dlkm 49152 1 machine_dlkm
wcd_core_dlkm 32768 8 machine_dlkm,wcd938x_dlkm,mbhc_dlkm,tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm,wsa881x_dlkm
stub_dlkm 16384 1
hdmi_dlkm 24576 0
swr_dlkm 24576 4 wcd938x_slave_dlkm,wcd938x_dlkm,swr_ctrl_dlkm,wsa881x_dlkm
pinctrl_lpi_dlkm 24576 6
pinctrl_wcd_dlkm 16384 0
usf_dlkm 57344 0
native_dlkm 184320 0
platform_dlkm 2965504 64 native_dlkm
q6_dlkm 1134592 11 machine_dlkm,wcd9xxx_dlkm,va_macro_dlkm,swr_ctrl_dlkm,bolero_cdc_dlkm,pinctrl_lpi_dlkm,usf_dlkm,native_dlkm,platform_dlkm
adsp_loader_dlkm 16384 0
apr_dlkm 233472 4 usf_dlkm,platform_dlkm,q6_dlkm,adsp_loader_dlkm
snd_event_dlkm 16384 5 machine_dlkm,bolero_cdc_dlkm,pinctrl_lpi_dlkm,q6_dlkm,apr_dlkm
q6_notifier_dlkm 16384 3 pinctrl_lpi_dlkm,q6_dlkm,apr_dlkm
q6_pdr_dlkm 16384 1 q6_notifier_dlkm
enuma:
rmnet_perf 36864 0
rmnet_shs 114688 0
wlan 7213056 0
sla 20480 0
fpc1540 20480 0
exfat 139264 0
machine_dlkm 192512 0
cs35l41_dlkm 143360 8
wcd938x_slave_dlkm 16384 0
wcd938x_dlkm 110592 2 machine_dlkm
wcd9xxx_dlkm 57344 19 wcd938x_dlkm
mbhc_dlkm 81920 1 wcd938x_dlkm
tx_macro_dlkm 114688 1 mbhc_dlkm
rx_macro_dlkm 106496 0
va_macro_dlkm 106496 0
wsa_macro_dlkm 69632 1 machine_dlkm
swr_ctrl_dlkm 65536 4 tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm
bolero_cdc_dlkm 57344 6 machine_dlkm,tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm
wsa881x_dlkm 49152 1 machine_dlkm
wcd_core_dlkm 32768 8 machine_dlkm,wcd938x_dlkm,mbhc_dlkm,tx_macro_dlkm,rx_macro_dlkm,va_macro_dlkm,wsa_macro_dlkm,wsa881x_dlkm
stub_dlkm 16384 1
hdmi_dlkm 24576 0
swr_dlkm 24576 4 wcd938x_slave_dlkm,wcd938x_dlkm,swr_ctrl_dlkm,wsa881x_dlkm
pinctrl_lpi_dlkm 24576 6
pinctrl_wcd_dlkm 16384 0
usf_dlkm 57344 0
native_dlkm 184320 0
platform_dlkm 2965504 64 native_dlkm
q6_dlkm 1134592 11 machine_dlkm,wcd9xxx_dlkm,va_macro_dlkm,swr_ctrl_dlkm,bolero_cdc_dlkm,pinctrl_lpi_dlkm,usf_dlkm,native_dlkm,platform_dlkm
adsp_loader_dlkm 16384 0
apr_dlkm 233472 4 usf_dlkm,platform_dlkm,q6_dlkm,adsp_loader_dlkm
snd_event_dlkm 16384 5 machine_dlkm,bolero_cdc_dlkm,pinctrl_lpi_dlkm,q6_dlkm,apr_dlkm
q6_notifier_dlkm 16384 3 pinctrl_lpi_dlkm,q6_dlkm,apr_dlkm
q6_pdr_dlkm 16384 1 q6_notifier_dlkm
Change-Id: If86bb9f86c032ee4dfd15fb0b02ff27a7474ab39