drm/amdgpu: Fix num_doorbell calculation issue
authorOak Zeng <ozeng@amd.com>
Fri, 30 Nov 2018 15:33:02 +0000 (09:33 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Nov 2018 17:01:04 +0000 (12:01 -0500)
commit88dc26e46beb964d8c4d80f7eb33bef51fc70c9a
tree9108986ee2263f72b8089c788201326425c2e8c0
parent082f0f21f71c522491a0cac4895b32bbab1b1006
drm/amdgpu: Fix num_doorbell calculation issue

When paging queue is enabled, it use the second page of doorbell.
The AMDGPU_DOORBELL64_MAX_ASSIGNMENT definition assumes all the
kernel doorbells are in the first page. So with paging queue enabled,
the total kernel doorbell range should be original num_doorbell plus
one page (0x400 in dword), not *2.

Signed-off-by: Oak Zeng <ozeng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c