OSDN Git Service

drm/amdgpu: Doorbell index initialization for ASICs before vega10
authorOak Zeng <ozeng@amd.com>
Mon, 19 Nov 2018 15:51:20 +0000 (09:51 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Nov 2018 20:55:32 +0000 (15:55 -0500)
commit4e2c1ac2027d1ad99109b676450db8759779222c
treea1758f7aaf041e03154c5fb06ac04749e4c34893
parent062f380725376efab279956b5441071684c2a7ff
drm/amdgpu: Doorbell index initialization for ASICs before vega10

Initialize doorbell index for asics vi and cik

v2: Use enum definition instead of hardcoded number

Signed-off-by: Oak Zeng <ozeng@amd.com>
Suggested-by: Felix Kuehling <Felix.Kuehling@amd.com>
Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cik.c
drivers/gpu/drm/amd/amdgpu/cik.h
drivers/gpu/drm/amd/amdgpu/vi.c
drivers/gpu/drm/amd/amdgpu/vi.h