]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c390e5fe4244df9fc374ee600e6cd63693824a0
treefaeae899376a42e5c19c83503efe4a7458eea17f
parent2d4d19d0ae5b6122c0380f259767cc00070224ef
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