tsm: Support DMA Allocation from private memory
Currently, we enforce the use of bounce buffers to ensure that memory accessed by non-secure devices is explicitly shared with the host [1]. However, for secure devices, this approach must be avoided. To achieve this, we introduce a device flag that controls whether a bounce buffer allocation is required for the device. Additionally, this flag is used to manage the top IPA bit assignment for setting up protected/unprotected IPA aliases. [1] commit fbf979a0 ("arm64: Enforce bounce buffers for realm DMA") based on changes from Alexey Kardashevskiy <aik@amd.com> Signed-off-by:Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
Loading
Please register or sign in to comment