drm/amdkfd: Use kfd fd to mmap mmio
authorOak Zeng <Oak.Zeng@amd.com>
Thu, 23 May 2019 22:12:41 +0000 (17:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 May 2019 19:43:51 +0000 (14:43 -0500)
commitd33ea570bd20f7ac7abea4f56f1df299e179356b
treefd0d49a62d4efb159b071e64680be7192f0166ac
parentc8bdf2b63e5b6b31b3b4826b8e87c0c2f6b650ff
drm/amdkfd: Use kfd fd to mmap mmio

TTM doesn't support CPU mapping of sg type bo (under which
mmio bo is created). Switch mmaping of mmio page to kfd
device file.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Acked-by: Christian Konig <christian.koenig@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_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h