From: zhoucm1 <david1.zhou-5C7GfCeVMHo@public.gmane.org>
To: "Christian König"
<deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH 2/2] drm/amdgpu: remove extra placement for AMDGPU_GEM_CREATE_NO_CPU_ACCESS
Date: Mon, 7 Nov 2016 10:35:35 +0800 [thread overview]
Message-ID: <581FE877.8030503@amd.com> (raw)
In-Reply-To: <1478257213-1946-2-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
Hi Christian,
I have some time not to track code, I'm not sure if I miss anything.
In my mind, this change was added while doing performance optimization.
If you don't encounter any problem, I'm suggesting not to change it, we
have many regressions(bug and performance) recently.
Regards,
David Zhou
On 2016年11月04日 19:00, Christian König wrote:
> From: Christian König <christian.koenig@amd.com>
>
> This only has the effect of scanning the invisible range twice
> since the topdown flag is given anyway.
>
> Signed-off-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> index 6efa8d7..052c1b0 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> @@ -128,17 +128,6 @@ static void amdgpu_ttm_placement_init(struct amdgpu_device *adev,
> if (flags & AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS)
> lpfn = adev->mc.real_vram_size >> PAGE_SHIFT;
>
> - if (flags & AMDGPU_GEM_CREATE_NO_CPU_ACCESS &&
> - !(flags & AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED) &&
> - adev->mc.visible_vram_size < adev->mc.real_vram_size) {
> - places[c].fpfn = visible_pfn;
> - places[c].lpfn = lpfn;
> - places[c].flags = TTM_PL_FLAG_WC |
> - TTM_PL_FLAG_UNCACHED | TTM_PL_FLAG_VRAM |
> - TTM_PL_FLAG_TOPDOWN;
> - c++;
> - }
> -
> places[c].fpfn = 0;
> places[c].lpfn = lpfn;
> places[c].flags = TTM_PL_FLAG_WC | TTM_PL_FLAG_UNCACHED |
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2016-11-07 2:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-04 11:00 [PATCH 1/2] drm/amdgpu: disable the VRAM manager on special placements v2 Christian König
[not found] ` <1478257213-1946-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-11-04 11:00 ` [PATCH 2/2] drm/amdgpu: remove extra placement for AMDGPU_GEM_CREATE_NO_CPU_ACCESS Christian König
[not found] ` <1478257213-1946-2-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-11-07 2:35 ` zhoucm1 [this message]
[not found] ` <581FE877.8030503-5C7GfCeVMHo@public.gmane.org>
2016-11-07 8:16 ` Christian König
2016-11-07 2:51 ` Michel Dänzer
2016-11-07 2:10 ` 答复: [PATCH 1/2] drm/amdgpu: disable the VRAM manager on special placements v2 Qu, Jim
[not found] ` <BY2PR12MB0614AEAA868807A54E3DDAA999A70-K//h7OWB4q5SmL+xRiD5tgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-11-07 8:12 ` Christian König
[not found] ` <c2cc7a0b-940a-a051-6d77-eb6fcd87fa4b-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-11-07 8:16 ` 答复: " Qu, Jim
[not found] ` <BY2PR12MB061436E9DC06B7698F4E7C4399A70-K//h7OWB4q5SmL+xRiD5tgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-11-07 8:27 ` Christian König
2016-11-08 13:09 ` Christian König
[not found] ` <508632be-2cfc-de34-4ad7-68fb518c9d68-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2016-11-08 13:51 ` Deucher, Alexander
2016-11-09 2:49 ` 答复: " Qu, Jim
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=581FE877.8030503@amd.com \
--to=david1.zhou-5c7gfcevmho@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=deathsimple-ANTagKRnAhcb1SvskN2V4Q@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 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.