Commit graph

875,812 commits

Author SHA1 Message Date
David Collins
c9ce2cc0c0 defconfig: lahaina-gki: enable SPMI and PMIC drivers
Enable several SPMI and PMIC drivers which are needed to provide
baseline support of PMIC peripherals.

Change-Id: Ifb4414083764bbae64904d8629528cc4dda3a39c
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:43:06 -08:00
David Collins
92ac3f9f32 defconfig: lahaina-qgki: enable CONFIG_IIO
Enable CONFIG_IIO in lahaina_QGKI.config so that drivers which
depend upon it can function before CONFIG_IIO is enabled in
gki_defconfig.

Change-Id: I6afa93e6054d67157b1d435aa10688ab37220612
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-16 10:43:04 -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
7c77c9622d Merge "cpufreq: qcom: Update cycle counter logic for CPUFREQ HW" 2019-12-16 09:32:55 -08: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
qctecmdr
f536145ef0 Merge "Revert "Mark HI and TASKLET softirq synchronous"" 2019-12-14 09:00:45 -08:00
qctecmdr
fac6230faf Merge "softirq: defer softirq processing to ksoftirqd if CPU is busy with RT" 2019-12-14 08:07:05 -08:00
qctecmdr
9dd145718b Merge "sched/fair: Add snapshot of load-balancing changes" 2019-12-14 07:12:11 -08:00
qctecmdr
18b2bd0259 Merge "kernel: Add snapshot of changes to support cpu isolation" 2019-12-14 06:22:07 -08:00
qctecmdr
a00df95151 Merge "ANDROID: sched, cpuidle: Track cpuidle state index in the scheduler" 2019-12-14 05:47:02 -08:00
qctecmdr
2f2d872989 Merge "power: em: correct increasing freq/power ratio" 2019-12-14 05:09:38 -08:00
qctecmdr
f5f00f4ff2 Merge "scripts: Makefile: Remove flags which are not support by EXT_DTC" 2019-12-14 04:32:38 -08:00
qctecmdr
916dbcdb30 Merge "iommu: arm-smmu: clear TBU halt request when halt times out" 2019-12-14 04:32:38 -08:00
qctecmdr
5cde937fee Merge "cpufreq: qcom-hw: use no_log when reading cpu counter val" 2019-12-14 03:51:35 -08:00
qctecmdr
341f70c77d Merge "scripts: Makefile: Add multi overlay dtbo-base apply verify" 2019-12-14 03:51:34 -08:00
qctecmdr
da38478d65 Merge "cpufreq: qcom-hw: Register child devices" 2019-12-14 03:12:39 -08:00
qctecmdr
3e78982665 Merge "cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag" 2019-12-14 02:36:33 -08:00
Elliot Berman
78a7a11b53 arm64: defconfig: Remove IKHEADERS option
The generation of kheader.tar.xz file uses xargs in ways that seems to
be unaccepatble by certain build environments, thus leading to build
failures. Disable the CONFIG to avoid the situation.

Change-Id: Ib7a2ca0c449f22021e80ac1382a9e5bdf6b388ba
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-12-12 13:14:59 -08:00
Ram Chandrasekar
5d5dcb35a4 drivers: thermal: cpu_cooling: Use Policy cpu as cdev ID
CPU cooling driver uses the IDA index to name the CPU cooling device.
This doesn't give the visibility of which cpufreq policy this particular
cooling device is managing.

Use the Policy CPU as the cooling device ID and this will have a one to
one correlation to the cpufreq policy ID.

Change-Id: I1ee0ac383328f4eb7e3f83e970d03af97aba9953
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2019-12-12 13:40:47 -07:00
Ram Chandrasekar
3c2428cbdb thermal: Include qcom thermal drivers for CONFIG_ARCH_QCOM
Include qcom thermal drivers when CONFIG_ARCH_QCOM is enabled instead of
CONFIG_QCOM_TSENS, which is associated with tsens sensor driver.

Change-Id: I944caf2de153f482a3607ad103da3b400f902885
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2019-12-12 13:40:45 -07:00
Edgar Flores
45b308cd60 msm: adsprpc: Remove IPC logging from fastrpc driver
Remove IPC logging from fastrpc driver since fastrpc will be
enable as a DLKM  module on lahaina-gki config but IPC logging
will not be supported on lahina-gki configuration.

Change-Id: I31c65090c7dc5b01941c0f7356a898a0d5c81f01
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2019-12-12 09:04:29 -08:00
Tony Truong
48468550eb soc: qcom: subsys_notif: Add early SSR notifications for PCIe DRV
PCIe DRV needs to recover the link as soon as possible before
the device on the other side of the link times out. Allow PCIe
DRV to register for early SSR notifications to have a chance of
making the recovery latency.

Change-Id: I75ce59075efcebc7c4457d300f7558b837d725a0
Signed-off-by: Tony Truong <truong@codeaurora.org>
2019-12-11 17:57:51 -08:00
David Collins
52f9f8cfcc rtc: rtc-pm8xxx: add support for PMK8350 RTC
Add support for the RTC peripheral found in PMK8350 PMIC chips.

Change-Id: Id4b93ae8017a174f577496078ed8ab8d73eabff8
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-12-11 14:47:16 -08:00
Guru Das Srinagesh
ab24fd06a3 defconfig: lahaina-gki: Enable QTI Tri-LED driver
The QTI Tri-driver enables the configuration of the output of LED
channels in the TRI_LED and HR_LED peripherals found in QTI PMICs.

Change-Id: I4ecf94b0dc9e4b53d81c8c9d7328d039504f8c66
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2019-12-11 11:20:00 -08:00
qctecmdr
2cfd894384 Merge "leds: Add snapshot of QTI Tri-LED driver" 2019-12-11 10:26:41 -08:00
qctecmdr
e0070c9612 Merge "trace/sched: set priority to 150 for deadline tasks" 2019-12-11 10:26:41 -08:00
qctecmdr
763ee50313 Merge "coresight: funnel: add support for duplicating funnel devices" 2019-12-11 09:35:51 -08:00
qctecmdr
9b8098d6c3 Merge "wil6210: added sysfs file for FTM calibration" 2019-12-11 09:35:51 -08:00
qctecmdr
39c96c3723 Merge "firmware: qcom_scm: Export invoke callback response API" 2019-12-11 09:35:51 -08:00
qctecmdr
1cc4527d89 Merge "msm: kgsl: Remove legacy support for clock_set_flags" 2019-12-11 07:56:18 -08:00
qctecmdr
43e27702c9 Merge "coresight: Add snapshot of remote qdss driver" 2019-12-11 05:20:25 -08:00
qctecmdr
72cb2da423 Merge "coresight: Add snapshot of remote etm driver" 2019-12-11 05:20:25 -08:00
Konstantin Dorfman
605a33c97a soc: qcom: spcom: add spcom as DLKM for GKI
This change converts statically compiled platform driver into kernel
module.

Change-Id: I97c540675c48089924fb0e5589761f772a0f691a
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2019-12-11 13:46:52 +02:00