]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Thu, 7 Nov 2019 03:06:23 +0000 (22:06 -0500)
commit7bf1636348b737fd00e1f8864dedb89d8054404d
tree457d6d5899ff718da9ed67c00423236f96278cdf
parentaafa3f0b8feeca3b7d2657e640f28ed1a5c63504
drm/amdgpu: register gpu instance before fan boost feature enablment

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

Fixes: ab248e9b88a81df ("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