[PATCH 1/2] amdgpu: add new VA operations CLEAR and REPLACE

Nicolai Hähnle nhaehnle at gmail.com
Tue Mar 21 13:30:10 UTC 2017


This should use the proper procedure for updating amdgpu_drm.h, as 
explained in include/drm/README. I can take care of this as soon as all 
the kernel patches for PRT are in a tree that doesn't rebase (i.e. 
agd5f/drm-next-4.12 or airlied/drm-next).

Nicolai

On 17.03.2017 06:59, Junwei Zhang wrote:
> Signed-off-by: Junwei Zhang <Jerry.Zhang at amd.com>
> ---
>  include/drm/amdgpu_drm.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h
> index 7002dc4..a73b40a 100644
> --- a/include/drm/amdgpu_drm.h
> +++ b/include/drm/amdgpu_drm.h
> @@ -410,6 +410,8 @@ struct drm_amdgpu_gem_op {
>
>  #define AMDGPU_VA_OP_MAP			1
>  #define AMDGPU_VA_OP_UNMAP			2
> +#define AMDGPU_VA_OP_CLEAR			3
> +#define AMDGPU_VA_OP_REPLACE			4
>
>  /* Delay the page table update till the next CS */
>  #define AMDGPU_VM_DELAY_UPDATE		(1 << 0)
>



More information about the amd-gfx mailing list