All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Michel Dänzer" <michel-otUistvHUpPR7s880joybQ@public.gmane.org>,
	christian.koenig-5C7GfCeVMHo@public.gmane.org, "Li,
	Samuel" <Samuel.Li-5C7GfCeVMHo@public.gmane.org>,
	"Alex Deucher"
	<alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: amd-gfx list <amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH 1/2] drm/amdgpu: Enable scatter gather display support
Date: Wed, 7 Mar 2018 10:47:00 +0100	[thread overview]
Message-ID: <1141c511-597e-c81b-6ffd-800ff846f2c1@gmail.com> (raw)
In-Reply-To: <29dba5ab-f4f3-551b-ec94-2d6433e8aa21-otUistvHUpPR7s880joybQ@public.gmane.org>

Am 07.03.2018 um 09:42 schrieb Michel Dänzer:
> On 2018-03-06 07:23 PM, Christian König wrote:
>> Am 06.03.2018 um 19:15 schrieb Michel Dänzer:
>>> On 2018-03-06 07:02 PM, Christian König wrote:
>>>> Am 06.03.2018 um 18:51 schrieb Michel Dänzer:
>>>>> On 2018-03-06 06:44 PM, Christian König wrote:
>>>>>> Am 06.03.2018 um 18:22 schrieb Li, Samuel:
>>>>>>>> addition to that I agree with Michel that the module parameter is
>>>>>>>> overkill.
>>>>>>> That I already explained. Currently SG display feature needs to
>>>>>>> provide options for all kinds of use cases. All amd drivers so far
>>>>>>> provides options, and the default configuration is actually to
>>>>>>> allocate everything from GTT when possible.
>>>>>> That isn't job of the kernel to have this parameter. Saying that we
>>>>>> should probably add a DDX and/or environment option to control that.
>>>>> Why would we need that? It's the kernel driver's job to handle this as
>>>>> needed.
>>>> Buffer placement is specified by the DDX/Mesa, when we override that in
>>>> the kernel we just force unnecessary buffer moves.
>>> Userspace just needs a way to know which domains can/should be used for
>>> scanout buffers, e.g. via an info ioctl.
>> Yeah, but why shouldn't they then make the decision where to place it as
>> well?
>>
>> See when we enforce a certain placement in the kernel we will just get
>> an unnecessary buffer move with old user space components.
>>
>> In other words the kernel just needs to advertise that the hw/sw
>> combination allows scanout from GTT as well and then an updated
>> userspace can actually make use of that placement or decide to not use
>> it in certain situations.
> I think we'll need to always pin BOs to GTT for scanout in some cases,
> because some hardware has issues when transitioning between scanout from
> VRAM and GTT.
>
> How about:
>
> Userspace can query from the kernel which domain(s) can be used for
> scanout: only VRAM / VRAM or GTT / only GTT. Userspace sets the allowed
> domains correspondingly for scanout BOs.

Well that sounds close to what I had in mind as well, we just can't 
specify only GTT when we want to keep backward compatibility with 
existing user space.

>
> If you can think of a scenario where this won't work, please
> specifically describe it and how you propose addressing it.
>
>
>> E.g. the last time I tested it placing things into GTT still resulted
>> in quite a performance penalty for rendering.
> FWIW, I think the penalty is most likely IOMMU related. Last time I
> tested, I couldn't measure a big difference with IOMMU disabled.

No, the penalty I'm talking about came from the ping/pong we did with 
the scanout buffers.

See when I tested this the DDX and Mesa where unmodified, so both still 
assumed VRAM as placement for scanout BOs, but the kernel forced scanout 
BOs into GTT for testing.

So what happened was that on scanout we moved the VRAM BO to GTT and 
after unpinning it on the first command submission which used the BO we 
moved it back to VRAM again.

So as long as we don't want a severe performance penalty when you 
combine old userspace with new kernel using a kernel parameter to force 
scanout from GTT is not possible.

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

  parent reply	other threads:[~2018-03-07  9:47 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 [this message]
     [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
     [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=1141c511-597e-c81b-6ffd-800ff846f2c1@gmail.com \
    --to=ckoenig.leichtzumerken-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=Samuel.Li-5C7GfCeVMHo@public.gmane.org \
    --cc=alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=christian.koenig-5C7GfCeVMHo@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.