summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/vid.h
diff options
context:
space:
mode:
authorBen Goz <ben.goz@amd.com>2014-10-07 15:43:07 +0400
committerOded Gabbay <oded.gabbay@gmail.com>2015-07-20 09:16:48 +0300
commitff758a12b45b0513dbe9905deba2a29b20412138 (patch)
tree9814e56e5d7223141310e3c06e250714f3580ddf /drivers/gpu/drm/amd/amdgpu/vid.h
parent32c22e994f44e7e5cc54b52375012311d1693b0d (diff)
downloadlinux-ff758a12b45b0513dbe9905deba2a29b20412138.tar.xz
drm/amdgpu: Add amdgpu <--> amdkfd gfx8 interface
This patch adds the gfx8 interface file between amdgpu and amdkfd. This interface file is currently in use when running on a Carrizo-based system. The interface itself is represented by a pointer to struct kfd_dev. The pointer is located inside amdgpu_device structure. All the register accesses that amdkfd need are done using this interface. This allows us to avoid direct register accesses in amdkfd proper, while also allows us to avoid locking between amdkfd and amdgpu. The single exception is the doorbells that are used in both of the drivers. However, because they are located in separate pci bar pages, the danger of sharing registers between the drivers is minimal. Having said that, we are planning to move the doorbells as well to amdgpu. Signed-off-by: Ben Goz <ben.goz@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vid.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vid.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vid.h b/drivers/gpu/drm/amd/amdgpu/vid.h
index 31bb89452e12..d98aa9d82fa1 100644
--- a/drivers/gpu/drm/amd/amdgpu/vid.h
+++ b/drivers/gpu/drm/amd/amdgpu/vid.h
@@ -66,6 +66,11 @@
#define AMDGPU_NUM_OF_VMIDS 8
+#define PIPEID(x) ((x) << 0)
+#define MEID(x) ((x) << 2)
+#define VMID(x) ((x) << 4)
+#define QUEUEID(x) ((x) << 8)
+
#define RB_BITMAP_WIDTH_PER_SH 2
#define MC_SEQ_MISC0__MT__MASK 0xf0000000