drm/amdkfd: Use gpu_offset for user queue's wptr
authorYuBiao Wang <YuBiao.Wang@amd.com>
Fri, 15 Sep 2023 02:47:50 +0000 (10:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Sep 2023 21:30:42 +0000 (17:30 -0400)
commitcc39f9ccb82426e576734b493e1777ea01b144a8
treed6ea9a74c7da837234406bf5c123fa162d74e998
parent2de19022c5d7ff519dd5b9690f7713267bd1abfe
drm/amdkfd: Use gpu_offset for user queue's wptr

Directly use tbo's start address will miss the domain start offset. Need
to use gpu_offset instead.

Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c