Commit Graph

888881 Commits

Author SHA1 Message Date
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
Kiran Gunda
40ccd6775f leds: qpnp-flash-v2: Add support for qpnp-flash-v2 driver
QPNP Flash v2 LED driver supports the flash LED peripheral on
QTI PMICs like PMI8998, PM8150L and their derivatives to support
camera flash operation.

This is taken as a snapshot from msm-4.19 kernel
'commit 0873aa6e66d4 (" Merge "msm: ADSPRPC: Size check before
allocating memory from DMA")'.

Change-Id: If18cd60ba0e2ca2c463996e65216f02d21e6fd76
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2020-07-30 16:30:47 +05:30
Maulik Shah
45bbc04db8 pinctrl: qcom: Update GPIO to PDC wakeirq map for shima
Update latest GPIO to PDC wakeirq map.

Change-Id: I3cca3fcb9f5e4f58b8846d65858ed36b58d3c732
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-07-30 15:18:16 +05:30
qctecmdr
9644a106b1 Merge "dma-mapping-fast: Fix sg-list length calculation in fast_smmu_unmap_sg()" 2020-07-30 02:34:56 -07:00
qctecmdr
dc03d0a5f7 Merge "qseecom: Check error when allocating coherent buffer" 2020-07-30 02:34:56 -07:00
qctecmdr
68196a8c6a Merge "leds: qti-flash: Allow dynamic symmetry current redistribution" 2020-07-30 02:34:55 -07:00
qctecmdr
230b741679 Merge "firmware: qcom: Remove garbage characters from qsee log" 2020-07-30 02:34:55 -07:00
qctecmdr
10d419bbd1 Merge "driver: pinctrl: Add reserved GPIOs for Holi" 2020-07-30 02:34:55 -07:00
Neeraja P
45f301e539 msm: kgsl: Fix possible use-after-free while adding context to active list
Consider a scenario where a context is valid when the check is made in
adreno_dispatcher_queue_cmds(), but by the time we reach _track_context(),
context has been detached. We would try to delete the entry from the
active context list as part of detaching the context though the entry is
not added yet. Now in _track_context() the context is actually added. When
the context is finally destroyed, we would be left with invalid entry in
the list. Next time when a context is added, an attempt would be made to
use a freed entry. Fix this by moving the entry deletion part under
drawctxt lock.

Change-Id: Idab7cbf10987598b3e6395b2d50c20d1990d1f02
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
Signed-off-by: Neeraja P <neerp@codeaurora.org>
2020-07-30 13:39:08 +05:30
Fei Mao
20ac668cf8 defconfig: Enable TouchScreen for QRD holi target
This change enables TouchScreen config for QRD holi target.

Change-Id: Ie56f53cbfe858c5b74502dc419bda57b060f767d
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-07-29 23:56:18 -07:00
Aasir Rasheed
a750c69d6c arm64: enable internal regdb for holi
Enable internal wireless regulatory database.
This is needed for platforms without CRDA.

Change-Id: I5dd7259ae924ef64b74082747300ce3af8fe960a
Signed-off-by: Aasir Rasheed <arasheed@codeaurora.org>
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2020-07-30 12:03:01 +05:30
Lina Iyer
2f588eeb08 Revert "soc: qcom: rpmh: Update dirty flag only when data changes"
This reverts commit 9edb7370f8.

This is a preparation change for merging android-5.4.54 into
msm-5.4 branch. Revert this change to continue using existing
driver that is already supporting same functionality being
added in this change.

Change-Id: I017becf75b2e5383902dd91e33e94702127be94f
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-07-29 22:31:11 -07:00
Lina Iyer
29379006b1 Revert "soc: qcom: rpmh: Invalidate SLEEP and WAKE TCSes before flushing new data"
This reverts commit 9e56b18ca5.

This is a preparation change for merging android-5.4.54 into
msm-5.4 branch. Revert this change to continue using existing
driver that is already supporting same functionality being
added in this change.

Change-Id: I32ecd526576d56f3b1be206298dd7eb414c23f58
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-07-29 22:30:50 -07:00
Lina Iyer
944e9a969f Revert "soc: qcom: rpmh-rsc: Clear active mode configuration for wake TCS"
This reverts commit e65ee5ad89.

This is a preparation change for merging android-5.4.54 into
msm-5.4 branch. Revert this change to continue using existing
driver that is already supporting same functionality being
added in this change.

Change-Id: I84e2a4da6b396bddb5c5780fd7c1899f475ce208
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-07-29 22:30:25 -07:00
Lina Iyer
a82c408278 Revert "soc: qcom: rpmh-rsc: Allow using free WAKE TCS for active request"
This reverts commit 6b1aaceb0d.

This is a preparation change for merging android-5.4.54 into
msm-5.4 branch. Revert this change to continue using existing
driver that is already supporting same functionality being
added in this change.

Change-Id: I60ffa3a35769ee915ef27715eac90aaeade581c6
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-07-29 22:29:51 -07:00
Lina Iyer
14db994e16 Revert "soc: qcom: rpmh: Dirt can only make you dirtier, not cleaner"
This reverts commit 4f80cb2c78.

This is a preparation change for merging android-5.4.54 into
msm-5.4 branch. Revert this change to continue using existing
driver that is already supporting same functionality being
added in this change.

Change-Id: I783632301c9923c766a35e0341b56469a8daed35
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-07-29 22:26:18 -07:00
Balakrishna Godavarthi
cd121c127d Bluetooth: Add support for WCN399x series BT SoC
This change adds support for WCN399x series BT SoC's.

Change-Id: If7ad4e84eeb46adb123f3f5647cefa6841c94dee
Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
2020-07-29 21:55:56 -07:00
Naveen Yadav
7a3d42b67b clk: qcom: Add debug cc clk measure nodes for SDXLEMUR
Add debug cc measure nodes for Sdxlemur to support
debugfs clk measure.

Change-Id: I634b6e2914e13ad829cb4887028802047383ccea
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-07-30 09:47:29 +05:30
Naveen Yadav
980059328b clk: qcom: gcc-sdxlemur: Add support for GCC clock driver
Add support for global clock controller for peripheral clock
clients to be able to request for the clocks.

Change-Id: I352b0e4d0ab39fe4fec0ed033e249904ebfd660a
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-07-30 09:47:17 +05:30
qctecmdr
4707ea1d4a Merge "dwc3: trace: Remove unused field with dwc3 request tracing" 2020-07-29 21:16:08 -07:00
qctecmdr
93c278efce Merge "msm: cvp: Dump testbus for CVP debugging" 2020-07-29 21:16:07 -07:00
qctecmdr
30843159b0 Merge "msm: cvp: Relocate CVP HW PC control" 2020-07-29 21:16:07 -07:00
qctecmdr
bd56ef6d33 Merge "msm: kgsl: Enable UCHE dual command queue" 2020-07-29 21:16:07 -07:00
qctecmdr
9e3b2c7077 Merge "haven: ctrl: add nohypuart commandline parameter" 2020-07-29 21:16:06 -07:00
qctecmdr
7fd88fc597 Merge "sched/walt: Improve the scheduler" 2020-07-29 21:16:06 -07:00
qctecmdr
c50bb76a3e Merge "usb: xhci: Replace HCD_RH_RUNNING() check in xhci_stop_endpoint" 2020-07-29 21:16:06 -07:00
Mayank Grover
9aa1399eba driver: pinctrl: Add reserved GPIOs for Holi
Certain GPIOs are reserved for secure world and cannot be accessed by HLOS.
Supply "reserved_gpios" to msm_pinctrl to mark these pins as invalid.

Change-Id: I07807f37adfd6d90e7b1bdc72b2106520f378b02
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
2020-07-29 19:38:54 -07:00
AnilKumar Chimata
0ee960d80e firmware: qcom: Remove garbage characters from qsee log
Send proper buffer size to fix the garbage characters
appearing on qsee logs.

Change-Id: Ia472b6d0478399e4df81803151c4bd757266ad7d
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2020-07-29 18:28:33 -07:00
AnilKumar Chimata
547cc33976 qseecom: Check error when allocating coherent buffer
Add check to verify whether memory is allocated properly or not
and return error if its failed to allocate coherent buffer.

Change-Id: I234a637d20228d047f6fc11d374b6f13f28fed03
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2020-07-29 18:28:29 -07:00