drm/amdkfd: Avoid using doorbell_off as offset in process doorbell pages
authorYong Zhao <Yong.Zhao@amd.com>
Tue, 15 Jan 2019 18:58:57 +0000 (13:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Nov 2019 20:29:45 +0000 (15:29 -0500)
commite47a8b5223033e4dea5e68a228783e3c5ae0b623
treefaeae899376a42e5c19c83503efe4a7458eea17f
parent339903fa989b7a0c9fc26e0f35e36df7e110d737
drm/amdkfd: Avoid using doorbell_off as offset in process doorbell pages

dorbell_off in the queue properties is mainly used for the doorbell dw
offset in pci bar. We should not set it to the doorbell byte offset in
process doorbell pages. This makes the code much easier to read.

Signed-off-by: Yong Zhao <Yong.Zhao@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_dbgdev.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c