Commit graph

888,450 commits

Author SHA1 Message Date
qctecmdr
1fee83940f Merge "arm64: defconfig: Disable LSE_ATOMIC for holi target" 2020-08-02 12:46:03 -07:00
qctecmdr
31f2100c3c Merge "iommu/arm-smmu: Support client configured dynamic domains only in QGKI" 2020-08-02 12:46:03 -07:00
qctecmdr
552f518a28 Merge "msm: kgsl: Update pagefault policy when KGSL_STATE_ACTIVE" 2020-08-02 12:46:02 -07:00
qctecmdr
790840acae Merge "ABI: Update whitelist for arch timer" 2020-08-02 12:46:02 -07:00
qctecmdr
b0c199468a Merge "usb: misc: nb7vpq904m: support 4 lanes display" 2020-08-02 12:46:02 -07:00
qctecmdr
e9ba39aef7 Merge "arm64: defconfig: Enable interconnect driver for sdxlemur" 2020-08-02 12:46:01 -07:00
qctecmdr
2d45ba2f8c Merge "msm: adsprpc: Allow kernel and static handle contexts" 2020-08-02 12:46:01 -07:00
Mayank Grover
8eb897e6a6 arm64: defconfig: Disable LSE_ATOMIC for holi target
LSE_ATOMIC is not supported for holi targets.
Change to disable LSE atomic operations, which
may result in crash for non-cacheable memory atomic
access.

Change-Id: Ibe2aba59de3b907908bae99f9f1cd92e128f348d
Signed-off-by: Ashish Bhimanpalliwar <abhiman@codeaurora.org>
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
2020-08-02 18:25:12 +05:30
Yuanfang Zhang
cbfc1dfde8 defconfig: Disable CTI save function on perf build for holi
Disable CTI save function on perf build to avoid the power and performance
issue.

Change-Id: Ie656b6e911c841b134a78cba0fc5ba089a3deffc
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-08-02 18:20:32 +05:30
Raghavendra Kakarla
94344bd445 defconfig: Disable the CONFIG_ARM_CPUILDE_PSCI for holi
for qgki, as we are using the lpm-levels driver for our core
and cluster lpms so disbaling the CONFIG_ARM_CPUILDE_PSCI for
holi in qgki config.

Change-Id: Ie9e40d5fb4ef7324e2c556cea4db26d63ca1ab3e
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-08-02 18:15:43 +05:30
Sriharsha Allenki
a75b1261de defconfig: holi-gki: Enable various configfs functions
Enable various USB CONFIGFS driver modules that add
support for NCM, CCID, CDEV, and GSI and support
for USB host mode video devices as well.

Also, enable the driver module to support USB PHY
and low power audio as well.

Change-Id: Icecd4af4be776f2b8b31677287a086cd6788a3b8
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-08-02 18:11:13 +05:30
qctecmdr
b6aab13b4e Merge "leds: qpnp-flash-v2: Convert power_supply properties to iio" 2020-08-02 02:57:22 -07:00
qctecmdr
c493a193b0 Merge "scsi: ufs: Configure Vccq/Vccq2 with supplied load in LPM" 2020-08-02 02:57:21 -07:00
qctecmdr
2175496d8c Merge "interconnect: qcom: Add USB3 master for Holi" 2020-08-02 02:57:21 -07:00
Jishnu Prakash
4866e3fefd arm64: defconfig: Enable PMIC drivers required for holi
Enable PMIC drivers required for holi. Correct some existing
PMIC defconfigs.

Change-Id: Iabbcc7ccb0d18dc4853cd32753a41a82a2c3d815
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-08-01 22:55:08 -07:00
qctecmdr
5756e32237 Merge "sound: usb: Fix error handling path" 2020-08-01 20:06:46 -07:00
qctecmdr
a8cbc18ef6 Merge "iommu/iommu-logger: Log IOMMU client name in debug structures" 2020-08-01 20:06:45 -07:00
qctecmdr
66641c7b90 Merge "msm: kgsl: Don't map DDR as strongly ordered" 2020-08-01 20:06:45 -07:00
Odelu Kukatla
bfc522e814 interconnect: qcom: Add USB3 master for Holi
Add USB3 master so that client can vote for bandwidth
on Holi.

Change-Id: I37661eda4febdff619a703f423aca957f91347b5
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-08-01 11:09:10 -07:00
Odelu Kukatla
1a9b237caa icc: dt-bindings: Add USB3 master ID for Holi
Add USB3 master ID for Holi so that client can vote
for bandwidth.

Change-Id: Ied8597df5bb86989657d8493816c4a882b898b3f
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-08-01 20:19:22 +05:30
Saurabh Sahu
894fef24b2 arm64: defconfig: Add support for clock/CPUFREQHW in HOLI
Enable GCC, GPUCC, DISPCC, CLK_SMD_RPM, DEBUGCC and CPUFREQ_HW for HOLI.

Change-Id: I2b06341da3a815bc33b0d45a5dcd8cada632be6b
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
2020-08-01 15:25:18 +05:30
qctecmdr
8380023f87 Merge "arm64: defconfig: Enabled download/reboot reason drivers for Lahaina" 2020-07-31 18:29:40 -07:00
Sureshnaidu Laveti
e4136a51c4 ABI: Update whitelist for arch timer
Update whitelist for arch_timer_read_counter
export symbol.

Change-Id: I274eede68d7d82d3ba9f30f2024974ddc7b00afa
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
2020-07-31 15:04:17 -07:00
Naveen Yadav
b398c2138a arm64: defconfig: Enable interconnect driver for sdxlemur
Enable sdxlemur interconnect driver so that consumers are
able to obtain their path handles for voting required bandwidths.

Change-Id: I553fa47819bd1e78f22ac10ab3a6420449bb4925
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-07-31 15:41:23 +05:30
qctecmdr
63a58ef9b3 Merge "defconfig: sdxlemur: enable QCOM PCIe drivers" 2020-07-30 19:46:43 -07:00
qctecmdr
1807fa0375 Merge "msm: kgsl: Fix possible use-after-free while adding context to active list" 2020-07-30 19:46:42 -07:00
qctecmdr
7cbd5863ce Merge "arm64: enable internal regdb for holi" 2020-07-30 19:46:42 -07:00
qctecmdr
08de85d630 Merge "soc: qcom: eud: Enable EUD IRQs by default" 2020-07-30 19:46:42 -07:00
qctecmdr
cb45ce8074 Merge "pinctrl: qcom: Update GPIO to PDC wakeirq map for shima" 2020-07-30 19:46:41 -07:00
qctecmdr
0b14e1a09f Merge "usb: dwc3-msm: Add eud to MODULE_SOFTDEP" 2020-07-30 19:46:41 -07:00
Isaac J. Manjarres
778d88fe9b iommu/iommu-logger: Log IOMMU client name in debug structures
Log IOMMU client name in debug structures so that tools can
directly read the IOMMU client name without having to access
other structures outside of the IOMMU debug attachments structure.

Change-Id: I36c13fd63e6ca7260b69d01573126e276eb5835b
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-07-30 16:29:11 -07:00
Jordan Crouse
4e3ff7f6ed msm: kgsl: Don't map DDR as strongly ordered
Don't map DDR memory as strongly ordered because it makes the memory
controller sad. All we really care about is the cache characteristics
and write-combine is the same as far as those are concerned.

Change-Id: Ic0dedbad30785c8d7c24ad3249413139593029f0
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:19 -06:00
Jordan Crouse
9222a3588a msm: kgsl: Don't print pagefault debugging in global space
Don't print pagefault debugging in global space to avoid giving
away buffer addresses.

Change-Id: Ic0dedbad7a66aca1bd5b678aac0ddae6a8612f1c
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:18 -06:00
Jordan Crouse
2460bec971 msm: kgsl: Make sure that IB addresses are dword aligned
All IB GPU addresses should be dword aligned. Enforce that in software
to keep invalid addresses from bothering the CP.

Change-Id: Ic0dedbad2298ebbd20ca1b575b8e36dcbf5a1fbe
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:18 -06:00
Jordan Crouse
7b96268e45 msm: kgsl: Add back apriv bit for legacy targets
Commit ef5440e7b8 ("msm: kgsl: Remove nonsense around the a5xx and a6xx
SMMU table update") removed a lot of the cruft around a pagetable update
but unfortunately legacy targets still needed APRIV to write to the
pagetable_desc memory so add that part back in.

Change-Id: Ic0dedbad71544eaaf77efe1d523c9bf533cb4973
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:17 -06:00
Jordan Crouse
b2e689c2c7 msm: kgsl: Limit the HFI error log to 16 characters
The HFI error message has a 16 character error string attached. We should
not trust that the error string is properly formatted with a null
character at the end. Set the string precision to ensure that we only
print up to 16 characters of the payload.

Change-Id: Ic0dedbad1b2aebef1feb3f9f7f531869e96599e6
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:17 -06:00
Urvashi Agrawal
cd2e264ddf msm: kgsl: Initialize CP engine before loading the zap shader
If CP is not initialized and zap shader loading fails the GMU IFPC state
machine is uninitialized which causes unwanted mess. Reverse the order
of CP_INIT and zap to handle the situation gracefully.

Change-Id: I062e4c7febd8ee11099bae1b58c579851a43e8bd
Signed-off-by: Urvashi Agrawal <urvaagra@codeaurora.org>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:16 -06:00
Jordan Crouse
8e84207644 msm: kgsl: Detect missing per-process pagetable support and fallback
Per-process pagetable support might be disabled in the arm-smmu driver for
any number of reasons but we won't know it until we try to create our
first dynamic domain. If enabling the dynamic domain returns -EOPNOTSUPP
then disable per-process pagetables and fall back to global pagetables.

Also, demote a WARN to a log-once message when the arm-smmu driver doesn't
support the system cache no-write-allocate tag.

Change-Id: Ic0dedbadb66fc862eeb9cd585ade9edc1d178c77
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:16 -06:00
qctecmdr
5acb608571 Merge "Bluetooth: Add support for WCN399x series BT SoC" 2020-07-30 11:23:57 -07:00
qctecmdr
668fc75dda Merge "ABI: Add clock API's to GKI qcom whitelist" 2020-07-30 11:23:56 -07:00
qctecmdr
94380d39bc Merge "taskstats: extended taskstats2 with acct fields" 2020-07-30 11:23:56 -07:00
qctecmdr
167507760d Merge "usb: dwc3: gadget: Check controller status with endpoint enable/disable" 2020-07-30 11:23:55 -07:00
Pratham Pratap
6c7f709360 sound: usb: Fix error handling path
Commit 2733ec307cd5 ("sound: usb: Clear in_use if wait_event
fails while disconnect") added ENODEV check with EINVAL in the
error path if chip is removed while handling uaudio stream request.
Instead, both the error codes should be checked exclusively in the
return path to avoid NULL pointer access.

Change-Id: Iebf12b6f13fc6a22c679ed3482759c9173004bb8
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-07-30 08:54:37 -07:00
Sriharsha Allenki
c49b56e4f7 sound: usb: Fix possible race between release and cleanup
In a case where the physical disconnect of headset
and the disable call from QMI race with each other,
there is a possibility that usb_sec_event_ring_cleanup
is called at the same time from uaudio_dev_cleanup
and uaudio_dev_release leading to kernel panic.
Fix this by seriailizing both these calls using
the dev_lock mutex.

Change-Id: I88abccca704786446e0826fc60994c9580828156
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-07-30 08:54:22 -07:00
Pratham Pratap
d88ee8d05d sound: usb: Clear in_use if wait_event fails while disconnect
Commit 02ec74e63187 ("sound: usb: Ensure proper cleanup of uaudio_dev
under all scenarios") fixed cyclic dependency between uaudio_dev_release
and uaudio_dev_cleanup by allowing dev_cleanup to happen if wait_event
of in_use to be cleared fails. Instead, clear in_use in disconnect_cb
if wait_event fails and don't rely on dev_release to happen, to maintain
the serialization of these calls.

Change-Id: If779dffd972334e050686a1865ed8f63b8e8655d
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-07-30 08:54:05 -07:00
Pratham Pratap
dbe0a9a0f5 sound: usb: Ensure proper cleanup of uaudio_dev under all scenarios
Consider a case where chip is freed before disabling the audio
channel. This can happen when usb_audio_disconnect is called due
to USB DevFS proc_disconnect_claim ioctl. usb_audio_disconnect
will call uaudio_disconnect_cb which will wait for in_use to be
false to cleanup the uaudio_dev. If in_use never becomes false
and the wait_event is interrupted by some other signal then driver
bails out esrly from here and doesn't cleanup the uaudio_dev. Since
uaudio_dev_release is responsible for clearing the in_use based on
stream disable call, fix the cyclic dependency here on
uaudio_dev_release and uaudio_dev_cleanup by adding timeout in
wait_event and allowing dev_cleanup to happen from uaudio_disconnect_cb.
If disable stream request comes after this, handle_uaudio_stream_req
will still go ahead and try to find substream of the card but will
go to error path since card is already disconnected. This will set
the return value to -ENODEV but in the error path driver is not
checking for the correct return value and trying to access chip again.
Fix this by adding one more check for -ENODEV in the error handling path.

Change-Id: Ie11ad162f02c46878eb2663bf21cbafa54a62b0a
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-07-30 08:53:42 -07:00
qctecmdr
87ff01a781 Merge "msm: kgsl: Unbind adreno from component device for nogmu" 2020-07-30 08:24:43 -07:00
qctecmdr
a63267620c Merge "spi: spi-msm-geni: Add support in SPI driver for Trusted VM" 2020-07-30 08:24:43 -07:00
qctecmdr
df78d1100b Merge "defconfig: Enable TouchScreen for QRD holi target" 2020-07-30 08:24:42 -07:00
Kiran Gunda
fce85e0b42 leds: qpnp-flash-v2: Convert power_supply properties to iio
Convert "main_psy" and "bms" power_supply properties to iio
channels. Also remove the revid support and identify the
pmic type based on the driver match data.

Change-Id: I70910fc502cfb1e4cd7906eca234e3a44d2f9c84
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2020-07-30 04:03:45 -07:00