Commit graph

893,859 commits

Author SHA1 Message Date
Tushar Nimkar
d92f563a2f defconfig: Enable subsystem sleep stats driver for holi
This enables subsystem sleep stats driver. This driver provides
a way to read statistical information of different subsystem
from SMEM.

Change-Id: I4effedf3112d8fdb01a67e7d42f9729ebab3513e
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-04 00:37:58 -08:00
Tushar Nimkar
a4b96484d0 drivers: qcom: Add new subsystem stats driver
This change adds subsystem sleep stats driver.
When userspace issues ioctl to read stats data, the driver
reads from smem and same passes to userspace.

Change-Id: Ia8ddb9096eb5f387922e8a7c0ad48ed71b736a85
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-03-02 23:07:33 +05:30
qctecmdr
db5f5ed622 Merge "sched/walt: Move scheduler techpack to kernel" 2021-02-07 22:42:28 -08:00
qctecmdr
14507f613f Merge "cnss2: Use CONFIG_PCI_MSM to protect MSM PCIe APIs" 2021-02-07 22:42:28 -08:00
qctecmdr
0667a1b5dc Merge "usb: dwc3: Issue ENDTRANSFER cmd on ep0 unconditionally" 2021-02-07 15:30:41 -08:00
qctecmdr
b80f916238 Merge "drivers: soc: qcom: rimps_memlat: check cpu in idle path" 2021-02-07 11:45:28 -08:00
qctecmdr
aeeaa66033 Merge "input: touchscreen: focaltech: use proper dev" 2021-02-07 11:45:27 -08:00
qctecmdr
baeb717e11 Merge "net: cnss: add snapshot of cnss platform driver" 2021-02-07 11:45:27 -08:00
qctecmdr
5b34e22e77 Merge "usb: phy: qusb: Use scm call to update LVL_SHIFTER register" 2021-02-07 11:45:26 -08:00
qctecmdr
c1813e9149 Merge "cnss2: Update qdss config file name" 2021-02-07 11:45:26 -08:00
qctecmdr
86401a1787 Merge "arm64: defconfig: enable qcom_scm/fastscvp on gen3auto" 2021-02-06 22:12:47 -08:00
qctecmdr
238b1e37b4 Merge "perf: Add exclude_idle support for armv7 PMU" 2021-02-06 05:10:46 -08:00
qctecmdr
68fd89baf1 Merge "leds: leds-qti-tri-led: Don't print error log for -EPROBE_DEFER" 2021-02-06 05:10:46 -08:00
qctecmdr
9e93c40032 Merge "usb: phy: snps: Ensure SIDDQ is disabled for proper functioning" 2021-02-06 05:10:46 -08:00
qctecmdr
46bb8e6b35 Merge "pinctrl: add restore function for sx150x" 2021-02-06 05:10:45 -08:00
qctecmdr
ac5c618ac5 Merge "net: qrtr: fix tx flow memory leak" 2021-02-06 05:10:45 -08:00
qctecmdr
dc655ccb0e Merge "soc: qcom: Reset watchdog before setting bite time" 2021-02-06 05:10:44 -08:00
qctecmdr
fec650e1be Merge "cnss2: Fix error case print for dev_boot debugfs" 2021-02-06 05:10:44 -08:00
Laisheng Hu
6152c18649 arm64: defconfig: enable qcom_scm/fastscvp on gen3auto
enable qcom_scm and fastcvpd for vidc driver.

Change-Id: Idb17a079e1472e1d2a853d2ea68da6933768d7e1
Signed-off-by: Laisheng Hu <laisheng@codeaurora.org>
2021-02-06 04:33:58 -08:00
Pratham Pratap
42a90ced12 usb: dwc3: Issue ENDTRANSFER cmd on ep0 unconditionally
Consider a case where ep0 is not in setup stage and composition
switch happens. Currently DWC3_DEPCMD_ENDTRANSFER command is not
issued on ep0 which means that the transfers are not flushed out
and driver clears the run/stop bit hence stopping the controller.
Now as soon as driver sets the run/stop bit controller tries to
access the trb from the previous session which is already unmapped
resulting in SMMU fault.

Fix this by unconditionally issuing DWC3_DEPCMD_ENDTRANSFER
command on ep0. Although it is not specified in the data book
but if we know for sure that we are anyway going to stop the
controller then we can issue ENDTRANSFER command on ep0.

Change-Id: Ic6ee570acc8926897d3b6042181a501a47438d92
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-02-05 22:31:13 -08:00
qctecmdr
9a855e1c71 Merge "pci: switch: Add snapshot of PCIe switch driver" 2021-02-05 18:01:29 -08:00
qctecmdr
47d8e027d9 Merge "usb: dwc3: core: Select UTMI clock before core_soft_reset" 2021-02-05 18:01:28 -08:00
qctecmdr
64f86ae513 Merge "pci: msm: msm_pcie_iatu_config API clean" 2021-02-05 18:01:28 -08:00
qctecmdr
9d0e285207 Merge "msm: pcie: provide client the ability to control PCIe target_link_speed" 2021-02-05 18:01:28 -08:00
qctecmdr
d8ba3161ed Merge "cnss2: Add support for PCI wake GPIO" 2021-02-05 18:01:27 -08:00
Yue Ma
2dc22bc62d cnss2: Use CONFIG_PCI_MSM to protect MSM PCIe APIs
This can ease the complexity to port CNSS2 driver to non-MSM
platforms while still be able to maintain the compatibility.

Change-Id: I268cdd90c59085b34aa2fe3c3b845d60c4e2a417
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-05 17:31:07 -08:00
Yue Ma
dc0ecaca75 cnss2: Set initial target PCIe link speed to Gen2 for QCA6490
Since there may be link issues if QCA6490 device boots up with Gen3
link speed, always set initial target PCIe link speed to Gen2. Device
is able to change it (back) later at any time if needed.

Change-Id: I9d617d71926fe98e59e67aff772984878e0a2689
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-05 17:30:27 -08:00
Dennis Cagle
878506879e defconfig: sdxlemur: Remove slub debug config
Remove CONFIG_SLUB_DEBUG_ON from debug variant for performance
reasons. Also remove redundant HARDENED_USERCOPY from debug config
since this gets copied over from the standard config.

Change-Id: I7c6fc8620290cf126ced046f82811e9e39bc2a60
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
2021-02-05 14:35:31 -08:00
Tony Truong
d0cb56ec45 msm: pcie: provide client the ability to control PCIe target_link_speed
There are usecases where clients want to change the maximum GEN
speed that PCIe can link up with. Provide clients the ability to
control the maximum PCIe GEN speed to for such usecases.

Change-Id: I834bee2063133546c9b0ebac2d5328ffbc5ceac6
Signed-off-by: Tony Truong <truong@codeaurora.org>
2021-02-05 12:54:14 -08:00
Elson Roy Serrao
eabbb7f853 usb: dwc3: core: Select UTMI clock before core_soft_reset
In HS Only mode of dwc3 controller version 1.9A, UTMI clock needs
to be selected before core soft reset as per the HPG sequence.
Or else the core soft reset fails, leading to enumeration
failure. Hence select UTMI clock before performing
SOFT_RESET operation.

Change-Id: I12d4a992872eecbfc38825282559cd4d592c3896
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
2021-02-05 11:12:16 -08:00
qctecmdr
47f285b88f Merge "cfg80211: Indicate support for configuring PMKSA timer params" 2021-02-04 23:09:29 -08:00
qctecmdr
40fb7865c8 Merge "defconfig: Configure MaxPower to 900mA on sdxnightjar" 2021-02-04 23:09:28 -08:00
qctecmdr
a38ac852dc Merge "Revert "cnss2: Dump mhi debug regs on receiving mhi WAKE event cb"" 2021-02-04 23:09:28 -08:00
qctecmdr
c390f8a32f Merge "regulator: qpnp-lcdb: remove workaround for LCDB regulation issue" 2021-02-04 23:09:28 -08:00
qctecmdr
9a5704feb8 Merge "ANDROID: GKI: Enable DRM_GEM_SHMEM_HELPER" 2021-02-04 23:09:27 -08:00
qctecmdr
5a47f69464 Merge "clk: qcom: clk-rpmh: Fix overflow in BCM vote" 2021-02-04 23:09:27 -08:00
Yue Ma
ea814047ba cnss2: Add support for PCI wake GPIO
For non-MSM platforms, PCI wake GPIO may not be handled by PCI root
complex driver so add support to handle it in device driver.

Change-Id: Ief6bc6b25bdc5b93887af1cc626acc721f9fa85a
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:28:28 -08:00
Yue Ma
112dc33583 cnss2: Use CONFIG_INTERCONNECT to protect icc related APIs
This makes sure CNSS2 driver is able to work in the platforms and
kernels which do not have on-chip interconnect management feature.

Change-Id: I282ef1a282fab9ce4910e7ab914f26789b34ba64
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:02:30 -08:00
Yue Ma
872b48bc98 cnss2: Use CONFIG_QCOM_COMMAND_DB to protect MSM command DB APIs
This makes sure CNSS2 driver is able to work in non-MSM platforms
which do not have command DB feature.

Change-Id: I9551bfc639e6db0256e475a27db5dec87bce74ed
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:02:18 -08:00
Yue Ma
a7ae359deb cnss2: Use CONFIG_IPC_LOGGING to protect MSM IPC logging APIs
This makes sure CNSS2 driver is able to work in non-MSM platforms
which do not have IPC logging feature.

Change-Id: I4c8fe3eb45e38fd106f47c28f0e4da82b0bdf76f
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:02:07 -08:00
Yue Ma
9c8b92051d cnss2: Use proper flags to protect MSM memory dump APIs
This makes sure CNSS2 driver is able to work in non-MSM platforms
which do not have memory dump and mini dump features.

Change-Id: I5193deed941ff8e2e2ca2693150396a53eb3db7d
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:01:57 -08:00
Yue Ma
e0af665bc1 cnss2: Abstract of_reserved_mem_device_init() API
Currently in MSM platform reserved memory is attached to PCI
device of_node which may not apply to other non-MSM platforms.
Hence abstract the API using CONFIG_ARCH_QCOM flag.

Change-Id: Ic02b087c188b8dcb0959e17c80e72bb4021a725c
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:01:25 -08:00
Yue Ma
7e108a73af cnss2: Use empty tables for default regulators and clocks
Current default regulator and clock tables are for MSM platform
only. Use empty tables for non-MSM platforms by default so that
proper regulators and clocks can be added later based on platforms.

Change-Id: I2705d8ca2a0fde636f346f01e677a762b4cf92b7
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:01:10 -08:00
Santosh Mardi
c90efd1d2a drivers: soc: qcom: rimps_memlat: check cpu in idle path
In the idle notification, driver saves the mon pmu events
to pmu cache memory. Current implementation loops through
all the monitors in the group without checking if the given
cpu is present in the mon cpumask or not. If the cpu is not
present in mon cpumask, the macro to_mon_ev_data in
save_mon_pmu_events function can return a wrong address
to mon_data which can result in crash.

Check if cpu is present in mon cpumask before storing the mon
pmu events.

Change-Id: Ia2d674fab401dd83f7ce7410607aa4a665851871
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2021-02-04 21:49:49 -08:00
qctecmdr
c63440cb49 Merge "crypto: Fix possible stack out of bound error" 2021-02-04 18:51:58 -08:00
qctecmdr
4122d2c4b1 Merge "usb: composite: Don't override -EAGAIN return value" 2021-02-04 18:51:58 -08:00
qctecmdr
430f613771 Merge "dwc3: gadget: Resume USB bus unconditionally for USB super speed and above" 2021-02-04 18:51:57 -08:00
qctecmdr
f48bee06f2 Merge "arm: defconfig: Add GCC support for MONACO" 2021-02-04 18:51:57 -08:00
qctecmdr
473c6dd997 Merge "msm: cvp: Add snapshot of fastcvpd driver" 2021-02-04 18:51:57 -08:00
qctecmdr
b55dd29b8c Merge "pinctrl: qcom: disable MPM_WAKEUP_INT_EN bits for gpio" 2021-02-04 18:51:56 -08:00