Commit Graph

1129981 Commits

Author SHA1 Message Date
Rashid Zafar
9408ecee82 driver: thermal: userspace_cdev: Add a snapshot of userspace cooling driver
Add a snapshot of qti userspace cooling driver from msm-5.10 as
of commit 90be510a996d ("drivers: userspace_cdev: Add new userspace
cooling device").

Updates:
    - Change GPL v2 license to GPL

Change-Id: I57e07b76bf12a587a167bc4220b45c0d7fd29e8a
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2022-11-05 21:07:27 -07:00
Rashid Zafar
83cf3de091 drivers: thermal: ddr-cdev: Add snapshot of ddr-cdev cooling driver
This is a snapshot of the ddr cooling device driver from msm-5.10 as
of commit 36bd801b76c2 ("drivers: thermal: ddr-cdev: Add DDR bus
width property support").

Add support to get DDR frequency table from its own devicetree.

Updates:
    - Change GPL v2 to GPL

Change-Id: If506dc7182033dce2a93863f736553c2b42437a3
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2022-11-05 21:07:27 -07:00
Rashid Zafar
ba64c62171 drivers: thermal: qcom: Add a snapshot of cpu_hotplug cooling device driver
Add a snapshot of cpu hotplug cooling device driver from msm-5.10 as
of commit 3ea553e19355 ("drivers: thermal: cpu_hotplug_cdev: Use work
queue to execute mitigation").

Updates:
    - Change GPL v2 license to GPL

Change-Id: I7881ee4b2817c943bd15699d68d73f738bd3711c
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2022-11-05 21:07:27 -07:00
Rashid Zafar
195402de21 drivers: thermal: cpu_voltage: Add snapshot of cpu_voltage cooling driver
This is a snapshot of the cpu_voltage cooling device driver from
msm-5.10 as of commit 07b06da60fbb ("drivers: thermal: cpu_voltage:
Update the cooling device naming").

Updates:
    - Change GPL v2 license to GPL

Change-Id: I6ffa3773970a279d90e813b3ff88e0afe414308f
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2022-11-05 21:07:20 -07:00
Priyansh Jain
7d40460e37 drivers: thermal: qmi_sensor: Add new sdr thermistors
Add new sdr thermistors support. The support includes for
the qmi sensors sdr0_pa, sdr1_pa.

Change-Id: If6019170095d55e41c617be14865f5079390430b
Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2022-11-05 21:06:48 -07:00
Manaf Meethalavalappu Pallikunhi
6034c5188b drivers: thermal: qmi_sensor: Add modem epm sensors to QMI TS
Add support for modem epm sensors to QMI TS sensors list.
It enables apps to monitor these sensors from thermal framework.

Change-Id: Ibf80aefa002f8a3cc85ac23b337069103fe2245e
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
2022-11-05 21:06:48 -07:00
Manaf Meethalavalappu Pallikunhi
4b31fa9c52 drivers: thermal: Add support for new sdr scg modem qmi cooling devices
Add support for new sdr scg modem qmi cooling devices to QMI cooling
device driver. These cooling devices can be used to mitigate
modem subsystem at high temperature via qmi interface.

Change-Id: I6503e75d53dc0456dd90401a6a1af02c10fa4e41
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
2022-11-05 21:06:48 -07:00
Manaf Meethalavalappu Pallikunhi
bffc3e6a20 drivers: thermal: qmi_cooling: update cooling device name length
The thermal framework doesn't have any cooling device name length
limit check. So use the same qmi device name length for qmi
cooling device as well so that both qmi device name and thermal
framework cooling device name will be used the same name.

Change-Id: I373107c5eb17852dd98d0fa787839e65284690fa
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
2022-11-05 21:06:48 -07:00
Rashid Zafar
c1d32883d2 drivers: thermal: qmi_cooling: Add qmi cooling driver snapshot
This is a snapshot taken of qmi_cooling driver from msm-5.15
commit e40c031f04e1 ("drivers: thermal: qmi_cooling: Add
support for extended device list").

Updates:
    - Change GPL v2 license to GPL
    - Added qmi cooling driver description to kernel config
    - Updated Makefile

Change-Id: Ia4a95cc2a85348d27691c4e52513e996dd1a5990
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2022-11-05 21:06:48 -07:00
Manaf Meethalavalappu Pallikunhi
c4de850798 driver: thermal: bcl-soc: Add support for trend estimation
Add support for trend estimation callback. Since BCL soc update is
happening in software worker thread and soc stays longer duration in
same state compared to thermal sensor. It leads to a case where before
handling thermal zone update completely on threshold update, there is
a chance that another thermal zone update context can happen in
parallel due to userspace clients update or due to polling thread
context. This causes the trend stays stable for longer duration.
This will not help in mitigating using step wise algorithm.

Adding this trend estimation callback will return a raising
trend during bcl soc trip high violation, a dropping trend during
trip low vilation and fallback to default core trend estimation for
otherwise. This will help step wise algorithm to determine the
next mitigation actions.

Change-Id: Ib59eadbb497cf5775bda4888e0d93b3378d46798
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
2022-11-05 21:06:48 -07:00
Manaf Meethalavalappu Pallikunhi
b28c171a2a driver: thermal: qcom: clear all mitigation when thermal zone is disabled
Whenever a thermal zone is in trip violated state, there is a chance
that the same thermal zone mode can be disabled either via
thermal core API or via thermal zone sysfs. But thermal core doesn't
guarantee that it will clear all mitigation on disabling thermal zone.

Monitor thermal zone mode_change callback in different sensor drivers
and add support to clear all mitigation on thermal zone disablement.

Change-Id: I82720be5b1b9016d218f9a1c39315da794a2a330
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
2022-11-05 21:06:48 -07:00
Rashid Zafar
ec5bc9a94b drivers: thermal: qmi_sensor: Add snapshot of QMI sensor V2 driver
This is a snapshot of the thermal framework from msm-5.10 as of
commit f5a9cf8e4b17 ("drivers: qmi_sensor: Re-configure qmi sensor
trip on subsystem restart").

Updates:
    - Change GPL v2 license to GPL

Change-Id: If2681995379274a5d9d641d0dce2b4f9ec07edb6
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2022-11-05 21:06:48 -07:00
Rashid Zafar
c9b2831279 driver: thermal: pe_sensor: Add a snapshot of policy engine driver
Add a snapshot of policy engine driver from msm-5.10 as of commit
2883589c93f8 ("drivers: thermal: pe_sensor: Add support for trend
estimation").

Updates:
    - Change GPL v2 license to GPL

Change-Id: I403d7e26fb31d882c493071ed9826b4861ec87cd
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2022-11-05 21:06:37 -07:00
Manaf Meethalavalappu Pallikunhi
c3aaeca366 drivers: thermal: tsens: reset cached temp value just after notification
The tsens driver caches last read temperature during tsens interrupt
violation and notifies framework so that framework will use this
cached temperature value instead of new register read. This cached
temperature variable will be reset once set trip API gets called for
the same sensor. But some reason if set trip API is not called for
the same sensor during notification, this cached temperature variable
won't reset. It leads to a case where if next tsens violation happens
for same sensor, interrupt handler will read this temperature and
re-arm previous threshold without notifying thermal framework. It can
cause spurious interrupt scenario for tsens.

Reset cached temperature value just after thermal framework
notification in tsens irq handler.

Change-Id: I9707bf5fd245df404122f137b586e4a286be2eee
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
2022-11-04 15:32:58 -07:00
Manaf Meethalavalappu Pallikunhi
8f25da0261 drivers: thermal: tsens: Cache the trip temperature
Cache the trip temperature for the thermal framework to read. Once the
trip occurs the temperature at which the trip or trip clear is cached
till the thermal framework sets a new trip value. This will ensure that
the thermal framework will read the exact temperature as the driver and
it cannot go out of sync.

Change-Id: Ie44ee0e1e7e4acf3a08f47f1204e6d2ab1a8100f
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
2022-11-04 15:32:58 -07:00
Manaf Meethalavalappu Pallikunhi
70627fa6e2 drivers: thermal: Add ipc logging support for tsens driver
Add ipc logging support to tsens driver. It enables two separate ipc
logging circular buffer for tsens. The first one dumps different
temperature sensor read value whenever there is a read request.
The second one dumps different sensor thresholds, interrupt status etc.
whenever there is tsens interrupt trigger or set trip call from
thermal framework.

Change-Id: Ib7964571547c222838b1fa45a19b3bdb7b837116
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
2022-11-04 15:32:58 -07:00
Rashid Zafar
240423ee6b drivers: thermal: Add a snapshot of bcl soc driver
Add a snapshot of bcl soc driver from msm-5.10 of commit
4911990d5e6d ("drivers: thermal: bcl_soc: Remove QTI_THERMAL
dependency").

Updates:
    - Change GPL v2 to GPL

Change-Id: I39f087d54a2be1e12756481ca05279a28b781bd5
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2022-11-04 15:31:46 -07:00
qctecmdr
91808785bc Merge "defconfig:Add vm tlmm related and other configs for kkp" 2022-11-04 13:53:11 -07:00
qctecmdr
9cf78134b8 Merge "defconfig: Enable pineapple vm pinctrl" 2022-11-04 13:53:11 -07:00
qctecmdr
401f6c5e20 Merge "modules.list.msm.pineapple: Add sdhci-msm and cqhci modules" 2022-11-04 13:53:10 -07:00
qctecmdr
67bd5a23c8 Merge "arm64: defconfig: Enable USB GSI function driver" 2022-11-04 13:53:10 -07:00
qctecmdr
7790ea68bd Merge "net: qrtr: log rx packet causing system wakeup" 2022-11-04 13:53:10 -07:00
qctecmdr
08b524823c Merge "dt-bindings: Added COMPUTE_L0 signals & broadcast client" 2022-11-04 09:00:38 -07:00
qctecmdr
ccc3244aaf Merge "phy: phy-qcom-ufs: Update min phy voltage limit per spec" 2022-11-04 09:00:38 -07:00
qctecmdr
ba9065b642 Merge "pinctrl: qcom: Allow setting wakeup enable bit" 2022-11-04 09:00:37 -07:00
qctecmdr
bede146f94 Merge "coresight-cti: Add gpio trigin and trigout support" 2022-11-04 09:00:37 -07:00
qctecmdr
f6668c1977 Merge "clk: qcom: gdsc-regulator: Increase default GDSC timeout to 1500us" 2022-11-04 09:00:35 -07:00
qctecmdr
4db4031c57 Merge "ANDROID: enable pineapple kleaf build" 2022-11-04 09:00:35 -07:00
qctecmdr
7b28f02de3 Merge "soc: qcom: Add tmecom, hwkm and ice driver" 2022-11-04 09:00:34 -07:00
qctecmdr
3b734dc9b5 Merge "defconfig: msm: enable remote debugger driver" 2022-11-04 09:00:33 -07:00
Devender Kaushik
d528d9ae43 defconfig: msm: enable remote debugger driver
Add remote debugger device configuration. The Remote Debugger driver
allows a debugger running on a host PC to communicate with a remote
stub running on peripheral subsystems.

Change-Id: Ib3faed59b8f54213341aa52248e33091fffea061
Signed-off-by: Devender Kaushik <quic_dkaushik@quicinc.com>
2022-11-02 23:29:08 -07:00
qctecmdr
0be12ba8de Merge "ion: Add ION UAPI headers" 2022-11-02 21:55:04 -07:00
qctecmdr
622df386b4 Merge "driver: thermal: qcom: Add snapshot of bcl driver" 2022-11-02 21:55:04 -07:00
qctecmdr
98d3d52740 Merge "coresight-tmc: Ignore USB write errors during disconnection" 2022-11-02 21:55:03 -07:00
qctecmdr
11f3d1bab4 Merge "defconfig: pineapple-gki: Enable QCOM_EUD driver" 2022-11-02 21:55:03 -07:00
qctecmdr
d4434ee0a3 Merge "soc: qcom: llcc: Introduce APIs to support staling mode" 2022-11-02 21:55:02 -07:00
qctecmdr
749d60cba7 Merge "sched/walt: append carriage return to not_preferred output" 2022-11-02 21:55:02 -07:00
qctecmdr
010a200ec4 Merge "sched/walt: expand cpu arrays" 2022-11-02 21:55:02 -07:00
qctecmdr
e618ed7298 Merge "clk: qcom: clk-debug: Fix accessing mux when it is NULL" 2022-11-02 21:55:01 -07:00
qctecmdr
c4eeb0bb7d Merge "build: Add support for custom userspace toolchain" 2022-11-02 21:55:01 -07:00
qctecmdr
0d93c59727 Merge "defconfig: Enable MHI bus driver for msm-pineapple" 2022-11-02 21:55:01 -07:00
qctecmdr
ebd3b76455 Merge "kernel/sched/walt: ensure em_pd creation before rebuild_sched_domains" 2022-11-02 21:55:01 -07:00
qctecmdr
0a87ecd6c9 Merge "clk: qcom: clk-rpmh: Fix overflow in BCM vote" 2022-11-02 21:55:00 -07:00
qctecmdr
60d2b5697e Merge "coresight: funnel: Fix the duplicate-funnel enable crash issue" 2022-11-02 21:54:59 -07:00
smaniar
e5641b8084 dt-bindings: Added COMPUTE_L0 signals & broadcast client
These changes enable IPCC_COMPUTE_L0 signals and
broadcast client. These will be used by the new IPCLite
communication protocol to communicate with
remote subsystems over compute_l0 interrupt line.

Change-Id: I7aac6f121c53136b8cc19f1d1e166ccc2d59caee
Signed-off-by: smaniar <smaniar@codeaurora.org>
2022-11-02 10:02:33 -07:00
Chris Lew
fe94f61475 net: qrtr: log rx packet causing system wakeup
Log qrtr rx packet in kernel logs which caused system wakeup.
This will help to easily identify wakeup packet.

The qrtr module is required to be in first stage init to support
the creation of qrtr sockets. The transport layers are often in second
stage init. The current wakeup prints depend on some information from
the second stage init. Rework the logic so the dependency is only
between the qrtr transport and transport drivers.

Change-Id: I4a6a35dd4d5449a671464c00f90712a79d6044fe
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-11-01 13:53:44 -07:00
Gaurav Kashyap
a8a29ed6e7 soc: qcom: Add tmecom, hwkm and ice driver
Add tmecom, hwkm and ice-crypto drivers for pineapple.
These are mainly used for supporting storage encryption
using HWKM (residing in TME).

Change-Id: I38c97654a643f8545bd56aa559ccba588aabbb90
Signed-off-by: Smita Ghosh <quic_smitag@quicinc.com>
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2022-10-31 16:41:56 -07:00
Wesley Cheng
93c15fa9ab arm64: defconfig: Enable USB GSI function driver
Enable the USB GSI driver to support tethering interfaces, such as RNDIS
and RmNET.

Change-Id: I0273e97f7656e1cca4a353b55e7254053352b2b9
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-10-31 15:50:38 -07:00
Wesley Cheng
afd52bd6ca abi_gki_aarch64_qcom: Add symbols used by USB GSI
Add symbols being used by the USB f_gsi function driver.

Change-Id: I5102ae04665e5eca291855f05157159c3e37d313
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-10-31 15:49:35 -07:00
Wesley Cheng
61be50ef9b usb: gadget: f_gsi: Introduce IPA callbacks for init and ops
The IPA framework will be moved outside of the kernel tree, which USB GSI
was referencing.  In order to call USB IPA operations, the IPA module will
call an exported ready callback from the USB GSI driver, and pass along the
function pointers for the IPA ops.

Add the ready callback API, and modify pre-existing IPA ops to reference
the function pointers received from the IPA module.

Change-Id: I8e766548fa76ee4d838d113bb5b61577b99c90dd
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-10-31 15:48:37 -07:00