drm/amdkfd: Enable SVM on Native mode
authorMukul Joshi <mukul.joshi@amd.com>
Tue, 31 Jan 2023 16:23:50 +0000 (11:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:55:35 +0000 (09:55 -0400)
commitf4d8b6f5c61ab5e98258bd0072d733741c76bd8d
tree13a16b9f3250d473d739c42af7139786bf3e53bf
parent01ef47477d05b784ab6ac26fa6878987eda436f1
drm/amdkfd: Enable SVM on Native mode

This patch enables SVM capability on GFX9.4.3 when
run in Native mode. It also sets best_prefetch and
best_restore locations to CPU as there is no VRAM.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Acked-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h