* [PATCH] drm/amd/display: Fix bug use wrong pp interface
@ 2018-08-16 3:42 Rex Zhu
[not found] ` <1534390959-11954-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Rex Zhu @ 2018-08-16 3:42 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
david.francis-5C7GfCeVMHo; +Cc: Rex Zhu
Used wrong pp interface, the original interface is
exposed by dpm on SI and paritial CI.
Pointed out by Francis David <david.francis@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
index e5c5b0a..85b72d459 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
@@ -480,12 +480,17 @@ void pp_rv_set_display_requirement(struct pp_smu *pp,
{
const struct dc_context *ctx = pp->dm;
struct amdgpu_device *adev = ctx->driver_context;
+ void *pp_handle = adev->powerplay.pp_handle;
const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs;
- if (!pp_funcs || !pp_funcs->display_configuration_changed)
+ if (!req || !pp_funcs || !pp_funcs->display_configuration_changed)
return;
- amdgpu_dpm_display_configuration_changed(adev);
+ adev->pm.pm_display_cfg.min_dcef_deep_sleep_set_clk = req->min_deep_sleep_dcefclk_mhz/10;
+ adev->pm.pm_display_cfg.min_dcef_set_clk = req->hard_min_dcefclk_khz/10;
+ adev->pm.pm_display_cfg.num_display = req->display_count;
+ adev->pm.pm_display_cfg.min_core_set_clock = req->hard_min_fclk_khz/10;
+ pp_funcs->display_configuration_change(pp_handle, &adev->pm.pm_display_cfg);
}
void pp_rv_set_wm_ranges(struct pp_smu *pp,
--
1.9.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1534390959-11954-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>]
* Re: [PATCH] drm/amd/display: Fix bug use wrong pp interface [not found] ` <1534390959-11954-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org> @ 2018-08-16 3:54 ` Deucher, Alexander [not found] ` <BN6PR12MB1809A7A1C222494983990651F73E0-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Deucher, Alexander @ 2018-08-16 3:54 UTC (permalink / raw) To: Zhu, Rex, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, Francis, David [-- Attachment #1.1: Type: text/plain, Size: 2328 bytes --] Acked-by: Alex Deucher <alexander.deucher-5C7GfCeVMHo@public.gmane.org> ________________________________ From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Rex Zhu <Rex.Zhu-5C7GfCeVMHo@public.gmane.org> Sent: Wednesday, August 15, 2018 11:42:39 PM To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org; Francis, David Cc: Zhu, Rex Subject: [PATCH] drm/amd/display: Fix bug use wrong pp interface Used wrong pp interface, the original interface is exposed by dpm on SI and paritial CI. Pointed out by Francis David <david.francis-5C7GfCeVMHo@public.gmane.org> Signed-off-by: Rex Zhu <Rex.Zhu-5C7GfCeVMHo@public.gmane.org> --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c index e5c5b0a..85b72d459 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c @@ -480,12 +480,17 @@ void pp_rv_set_display_requirement(struct pp_smu *pp, { const struct dc_context *ctx = pp->dm; struct amdgpu_device *adev = ctx->driver_context; + void *pp_handle = adev->powerplay.pp_handle; const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; - if (!pp_funcs || !pp_funcs->display_configuration_changed) + if (!req || !pp_funcs || !pp_funcs->display_configuration_changed) return; - amdgpu_dpm_display_configuration_changed(adev); + adev->pm.pm_display_cfg.min_dcef_deep_sleep_set_clk = req->min_deep_sleep_dcefclk_mhz/10; + adev->pm.pm_display_cfg.min_dcef_set_clk = req->hard_min_dcefclk_khz/10; + adev->pm.pm_display_cfg.num_display = req->display_count; + adev->pm.pm_display_cfg.min_core_set_clock = req->hard_min_fclk_khz/10; + pp_funcs->display_configuration_change(pp_handle, &adev->pm.pm_display_cfg); } void pp_rv_set_wm_ranges(struct pp_smu *pp, -- 1.9.1 _______________________________________________ amd-gfx mailing list amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx [-- Attachment #1.2: Type: text/html, Size: 3981 bytes --] [-- Attachment #2: Type: text/plain, Size: 154 bytes --] _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <BN6PR12MB1809A7A1C222494983990651F73E0-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>]
* Re: [PATCH] drm/amd/display: Fix bug use wrong pp interface [not found] ` <BN6PR12MB1809A7A1C222494983990651F73E0-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org> @ 2018-08-16 5:43 ` Huang Rui 0 siblings, 0 replies; 3+ messages in thread From: Huang Rui @ 2018-08-16 5:43 UTC (permalink / raw) To: Deucher, Alexander Cc: Francis, David, Zhu, Rex, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org On Thu, Aug 16, 2018 at 03:54:19AM +0000, Deucher, Alexander wrote: > Acked-by: Alex Deucher <alexander.deucher@amd.com> > > ________________________________ > From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Rex Zhu <Rex.Zhu@amd.com> > Sent: Wednesday, August 15, 2018 11:42:39 PM > To: amd-gfx@lists.freedesktop.org; Francis, David > Cc: Zhu, Rex > Subject: [PATCH] drm/amd/display: Fix bug use wrong pp interface > > Used wrong pp interface, the original interface is > exposed by dpm on SI and paritial CI. > > Pointed out by Francis David <david.francis@amd.com> > We can write the comment as below: Reported-by: Francis David <david.francis@amd.com> Others look good for me. Reviewed-by: Huang Rui <ray.huang@amd.com> > Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c > index e5c5b0a..85b72d459 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c > @@ -480,12 +480,17 @@ void pp_rv_set_display_requirement(struct pp_smu *pp, > { > const struct dc_context *ctx = pp->dm; > struct amdgpu_device *adev = ctx->driver_context; > + void *pp_handle = adev->powerplay.pp_handle; > const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; > > - if (!pp_funcs || !pp_funcs->display_configuration_changed) > + if (!req || !pp_funcs || !pp_funcs->display_configuration_changed) > return; > > - amdgpu_dpm_display_configuration_changed(adev); > + adev->pm.pm_display_cfg.min_dcef_deep_sleep_set_clk = req->min_deep_sleep_dcefclk_mhz/10; > + adev->pm.pm_display_cfg.min_dcef_set_clk = req->hard_min_dcefclk_khz/10; > + adev->pm.pm_display_cfg.num_display = req->display_count; > + adev->pm.pm_display_cfg.min_core_set_clock = req->hard_min_fclk_khz/10; > + pp_funcs->display_configuration_change(pp_handle, &adev->pm.pm_display_cfg); > } > > void pp_rv_set_wm_ranges(struct pp_smu *pp, > -- > 1.9.1 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-16 5:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-16 3:42 [PATCH] drm/amd/display: Fix bug use wrong pp interface Rex Zhu
[not found] ` <1534390959-11954-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-08-16 3:54 ` Deucher, Alexander
[not found] ` <BN6PR12MB1809A7A1C222494983990651F73E0-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-08-16 5:43 ` Huang Rui
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.