drm/radeon: Assign VMID to PASID for IH in non-HWS mode
authorBen Goz <ben.goz@amd.com>
Wed, 17 Dec 2014 12:09:10 +0000 (14:09 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Wed, 17 Dec 2014 12:09:10 +0000 (14:09 +0200)
commitfec77bb50fd0b94cb502cd3745e8b5c4a6e9c404
treea748ee6d244279019dde3275940cf0dad0294a62
parent4c18442e536ec24cc5ca23c5bbaa80bd53020b95
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>
drivers/gpu/drm/radeon/cikd.h
drivers/gpu/drm/radeon/radeon_kfd.c