Commit 6061789a authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: add an implement for check_power_state equal for KV

KV/KB/ML was missed these was implemented for other asics.
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 34117175
...@@ -3243,6 +3243,18 @@ static int kv_dpm_set_powergating_state(void *handle, ...@@ -3243,6 +3243,18 @@ static int kv_dpm_set_powergating_state(void *handle,
return 0; return 0;
} }
static int kv_check_state_equal(struct amdgpu_device *adev,
struct amdgpu_ps *cps,
struct amdgpu_ps *rps,
bool *equal)
{
if (equal == NULL)
return -EINVAL;
*equal = false;
return 0;
}
const struct amd_ip_funcs kv_dpm_ip_funcs = { const struct amd_ip_funcs kv_dpm_ip_funcs = {
.name = "kv_dpm", .name = "kv_dpm",
.early_init = kv_dpm_early_init, .early_init = kv_dpm_early_init,
...@@ -3274,6 +3286,7 @@ static const struct amdgpu_dpm_funcs kv_dpm_funcs = { ...@@ -3274,6 +3286,7 @@ static const struct amdgpu_dpm_funcs kv_dpm_funcs = {
.powergate_uvd = &kv_dpm_powergate_uvd, .powergate_uvd = &kv_dpm_powergate_uvd,
.enable_bapm = &kv_dpm_enable_bapm, .enable_bapm = &kv_dpm_enable_bapm,
.get_vce_clock_state = amdgpu_get_vce_clock_state, .get_vce_clock_state = amdgpu_get_vce_clock_state,
.check_state_equal = kv_check_state_equal,
}; };
static void kv_dpm_set_dpm_funcs(struct amdgpu_device *adev) static void kv_dpm_set_dpm_funcs(struct amdgpu_device *adev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment