drm/amd/powerplay: Add SMU WMTABLE Validity Check for Renoir
[Why] SMU watermark table (WMTABLE) validity check is missing on Renoir. This validity check is very useful for checking whether WMTABLE is updated successfully. [How] Add SMU watermark validity check. Signed-off-by: Zhan Liu <zhan.liu@amd.com> Reviewed-by: Hersen Wu <hersenxs.wu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
374bf7bd6a
commit
f1e1483b27
|
@ -777,9 +777,17 @@ static int renoir_set_watermarks_table(
|
|||
}
|
||||
|
||||
/* pass data to smu controller */
|
||||
ret = smu_write_watermarks_table(smu);
|
||||
if ((smu->watermarks_bitmap & WATERMARKS_EXIST) &&
|
||||
!(smu->watermarks_bitmap & WATERMARKS_LOADED)) {
|
||||
ret = smu_write_watermarks_table(smu);
|
||||
if (ret) {
|
||||
pr_err("Failed to update WMTABLE!");
|
||||
return ret;
|
||||
}
|
||||
smu->watermarks_bitmap |= WATERMARKS_LOADED;
|
||||
}
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int renoir_get_power_profile_mode(struct smu_context *smu,
|
||||
|
|
Loading…
Reference in New Issue