mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:35:20 +03:00
gpu: nvgpu: remove IO_COHERENT flag
This patch removes the IO_COHERENT flag as IO coherence is the default setting. Bug 3959027 Change-Id: I9800c2b8b161f7bdc2d6856639dd03488881882d Signed-off-by: Martin Radev <mradev@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2887630 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
81d95456b9
commit
924dd58da0
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -124,7 +124,7 @@ static struct test_parameters test_iommu_sysmem_coh = {
|
||||
.aperture = APERTURE_SYSMEM,
|
||||
.is_iommuable = true,
|
||||
.rw_flag = gk20a_mem_flag_none,
|
||||
.flags = NVGPU_VM_MAP_CACHEABLE | NVGPU_VM_MAP_IO_COHERENT,
|
||||
.flags = NVGPU_VM_MAP_CACHEABLE,
|
||||
.priv = false,
|
||||
};
|
||||
|
||||
@@ -760,10 +760,6 @@ static u64 gmmu_map_advanced(struct unit_module *m, struct gk20a *g,
|
||||
mem->cpu_va = NULL;
|
||||
}
|
||||
|
||||
if (nvgpu_is_enabled(g, NVGPU_USE_COHERENT_SYSMEM)) {
|
||||
params->flags |= NVGPU_VM_MAP_IO_COHERENT;
|
||||
}
|
||||
|
||||
nvgpu_mutex_acquire(&vm->update_gmmu_lock);
|
||||
|
||||
vaddr = g->ops.mm.gmmu.map(vm, (u64) mem->cpu_va,
|
||||
|
||||
Reference in New Issue
Block a user