From: "Kazlauskas, Nicholas" <nicholas.kazlauskas@amd.com>
To: Alex Deucher <alexdeucher@gmail.com>, amd-gfx@lists.freedesktop.org
Cc: Alex Deucher <alexander.deucher@amd.com>,
Stephen Rothwell <sfr@canb.auug.org.au>
Subject: Re: [PATCH] drm/amdgpu/display: fix build with CONFIG_DRM_AMD_DC_DCN disabled
Date: Fri, 8 Jan 2021 11:43:38 -0500 [thread overview]
Message-ID: <b516c2bb-0790-46ae-7e87-a1db62eb3949@amd.com> (raw)
In-Reply-To: <20210108163334.374220-1-alexander.deucher@amd.com>
On 2021-01-08 11:33 a.m., Alex Deucher wrote:
> dc_allow_idle_optimizations() needs to be protected by
> CONFIG_DRM_AMD_DC_DCN.
>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Regards,
Nicholas Kazlauskas
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index 318eb12f8de7..2dc8493793e0 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -5490,10 +5490,12 @@ static inline int dm_set_vblank(struct drm_crtc *crtc, bool enable)
> else
> dm->active_vblank_irq_count--;
>
> +#if defined(CONFIG_DRM_AMD_DC_DCN)
> dc_allow_idle_optimizations(
> adev->dm.dc, dm->active_vblank_irq_count == 0 ? true : false);
>
> DRM_DEBUG_DRIVER("Allow idle optimizations (MALL): %d\n", dm->active_vblank_irq_count == 0);
> +#endif
>
> mutex_unlock(&dm->dc_lock);
>
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
prev parent reply other threads:[~2021-01-08 16:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-08 16:33 [PATCH] drm/amdgpu/display: fix build with CONFIG_DRM_AMD_DC_DCN disabled Alex Deucher
2021-01-08 16:43 ` Kazlauskas, Nicholas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b516c2bb-0790-46ae-7e87-a1db62eb3949@amd.com \
--to=nicholas.kazlauskas@amd.com \
--cc=alexander.deucher@amd.com \
--cc=alexdeucher@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox