From: "Christian König" <ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Emily Deng <Emily.Deng-5C7GfCeVMHo@public.gmane.org>,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH] drm/amdgpu: fix unload driver fail
Date: Fri, 24 May 2019 12:15:49 +0200 [thread overview]
Message-ID: <19ffcfde-a7d6-eb17-c561-e3673e8569fc@gmail.com> (raw)
In-Reply-To: <1558691520-5819-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org>
Am 24.05.19 um 11:52 schrieb Emily Deng:
> dc_destroy should be called amdgpu_cgs_destroy_device,
> as it will use cgs context to read or write registers.
>
> Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> 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 fd04217..f558c9c 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -616,6 +616,10 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
> static void amdgpu_dm_fini(struct amdgpu_device *adev)
> {
> amdgpu_dm_destroy_drm_device(&adev->dm);
> +
> + /* DC Destroy TODO: Replace destroy DAL */
> + if (adev->dm.dc)
> + dc_destroy(&adev->dm.dc);
> /*
> * TODO: pageflip, vlank interrupt
> *
> @@ -630,9 +634,6 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev)
> mod_freesync_destroy(adev->dm.freesync_module);
> adev->dm.freesync_module = NULL;
> }
> - /* DC Destroy TODO: Replace destroy DAL */
> - if (adev->dm.dc)
> - dc_destroy(&adev->dm.dc);
>
> mutex_destroy(&adev->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:[~2019-05-24 10:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-24 9:52 [PATCH] drm/amdgpu: fix unload driver fail Emily Deng
[not found] ` <1558691520-5819-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org>
2019-05-24 10:15 ` Christian König [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=19ffcfde-a7d6-eb17-c561-e3673e8569fc@gmail.com \
--to=ckoenig.leichtzumerken-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=Emily.Deng-5C7GfCeVMHo@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=christian.koenig-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