aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/nv.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2020-08-11 12:02:21 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-08-14 17:03:20 -0400
commit11043b7a995c18ea725c956825d1dfcbbdd8e78b (patch)
tree59099edd91299305f6f5a39252e8dbf750077239 /drivers/gpu/drm/amd/amdgpu/nv.c
parentbddbacc9e0373fc1f1f7963fa2a7838dd06e4b1b (diff)
downloadkernel_replicant_linux-11043b7a995c18ea725c956825d1dfcbbdd8e78b.tar.gz
kernel_replicant_linux-11043b7a995c18ea725c956825d1dfcbbdd8e78b.tar.bz2
kernel_replicant_linux-11043b7a995c18ea725c956825d1dfcbbdd8e78b.zip
drm/amdgpu: note what type of reset we are using
When we reset the GPU, note what type of reset will be used. This makes debugging different reset scenarios more clear as the driver may use different reset methods depending on conditions on the system. Acked-by: Nirmoy Das <nirmoy.das@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nv.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/nv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c
index da8024c2826e..54e941e0db60 100644
--- a/drivers/gpu/drm/amd/amdgpu/nv.c
+++ b/drivers/gpu/drm/amd/amdgpu/nv.c
@@ -379,7 +379,7 @@ static int nv_asic_reset(struct amdgpu_device *adev)
struct smu_context *smu = &adev->smu;
if (nv_asic_reset_method(adev) == AMD_RESET_METHOD_BACO) {
- dev_info(adev->dev, "GPU BACO reset\n");
+ dev_info(adev->dev, "BACO reset\n");
ret = smu_baco_enter(smu);
if (ret)
@@ -387,8 +387,10 @@ static int nv_asic_reset(struct amdgpu_device *adev)
ret = smu_baco_exit(smu);
if (ret)
return ret;
- } else
+ } else {
+ dev_info(adev->dev, "MODE1 reset\n");
ret = nv_asic_mode1_reset(adev);
+ }
return ret;
}