mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm/swsmu
Dan Carpenter 81cc8779cf drm/amdgpu: fix retry loop test
This loop will exit with "retry" set to -1 if it fails but the code
checks for if "retry" is zero.  Fix this by changing post-op to a
pre-op.  --retry vs retry--.

Fixes: e01eeffc3f ("drm/amd/pm: avoid driver getting empty metrics table for the first time")
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-09-11 18:19:03 -04:00
..
inc drm/amd/pm: Add critical temp for GC v9.4.3 2023-08-31 17:53:41 -04:00
smu11 drm/amd: Rename AMDGPU_PP_SENSOR_GPU_POWER 2023-08-15 18:08:30 -04:00
smu12 drm/amd: Rename AMDGPU_PP_SENSOR_GPU_POWER 2023-08-15 18:08:30 -04:00
smu13 drm/amdgpu: fix retry loop test 2023-09-11 18:19:03 -04:00
amdgpu_smu.c drm/amd/pm: Clean up errors in amdgpu_smu.c 2023-08-09 09:40:18 -04:00
Makefile drm/amd/swsmu: add aldebaran smu13 ip support (v3) 2021-03-23 22:54:24 -04:00
smu_cmn.c drm/amd/pm: Update pci link speed for smu v13.0.6 2023-08-16 11:34:37 -04:00
smu_cmn.h drm/amd/pm: Update pci link speed for smu v13.0.6 2023-08-16 11:34:37 -04:00
smu_internal.h drm/amd: Clean up errors in smu_v13_0_5_ppt.c 2023-08-09 09:40:15 -04:00