> -----Original Message-----
> From: amd-gfx [mailto:[email protected]] On Behalf
> Of Monk Liu
> Sent: Thursday, May 04, 2017 6:05 AM
> To: [email protected]
> Cc: Liu, Monk
> Subject: [PATCH 4/6] drm/amdgpu:new PM4 entry for VI/AI
> 
> TMZ package will be used for VULKAN/CHAINED-IB MCBP
> 
> Change-Id: I25b82e753d078a2e3eed53a36a40798cb74d71f9
> Signed-off-by: Monk Liu <[email protected]>

Reviewed-by: Alex Deucher <[email protected]>

> ---
>  drivers/gpu/drm/amd/amdgpu/soc15d.h | 7 +++++++
>  drivers/gpu/drm/amd/amdgpu/vid.h    | 6 ++++++
>  2 files changed, 13 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15d.h
> b/drivers/gpu/drm/amd/amdgpu/soc15d.h
> index 75403c7..0733e7d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc15d.h
> +++ b/drivers/gpu/drm/amd/amdgpu/soc15d.h
> @@ -259,6 +259,13 @@
>  #define      PACKET3_WAIT_ON_CE_COUNTER                      0x86
>  #define      PACKET3_WAIT_ON_DE_COUNTER_DIFF
>       0x88
>  #define      PACKET3_SWITCH_BUFFER                           0x8B
> +#define PACKET3_FRAME_CONTROL                                0x90
> +#                    define FRAME_CMD(x) ((x) << 28)
> +                     /*
> +                      * x=0: tmz_begin
> +                      * x=1: tmz_end
> +                      */
> +
>  #define PACKET3_SET_RESOURCES                                0xA0
>  #define PACKET3_MAP_QUEUES                           0xA2
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/vid.h
> b/drivers/gpu/drm/amd/amdgpu/vid.h
> index 5f2ab9c..a648525 100644
> --- a/drivers/gpu/drm/amd/amdgpu/vid.h
> +++ b/drivers/gpu/drm/amd/amdgpu/vid.h
> @@ -361,6 +361,12 @@
>  #define      PACKET3_WAIT_ON_CE_COUNTER                      0x86
>  #define      PACKET3_WAIT_ON_DE_COUNTER_DIFF
>       0x88
>  #define      PACKET3_SWITCH_BUFFER                           0x8B
> +#define PACKET3_FRAME_CONTROL                                0x90
> +#                    define FRAME_CMD(x) ((x) << 28)
> +                     /*
> +                      * x=0: tmz_begin
> +                      * x=1: tmz_end
> +                      */
>  #define      PACKET3_SET_RESOURCES                           0xA0
>  /* 1. header
>   * 2. CONTROL
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to