All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Li, Samuel" <Samuel.Li-5C7GfCeVMHo@public.gmane.org>
To: "Marek Olšák" <maraeo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"Koenig,
	Christian" <Christian.Koenig-5C7GfCeVMHo@public.gmane.org>
Cc: "Alex Deucher"
	<alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"Michel Dänzer" <michel-otUistvHUpPR7s880joybQ@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: Mon, 19 Mar 2018 19:42:08 +0000	[thread overview]
Message-ID: <BY1PR12MB0504183ED35A54559D22E041F5D40@BY1PR12MB0504.namprd12.prod.outlook.com> (raw)
In-Reply-To: <CAAxE2A5kq2oZtJRm2df1fjtb_p1m2_nvCmzv9y8mbO-GS8cGrw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


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

Agreed.

>I think that the consensus with Alex and me is that we should avoid exactly that.
Christian, Alex’s concern is about ping-pong, not about the preferred domain.

Regards,
Samuel Li

From: Marek Olšák [mailto:maraeo@gmail.com]
Sent: Monday, March 19, 2018 3:39 PM
To: Koenig, Christian <Christian.Koenig@amd.com>
Cc: Li, Samuel <Samuel.Li@amd.com>; Michel Dänzer <michel@daenzer.net>; Alex Deucher <alexdeucher@gmail.com>; amd-gfx list <amd-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 1/2] drm/amdgpu: Enable scatter gather display support

On Mon, Mar 19, 2018 at 3:27 PM, Christian König <christian.koenig@amd.com<mailto:christian.koenig@amd.com>> wrote:
I think that the consensus with Alex and me is that we should avoid exactly that.

Overriding the preferred domain in the kernel is a no-go for that patch set, so please implement the discussed changes in Mesa.

I don't see how Mesa can make a smarter decision than the kernel. If you overwrite the preferred domain of the buffer in the kernel, there will be no ping-ponging between domains. Mesa never changes the initial preferred domain.

Marek



Regards,
Christian.


Am 19.03.2018 um 20:22 schrieb Li, Samuel:
I agree with Marek/Michel: since kernel sets the domain before scanning out, it shall update the preferred domain here too.

Regards,
Samuel Li

-----Original Message-----
From: Koenig, Christian
Sent: Thursday, March 08, 2018 4:07 AM
To: Michel Dänzer <michel@daenzer.net<mailto:michel@daenzer.net>>; Li, Samuel
<Samuel.Li@amd.com<mailto:Samuel.Li@amd.com>>; Alex Deucher <alexdeucher@gmail.com<mailto:alexdeucher@gmail.com>>
Cc: amd-gfx list <amd-gfx@lists.freedesktop.org<mailto:amd-gfx@lists.freedesktop.org>>
Subject: Re: [PATCH 1/2] drm/amdgpu: Enable scatter gather display support

Am 08.03.2018 um 09:35 schrieb Michel Dänzer:
On 2018-03-07 10:47 AM, Christian König wrote:
Am 07.03.2018 um 09:42 schrieb Michel Dänzer:
On 2018-03-06 07:23 PM, Christian König wrote:
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.
In the meantime, I've had the same idea as Marek: Can't the kernel
driver simply change the BO's preferred domain to GTT when scanning
out from it? Then it won't move back to VRAM.
Yes, I've considered this as well.

But I think making the decision in Mesa is the cleaner approach.

E.g. so far we only override the placement decision of userspace for two
reasons:
1. We where running out of memory in VRAM.
2. We have a hardware restriction which makes VRAM usage mandatory.

And even then we never adjust the placement permanently, we just
temporary moved the buffer where it was needed and moved it back after
the operation completed.

Additional to that Mesa might want to set even more flags and/or changes
it's behavior. E.g. use a tilling mode which both importer and export in an
A+A laptop understands etc...

Regards,
Christian.

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


[-- Attachment #1.2: Type: text/html, Size: 9898 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-19 19:42 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 [this message]
     [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=BY1PR12MB0504183ED35A54559D22E041F5D40@BY1PR12MB0504.namprd12.prod.outlook.com \
    --to=samuel.li-5c7gfcevmho@public.gmane.org \
    --cc=Christian.Koenig-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.