aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include
diff options
context:
space:
mode:
authorAlexey Skidanov <Alexey.Skidanov@amd.com>2015-05-19 12:25:01 -0400
committerOded Gabbay <oded.gabbay@gmail.com>2015-06-03 04:34:46 -0400
commitedad40239ffcaafd7eb56e4060d472aa5af2df21 (patch)
treef84acc8cabbce7fcd815c5f95991949ee0805f6e /drivers/gpu/drm/amd/include
parentf8bd13338a9a42358158954251969e66934ec3d1 (diff)
drm/radeon: Add ATC VMID<-->PASID functions to kfd->kgd
This patch adds three new interfaces to kfd2kgd interface file of radeon. The interfaces are: - Check if a specific VMID has a valid PASID mapping - Retrieve the PASID which is mapped to a specific VMID - Issue a VMID invalidation request to the ATC Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include')
-rw-r--r--drivers/gpu/drm/amd/include/kgd_kfd_interface.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
index afde1b75eeee..9080daa116b6 100644
--- a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
+++ b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
@@ -175,6 +175,14 @@ struct kfd2kgd_calls {
175 uint32_t (*address_watch_get_offset)(struct kgd_dev *kgd, 175 uint32_t (*address_watch_get_offset)(struct kgd_dev *kgd,
176 unsigned int watch_point_id, 176 unsigned int watch_point_id,
177 unsigned int reg_offset); 177 unsigned int reg_offset);
178 bool (*get_atc_vmid_pasid_mapping_valid)(
179 struct kgd_dev *kgd,
180 uint8_t vmid);
181 uint16_t (*get_atc_vmid_pasid_mapping_pasid)(
182 struct kgd_dev *kgd,
183 uint8_t vmid);
184 void (*write_vmid_invalidate_request)(struct kgd_dev *kgd,
185 uint8_t vmid);
178 186
179 uint16_t (*get_fw_version)(struct kgd_dev *kgd, 187 uint16_t (*get_fw_version)(struct kgd_dev *kgd,
180 enum kgd_engine_type type); 188 enum kgd_engine_type type);