drm/amdkfd: unmap VMID<-->PASID when relesing VMID (non-HWS)
authorBen Goz <ben.goz@amd.com>
Mon, 5 Jan 2015 13:48:28 +0000 (15:48 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Mon, 5 Jan 2015 13:48:28 +0000 (15:48 +0200)
commit2030664b709caa769f2b6a1d2e71d8cb343c6884
treefacf0a02465dfe022b3dd875589b5ff93beb0012
parentfec77bb50fd0b94cb502cd3745e8b5c4a6e9c404
drm/amdkfd: unmap VMID<-->PASID when relesing VMID (non-HWS)

This patch fixes a bug where deallocate_vmid() didn't actually unmap the
VMID<-->PASID mapping (in the registers).
That can cause undefined behavior.

This bug only occurs in non-HWS mode.

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/amd/amdkfd/kfd_device_queue_manager.c