From: Harry Wentland <harry.wentland-5C7GfCeVMHo@public.gmane.org>
To: Andrey Grodzovsky
<andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: Re: [PATCH] drm/amd/display: Fix pflip IRQ status after gpu reset.
Date: Thu, 13 Sep 2018 11:28:28 -0400 [thread overview]
Message-ID: <b8e3a426-e059-1c04-ef60-ef688ee4ddfd@amd.com> (raw)
In-Reply-To: <1536785492-4606-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>
On 2018-09-12 04:51 PM, Andrey Grodzovsky wrote:
> Problem:
> After GPU reset pflip completion IRQ is disabled and hence
> any subsequent mode set or plane update leads to hang.
>
> Fix:
> Unless acrtc->otg_inst is initialized to -1 during display
> block initializtion then durng resume from GPU reset
> amdgpu_irq_gpu_reset_resume_helper will override CRTC 0 pflip
> IRQ value with whatever value was on every other unused CRTC because
> dm_irq_state will do irq_source = dal_irq_type + acrtc->otg_inst
> where acrtc->otg_inst will be 0 for every unused CRTC.
>
> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Harry
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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 5103eba..75c4b80 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -3351,6 +3351,7 @@ static int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm,
>
> acrtc->crtc_id = crtc_index;
> acrtc->base.enabled = false;
> + acrtc->otg_inst = -1;
>
> dm->adev->mode_info.crtcs[crtc_index] = acrtc;
> drm_crtc_enable_color_mgmt(&acrtc->base, MAX_COLOR_LUT_ENTRIES,
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
prev parent reply other threads:[~2018-09-13 15:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-12 20:51 [PATCH] drm/amd/display: Fix pflip IRQ status after gpu reset Andrey Grodzovsky
[not found] ` <1536785492-4606-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>
2018-09-13 15:28 ` Harry Wentland [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=b8e3a426-e059-1c04-ef60-ef688ee4ddfd@amd.com \
--to=harry.wentland-5c7gfcevmho@public.gmane.org \
--cc=alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org \
/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