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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
This change enables TouchScreen config for QRD holi target.
Change-Id: Ie56f53cbfe858c5b74502dc419bda57b060f767d
Signed-off-by: Fei Mao <feim1@codeaurora.org>
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>
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>
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>
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>
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>
This change adds support for WCN399x series BT SoC's.
Change-Id: If7ad4e84eeb46adb123f3f5647cefa6841c94dee
Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Add debug cc measure nodes for Sdxlemur to support
debugfs clk measure.
Change-Id: I634b6e2914e13ad829cb4887028802047383ccea
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
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>
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>
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>