From: =?UTF-8?Q?Christian_K=c3=b6nig?= Subject: Re: [PATCH 1/2] drm/amdgpu: Enable scatter gather display support Date: Wed, 21 Mar 2018 09:13:42 +0100 Message-ID: References: <1520033110-29964-1-git-send-email-Samuel.Li@amd.com> <13996c5e-dc4c-5a9a-b6c3-7fe6bb63ec5d@gmail.com> <7bbc4bc8-1b44-efc3-44b7-47ebcb4b9c76@amd.com> Reply-To: christian.koenig-5C7GfCeVMHo@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1527996655==" Return-path: In-Reply-To: Content-Language: en-US List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "amd-gfx" To: =?UTF-8?B?TWFyZWsgT2zFocOhaw==?= , =?UTF-8?Q?Christian_K=c3=b6nig?= Cc: "Deucher, Alexander" , Alex Deucher , =?UTF-8?Q?Michel_D=c3=a4nzer?= , "Li, Samuel" , amd-gfx list This is a multi-part message in MIME format. --===============1527996655== Content-Type: multipart/alternative; boundary="------------6B4930597270D87E56DC85E5" Content-Language: en-US This is a multi-part message in MIME format. --------------6B4930597270D87E56DC85E5 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Am 21.03.2018 um 06:08 schrieb Marek Olšák: > On Tue, Mar 20, 2018 at 4:16 PM, Christian König > > wrote: > > That's what I meant with use up the otherwise unused VRAM. I don't > see any disadvantage of always setting GTT as second domain on APUs. > > My assumption was that we dropped this in userspace for > displayable surfaces, but Marek proved that wrong. > > So what we should do is actually to add GTT as fallback to all BOs > on APUs in Mesa and only make sure that the kernel is capable of > handling GTT with optimal performance (e.g. have user huge pages > etc..). > > > VRAM|GTT is practically as good as GTT. VRAM with BO priorities and > eviction throttling is the true "VRAM|GTT". > > I don't know how else to make use of VRAM intelligently. Well why not set VRAM|GTT as default on APUs? That should still save quite a bunch of moves even with throttling. I mean there really shouldn't be any advantage to use VRAM any more except that we want to use it up as long as it is available. Christian. > > Marek > > > _______________________________________________ > amd-gfx mailing list > amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx --------------6B4930597270D87E56DC85E5 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Am 21.03.2018 um 06:08 schrieb Marek Olšák:
On Tue, Mar 20, 2018 at 4:16 PM, Christian König <christian.koenig-5C7GfCeVMHo@public.gmane.org> wrote:
That's what I meant with use up the otherwise unused VRAM. I don't see any disadvantage of always setting GTT as second domain on APUs.

My assumption was that we dropped this in userspace for displayable surfaces, but Marek proved that wrong.

So what we should do is actually to add GTT as fallback to all BOs on APUs in Mesa and only make sure that the kernel is capable of handling GTT with optimal performance (e.g. have user huge pages etc..).

VRAM|GTT is practically as good as GTT. VRAM with BO priorities and eviction throttling is the true "VRAM|GTT".

I don't know how else to make use of VRAM intelligently.

Well why not set VRAM|GTT as default on APUs? That should still save quite a bunch of moves even with throttling.

I mean there really shouldn't be any advantage to use VRAM any more except that we want to use it up as long as it is available.

Christian.


Marek


_______________________________________________
amd-gfx mailing list
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

--------------6B4930597270D87E56DC85E5-- --===============1527996655== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KYW1kLWdmeCBt YWlsaW5nIGxpc3QKYW1kLWdmeEBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9hbWQtZ2Z4Cg== --===============1527996655==--