Skip to content
Commit 3da211a1 authored by Aneesh Kumar K.V (Arm)'s avatar Aneesh Kumar K.V (Arm)
Browse files

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: default avatarAneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
parent a0793d51
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment