mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
nvdla: kmd: set DMA direction based on access type
Based on access permission requested through pin, DMA direction is set. This allows setting a reduced access permission for DLA firmware and/or hardware. Jira DLA-5775 Change-Id: Ie28e9da87325f36de12269eab1487407f6272053 Signed-off-by: Arvind M <am@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2682040 Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-by: Praveen K <kpraveen@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Ken Adams <kadams@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Laxman Dewangan
parent
1c9a3507d5
commit
3349513ab1
@@ -75,6 +75,10 @@ struct nvdla_ping_args {
|
||||
struct nvdla_mem_share_handle {
|
||||
__u32 share_id;
|
||||
__u32 offset;
|
||||
#define NVDLA_MEM_ACCESS_NONE (0U)
|
||||
#define NVDLA_MEM_ACCESS_READ (1U << 0U)
|
||||
#define NVDLA_MEM_ACCESS_WRITE (1U << 1U)
|
||||
#define NVDLA_MEM_ACCESS_READ_WRITE (NVDLA_MEM_ACCESS_READ | NVDLA_MEM_ACCESS_WRITE)
|
||||
__u32 access_flags;
|
||||
__u32 import_id;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user