* [PATCH] drm/amdgpu: add an implement for check_power_state equal for KV
@ 2016-10-24 19:51 Alex Deucher
[not found] ` <1477338695-7275-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Alex Deucher @ 2016-10-24 19:51 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Deucher
KV/KB/ML was missed these was implemented for other asics.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/kv_dpm.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
index 190bce8..61172d4 100644
--- a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
@@ -3245,6 +3245,18 @@ static int kv_dpm_set_powergating_state(void *handle,
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 = {
.name = "kv_dpm",
.early_init = kv_dpm_early_init,
@@ -3276,6 +3288,7 @@ static const struct amdgpu_dpm_funcs kv_dpm_funcs = {
.powergate_uvd = &kv_dpm_powergate_uvd,
.enable_bapm = &kv_dpm_enable_bapm,
.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)
--
2.5.5
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/amdgpu: add an implement for check_power_state equal for KV
[not found] ` <1477338695-7275-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
@ 2016-10-25 7:10 ` Christian König
0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2016-10-25 7:10 UTC (permalink / raw)
To: Alex Deucher, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Deucher
Am 24.10.2016 um 21:51 schrieb Alex Deucher:
> KV/KB/ML was missed these was implemented for other asics.
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Not the slightest idea what this is all about, so only Acked-by:
Christian König <christian.koenig@amd.com>.
Christian.
> ---
> drivers/gpu/drm/amd/amdgpu/kv_dpm.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
> index 190bce8..61172d4 100644
> --- a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
> @@ -3245,6 +3245,18 @@ static int kv_dpm_set_powergating_state(void *handle,
> 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 = {
> .name = "kv_dpm",
> .early_init = kv_dpm_early_init,
> @@ -3276,6 +3288,7 @@ static const struct amdgpu_dpm_funcs kv_dpm_funcs = {
> .powergate_uvd = &kv_dpm_powergate_uvd,
> .enable_bapm = &kv_dpm_enable_bapm,
> .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)
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-25 7:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-24 19:51 [PATCH] drm/amdgpu: add an implement for check_power_state equal for KV Alex Deucher
[not found] ` <1477338695-7275-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2016-10-25 7:10 ` Christian König
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.