Commit 73909a74 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher

drm/amdgpu: add an implement for check_power_state equal for Cz.

Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1d516c41
...@@ -2257,6 +2257,18 @@ static void cz_dpm_powergate_vce(struct amdgpu_device *adev, bool gate) ...@@ -2257,6 +2257,18 @@ static void cz_dpm_powergate_vce(struct amdgpu_device *adev, bool gate)
} }
} }
static int cz_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 cz_dpm_ip_funcs = { const struct amd_ip_funcs cz_dpm_ip_funcs = {
.name = "cz_dpm", .name = "cz_dpm",
.early_init = cz_dpm_early_init, .early_init = cz_dpm_early_init,
...@@ -2289,6 +2301,7 @@ static const struct amdgpu_dpm_funcs cz_dpm_funcs = { ...@@ -2289,6 +2301,7 @@ static const struct amdgpu_dpm_funcs cz_dpm_funcs = {
.vblank_too_short = NULL, .vblank_too_short = NULL,
.powergate_uvd = cz_dpm_powergate_uvd, .powergate_uvd = cz_dpm_powergate_uvd,
.powergate_vce = cz_dpm_powergate_vce, .powergate_vce = cz_dpm_powergate_vce,
.check_state_equal = cz_check_state_equal,
}; };
static void cz_dpm_set_funcs(struct amdgpu_device *adev) static void cz_dpm_set_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