mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm
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/amdgpu: open brace '{' following struct go on the same line 2023-07-25 13:44:00 -04:00
legacy-dpm drm/amd/pm: Clean up errors in sislands_smc.h 2023-08-09 09:42:44 -04:00
powerplay drm/amd: Rename AMDGPU_PP_SENSOR_GPU_POWER 2023-08-15 18:08:30 -04:00
swsmu drm/amdgpu: fix retry loop test 2023-09-11 18:19:03 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-06-09 09:36:34 -04:00
amdgpu_pm.c drm/amd/pm: fix debugfs pm_info output 2023-08-31 18:02:30 -04:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00