Commit graph

875,855 commits

Author SHA1 Message Date
Tony Truong
eb3beebb57 msm: pcie: add snapshot of PCIe root complex bus driver
This is a snapshot of MSM PCIe root complex as of msm-4.19
commit 6e2242593d4a ("drm/msm/dp: check for invalid seqno before
clearing a txmsg slot").

Changes made:
  - remove or switch to sysfs for all module params
  - move from MSM bus to ICC framework
  - replace all snprintf with scnprintf
  - update debugfs remove
  - update license for msm_pcie.h
  - misc syntax improvements

Change-Id: I310fdfd136346f74c20806bd5dcdbc74c7d894a3
Signed-off-by: Tony Truong <truong@codeaurora.org>
2019-12-16 17:56:47 -08:00
qctecmdr
635b627365 Merge "drivers: thermal: of-thermal: Add support for virtual sensor" 2019-12-16 15:44:47 -08:00
qctecmdr
be343ccd35 Merge "pinctrl: qcom: spmi-gpio: define an irqchip for each pinctrl device" 2019-12-16 15:06:25 -08:00
qctecmdr
8213b6428a Merge "drivers: thermal: Add QTI_THERMAL config" 2019-12-16 15:06:24 -08:00
qctecmdr
24d7be2e04 Merge "drivers: soc: qcom: Add snapshot of EUD driver" 2019-12-16 14:26:30 -08:00
qctecmdr
f096eb3342 Merge "iio: adc: Add support for PMIC7 VADC" 2019-12-16 14:26:29 -08:00
qctecmdr
cf3335cdae Merge "defconfig: enable fastrpc driver on Lahaina" 2019-12-16 14:26:29 -08:00
qctecmdr
f8142d1124 Merge "wil6210: send uevent when creating sysfs files" 2019-12-16 12:53:55 -08:00
qctecmdr
00a0a5045c Merge "arm64: Remove cpu_soft_reset() prototype" 2019-12-16 12:06:01 -08:00
qctecmdr
5b1b65d030 Merge "arm64: defconfig: Enable QUPv3 and GPI drivers on lahaina" 2019-12-16 11:29:58 -08:00
qctecmdr
7847fb4f8a Merge "msm: ipa: load IPA FW after smmu CB are probed" 2019-12-16 11:29:57 -08:00
qctecmdr
9adbc34dba Merge "Revert "perf: Set the DSU PMU to be readable from any CPU"" 2019-12-16 11:29:57 -08:00
Edgar Flores
49d6324914 defconfig: enable fastrpc driver on Lahaina
Enable compilation of fastrpc driver as DLKM module on Lahaina.
This driver will be part of Lahaina GKI config.

Change-Id: Ie34249640949b192557735ccc64ffd75526b48ed
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2019-12-16 11:29:13 -08:00
qctecmdr
abe6d961ff Merge "msm: ipa: Add graceful handling to skip partial packets" 2019-12-16 10:50:50 -08:00
qctecmdr
abdbe88f83 Merge "msm: ipa: Fix not to update state during pipe reset" 2019-12-16 10:50:50 -08:00
qctecmdr
224be36813 Merge "msm: ipa: add support to updated wdi3 scratch register2 alone" 2019-12-16 10:50:49 -08:00
David Collins
5cc6a7c454 pinctrl: qcom: spmi-gpio: define an irqchip for each pinctrl device
Generate a new irqchip struct for each pinctrl device that is
registered to avoid sharing the same irqchip between devices.
This corrects the following error which is printed when
registering more than one pinctrl-spmi-gpio device:

  "detected irqchip that is shared with multiple gpiochips:
   please fix the driver."

Change-Id: I80ce67fc674b96f4386499f547395ceed7480583
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:43:03 -08:00
David Collins
b1ebdc3778 pinctrl: qcom: spmi-gpio: add support for PMR735A and PMR735B PMIC variants
Add support for qcom,pmr735a-gpio and qcom,pmr735b-gpio variants.

Change-Id: I773d2539af146be56b091ced8709ae8dabe6e36e
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:43:02 -08:00
qctecmdr
1e336131de Merge "drivers: llcc edac: Add Cache Error Reporting driver for llcc" 2019-12-16 10:09:15 -08:00
qctecmdr
a11cd8cdd1 Merge "drivers: soc: qcom: Add snapshot of boot stats driver" 2019-12-16 10:09:14 -08:00
qctecmdr
6c5735d14c Merge "Revert "soc: qcom: socinfo: Expose custom attributes"" 2019-12-16 10:09:14 -08:00
qctecmdr
c24ca01eac Merge "arm64: defconfig: Enable spcom driver on Lahaina" 2019-12-16 10:09:14 -08:00
qctecmdr
ea118c4263 Merge "msm: ipa: Fix not sending QMI sync indication" 2019-12-16 10:09:14 -08:00
qctecmdr
7c77c9622d Merge "cpufreq: qcom: Update cycle counter logic for CPUFREQ HW" 2019-12-16 09:32:55 -08:00
Ghanim Fodi
d3e8fba561 msm: ipa: load IPA FW after smmu CB are probed
Now with GKI, SMMU CB can be delayed in probe
due to dependencies. The change waits for the
probe before triggering fw loading and post_init
call.

Change-Id: I468edd730a91de01ba9619385ab0c76083bc9382
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2019-12-16 15:20:23 +02:00
Jishnu Prakash
87e13fd46d iio: adc: Add support for PMIC7 VADC
The VADC architecture on PMIC7 is changed as compared to PMIC5. The
major change from PMIC5 is that all SW communication to ADC goes through
PMK8350, which communicates with other PMICs through PBS when the VADC
on PMK8350 works in master mode. The SID register is used to identify the
PMICs with which the PBS needs to communicate. Add support for the same.

Change-Id: If5c651e01be9363a61d1bf546e0b6d82a023904c
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2019-12-16 03:48:57 -08:00
Jishnu Prakash
2635e99701 dt-bindings: iio: Add PMIC7 ADC support
Add definitions for ADC channels and scaling function IDs for PMIC7
ADC drivers. Add virtual channel definitions per PMIC, to be used
by ADC clients for PMIC7.

Change-Id: If857612a8087b928901dc08327aea3a8f4df7b01
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2019-12-16 03:47:35 -08:00
Vipin Deep Kaur
ad58b3b633 arm64: defconfig: Enable QUPv3 and GPI drivers on lahaina
Enable QUPv3(I2C, SPI, I3C) and GPI drivers on lahaina.

Change-Id: I0f539bbe782870bf8e982c645ccef77238e93049
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2019-12-16 11:19:04 +05:30
Chaitanya Pratapa
2f2eea29bc msm: ipa: add support to updated wdi3 scratch register2 alone
To update QMAP ID there is no need to start and stop the GSI
channel. Make changes to read only scratch2 register for WDI3
protocol and update the QMAP ID without affecting other registers.

Change-Id: I7f873386fd01d624629fed15b841c6abd558a9ce
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2019-12-15 12:30:39 -08:00
Chaitanya Pratapa
8872e11021 msm: ipa: Fix not sending QMI sync indication
If back to back SSR is triggered there is a possibility
of race condition where we try to send QMI sync indication
with a invalid handle. Make a change to validate the handle
before sending the indication.

Change-Id: If912b6676b562bd4a23c68512e9c80e6c0ac7a49
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2019-12-15 12:25:10 -08:00
Chaitanya Pratapa
e54481078f msm: ipa: Add graceful handling to skip partial packets
Partial packets are not expected to be receievd on WAN_CONS
pipe. Make changes to handle gracefully if EOB packets
are received on WAN_CONS pipe in cases where network is
misbehaving.

Change-Id: I4a4ce96a0c86f353e1764d016edbb00011367205
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2019-12-15 12:23:03 -08:00
Chaitanya Pratapa
c4e75e2793 msm: ipa: Fix not to update state during pipe reset
When MHI pipes are disconnected, host doesn't expect any
further communication from device. Make a change to not
to update the state during pipe disconnect.

Change-Id: Ia2315e3a94049ba3adda4b42d363ce2f7108d89f
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2019-12-15 12:18:19 -08:00
Konstantin Dorfman
caa496a1c6 arm64: defconfig: Enable spcom driver on Lahaina
This change enables spcom driver on Lahaina.

Change-Id: Ia8cbb369c3dd201389f83c8183dc573ecec71bb2
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2019-12-15 09:55:31 +02:00
qctecmdr
24a21204c9 Merge "rtc: rtc-pm8xxx: add support for PMK8350 RTC" 2019-12-14 15:29:40 -08:00
qctecmdr
03c6cb1926 Merge "msm: adsprpc: Remove IPC logging from fastrpc driver" 2019-12-14 14:54:43 -08:00
qctecmdr
4046e33f14 Merge "drivers: thermal: cpu_cooling: Use Policy cpu as cdev ID" 2019-12-14 14:54:42 -08:00
qctecmdr
0275af0baf Merge "usb: host: xhci: Replace msleep with usleep_range" 2019-12-14 14:20:51 -08:00
qctecmdr
68ab595cfd Merge "usb: host: xhci: Change L1 timeout default to 128us" 2019-12-14 13:45:02 -08:00
qctecmdr
7740f4f565 Merge "soc: qcom: subsys_notif: Add early SSR notifications for PCIe DRV" 2019-12-14 12:54:19 -08:00
qctecmdr
5aa349c691 Merge "defconfig: lahaina-gki: Enable QTI Tri-LED driver" 2019-12-14 12:54:19 -08:00
qctecmdr
54fde738e5 Merge "sched/fair: Improve the scheduler" 2019-12-14 12:12:58 -08:00
qctecmdr
9e4cf2377a Merge "soc: qcom: spcom: add spcom as DLKM for GKI" 2019-12-14 12:12:58 -08:00
qctecmdr
4bf60464b5 Merge "FROMLIST: sched/fair: Use wake_q length as a hint for wake_wide" 2019-12-14 11:18:39 -08:00
qctecmdr
41bb745cf6 Merge "PM / EM: Micro optimization in em_pd_energy" 2019-12-14 10:36:41 -08:00
Taniya Das
6eeae6b763 cpufreq: qcom: Update cycle counter logic for CPUFREQ HW
There could be cpufreq hw where accumulative cycle counters are not
supported. Add a device tree property to identify the same.

On those hardware the cycle counter needs to be read from core-0 of the
frequency domain.

Change-Id: Ib7969b2c5aaaf78f7c8359d7c417b9453e6c1f2f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2019-12-14 09:50:43 -08:00
Taniya Das
b478324c7f cpufreq: qcom-cpufreq-hw: Initialize the spinlock before usage
Initialization of the spinlock is required to avoid the below trace.

cpufreq: driver qcom-cpufreq-hw up and running
BUG: spinlock bad magic on CPU#7, swapper/0/1
lock: qcom_cpufreq_counter+0x128/0x140, .magic: 00000000,
.owner: <none>/-1, .owner_cpu: 0.

Change-Id: I079ebd7c0009c3b634d2d5d41ac880da06cf8f6d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2019-12-14 09:50:24 -08:00
Taniya Das
ffd89c1cb1 cpufreq: qcom-hw: Add register offsets for non-epss devices
Update the cpufreq hardware register offsets data for non EPSS devices to
be able to parse the LUTs of frequency and voltage.

Re-introduce the commit '00319840a4af ("cpufreq: qcom-hw: Update freq_scale
from fast_switch path")'
The freq_scale maintained by the topology driver needs to be updated when
the frequency is transitioned. Without this, the current capacity of a CPU
metric gets broken in the scheduler.

The current code calls arch_set_freq_scale() from the target_index method
but not from the fast_switch method. Fix this.

Change-Id: I2789b76f14b4c0fe8ad52b449ed9f4ea3a4bff32
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2019-12-14 09:50:18 -08:00
Pavankumar Kondeti
b90c678d9b cpufreq: qcom-hw: Update freq_scale from fast_switch path
The freq_scale maintained by the topology driver needs to be
updated when the frequency is transitioned. Without this,
the current capacity of a CPU metric gets broken in the scheduler.

The current code calls arch_set_freq_scale() from the target_index
method but not from the fast_switch method. Fix this.

Change-Id: I92cafba9ffd4a70c8a06ed54e4e410336de4d453
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2019-12-14 09:50:11 -08:00
Taniya Das
11ee5d6922 cpufreq: qcom-hw: Add support for EPSS CPUFREQ firmware
This is in preparation for updating the current driver to the upstreamed
code. Add support to take care of EPSS firmware related code.

Change-Id: I4bd4165a8457dcaedc26d3bc8704db0c886832ed
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2019-12-14 09:50:04 -08:00
qctecmdr
ac21732fc6 Merge "ANDROID: sched: Per-Sched-domain over utilization" 2019-12-14 09:43:16 -08:00