Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 316b14b5 authored by Hemant Kumar's avatar Hemant Kumar Committed by Mayank Rana
Browse files

sound: usb: Handle iova map/unmap properly for SMMU stage 1



When SMMU stage 1 is enabled, sg table entry may return different
page size entries for a xfer buffer. Calling uaudio_get_iova()
for each table entry may result into non-contiguous iova address
mapped for one xfer buffer. This results into page fault when
remote entity tries to access unmapped iova hole. Fix this issue
by calling uaudio_get_iova() first to get contiguous iova and then
map entire iova region by going over sg table entry. Also replace
print format %pa to %pK.

Change-Id: I7c74f25e6b76cf994717ca069948ac08631b5cd7
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent d3b9791e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment