Re: [PATCH 3/3] drm/amd/amdgpu: Various tidy ups for gfx6

2016-09-01 Thread Edward O'Callaghan
On 09/02/2016 03:44 AM, Tom St Denis wrote: > Various whitespace and logical simplifications for gfx6. > > Signed-off-by: Tom St Denis > --- > drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 40 > +-- > 1 file changed, 5 insertions(+), 35 deletions(-) > > diff --git a

Re: [PATCH] drm/amdgpu/gfx6: drop some dead code

2016-09-01 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan On 09/02/2016 04:11 AM, Alex Deucher wrote: > The mqd is only used on CI and newer. > > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 23 --- > 1 file changed, 23 deletions(-) > > diff --git a/drivers/gpu/drm/am

Re: [PATCH 01/10] drm/amdgpu: handle runtime pm in drm pre/post close

2016-09-01 Thread Michel Dänzer
On 02/09/16 05:38 AM, Alex Deucher wrote: > On Wed, Aug 31, 2016 at 9:03 PM, Michel Dänzer wrote: >> On 01/09/16 07:08 AM, Alex Deucher wrote: >>> Close was not handled correctly. >>> >>> Signed-off-by: Alex Deucher >>> --- >>> drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 >>> 1 file changed

Re: [PATCH 03/10] drm/amdgpu: handle runtime pm in fbcon

2016-09-01 Thread Michel Dänzer
On 02/09/16 05:44 AM, Alex Deucher wrote: > On Wed, Aug 31, 2016 at 9:04 PM, Michel Dänzer wrote: >> On 01/09/16 07:08 AM, Alex Deucher wrote: >>> Ported from nouveau. >>> >>> Signed-off-by: Alex Deucher >> >> [...] >> >>> +static int >>> +amdgpufb_open(struct fb_info *info, int user) >>> +{ >>>

答复: [PATCH] drm/amd/amdgpu: S4 issue for amdgpu

2016-09-01 Thread Qu, Jim
Hi Alex: Weird, last day, I used the fiji to check the S4 issue, there are some atom errors, but it did not observed if add atombios_fini/init. today, I change another fiji and also check the issue with the patch which comment out the atombios_fini/init. but could not see the atombios error. I

Re: [PATCH 03/10] drm/amdgpu: handle runtime pm in fbcon

2016-09-01 Thread Alex Deucher
On Wed, Aug 31, 2016 at 9:04 PM, Michel Dänzer wrote: > On 01/09/16 07:08 AM, Alex Deucher wrote: >> Ported from nouveau. >> >> Signed-off-by: Alex Deucher > > [...] > >> +static int >> +amdgpufb_open(struct fb_info *info, int user) >> +{ >> + struct amdgpu_fbdev *rfbdev = info->par; >> +

Re: [PATCH 01/10] drm/amdgpu: handle runtime pm in drm pre/post close

2016-09-01 Thread Alex Deucher
On Wed, Aug 31, 2016 at 9:03 PM, Michel Dänzer wrote: > On 01/09/16 07:08 AM, Alex Deucher wrote: >> Close was not handled correctly. >> >> Signed-off-by: Alex Deucher >> --- >> drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 >> 1 file changed, 4 insertions(+) >> >> diff --git a/drivers/gpu/dr

Re: [PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3)

2016-09-01 Thread Bas Nieuwenhuizen
gh On Thu, Sep 1, 2016 at 7:11 PM, Christian König wrote: > Thanks for jumping in and explaining what mesa needs on the user space side. > > I already had the feeling that this is a bit swampy, but was about to let it > pass because of lack of time to question it further. But with your notes > th

[PATCH] drm/amdgpu/gfx6: drop some dead code

2016-09-01 Thread Alex Deucher
The mqd is only used on CI and newer. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c index 17a560c..040bc7f 100644 ---

Re: [PATCH 3/3] drm/amd/amdgpu: Various tidy ups for gfx6

2016-09-01 Thread Christian König
Am 01.09.2016 um 19:44 schrieb Tom St Denis: Various whitespace and logical simplifications for gfx6. Signed-off-by: Tom St Denis --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 40 +-- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/drivers/gpu/drm

Re: [PATCH 1/3] drm/amd/amdgpu: Add GRBM lock to various SI functions

2016-09-01 Thread Christian König
Am 01.09.2016 um 19:44 schrieb Tom St Denis: Add missing lock around SE/SH/INSTANCE selections. Signed-off-by: Tom St Denis This one and #2 are Reviewed-by: Christian König . --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu

[PATCH 2/3] drm/amd/amdgpu: Simplify mask creation in gfx6

2016-09-01 Thread Tom St Denis
Signed-off-by: Tom St Denis --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c index 099539f0fa53..5f508c96496f 100644 --- a/drivers/gpu/drm/amd/amdgpu/

Various fixes for gfx6

2016-09-01 Thread Tom St Denis
Patch #1 adds missing mutex locking around se/sh/instance writes. Patches #2/3 perform various cleanups. ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

[PATCH 1/3] drm/amd/amdgpu: Add GRBM lock to various SI functions

2016-09-01 Thread Tom St Denis
Add missing lock around SE/SH/INSTANCE selections. Signed-off-by: Tom St Denis --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c index 17a560cd6420..099539f0fa53 100

[PATCH 3/3] drm/amd/amdgpu: Various tidy ups for gfx6

2016-09-01 Thread Tom St Denis
Various whitespace and logical simplifications for gfx6. Signed-off-by: Tom St Denis --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 40 +-- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amd

Re: [PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3)

2016-09-01 Thread Christian König
Thanks for jumping in and explaining what mesa needs on the user space side. I already had the feeling that this is a bit swampy, but was about to let it pass because of lack of time to question it further. But with your notes that proposed approach is clearly a NAK. I would prefer keeping t

Re: [PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3)

2016-09-01 Thread Bas Nieuwenhuizen
On Thu, Sep 1, 2016 at 12:55 PM, Liu, Monk wrote: >> Why does that makes a difference if it is seen for the first time? >> >> [ml] if it is presented for the first time for belonging ctx, means even >> current CS do not involve context switch, we still need keep the actions in >> preamble IB. >>

RE: [PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3)

2016-09-01 Thread Liu, Monk
Well then there is something wrong with the patch. Setting the preamble flag should result in an IB only being executed when there was a task switch. We can either implement that as a software solution by skipping the IBs in question or by using the hardware for this. Double checking your patch

RE: [PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3)

2016-09-01 Thread Liu, Monk
Which part is no correct ? When CONTEXT_CONTROL introduced in kernel side, it dynamically skips or keeps the commands in preamble CEIB (LOAD_CE_RAM), so the Preamble CE IB not needed to skipped by software method. But don't forget that CONTEXT_CONTROL also dynamically controls if the following

RE: [PATCH 2/2] drm/amdgpu: prevent command submission failures under memory pressure

2016-09-01 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Thursday, September 01, 2016 10:16 AM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 2/2] drm/amdgpu: prevent command submission failures > under memory pressure

RE: [PATCH 1/2] drm/amdgpu: only try again if we actually run into -ENOMEM

2016-09-01 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Thursday, September 01, 2016 10:16 AM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH 1/2] drm/amdgpu: only try again if we actually run into - > ENOMEM > > From

[PATCH 2/2] drm/amdgpu: prevent command submission failures under memory pressure

2016-09-01 Thread Christian König
From: Christian König As last resort try to evict BOs from the current working set into other memory domains. This effectively prevents command submission failures when VM page tables have been swapped out. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drive

[PATCH 1/2] drm/amdgpu: only try again if we actually run into -ENOMEM

2016-09-01 Thread Christian König
From: Christian König All other errors can't be fixed by using a different memory domain. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/

Re: [PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3)

2016-09-01 Thread Christian König
Am 01.09.2016 um 12:55 schrieb Liu, Monk: Why does that makes a difference if it is seen for the first time? [ml] if it is presented for the first time for belonging ctx, means even current CS do not involve context switch, we still need keep the actions in preamble IB. Usually if current CS i

RE: [PATCH v2 xf86-video-ati 1/2] Only copy from screen pixmap to shared pixmap on demand for slave scanout

2016-09-01 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Michel Dänzer > Sent: Thursday, September 01, 2016 3:46 AM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH v2 xf86-video-ati 1/2] Only copy from screen pixmap to > shared pixmap on deman

Re: [PATCH] drm/amd/amdgpu: S4 issue for amdgpu

2016-09-01 Thread Alex Deucher
On Thu, Sep 1, 2016 at 2:22 AM, jimqu wrote: > reset the asic if adapter is not powerdown when doing freeze() > thaw() and restore(), in order to get a valid state of adapter. > > Change-Id: Id2e4587c06b556eb651ab9277ffc903f780dea56 > Signed-off-by: JimQu > --- > drivers/gpu/drm/amd/amdgpu/amdgp

RE: [PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3)

2016-09-01 Thread Liu, Monk
> Why does that makes a difference if it is seen for the first time? > > [ml] if it is presented for the first time for belonging ctx, means even > current CS do not involve context switch, we still need keep the actions in > preamble IB. > Usually if current CS is from the same cntx of previous

[PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v4)

2016-09-01 Thread Monk Liu
v1: for gfx8, use CONTEXT_CONTROL package to dynamically skip preamble CEIB and other load_xxx command in sequence. v2: support GFX7 as well, and bump up version. remove cntxcntl in compute ring funcs because CPC doesn't support this packet. v3: fix reduntant judgement in cntxcntl. v4: some clean

Re: [PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3)

2016-09-01 Thread Bas Nieuwenhuizen
On Thu, Sep 1, 2016 at 9:37 AM, Liu, Monk wrote: > > > -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of > Christian K?nig > Sent: Wednesday, August 31, 2016 7:53 PM > To: Liu, Monk ; amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH] drm/amd

[PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3)

2016-09-01 Thread Monk Liu
v1: for gfx8, use CONTEXT_CONTROL package to dynamically skip preamble CEIB and other load_xxx command in sequence. v2: support GFX7 as well, and bump up version. remove cntxcntl in compute ring funcs because CPC doesn't support this packet. v3: fix reduntant judgement in cntxcntl. v4: some clean

[PATCH v2 xf86-video-ati 1/2] Only copy from screen pixmap to shared pixmap on demand for slave scanout

2016-09-01 Thread Michel Dänzer
From: Michel Dänzer Only copy once for each time we update the corresponding scanout pixmap. This can significantly reduce the bandwidth usage when there are frequent updates to the screen pixmap. This initial implementation only works when both the master and slave screens use this driver. v2:

RE: [PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3)

2016-09-01 Thread Liu, Monk
-Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Christian K?nig Sent: Wednesday, August 31, 2016 7:53 PM To: Liu, Monk ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu:implement CONTEXT_CONTROL (v3) Looks good to me in general,