Commit graph

878,310 commits

Author SHA1 Message Date
qctecmdr
0233b8a105 Merge "msm: pcie: always enable BDF to SID for PCIe RC mode" 2020-02-04 15:25:02 -08:00
qctecmdr
72947404b1 Merge "clk: qcom: gpucc: Enable cx_gmu, hub_cx_int_clk always" 2020-02-04 15:25:02 -08:00
Nitheesh Muthuraj
644c2e4777 msm: kgsl: Make the scratch privileged
The flag to make the scratch privileged
was correctly set but not used.

Change-Id: Ie015dd3008803d6a98156f9d2ad049b3cdb86a33
Signed-off-by: Nitheesh Muthuraj <nmuthuraj@codeaurora.org>
2020-02-04 14:41:10 -08:00
Vivek Aknurwar
af0883bb39 clk: qcom: gdsc-regulator: Add support for proxy consumers
Add support to enforce proxy consumer requests defined in device
tree for gdsc-regulator devices. These can be used to
ensure that regulators are not accidentally disabled or
scaled down before all consumers have had a chance to
make their own requests.

Change-Id: I495283866fb61fb54e5ecf6ed3789abaa4ae66d1
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
2020-02-04 13:48:01 -08:00
Harshdeep Dhatt
5d8bb9574f msm: kgsl: Set busmon driver data
This links the busmon devfreq device to kgsl device
which is de-referenced in kgsl_busmon_target() in
order to propagate bus votes.

Change-Id: I1ac3f81e546e3fd6be6051a202e0d49db07978ee
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-02-04 13:15:32 -08:00
Harshdeep Dhatt
4310e6ac82 msm: kgsl: Do not call dispatcher functions directly
With eCP, we will have a different dispatcher and hence a different
function to queue the commands to the eCP dispatcher. Instead of
adding the eCP check in kgsl.c, do it in adreno_queue_cmds. On the
same lines, we will do eCP check in adreno_drawctxt_sched() to queue
the context to the respective dispatcher. Also, move
adreno_drawctxt_sched() from adreno_drawctct.c to adreno.c so that we
have one less function to export.

Change-Id: Ibd6325131ed38b9527cdda084ca37d6c6ceee3bd
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-02-04 13:15:30 -08:00
Ram Chandrasekar
7c99000a5a drivers: thermal: Avoid trip evaluation for disabled thermal zone
Avoid trip evaluation for disabled thermal zone, as the temperature
reading will be invalid and using the same to evaluate the trips will
lead to undefined behavior.

Change-Id: I5ea744d36875a425b0c3ed07c3ab45c94f9b59ca
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-02-04 13:09:09 -07:00
Raghavendra Rao Ananta
0ae181fd30 haven: Add Haven Message Queue driver
Add Haven message queue driver provides an interface to the client
drivers running on the virtual machines to communicate with the clients
running on other virtual machines. The services offered by the driver is
simply to send and receive messages.

Change-Id: I1685109f579eaf7fa039225dd60a42adae7de00a
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-02-04 11:35:52 -08:00
Elliot Berman
51c05c9940 arch: arm64: hh: Add Haven arm64 hypercall interface
Add Haven hypercall interface conforming to its arm64 ABI.

Change-Id: I959e6a24c0b3dca5182b70b95d6bee3a51e9f6c4
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-02-04 11:35:37 -08:00
Elliot Berman
eff7e54127 haven: hcall: Add Haven hypercall interface
Add common Haven hypercall interface implementing all of the doorbell
APIs and required message queue APIs for an initial message queue
driver.

Change-Id: I2f4cbe99b76d115a42e86d1a43f361e4793a9723
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-02-04 11:35:13 -08:00
Elliot Berman
77c2c03606 haven: Add common Haven types and macros
Add common Haven API types and return values.

Change-Id: I89de261dbb090ee54f0b943bf34cca782a24ce1e
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-02-04 11:34:57 -08:00
Blagovest Kolenichev
7229ee822d Revert "rpmsg: glink: Set tail pointer to 0 at end of FIFO"
This reverts commit 06e60a45a4.

This is a preparation change for merging android-5.4.6 into
msm-5.4 branch. Same delta was already committed via:

f1d8e56eb5 rpmsg: Add snapshot of RPMSG drivers for lahaina

Change-Id: Ib3b722b93e89ba048ad8965c7ad2e8d1d5d9f75f
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-02-04 08:04:57 -08:00
Blagovest Kolenichev
6216cd68c1 Revert "PM / QoS: Redefine FREQ_QOS_MAX_DEFAULT_VALUE to S32_MAX"
This reverts commit f092fa8da2.

This is a preparation change for merging android-5.4.6 into
msm-5.4 branch. The reverted change is committed already as:

e936a40935 PM / QoS: Redefine FREQ_QOS_MAX_DEFAULT_VALUE to S32_MAX

Change-Id: I99de0133f445e0f00f45ee9354b5269f6b73506b
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-02-04 08:04:56 -08:00
Blagovest Kolenichev
da81b18ab7 Revert "UPSTREAM: firmware/qcom_scm: Add scm call to handle smmu errata"
This reverts commit 5362320ee3.

This is a preparation change for merging android-5.4.6 into
msm-5.4 branch. The reverted change is committed already as:

ae18db422f firmware/qcom_scm: Add scm call to handle smmu errata

Change-Id: Ie5e1eb2dc0b74ac9d8f14d121ef5e370a03fa43c
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-02-04 08:04:55 -08:00
Blagovest Kolenichev
0b39eaab09 Revert "UPSTREAM: firmware: qcom_scm-64: Add atomic version of qcom_scm_call"
This reverts commit b869aae883.

This is a preparation change for merging android-5.4.6 into
msm-5.4 branch. The reverted change is committed already as:

c5691b4772 firmware: qcom_scm-64: Add atomic version of qcom_scm_call

Change-Id: I641719846cfbb3fa5f7ab0fa26904b539bb841c6
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-02-04 08:04:54 -08:00
Blagovest Kolenichev
8651ace66a Revert "UPSTREAM: cpufreq: qcom-hw: Move driver initialization earlier"
This reverts commit 9df826d676.

This is a preparation change for merging android-5.4.6 into
msm-5.4 branch. Equivalent logic is already committed via:

ed7c3ccb4a cpufreq: qcom: Add snapshot of cpufreq-hw

Change-Id: Ia3e5dc004c85885053328e845f7dd4fe0f568da6
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-02-04 08:04:53 -08:00
Rajesh Kemisetti
fd5a1a5711 msm: kgsl: Dump maximum possible IB1 size in snapshot
Currently adreno_snapshot() tries to dump remaining IB1 size
if the active IB1 base address is not present in ringbuffer
which is not enough to debug GPU hang.

So, try to calculate the maximum possible size that it can
dump from IB1 base address and add it to snapshot dump.

Change-Id: I029fb8cddab7999001a2934ce49cb5ff884c21bf
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2020-02-04 18:11:17 +05:30
qctecmdr
7af12e1129 Merge "input: qti-hv-haptics: Add debugfs parameters to configure effects" 2020-02-04 03:48:06 -08:00
qctecmdr
d872290713 Merge "sched/uclamp: Fix a bug in propagating uclamp value in new cgroups" 2020-02-04 03:48:06 -08:00
qctecmdr
26a964da26 Merge "kernel_headers: Add missing kernel headers to lahaina" 2020-02-04 03:48:05 -08:00
qctecmdr
8dd2ddd66a Merge "mhi: dev: uci: add support for DIAG and DCI clients" 2020-02-04 03:48:05 -08:00
qctecmdr
ba0579037e Merge "msm: cvp: Add debug node control power collapse" 2020-02-04 03:48:05 -08:00
Can Guo
ae89f17607 scsi: ufs-qti: Remove the second init in hba probe path
As Lahaina is PORed with UFS ver 3.0, UFS PHY is initialized with G4
settings by default, thus no need to do the second init after find out
the connected UFS is a ver 3.0 device.

Change-Id: I1a1819c4938e40e669a1aed62309a8004c3164b9
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-02-04 03:37:32 -08:00
Can Guo
278cc639d5 ufs: ufs-qcom: Clean up UFS PHY mode and submode selection
In hba power up sequence, phy_set_mode_ext() is used to pass UFS PHY mode
and HS gear as the submode to UFS PHY driver. UFS PHY mode is decided by
limit_rate, which is Rate-B by default. While, UFS PHY submode is dediced
by limit_phy_submode, 1 stands for G4, 0 stands for non-G4.

Change-Id: I54fc377abd42290e76094125b446d24ef1478124
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-02-04 03:31:45 -08:00
Deepak Kumar
70f3a6ad3a msm: kgsl: Handle error from nvmem_cell_read while reading speed_bin fuse
nvmem_cell_read can return ERR_PTR in case of failure. Current code is not
handling the error case. This would result in using default clock plan as
speed_bin value is zero. This can be fatal in case fuse was blown to a
lower frequency then the default clock plan. Handle this error to avoid
this issue.

Change-Id: Ic128265fdd1adefbbc0d7f733ef3e9b2f6fcb31a
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2020-02-04 16:49:55 +05:30
Tingwei Zhang
c2cb459bf5 coresight: csr: read MSR start address and size from dt
MSR start address and size could be different across chipsets.
Read it from device tree instead of hard code in source.

Change-Id: I6738e5dd2cbb931ed0f6ee6cddd08adb1f2b1123
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2020-02-04 15:24:14 +08:00
Shyam Kumar Thella
0254c79d33 regulator: Add snapshot of qpnp-amoled regulator driver
Add QPNP AMOLED regulator driver to configure triple power supply
(OLED, AB & IBB) that is used in AMOLED panels.

This is a snapshot of the driver taken from msm-4.19 as of
'commit <18fb0f227fcdcd3i92a380533b454fdc629625327> ("Merge power:
supply: qcom: Initial version driver for SMB1398 charger")'.

Change-Id: Iefa5d27f781af36d42e0a14ac77b2537a19ea596
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-02-04 09:39:13 +05:30
Ruofei Ma
9099e8a87c msm: cvp: fix DSP probe crash
Fix dsp probe crash from cvp driver when cvp hardware
is enabled.

Change-Id: I22abb2ccd3e4a8c983b9bc3f49ea86d9f41f546b
Signed-off-by: Ruofei Ma <ruofeim@codeaurora.org>
2020-02-03 19:28:47 -08:00
Satya Durga Srinivasu Prabhala
510535838b sched: micro optimization for sched_energy_present
sched_energy_present is always present for chipsets that are supported,
so, switch to static_branch_likely() to let compiler know the same for
better optimization.

Change-Id: Ie4615ae6f7d1ec7498d0708f500c5a5a72ef4b4d
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-02-03 17:43:55 -08:00
qctecmdr
190224d2fb Merge "usb: gadget: configfs: Add max_speed setting" 2020-02-03 14:44:48 -08:00
qctecmdr
787bd5a481 Merge "usb: dwc3: Remove extra format specifier" 2020-02-03 14:44:47 -08:00
Jack Pham
38cc775a5c extcon: usb-gpio: Add support for optional VBUS output enable GPIO
On many platforms 5V VBUS output can be provided by external
circuitry and turned on via GPIO. For convenience, on micro-AB
ports this can be done in conjunction when ID pin becomes low
meaning USB_HOST mode is to be entered. Add support for an
optional "vbus-out" GPIO to this driver.

Change-Id: Id58e5dca5375b8140c75ce7cd6769dd8a31a2af7
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-02-03 14:40:23 -08:00
Bojun Pan
577585f312 msm: ipa4: debug patch gsi interrupt issue
Debug patch for GSI interrupt issue.

Change-Id: I705cd893233e1afcaeed6fedb424830e39621114
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-02-03 14:13:45 -08:00
Elson Roy Serrao
4b4b6715b7 usb: ep0: complete the pending control request before soft-disconnect
We abort the control request enqueue during a device initiated disconnect
as soon as the softconnect flag gets cleared. Whenever there is a race
between a control request and soft disconnect, the pending control
request is aborted before dwc3_gadget_pullup() function tries to
complete it. As a result the subsequent soft reconnect fails resulting
in usb connection loss. Avoid this by deciding the enqueue() operation
based on pullups_connected flag which gets cleared after completing the
pending request and putting the core in setup phase.

Change-Id: Ie21ecead7ed73569a426cd8bac586a5576c72993
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
2020-02-03 12:29:47 -08:00
Bhaumik Bhatt
f505870cba mhi: dev: uci: add support for DIAG and DCI clients
Add support for DIAG and DCI MHI clients moving to userspace.

Change-Id: I2ee30fedfb50644f7bcc7eac41d08e37ca71805a
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-02-03 10:47:47 -08:00
qctecmdr
9dbfc30013 Merge "msm: adsprpc: Separate header and non-ion copy buffer" 2020-02-03 10:02:58 -08:00
qctecmdr
bc32d2eae3 Merge "psi: print threshold time in decimal" 2020-02-03 10:02:58 -08:00
qctecmdr
c5a3cd9798 Merge "psi: Improve ftrace events" 2020-02-03 10:02:58 -08:00
qctecmdr
05aa0d2b11 Merge "Revert "devfreq: bimc_bwmon: Add support to enable BWMON clks"" 2020-02-03 10:02:57 -08:00
qctecmdr
d31d815440 Merge "defconfig: enable QSEECOM as a GKI module" 2020-02-03 10:02:57 -08:00
George Shen
9e469d7887 msm: cvp: Add debug node control power collapse
Add debug node to control power collapse on/off and timeout value.
Remove unused traces that caused linker error due to this change.

Change-Id: I7860cda4e2febee85a54884f9e26ae7a512afbb2
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-02-03 09:47:37 -08:00
Tony Truong
7390bdc7ab msm: pcie: always enable BDF to SID for PCIe RC mode
In root complex mode, PCIe needs to enable BDF to SID
translation so that device generates the correct SID.
Therefore, always enable BDF to SID translation when setting
up other BDF to SID configuration.

Change-Id: Ied960384e14cb4069bba46bb7b750d8d34949cec
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-02-03 09:18:32 -08:00
Edgar Flores
726e817aae msm: adsprpc: detect privileged processes based on group ID
Detect if the process is privileged by comparing its group ID with
an internal list obtained from the device-tree. Update the process
attributes sent to the remote subsystem accordingly.

Change-Id: I8d7b6824762b934ca6bd9a5d2420dc0dd49b7e6d
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2020-02-03 09:07:30 -08:00
Mayank Rana
78cab5d31b eud: Set pdev->id value to 0 and add set_mctrl() API
pdev->id is needed to reference port with serial core framework.
Also serial core framework assumes that set_mctrl() ops is must
to support. Hence add set_mctrl() API to avoid null pointer
related crash within serial core framework.

Change-Id: Ida4ec2622232b822f1100e9c4ce0e8d3bd0d29c9
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-02-03 09:02:42 -08:00
Sriharsha Allenki
ad4fda502b usb: dwc3: Remove extra format specifier
Correct number of arguments are not passed to the dev_dbg
call here. This is leading to access of garbage value.
Fix this by removing the extra format specifier in the
string.

Change-Id: Id64a00c1ca44c5ee2014fd806c234f702a7941f6
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-02-03 08:55:42 -08:00
Patrick Daly
06c992a215 psi: Improve ftrace events
Improve readability of logs by converting hex values to decimal,
and printing memstall deltas instead of absolute values.

Change-Id: I43f21dd9817b540184ce05fd7151459d3502ea28
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-03 07:16:06 -08:00
Konstantin Dorfman
15d43943cb soc: qcom: spcom: propagate print macro parameters to pr_*()
This change propagates macro parameters to pr_err/warn/info/debug.

Change-Id: I2f205066a5c19b74e6852f758bd587a9a6382e49
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2020-02-03 17:10:30 +02:00
Charan Teja Reddy
1cbe72d6d1 psi: print threshold time in decimal
Print the threshold registered for a trigger in decimal, which is
more readable.

Change-Id: Ia10bd233845446be62a4ea9d2232ff1ba638c50e
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-03 07:07:38 -08:00
Vinayak Menon
82d43a89ab psi: use proper accessor
Use proper accessor for high watermark access.

Change-Id: I381bc58455c55c33ebaf2e87dc5ad79131f2f5b5
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-03 07:05:39 -08:00
Merugu Tharun Kumar
d13d494e73 msm: adsprpc: Separate header and non-ion copy buffer
Separate header buffer and non-ion copy buffers allocation
to avoid virtual address over allocation and
some improvement in latency with non-ion buffers.

Change-Id: I9f5e3bbb974dc7b1db92e386b980fd2d8b4f08aa
Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Signed-off-by: Merugu Tharun Kumar <mtharu@codeaurora.org>
2020-02-03 15:35:49 +05:30