aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorXiangliang Yu <Xiangliang.Yu@amd.com>2017-02-28 04:24:52 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:55:10 -0400
commitecb2b9c698e8be7a9dbe746d794b5d5e6314e990 (patch)
tree4362f16f90a44978c0a6586ec08c16f56d3ef21e /drivers
parent468842a5e530c5f07bbd0cf790b3f3d6961b722d (diff)
drm/amdgpu/virt: add structure for MM table
Add new structure for MM table for multi media scheduler of sriov. Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Monk Liu <Monk.Liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
index 846f29c2e02e..1ee0a190b33b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
@@ -30,6 +30,12 @@
30#define AMDGPU_PASSTHROUGH_MODE (1 << 3) /* thw whole GPU is pass through for VM */ 30#define AMDGPU_PASSTHROUGH_MODE (1 << 3) /* thw whole GPU is pass through for VM */
31#define AMDGPU_SRIOV_CAPS_RUNTIME (1 << 4) /* is out of full access mode */ 31#define AMDGPU_SRIOV_CAPS_RUNTIME (1 << 4) /* is out of full access mode */
32 32
33struct amdgpu_mm_table {
34 struct amdgpu_bo *bo;
35 uint32_t *cpu_addr;
36 uint64_t gpu_addr;
37};
38
33/** 39/**
34 * struct amdgpu_virt_ops - amdgpu device virt operations 40 * struct amdgpu_virt_ops - amdgpu device virt operations
35 */ 41 */
@@ -51,6 +57,7 @@ struct amdgpu_virt {
51 struct amdgpu_irq_src ack_irq; 57 struct amdgpu_irq_src ack_irq;
52 struct amdgpu_irq_src rcv_irq; 58 struct amdgpu_irq_src rcv_irq;
53 struct work_struct flr_work; 59 struct work_struct flr_work;
60 struct amdgpu_mm_table mm_table;
54 const struct amdgpu_virt_ops *ops; 61 const struct amdgpu_virt_ops *ops;
55}; 62};
56 63