summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorHawking Zhang <Hawking.Zhang@amd.com>2025-03-16 14:04:51 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-12-08 22:12:01 +0300
commit1fee035bee8d99436cde73b5727c8a19ac9534b6 (patch)
tree863415111c09ae51b06d70fa0d05b11cd86a9e3f /drivers/gpu
parentf8692d2f9ae0a48bf378cc33717772c5f940ce0d (diff)
downloadlinux-1fee035bee8d99436cde73b5727c8a19ac9534b6.tar.xz
drm/amdgpu: Include the correct pkt header for gfx v12_1
GFX v12_1 should use packets defined in gfx_v12_1_pkt header file. Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Likun Gao <Likun.Gao@amd.com> Acked-by: Feifei Xu <Feifei.Xu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c1
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v12_1_pkt.h8
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
index 8d281fb54b6b..b2702287536f 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
@@ -40,7 +40,6 @@
#include "ivsrcid/gfx/irqsrcs_gfx_11_0_0.h"
#include "soc15.h"
-#include "soc15d.h"
#include "clearstate_gfx12.h"
#include "v12_structs.h"
#include "gfx_v12_1.h"
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1_pkt.h b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1_pkt.h
index f58ce882f2ae..9a5c82c8db53 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1_pkt.h
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1_pkt.h
@@ -369,9 +369,11 @@
#define PACKET3_HDP_FLUSH 0x95
#define PACKET3_COPY_DATA_RB 0x96
#define PACKET3_INVALIDATE_TLBS 0x98
-# define PACKET3_INVALIDATE_TLBS_DST_SEL(x) ((x) << 0)
-# define PACKET3_INVALIDATE_TLBS_ALL_HUB(x) ((x) << 4)
-# define PACKET3_INVALIDATE_TLBS_PASID(x) ((x) << 5)
+#define PACKET3_INVALIDATE_TLBS_DST_SEL(x) ((x) << 0)
+#define PACKET3_INVALIDATE_TLBS_ALL_HUB(x) ((x) << 4)
+#define PACKET3_INVALIDATE_TLBS_PASID(x) ((x) << 5)
+#define PACKET3_INVALIDATE_TLBS_FLUSH_TYPE(x) ((x) << 29)
+
#define PACKET3_AQL_PACKET 0x99
#define PACKET3_DMA_DATA_FILL_MULTI 0x9A
#define PACKET3_SET_SH_REG_INDEX 0x9B