mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: vgpu: add platform atomic support
Set platform atomic attribute flag. bug 200473147 Change-Id: I06fd0cf363886922ad5145837004d04e35383470 Signed-off-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2016078 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Kyle Guo <kyleg@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Ankur Kishore <ankkishore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
251e3eaa80
commit
ef5aac37d9
@@ -189,6 +189,10 @@ u64 vgpu_gp10b_locked_gmmu_map(struct vm_gk20a *vm,
|
||||
if (flags & NVGPU_VM_MAP_L3_ALLOC) {
|
||||
p->flags |= TEGRA_VGPU_MAP_L3_ALLOC;
|
||||
}
|
||||
if (flags & NVGPU_VM_MAP_PLATFORM_ATOMIC) {
|
||||
p->flags |= TEGRA_VGPU_MAP_PLATFORM_ATOMIC;
|
||||
}
|
||||
|
||||
p->prot = prot;
|
||||
p->ctag_offset = ctag_offset;
|
||||
p->clear_ctags = clear_ctags;
|
||||
|
||||
@@ -174,6 +174,7 @@ struct tegra_vgpu_as_map_params {
|
||||
#define TEGRA_VGPU_MAP_CACHEABLE (1 << 0)
|
||||
#define TEGRA_VGPU_MAP_IO_COHERENT (1 << 1)
|
||||
#define TEGRA_VGPU_MAP_L3_ALLOC (1 << 2)
|
||||
#define TEGRA_VGPU_MAP_PLATFORM_ATOMIC (1 << 3)
|
||||
|
||||
struct tegra_vgpu_as_map_ex_params {
|
||||
u64 handle;
|
||||
|
||||
Reference in New Issue
Block a user