Commit graph

898,925 commits

Author SHA1 Message Date
qctecmdr
8e8bbdacf2 Merge "msm: kgsl: Avoid flooding kernel log with invalid ioctl errors" 2021-05-10 01:39:19 -07:00
Nick Desaulniers
b8cbf3a702 srcu: Avoid escaped section names
The stringification operator, `#`, in the preprocessor escapes strings.
For example, `# "foo"` becomes `"\"foo\""`.  GCC and Clang differ in how
they treat section names that contain \".
The portable solution is to not use a string literal with the
preprocessor stringification operator.

Change-Id: I7ec44bd2ef15fa8019f2fa5efe2eddf40585ab5a
Link: https://bugs.llvm.org/show_bug.cgi?id=42950
Fixes: fe15b50cde ("srcu: Allocate per-CPU data for DEFINE_SRCU() in modules")
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Git-commit: c1370c128cf49147f1d4c670b7101134231b3dc5
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-05-10 01:35:52 -07:00
Bojun Pan
8a64c61c18 Fixing the GVM suspend failure due to veth_ipa_suspend
veth_ipa_suspend function returning an error when the interface
is already in deactivated is fixed. Changed the return
value from -EPERM to non error as there is no error in this case.

Change-Id: I10f283e767a442e6897c4d35cc370bbc84dd2d9d
Acked-by: Sarosh Hasan <sarohasa@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2021-05-10 00:43:10 -07:00
Venkata Rao Kakani
57d4114d68 drivers: rename_block: Enable A/B support
Enable A/B support by appending slot suffix based on
androidboot.slot_suffix.

Change-Id: I7bdc798f6203ba026606d56cf0bc76e0cfbb6b4a
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2021-05-10 13:08:57 +05:30
Pavankumar Kondeti
dc23aae552 sched: walt: Fix stale walt CPU reservation flag
When CPU trying to move a task to other cpu in active load balance or
by other means, then the other helping cpu marked as reserved to avoid
 it for other scheduler decisions. Once the task moved successfully,
the reservation will be cleared enables for other scheduler decisions.
The reserved flag is been analogously protected with busy cpu’s
rq->active_balance, which is protected with runqueue locks. So whenever
rq->active_balance is set for busy cpu, then reserved flag would set for
helping cpu.

Sometimes, it is observed that, cpu is marked as reserved with no cpu's
rq->active_balance set. There are some unlikely possible corner cases
may cause this behavior:
 - On active load balance path, cpu stop machine returns queued status
   of active_balance work on cpu_stopper, which is not checked on active
   balance path. so when stop machine is not able to queue ( unlikely),
   then reserved flag wouldn't be cleared.

   So, catch the return value and on failure, clear reserved flag for cpu.

 - Clear_walt_request() called on the cpu to clear any pending walt works,
   it may possible that, push_task might have changed or cleared, then
   reserved cpu would be left uncleared.

   So clear the push_cpu independent of push_task.

Change-Id: I75d032bf399cb3da8e807186b1bc903114168a4e
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2021-05-10 12:24:29 +05:30
Vinay Sudra
7a5cc733fe defconfig: sdmsteppeauto: Enable kenel debug flags
Enable debug flags for various kernel subsystem

Change-Id: I3e61d072a935811ecece09e45870e0e200a45bb0
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-05-09 23:48:06 -07:00
qctecmdr
8336f3edcd Merge "msm: kgsl: Expose memtype stats through sysfs" 2021-05-09 22:55:46 -07:00
qctecmdr
45a1229071 Merge "msm: adsprpc: return fastrpc ioctl call if process exit sequence start" 2021-05-08 09:42:59 -07:00
Arun Prakash
d1e2f95b13 soc: qcom: smem: Fix compilation warning
Fix compilation warning reported by sparse tool.

Change-Id: I0e6d2d1f5f032f8931f104e262579af08cf63b73
Signed-off-by: Arun Prakash <app@codeaurora.org>
2021-05-08 20:04:01 +05:30
qctecmdr
899be810b4 Merge "msm: kgsl: Print the process id for the context on a pagefault" 2021-05-08 07:00:06 -07:00
qctecmdr
37c10a988e Merge "pci: msm: Use framework API to enable AER for endpoints" 2021-05-08 04:17:20 -07:00
qctecmdr
aefbccb56c Merge "slatecom-events-bridge: Add driver for events from Slate" 2021-05-08 01:30:21 -07:00
Puranam V G Tejaswi
baa3fc8a34 msm: kgsl: Abort poll for HFI response if GMU fails any assertion
If GMU firmware fails any assertion, NMI is triggered and GMU would be
in an unresponsive state. Hence abort polling for any HFI response
if GMU assertion fails. Also avoid sending NMI in that case.

Change-Id: I8073594c417ec2716d3a94b1fcfeeb4bde9031b0
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
2021-05-08 10:17:40 +05:30
Yue Ma
5bec0a3c65 cnss2: Dump MHI/PBL/SBL debug data during MHI power on
Dump MHI/PBL/SBL debug data periodically during MHI power on
in order to debug issues if anything is stuck during power on.

Change-Id: I300bf18e36ac74a0bb1ea924cbc401ed283862fe
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-05-07 18:55:45 -07:00
Isaac J. Manjarres
4f26f89c9c ion: msm: Add support for the audio carveout heap
Define a new carveout heap that will be used for audio
usecases.

Change-Id: I7da5e3c32f9bd8ba0d8cdcb6b8a1521b420c3d4a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2021-05-07 16:50:44 -07:00
Hemant Kumar
a2a2d557fb pci: msm: Refactor msm_pcie_confirm_linkup function
For link training Data link layer, active bit is checked
in link status register of the root complex. Hence create
a new function msm_pcie_dll_link_active() to check the link
status. Use same function in msm_pcie_confirm_linkup() as well.
In order to check endpoint access use pci_device_is_present()
provided by framework. This allows all ep config space access
to go through operation config callback from framework.
Also, remove reading of root complex vendor id and device id
which is redundant now.

Change-Id: I46fdb566ed20759d38d991ceeb23703759c04ecd
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2021-05-07 10:40:57 -07:00
Hemant Kumar
9ecf13f417 pci: msm: Use framework API to enable AER for endpoints
Currently advanced error reporting is enabled by pci msm
controller driver using custom API. Since AER root port
service driver provides exported API
pci_enable_pcie_error_reporting() use this API to enable
support for AER and get rid of custom API. Framework API
needs to be wrapped under QGKI kernel config to prevent
GKI ABI breakage.

Change-Id: I3856fdc958a6234fe5e0a888733ce9f57fa5a48e
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2021-05-07 10:39:47 -07:00
qctecmdr
e9d55dd9b8 Merge "iommu/arm-smmu: sign extend iova for fault handler" 2021-05-07 10:25:17 -07:00
qctecmdr
460f85c07a Merge "defconfig: steepauto: Enable INCFS" 2021-05-07 10:25:17 -07:00
qctecmdr
9e8437a8e5 Merge "defconfig: autogvm: Enable INCFS" 2021-05-07 10:25:16 -07:00
qctecmdr
83157d9075 Merge "defconfig: gen3auto: Enable INCFS" 2021-05-07 10:25:16 -07:00
qctecmdr
34c54ac16d Merge "arm: defconfig: Enable PCI Express AER driver" 2021-05-07 10:25:16 -07:00
qctecmdr
b382f222c2 Merge "serial: msm_geni_serial: Allow clock_on/off ioctl to be optional" 2021-05-07 10:25:15 -07:00
Kamal Agrawal
547129b6ad msm: kgsl: Avoid flooding kernel log with invalid ioctl errors
For invalid ioctl inputs from user, kgsl already returns -ENOIOCTLCMD error
code. Avoid flooding kernel log with such errors.

Change-Id: Iaf9c8eb0c51b221738482e2b4b02289913a2878e
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
2021-05-07 00:44:15 -07:00
Taniya Das
c9a726af71 clk: qcom: gdsc: Update the BLK_ARES assert/deassert delay
The recommendation is to ensure that the ACD BLK_ARES/IROOT_ARES are
kept asserted for at least 100 us before being de-asserted.

Change-Id: I7910a86bcff1589d8ace975c6c18e2b86e924714
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2021-05-07 12:52:35 +05:30
Jeya R
2a98c1c02d msm: adsprpc: return fastrpc ioctl call if process exit sequence start
Added check to return fastrpc ioctl call when process exit sequence is
in progress.

Change-Id: I83915cb3fb75cc69d245a56800dcf42b492e01ea
Acked-by: Nishant Chaubey <chaubey@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2021-05-07 12:18:40 +05:30
qctecmdr
dcb612382b Merge "scsi: ufs: Narrow down fast pass in system suspend path" 2021-05-06 22:23:00 -07:00
qctecmdr
ede504cedc Merge "defconfig: autogvm: Enable boot marker for KPI measurement" 2021-05-06 22:23:00 -07:00
qctecmdr
39d09dfcce Merge "usb: f_fs: Fix use-after-free for epfile" 2021-05-06 22:23:00 -07:00
qctecmdr
a5af1843ad Merge "mtd: msm_qpic_nand: Enable Pagescope read feature and reset status_desc" 2021-05-06 22:22:59 -07:00
qctecmdr
36d9ba8f4c Merge "sched/walt: consider average max_nr when compare max_nr" 2021-05-06 22:22:59 -07:00
qctecmdr
54a9c89962 Merge "icnss2: Add support for MHI state info" 2021-05-06 22:22:59 -07:00
qctecmdr
5ab7307c8a Merge "adsprpc: Map dynamic loading memory persistent" 2021-05-06 22:22:58 -07:00
qctecmdr
e3e00bfbe0 Merge "power: qcom: Add QTI QBG(Qualcomm Battery Gauging) driver" 2021-05-06 22:22:58 -07:00
qctecmdr
7b79fdc03f Merge "defconfig: Add initial defconfig fragments for scuba" 2021-05-06 22:22:58 -07:00
qctecmdr
5aeb2f7dfe Merge "PCIe: ASPM: Save/restore ASPM-L1SS controls in reverse order" 2021-05-06 22:22:57 -07:00
Ashish Kori
790ab2f4d7 serial: msm_geni_serial: Allow clock_on/off ioctl to be optional
Add support in the driver to manage power without enabling pm runtime.
UART driver gives control to user space client to vote for clock on/off
by exposing ioctls. These vote clock on/off APIs depend on PM runtime
framework for power related operations.

This change relaxes driver from depending on userspace ioctls to invoke
runtime resume/suspend for basic uart functionality which will now be
done by system suspend/resume. This will block PM framework API's and
use system suspend/resume API for UART on/off.

Change-Id: Idf0632c0e2d40907f7a226cd7e3e814d1c1f6751
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2021-05-06 21:53:14 -07:00
Ajit Kumar
3f8d1181b9 slatecom-events-bridge: Add driver for events from Slate
Add driver to send and receive events from Slate
co-processor. The driver uses Glink channel to communicate
with Slate.

Change-Id: I2b7cf9a47e8947f79c7e9cd8b1311ff8c04bf848
Signed-off-by: Ajit Kumar <kajit@codeaurora.org>
2021-05-07 10:22:16 +05:30
qctecmdr
b794964c98 Merge "cnss2: Restore PCIe config space before enable PCIe device" 2021-05-06 19:07:09 -07:00
qctecmdr
ef335b8083 Merge "msm: ep-pcie: Give BAR0 and BAR2 the right size" 2021-05-06 19:07:08 -07:00
qctecmdr
03fb5fd7c5 Merge "mtd: msm_qpic_nand: Remove the SW workaround on sdxlemur" 2021-05-06 19:07:08 -07:00
qctecmdr
752f6f5a25 Merge "msm: kgsl: Update A660 variant GPU revision number" 2021-05-06 19:07:07 -07:00
qctecmdr
1d9b786a0b Merge "arm64: kexec_file: add crash dump support" 2021-05-06 19:07:07 -07:00
qctecmdr
7659c1bb0f Merge "defconfig: gen3auto: enable BPFtrace userland tools" 2021-05-06 19:07:07 -07:00
qctecmdr
824637b721 Merge "defconfig: Enable support for cpuidle for monaco" 2021-05-06 19:07:06 -07:00
qctecmdr
c8ef6a8b1c Merge "msm: veth_ipa: page fault during VETH0 bring up fix" 2021-05-06 19:07:06 -07:00
qctecmdr
a6761c3916 Merge "drivers: pinctrl: Add gpio to mpm mapping for Monaco" 2021-05-06 19:07:06 -07:00
Hemant Kumar
bb5ba33eb5 arm: defconfig: Enable PCI Express AER driver
Enable this driver to allow using standard APIs
to enable and disable AER support in endpoint
driver. In order to enable this driver
CONFIG_PCI_QTI needs to be enabled to prevent
GKI ABI breakage for GKI enabled configuration.

Change-Id: Icec7e6b10a7449d7dcf011afd73e1c573c16c8c5
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2021-05-06 09:40:36 -07:00
Venkata Rao Kakani
66a40d0955 defconfig: autogvm: Enable INCFS
Enable CONFIG_INCREMENTAL_FS in LA guest to support APK
updates.

Change-Id: I0c202ba7d28b7393dcb47544728f8c042137ea28
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2021-05-06 21:17:19 +05:30
Venkata Rao Kakani
9d079292f3 defconfig: gen3auto: Enable INCFS
Enable CONFIG_INCREMENTAL_FS in LA to support APK
updates.

Change-Id: I3dda81703af139c3554993c725189215c28f386c
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2021-05-06 07:07:58 -07:00