[PATCH 3/6] drm/amdgpu: remove unused vm context flags

Felix Kuehling felix.kuehling at amd.com
Thu Apr 22 16:14:11 UTC 2021


Am 2021-04-22 um 11:40 a.m. schrieb Nirmoy Das:
> Remove unused AMDGPU_VM_CONTEXT_GFX and AMDGPU_VM_CONTEXT_COMPUTE
> flags.
>
> Signed-off-by: Nirmoy Das <nirmoy.das at amd.com>

I saw this too late. Ignore my comment on the previous patch. Both
patches 2 and 3 are

Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>


> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
> index 7f07acae447b..6a9dcedfcf89 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
> @@ -121,9 +121,6 @@ struct amdgpu_bo_list_entry;
>  /* max vmids dedicated for process */
>  #define AMDGPU_VM_MAX_RESERVED_VMID	1
>  
> -#define AMDGPU_VM_CONTEXT_GFX 0
> -#define AMDGPU_VM_CONTEXT_COMPUTE 1
> -
>  /* See vm_update_mode */
>  #define AMDGPU_VM_USE_CPU_FOR_GFX (1 << 0)
>  #define AMDGPU_VM_USE_CPU_FOR_COMPUTE (1 << 1)


More information about the amd-gfx mailing list