drm/amdgpu: register gpu instance before fan boost feature enablment
authorEvan Quan <evan.quan@amd.com>
Tue, 5 Nov 2019 10:13:49 +0000 (18:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Nov 2019 21:27:47 +0000 (16:27 -0500)
commitb0adca4d50169d9a05912e208a89cdd615da40d4
tree4b39913f8fd4ff77af1d4dbefeb6671194c224b7
parent2c874ad9d6293cd387b13304894e4322ec3eab6f
drm/amdgpu: register gpu instance before fan boost feature enablment

Otherwise, the feature enablement will be skipped due to wrong count.

Fixes: beff74bc6e0fa91 ("drm/amdgpu: fix a race in GPU reset with IB test (v2)")
Signed-off-by: Evan Quan <evan.quan@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
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c