summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/cikd.h
diff options
context:
space:
mode:
authorBen Goz <ben.goz@amd.com>2014-12-17 14:09:10 +0200
committerOded Gabbay <oded.gabbay@amd.com>2014-12-17 14:09:10 +0200
commitfec77bb50fd0b94cb502cd3745e8b5c4a6e9c404 (patch)
treea748ee6d244279019dde3275940cf0dad0294a62 /drivers/gpu/drm/radeon/cikd.h
parent4c18442e536ec24cc5ca23c5bbaa80bd53020b95 (diff)
drm/radeon: Assign VMID to PASID for IH in non-HWS mode
This patch fixes a bug in kgd_set_pasid_vmid_mapping(), where the function only updated the ATC registers (IOMMU) with the new VMID <--> PASID mapping, but didn't update the IH (Interrupt) registers. The bug only occurs when using non-HWS mode. In HWS mode, the CP automatically does the VMID <--> PASID mapping. Signed-off-by: Ben Goz <ben.goz@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/cikd.h')
-rw-r--r--drivers/gpu/drm/radeon/cikd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/cikd.h b/drivers/gpu/drm/radeon/cikd.h
index ba85986febea..03003f8a6de6 100644
--- a/drivers/gpu/drm/radeon/cikd.h
+++ b/drivers/gpu/drm/radeon/cikd.h
@@ -2156,4 +2156,6 @@
#define ATC_VM_APERTURE1_HIGH_ADDR 0x330Cu
#define ATC_VM_APERTURE1_LOW_ADDR 0x3304u
+#define IH_VMID_0_LUT 0x3D40u
+
#endif