summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
diff options
context:
space:
mode:
authorBokun Zhang <bokun.zhang@amd.com>2025-10-27 13:45:33 +0000
committerAlex Deucher <alexander.deucher@amd.com>2026-01-05 16:59:57 -0500
commit0dd72af5528a404fca78ef0cad26582d34560c9b (patch)
tree1179e44a6f9874c34fdcf29dabf5f0980902dad0 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
parent87046288e8d540a0e893fec7c452ba0e91abf362 (diff)
downloadlinux-next-0dd72af5528a404fca78ef0cad26582d34560c9b.tar.gz
linux-next-0dd72af5528a404fca78ef0cad26582d34560c9b.zip
drm/amdgpu: RLC-G VF Register Access Interface
- Implement Gfx v12.1 VFi interface under SRIOV - Redirect all RLCG interface access to new function after Gfx v12.1 v2: squash in register updates Signed-off-by: Bokun Zhang <Bokun.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
index 608d966701a4..886fbce0bfd1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
@@ -47,6 +47,15 @@
#define AMDGPU_RLCG_SCRATCH1_ADDRESS_MASK 0xFFFFF
#define AMDGPU_RLCG_SCRATCH1_ERROR_MASK 0xF000000
+#define AMDGPU_RLCG_VFI_CMD__WR 0x0
+#define AMDGPU_RLCG_VFI_CMD__RD 0x1
+
+#define AMDGPU_RLCG_VFI_STAT__BUSY 0x0
+#define AMDGPU_RLCG_VFI_STAT__DONE 0x1
+#define AMDGPU_RLCG_VFI_STAT__INV_CMD 0x2
+#define AMDGPU_RLCG_VFI_STAT__INV_ADDR 0x3
+#define AMDGPU_RLCG_VFI_STAT__ERR 0xFF
+
/* all asic after AI use this offset */
#define mmRCC_IOV_FUNC_IDENTIFIER 0xDE5
/* tonga/fiji use this offset */