From: "Christian König" <ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Monk Liu <Monk.Liu-5C7GfCeVMHo@public.gmane.org>,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH 01/10] drm/amdgpu:cleanup stolen vga memory finish
Date: Tue, 14 Nov 2017 12:44:48 +0100 [thread overview]
Message-ID: <be738e26-cc8f-ca71-8885-e2a90a2bb76a@gmail.com> (raw)
In-Reply-To: <1510650468-5708-2-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
Am 14.11.2017 um 10:07 schrieb Monk Liu:
> Change-Id: Id641e125f3dafc54223e49ee444ab64249e7e3a1
> Signed-off-by: Monk Liu <Monk.Liu@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 11 +++--------
> 1 file changed, 3 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> index 99e812d..cf21b38 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> @@ -1640,14 +1640,9 @@ void amdgpu_ttm_fini(struct amdgpu_device *adev)
> return;
> amdgpu_ttm_debugfs_fini(adev);
>
> - if (adev->stolen_vga_memory) {
> - r = amdgpu_bo_reserve(adev->stolen_vga_memory, true);
> - if (r == 0) {
> - amdgpu_bo_unpin(adev->stolen_vga_memory);
> - amdgpu_bo_unreserve(adev->stolen_vga_memory);
> - }
> - amdgpu_bo_unref(&adev->stolen_vga_memory);
> - }
> + if (adev->stolen_vga_memory)
> + amdgpu_bo_free_kernel(&adev->stolen_vga_memory, NULL, NULL);
> +
I think you can even drop the "if" here, since amdgpu_bo_free_kernel()
checks that anyway.
Either way just a minor difference, patch is Reviewed-by: Christian
König <christian.koenig@amd.com>.
Regards,
Christian.
> amdgpu_ssg_fini(adev);
> amdgpu_direct_gma_fini(adev);
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2017-11-14 11:44 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 9:07 [PATCH 00/10] *** bug fixing and cleanups *** Monk Liu
[not found] ` <1510650468-5708-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 9:07 ` [PATCH 01/10] drm/amdgpu:cleanup stolen vga memory finish Monk Liu
[not found] ` <1510650468-5708-2-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 11:44 ` Christian König [this message]
2017-11-14 9:07 ` [PATCH 02/10] drm/amdgpu:cleanup GMC & gart garbage function Monk Liu
[not found] ` <1510650468-5708-3-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 11:43 ` Christian König
2017-11-14 9:07 ` [PATCH 03/10] drm/amdgpu:fix NULL pointer access during drv remove Monk Liu
[not found] ` <1510650468-5708-4-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 11:48 ` Christian König
[not found] ` <57cbf576-8eae-498b-73fc-cbbd5c642fa1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-11-14 14:57 ` Liu, Monk
2017-11-14 9:07 ` [PATCH 04/10] drm/amdgpu:put reserve_fw_vram_fini to correct place Monk Liu
[not found] ` <1510650468-5708-5-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 11:49 ` Christian König
2017-11-14 9:07 ` [PATCH 05/10] drm/amdgpu:fix memleak in takedown Monk Liu
[not found] ` <1510650468-5708-6-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 11:52 ` Christian König
[not found] ` <1bcc08fa-144a-2ff1-4e9c-05dad181c2ca-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-11-14 12:00 ` Christian König
[not found] ` <386d37ac-7ec1-5e63-14ef-b9351fbfa958-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-11-14 15:00 ` Liu, Monk
[not found] ` <BLUPR12MB0449B3FCA494C23D4FDCE9F084280-7LeqcoF/hwpTIQvHjXdJlwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-11-14 15:45 ` Christian König
2017-11-15 2:03 ` Chunming Zhou
2017-11-14 9:07 ` [PATCH 06/10] drm/amdgpu:cleanup unused stack var Monk Liu
[not found] ` <1510650468-5708-7-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 11:53 ` Christian König
2017-11-14 9:07 ` [PATCH 07/10] drm/amdgpu:free CSA in unified place Monk Liu
[not found] ` <1510650468-5708-8-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 11:55 ` Christian König
[not found] ` <64318acd-ed60-fbef-b64f-3e4341c96411-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-11-14 15:02 ` Liu, Monk
[not found] ` <BLUPR12MB04499F4D29BB145ADA20024384280-7LeqcoF/hwpTIQvHjXdJlwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-11-14 15:48 ` Christian König
2017-11-14 9:07 ` [PATCH 08/10] drm/amdgpu:cleanup firmware.fw_buf alloc/free Monk Liu
[not found] ` <1510650468-5708-9-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 11:56 ` Christian König
2017-11-14 9:07 ` [PATCH 09/10] drm/amdgpu:fix memleak Monk Liu
[not found] ` <1510650468-5708-10-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 11:57 ` Christian König
2017-11-14 9:07 ` [PATCH 10/10] drm/amdgpu:show error message if fail on event4 Monk Liu
[not found] ` <1510650468-5708-11-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-11-14 11:58 ` Christian König
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=be738e26-cc8f-ca71-8885-e2a90a2bb76a@gmail.com \
--to=ckoenig.leichtzumerken-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=Monk.Liu-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