aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0138-drm-radeon-Add-ATC-VMID-PASID-functions-to-kfd-kgd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0138-drm-radeon-Add-ATC-VMID-PASID-functions-to-kfd-kgd.patch')
-rw-r--r--common/recipes-kernel/linux/files/0138-drm-radeon-Add-ATC-VMID-PASID-functions-to-kfd-kgd.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0138-drm-radeon-Add-ATC-VMID-PASID-functions-to-kfd-kgd.patch b/common/recipes-kernel/linux/files/0138-drm-radeon-Add-ATC-VMID-PASID-functions-to-kfd-kgd.patch
new file mode 100644
index 00000000..3365be5d
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0138-drm-radeon-Add-ATC-VMID-PASID-functions-to-kfd-kgd.patch
@@ -0,0 +1,42 @@
+From edad40239ffcaafd7eb56e4060d472aa5af2df21 Mon Sep 17 00:00:00 2001
+From: Alexey Skidanov <Alexey.Skidanov@amd.com>
+Date: Tue, 19 May 2015 19:25:01 +0300
+Subject: [PATCH 0138/1050] 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>
+---
+ drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
+index afde1b7..9080daa 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 {
+ uint32_t (*address_watch_get_offset)(struct kgd_dev *kgd,
+ unsigned int watch_point_id,
+ unsigned int reg_offset);
++ bool (*get_atc_vmid_pasid_mapping_valid)(
++ struct kgd_dev *kgd,
++ uint8_t vmid);
++ uint16_t (*get_atc_vmid_pasid_mapping_pasid)(
++ struct kgd_dev *kgd,
++ uint8_t vmid);
++ void (*write_vmid_invalidate_request)(struct kgd_dev *kgd,
++ uint8_t vmid);
+
+ uint16_t (*get_fw_version)(struct kgd_dev *kgd,
+ enum kgd_engine_type type);
+--
+1.9.1
+