linux/drivers/gpu/drm/amd/powerplay
Colin Ian King 5b2933556f drm/amd/pp: use mlck_table.count for array loop index limit
v2: use temporaries to trivially reduces object size.

The for-loops process data in the mclk_table but use slck_table.count
as the loop index limit.  I believe these are cut-n-paste errors from
the previous almost identical loops as indicated by static analysis.
Fix these.

Detected by CoverityScan, CID#1466001 ("Copy-paste error")

Fixes: 5d97cf39ff ("drm/amd/pp: Add and initialize OD_dpm_table for CI/VI.")
Fixes: 5e4d4fbea5 ("drm/amd/pp: Implement edit_dpm_table on smu7")

Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-03-23 09:42:00 -05:00
..
hwmgr drm/amd/pp: use mlck_table.count for array loop index limit 2018-03-23 09:42:00 -05:00
inc drm/amd/pp: Refine register_thermal_interrupt function 2018-03-21 14:36:58 -05:00
smumgr drm/amd/powerplay: add the smu manager for vega12 (v4) 2018-03-21 14:36:56 -05:00
amd_powerplay.c drm/amd/pp: Add smu irq handlers in sw_init instand of hw_init 2018-03-21 14:36:59 -05:00
Makefile drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00