All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig-5C7GfCeVMHo@public.gmane.org>
To: "Marek Olšák" <maraeo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "Deucher,
	Alexander" <Alexander.Deucher-5C7GfCeVMHo@public.gmane.org>,
	"Alex Deucher"
	<alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"Michel Dänzer" <michel-otUistvHUpPR7s880joybQ@public.gmane.org>,
	"Li, Samuel" <Samuel.Li-5C7GfCeVMHo@public.gmane.org>,
	"amd-gfx list"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH 1/2] drm/amdgpu: Enable scatter gather display support
Date: Wed, 21 Mar 2018 19:15:06 +0100	[thread overview]
Message-ID: <4bc75e1a-ea91-6962-8a41-fd2b118c9cbb@amd.com> (raw)
In-Reply-To: <CAAxE2A5d_iuT1dq3=KQav7JLuAUi38pJveEHsHMs7XsLJRoEYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 3139 bytes --]

Am 21.03.2018 um 19:04 schrieb Marek Olšák:
> On Wed, Mar 21, 2018 at 10:07 AM, Christian König 
> <christian.koenig-5C7GfCeVMHo@public.gmane.org <mailto:christian.koenig-5C7GfCeVMHo@public.gmane.org>> wrote:
>
>     Am 21.03.2018 um 14:57 schrieb Marek Olšák:
>>     On Wed, Mar 21, 2018 at 4:13 AM, Christian König
>>     <ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
>>     <mailto:ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote:
>>
>>         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 <mailto: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 explained why: VRAM|GTT is practically as good as GTT.
>>
>>
>>         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.
>>
>>
>>     Why are you suggesting to use VRAM|GTT then? Let's just only use
>>     GTT on all APUs.
>
>     Then we don't use the memory stolen for VRAM.
>
>     See we want to get to a point where we have any ~16MB of stolen
>     VRAM on APUs and everything else in GTT.
>
>     But we still have to support cases where we have 1GB stolen VRAM,
>     and wasting those 1GB would suck a bit.
>
>
> BO priorities and BO move throttling should take care of optimal VRAM 
> usage regardless of the VRAM size. We can adjust the throttling for 
> small VRAM, but that's about all we can do.

Well at least on APUs move throttling is complete nonsense. VRAM should 
expose the same performance as GTT.

So the only usage we have for VRAM is for special cases like page tables 
and to allow to actually use the stolen memory.

> VRAM|GTT doesn't guarantee that VRAM will be used usefully. In fact, 
> it doesn't guarantee anything about VRAM.

Why not? VRAM|GTT means that we should use VRAM as long as it is 
available and if it is used up fallback to GTT.

When BOs are evicted from VRAM they are never moved back into it. As far 
as I can see that is exactly what we need on APUs.

Christian.

>
> Marek


[-- Attachment #1.2: Type: text/html, Size: 9972 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

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

  parent reply	other threads:[~2018-03-21 18:15 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-02 23:25 [PATCH 1/2] drm/amdgpu: Enable scatter gather display support Samuel Li
     [not found] ` <1520033110-29964-1-git-send-email-Samuel.Li-5C7GfCeVMHo@public.gmane.org>
2018-03-03 13:41   ` Christian König
     [not found]     ` <3f0a85f6-ac67-cd8c-716e-1c1655d40226-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-06 16:49       ` Samuel Li
     [not found]         ` <c23ddc4b-c785-be3b-8321-416bb8417b6d-5C7GfCeVMHo@public.gmane.org>
2018-03-06 17:03           ` Alex Deucher
     [not found]             ` <CADnq5_OAnM2p2NHnOAduCd+yomFXKqKhrag+JaayZD1Ri9z_2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-06 17:09               ` Li, Samuel
     [not found]                 ` <BY1PR12MB05044ACBE8424866B3CCA243F5D90-PicGAnIBOoZIlHzfMOeg3gdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-06 17:11                   ` Christian König
     [not found]                     ` <898d3377-ee2b-a33d-dbff-b4cb692d650d-5C7GfCeVMHo@public.gmane.org>
2018-03-06 17:22                       ` Li, Samuel
     [not found]                         ` <BY1PR12MB050407EA9472CB2B6E101CE7F5D90-PicGAnIBOoZIlHzfMOeg3gdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-06 17:44                           ` Christian König
     [not found]                             ` <e416ff00-018b-f206-123e-90b09b4ccd9f-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-06 17:51                               ` Michel Dänzer
     [not found]                                 ` <ebe01500-9fa5-e541-86c3-30ff0168e792-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-03-06 18:02                                   ` Christian König
     [not found]                                     ` <cd4659cb-f030-4938-af44-2fa1389ccdfb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-06 18:09                                       ` Li, Samuel
2018-03-06 18:15                                       ` Michel Dänzer
     [not found]                                         ` <6febc0d1-0171-3cc1-ff22-69aa4ef36036-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-03-06 18:23                                           ` Christian König
     [not found]                                             ` <12178e4c-6b48-2c3b-9970-2ca30624a5bb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-07  8:42                                               ` Michel Dänzer
     [not found]                                                 ` <29dba5ab-f4f3-551b-ec94-2d6433e8aa21-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-03-07  9:47                                                   ` Christian König
     [not found]                                                     ` <1141c511-597e-c81b-6ffd-800ff846f2c1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-07  9:53                                                       ` Michel Dänzer
     [not found]                                                         ` <55efd18e-296f-fc60-9561-522650847080-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-03-07 10:04                                                           ` Christian König
     [not found]                                                             ` <5a228d74-0c3b-bc70-1c17-215cc2bb6a70-5C7GfCeVMHo@public.gmane.org>
2018-03-07 10:12                                                               ` Michel Dänzer
     [not found]                                                                 ` <1ed86df5-1b0d-b409-bb2d-d1c70299ea99-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-03-07 17:29                                                                   ` Samuel Li
     [not found]                                                                     ` <a3fb9f28-9223-0997-6f4a-419e57a44848-5C7GfCeVMHo@public.gmane.org>
2018-03-07 17:38                                                                       ` Alex Deucher
     [not found]                                                                         ` <CADnq5_NykcGcvNp2q=1Ce68Wuddg6t9i18toB8ntXDFgcTcqDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-07 17:50                                                                           ` Michel Dänzer
     [not found]                                                                             ` <436764aa-a11b-24ba-1d81-648eda9d6150-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-03-07 18:18                                                                               ` Samuel Li
     [not found]                                                                                 ` <e70cc3eb-b549-551b-7d31-6adfa3471f8d-5C7GfCeVMHo@public.gmane.org>
2018-03-07 18:27                                                                                   ` Alex Deucher
     [not found]                                                                                     ` <CADnq5_NOVK1sgOwbioVtJ8-syfKthvJ44ifS5X549ZZEEZzUUw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-07 18:53                                                                                       ` Samuel Li
     [not found]                                                                                         ` <2ec2f77f-7e7d-dc06-921a-edfa53d49c9e-5C7GfCeVMHo@public.gmane.org>
2018-03-07 19:02                                                                                           ` Li, Samuel
     [not found]                                                                                             ` <BY1PR12MB0504AFB7B6A3A55D89AE3007F5D80-PicGAnIBOoZIlHzfMOeg3gdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-07 20:07                                                                                               ` Alex Deucher
2018-03-08  8:35                                                       ` Michel Dänzer
     [not found]                                                         ` <1b643a78-d86a-b3bf-5f92-089a43201dd5-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-03-08  9:07                                                           ` Christian König
     [not found]                                                             ` <06e9160c-b4d4-6c3a-ff9f-04b40b94c7a0-5C7GfCeVMHo@public.gmane.org>
2018-03-19 19:22                                                               ` Li, Samuel
     [not found]                                                                 ` <BY1PR12MB0504A300C476CC31C59BFE97F5D40-PicGAnIBOoZIlHzfMOeg3gdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-19 19:27                                                                   ` Christian König
     [not found]                                                                     ` <2c995c37-0d0b-8fde-0118-57d7a62630ef-5C7GfCeVMHo@public.gmane.org>
2018-03-19 19:39                                                                       ` Marek Olšák
     [not found]                                                                         ` <CAAxE2A5kq2oZtJRm2df1fjtb_p1m2_nvCmzv9y8mbO-GS8cGrw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-19 19:41                                                                           ` Christian König
2018-03-19 19:42                                                                           ` Li, Samuel
     [not found]                                                                             ` <BY1PR12MB0504183ED35A54559D22E041F5D40-PicGAnIBOoZIlHzfMOeg3gdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-19 19:44                                                                               ` Christian König
     [not found]                                                                                 ` <f25ebe1d-0b19-e972-5eba-84570e625456-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-19 19:50                                                                                   ` Li, Samuel
     [not found]                                                                                     ` <BY1PR12MB05044A2A50F2580904C8AFB5F5D40-PicGAnIBOoZIlHzfMOeg3gdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-19 19:54                                                                                       ` Deucher, Alexander
     [not found]                                                                                         ` <BN6PR12MB18099E7295CB0301EF536924F7D40-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-19 19:58                                                                                           ` Li, Samuel
     [not found]                                                                                             ` <BY1PR12MB05042F8034B375BAB507EB03F5D40-PicGAnIBOoZIlHzfMOeg3gdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-19 20:02                                                                                               ` Christian König
2018-03-19 20:13                                                                                               ` Deucher, Alexander
     [not found]                                                                                                 ` <BN6PR12MB180952A68A8AF256197D1177F7D40-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-19 20:15                                                                                                   ` Deucher, Alexander
     [not found]                                                                                                     ` <BN6PR12MB1809A2A1591C19CC6E0C952FF7D40-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-19 20:26                                                                                                       ` Marek Olšák
     [not found]                                                                                                         ` <CAAxE2A4V0=1w_aybBq0dXc3w+D=eJR-dY7Tq=7g3rnj94OY7XQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-19 20:29                                                                                                           ` Li, Samuel
     [not found]                                                                                                             ` <BY1PR12MB050483D06AA7D7B08247B1D0F5D40-PicGAnIBOoZIlHzfMOeg3gdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-19 21:12                                                                                                               ` Alex Deucher
     [not found]                                                                                                                 ` <CADnq5_O0p30CC0JAnqvrrspXapdN5ZpXGBChGmt+14ekmPHkQw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-19 23:01                                                                                                                   ` Marek Olšák
     [not found]                                                                                                                     ` <CAAxE2A4fiM5KjfxOSTTT3Soew8S-EGE7OVWBh-7565+rahMaOg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-20 13:55                                                                                                                       ` Christian König
     [not found]                                                                                                                         ` <13996c5e-dc4c-5a9a-b6c3-7fe6bb63ec5d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-20 14:51                                                                                                                           ` Marek Olšák
     [not found]                                                                                                                             ` <CAAxE2A7ffe2fkOQG0mFpPfP4uRKZ1BVTKWQ3Q+FhLWQnYU4nww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-20 18:32                                                                                                                               ` Christian König
     [not found]                                                                                                                                 ` <f7bce36e-d9c6-dc13-6b1f-0e2bf91aaff0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-20 20:04                                                                                                                                   ` Deucher, Alexander
     [not found]                                                                                                                                     ` <DM5PR12MB18205326885F0857CEC4FAA6F7AB0-2J9CzHegvk8qWyLXlBb1HgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-20 20:16                                                                                                                                       ` Christian König
2018-03-20 20:50                                                                                                                                         ` Li, Samuel
     [not found]                                                                                                                                         ` <7bbc4bc8-1b44-efc3-44b7-47ebcb4b9c76-5C7GfCeVMHo@public.gmane.org>
2018-03-20 20:38                                                                                                                                           ` Li, Samuel
     [not found]                                                                                                                                             ` <BY1PR12MB0504EA3793147F7A133CCC8FF5AB0-PicGAnIBOoZIlHzfMOeg3gdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-21  8:07                                                                                                                                               ` Christian König
2018-03-21  5:08                                                                                                                                           ` Marek Olšák
     [not found]                                                                                                                                             ` <CAAxE2A4gcwdGiApoh=sa-SMPtMpm6M2+LmvafhVVnW=kntPPKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-21  8:13                                                                                                                                               ` Christian König
     [not found]                                                                                                                                                 ` <f1171a12-3092-6690-d6ae-c5e9869bce96-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-03-21 13:57                                                                                                                                                   ` Marek Olšák
     [not found]                                                                                                                                                     ` <CAAxE2A6xdScLAcuu3SpdnsJi-qJFr16BDxgYLvimFg1o8cNmpg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-21 14:07                                                                                                                                                       ` Christian König
     [not found]                                                                                                                                                         ` <d2786617-d81f-e448-3cba-6f7dfeb521dc-5C7GfCeVMHo@public.gmane.org>
2018-03-21 15:08                                                                                                                                                           ` Li, Samuel
2018-03-21 18:04                                                                                                                                                           ` Marek Olšák
     [not found]                                                                                                                                                             ` <CAAxE2A5d_iuT1dq3=KQav7JLuAUi38pJveEHsHMs7XsLJRoEYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-21 18:15                                                                                                                                                               ` Christian König [this message]
     [not found]                                                                                                                                                                 ` <4bc75e1a-ea91-6962-8a41-fd2b118c9cbb-5C7GfCeVMHo@public.gmane.org>
2018-03-21 18:23                                                                                                                                                                   ` Marek Olšák
     [not found]                                                                                                                                                                     ` <CAAxE2A7+18WdkiOOSD0E3PLed4nH2Bo3qGw85dAxD8AWpUkYCg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-21 18:30                                                                                                                                                                       ` Christian König
2018-03-19 20:53                                                                                                           ` Alex Deucher
     [not found]                                                                                                             ` <CADnq5_Pq3KMU2MgSo6toDwM1rYgLKRKcTK+V3yzYEyOz9-oVVw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-19 20:54                                                                                                               ` Marek Olšák
2018-03-05 10:17   ` Michel Dänzer
     [not found]     ` <67ca0059-9cde-d92f-3127-dc832c2cba98-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-03-05 15:31       ` Samuel Li

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=4bc75e1a-ea91-6962-8a41-fd2b118c9cbb@amd.com \
    --to=christian.koenig-5c7gfcevmho@public.gmane.org \
    --cc=Alexander.Deucher-5C7GfCeVMHo@public.gmane.org \
    --cc=Samuel.Li-5C7GfCeVMHo@public.gmane.org \
    --cc=alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=maraeo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=michel-otUistvHUpPR7s880joybQ@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.