Skip to contentSkip to conversation

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

PATCH In review Alex Deucher 2 participants 2 messages Oct 24, 2016 – Oct 25, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

KV/KB/ML was missed these was implemented for other asics.

---
 drivers/gpu/drm/amd/amdgpu/kv_dpm.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/gpu/drm/amd/amdgpu/kv_dpm.c +13 -0
index 190bce8..61172d4 100644
@@ -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)
Signature · 6 lines
2.5.5

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1477338695-7275-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Am 24.10.2016 um 21:51 schrieb Alex Deucher:

Quoted 3 lines

KV/KB/ML was missed these was implemented for other asics.

Not the slightest idea what this is all about, so only Acked-by: Christian König <[email protected]>.

Christian.

Quoted 28 lines
---
  drivers/gpu/drm/amd/amdgpu/kv_dpm.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)
drivers/gpu/drm/amd/amdgpu/kv_dpm.c +12 -0
index 190bce8..61172d4 100644
@@ -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,

drivers/gpu/drm/amd/amdgpu/kv_dpm.c static const struct amdgpu_dpm_funcs kv_dpm_funcs = { · line 3294

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/kv_dpm.c +1 -0
@@ -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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx