Re: [PATCH libdrm v4 1/1] amdgpu: move asic id table to a separate file

2017-05-31 Thread Michel Dänzer
On 31/05/17 10:17 PM, Alex Deucher wrote: > On Wed, May 31, 2017 at 1:15 AM, Michel Dänzer wrote: >> On 31/05/17 07:31 AM, Li, Samuel wrote: >>> From: Michel Dänzer [mailto:mic...@daenzer.net] On 30/05/17 06:16 AM, Samuel Li wrote: > +67FF, CF, 67FF:CF

Re: [PATCH] drm/amdgpu: enable gfx 9.0 cp interrupts

2017-05-31 Thread Huang Rui
On Thu, Jun 01, 2017 at 12:26:40PM +0800, Ken Wang wrote: > Change-Id: If7dee7bd1074eac7faa6af724a7272f9ce6f3a98 > Signed-off-by: Ken Wang Reviewed-by: Huang Rui > --- > drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 --- > 1 file changed, 3 deletions(-)

RE: [PATCH] drm/amdgpu: enable gfx 9.0 cp interrupts

2017-05-31 Thread Zhang, Hawking
Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Ken Wang Sent: Thursday, June 01, 2017 11:07 To: amd-gfx@lists.freedesktop.org Cc: Wang, Ken Subject:

Re: [PATCH 01/18] drm/amdgpu: abstract gart table initialization for gfxhub/mmhub

2017-05-31 Thread zhoucm1
On 2017年06月01日 13:29, Huang Rui wrote: On Thu, Jun 01, 2017 at 12:19:19PM +0800, zhoucm1 wrote: On 2017年06月01日 00:14, Huang Rui wrote: Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 33 +++-

Re: [PATCH 01/18] drm/amdgpu: abstract gart table initialization for gfxhub/mmhub

2017-05-31 Thread Huang Rui
On Thu, Jun 01, 2017 at 12:19:19PM +0800, zhoucm1 wrote: > > > On 2017年06月01日 00:14, Huang Rui wrote: > >Signed-off-by: Huang Rui > >--- > > drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 33 > > +++- > > drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 33

[PATCH] drm/amdgpu: enable gfx 9.0 cp interrupts

2017-05-31 Thread Ken Wang
Change-Id: If7dee7bd1074eac7faa6af724a7272f9ce6f3a98 Signed-off-by: Ken Wang --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index

Re: [PATCH] drm/amdgpu: enable gfx 9.0 cp interrupts

2017-05-31 Thread zhoucm1
On 2017年06月01日 12:26, Ken Wang wrote: Change-Id: If7dee7bd1074eac7faa6af724a7272f9ce6f3a98 Signed-off-by: Ken Wang Reviewed-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 --- 1 file changed, 3 deletions(-) diff --git

[PATCH] drm/amdgpu: enable gfx 9.0 cp interrupts

2017-05-31 Thread Ken Wang
Change-Id: If7dee7bd1074eac7faa6af724a7272f9ce6f3a98 Signed-off-by: Ken Wang --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index

[PATCH] drm/amdgpu: enable gfx 9.0 cp interrupts

2017-05-31 Thread Ken Wang
Change-Id: If7dee7bd1074eac7faa6af724a7272f9ce6f3a98 Signed-off-by: Ken Wang --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index

[PATCH] drm/amdgpu: enable gfx 9.0 cp interrupts

2017-05-31 Thread Ken Wang
Change-Id: If7dee7bd1074eac7faa6af724a7272f9ce6f3a98 Signed-off-by: Ken Wang --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index

Re: [PATCH 3/4] drm/amdgpu: increase fragmentation size for Vega10

2017-05-31 Thread zhoucm1
On 2017年05月31日 20:38, Christian König wrote: From: Christian König The fragment bits work differently for Vega10 compared to previous generations. Increase the fragment size to 2MB for now to better handle that. I checked the fragment bits in PTE, don't find

Re: [PATCH 00/18] Vega10 S3 following up

2017-05-31 Thread Huang Rui
On Thu, Jun 01, 2017 at 01:00:16AM +0800, Zhang, Hawking wrote: > I would suggest to use RREG32_SOC15/ WREG32_SOC15 to avoid code refactor > again... > Right. Thanks to reminder. Will update it in next version. Thanks, Ray ___ amd-gfx mailing list

Re: [PATCH 18/18] drm/amdgpu: fix the gart table cleared issue for S3

2017-05-31 Thread Huang Rui
On Thu, Jun 01, 2017 at 12:58:02AM +0800, Koenig, Christian wrote: > Am 31.05.2017 um 18:29 schrieb Deucher, Alexander: > > > -Original Message- > > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > > Of Huang Rui > > Sent: Wednesday, May 31, 2017

Re: [PATCH 11/18] drm/amdgpu: export mmhub sw_init into gmc

2017-05-31 Thread Huang Rui
On Thu, Jun 01, 2017 at 01:04:52AM +0800, Koenig, Christian wrote: > Am 31.05.2017 um 18:14 schrieb Huang Rui: > > Signed-off-by: Huang Rui > > --- > > drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 1 + > > drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 27

[PATCH 4/5] amdgpu/cs: split out fence dependency checking

2017-05-31 Thread Dave Airlie
From: Dave Airlie This just splits out the fence depenency checking into it's own function to make it easier to add semaphore dependencies. Reviewed-by: Christian König Signed-off-by: Dave Airlie ---

[PATCH 3/5] drm/syncobj: add sync_file interaction. (v1.2)

2017-05-31 Thread Dave Airlie
From: Dave Airlie This interface allows importing the fence from a sync_file into an existing drm sync object, or exporting the fence attached to an existing drm sync object into a new sync file object. This should only be used to interact with sync files where necessary.

[PATCH 1/5] drm: introduce sync objects (v4)

2017-05-31 Thread Dave Airlie
From: Dave Airlie Sync objects are new toplevel drm object, that contain a pointer to a fence. This fence can be updated via command submission ioctls via drivers. There is also a generic wait obj API modelled on the vulkan wait API (with code modelled on some amdgpu code).

drm syncobjs - running out of tag lines

2017-05-31 Thread Dave Airlie
Okay so Christian said he wanted lookup and replace split in the amdgpu cs, this does this, and looks a bit cleaner, it required changing some of the interfaces around on what is exported. Dave. ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org

[PATCH] drm/amdgpu: Move compute vm bug logic to amdgpu_vm.c

2017-05-31 Thread Alex Xie
In review, Christian would like to keep the logic inside amdgpu_vm.c with a cost of slightly slower. The loop is still optimized out with this patch. v2: remove the if statement. Now it is not slower. Signed-off-by: Alex Xie ---

Re: [PATCH libdrm v6 1/1] amdgpu: move asic id table to a separate file

2017-05-31 Thread Alex Deucher
On Wed, May 31, 2017 at 4:22 PM, Samuel Li wrote: > From: Xiaojie Yuan > > v2: fix an off by one error and leading white spaces > v3: use thread safe strtok_r(); initialize len before calling getline(); > change printf() to drmMsg(); add initial

RE: [PATCH 3/3] drm/amdgpu: add saved_bo to save vce 4.0 context when suspend

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Leo Liu > Sent: Wednesday, May 31, 2017 5:01 PM > To: amd-gfx@lists.freedesktop.org > Cc: Liu, Leo > Subject: [PATCH 3/3] drm/amdgpu: add saved_bo to save vce 4.0 context > when suspend > >

[PATCH 3/3] drm/amdgpu: add saved_bo to save vce 4.0 context when suspend

2017-05-31 Thread Leo Liu
We are using PSP to resume firmware after suspend, and it is resumed at where it got suspended, so we'd better save the the context. Signed-off-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h | 1 + drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 45

[PATCH] tests/kms_setmode: Dynamic crtc/connector combinations

2017-05-31 Thread Harry Wentland
Create crtc/connector combinations based on actual adapter information obtained from drmModeRes. Also set MAX_CRTCs to 6 for AMD GPUs. Signed-off-by: Harry Wentland --- tests/kms_setmode.c | 52 1 file changed, 32

Re: [Intel-gfx] [PATCH i-g-t] tests/kms_setmode: increase MAX_CRTCS to 6

2017-05-31 Thread Harry Wentland
On 2017-05-31 09:32 AM, Harry Wentland wrote: On 2017-05-31 05:37 AM, Daniel Vetter wrote: On Tue, May 30, 2017 at 04:01:40PM -0400, Harry Wentland wrote: AMD GPUs can have 6 CRTCs. This requires us to allocate the combinations on the heap. Signed-off-by: Harry Wentland

Re: [PATCH 3/3] drm/amdgpu: add saved_bo to save vce 4.0 context when suspend

2017-05-31 Thread Leo Liu
On 05/31/2017 03:54 PM, Deucher, Alexander wrote: > -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Leo Liu > Sent: Wednesday, May 31, 2017 3:28 PM > To: amd-gfx@lists.freedesktop.org > Cc: Liu, Leo > Subject: [PATCH 3/3] drm/amdgpu: add

RE: [PATCH libdrm v5 1/1] amdgpu: move asic id table to a separate file

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Samuel Li > Sent: Wednesday, May 31, 2017 4:02 PM > To: amd-gfx@lists.freedesktop.org > Cc: Li, Samuel; Yuan, Xiaojie > Subject: [PATCH libdrm v5 1/1] amdgpu: move asic id table to a separate

[PATCH libdrm v5 1/1] amdgpu: move asic id table to a separate file

2017-05-31 Thread Samuel Li
From: Xiaojie Yuan v2: fix an off by one error and leading white spaces v3: use thread safe strtok_r(); initialize len before calling getline(); change printf() to drmMsg(); add initial amdgpu.ids v4: integrate some recent internal changes, including format changes v5:

RE: [PATCH 3/3] drm/amdgpu: add saved_bo to save vce 4.0 context when suspend

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Leo Liu > Sent: Wednesday, May 31, 2017 3:28 PM > To: amd-gfx@lists.freedesktop.org > Cc: Liu, Leo > Subject: [PATCH 3/3] drm/amdgpu: add saved_bo to save vce 4.0 context > when suspend > >

[PATCH 3/3] drm/amdgpu: add saved_bo to save vce 4.0 context when suspend

2017-05-31 Thread Leo Liu
We are using PSP to resume firmware after suspend, and it is resumed at where it got suspended, so we'd better save the the context. Signed-off-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h | 1 + drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 39

[PATCH 2/3] drm/amdgpu: use existing function amdgpu_bo_create_kernel

2017-05-31 Thread Leo Liu
To simplify vce bo create Signed-off-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 27 +++ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c index

[PATCH 1/3] drm/amdgpu: add vcpu_bo cpu address

2017-05-31 Thread Leo Liu
Signed-off-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h index 0a7f18c..c93f74a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h

Re: [RFC] Exclusive gpu access for SteamVR usecases

2017-05-31 Thread Andres Rodriguez
On 2017-05-31 02:53 AM, Christian König wrote: 2. How are the priorities from processes supposed to interact with the per context priority? Do you mean process niceness? There isn't any relationship between niceness and gpu priority. Let me know if you meant something different here. I

Re: [PATCH 1/3] drm/amdgpu: Optimize a function called by every IB sheduling

2017-05-31 Thread Xie, AlexBin
Hi Christian, I have asked for code review of a new patch. It turns out that the index operation is not needed. But there is one extra if statement in every IB submission, which will be a slight performance hit. Function amdgpu_vm_check_compute_bug is called in amdgpu_device_init. Function

[pull] amdgpu drm-fixes-4.12

2017-05-31 Thread Alex Deucher
Hi Dave, Just one fix for VCE3. The following changes since commit 5ed02dbb497422bf225783f46e6eadd237d23d6b: Linux 4.12-rc3 (2017-05-28 17:20:53 -0700) are available in the git repository at: git://people.freedesktop.org/~agd5f/linux drm-fixes-4.12 for you to fetch changes up to

[PATCH] drm/amdgpu: Move compute vm bug logic to amdgpu_vm.c

2017-05-31 Thread Alex Xie
In review, Christian would like to keep the logic inside amdgpu_vm.c with a cost of slightly slower. The loop is still optimized out with this patch. Signed-off-by: Alex Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++

RE: Linux Kernel 4.4.0-66 Possible DRM connector_status Bug For LG Displays

2017-05-31 Thread Deucher, Alexander
Nothing comes to mind. It's presumably a change in the drm area so you could limit the bisection to just drivers/gpu/drm. From: Tom Reddish [mailto:tom.redd...@mediavuesystems.com] Sent: Wednesday, May 31, 2017 1:48 PM To: Deucher, Alexander Cc: Koenig, Christian; amd-gfx@lists.freedesktop.org;

Re: Linux Kernel 4.4.0-66 Possible DRM connector_status Bug For LG Displays

2017-05-31 Thread Tom Reddish
I can do that. I've looked through the changelog between the two and theres a number of things related to drm and radeon but I'm not exactly sure what I should be looking for. Are there any specific files that jump out to you in your head that would be handling this part of interaction with the

RE: [PATCH 00/18] Vega10 S3 following up

2017-05-31 Thread Zhang, Hawking
I would suggest to use RREG32_SOC15/ WREG32_SOC15 to avoid code refactor again... Regards, Hawking -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Huang Rui Sent: Thursday, June 01, 2017 0:15 To: amd-gfx@lists.freedesktop.org; Deucher,

Linux Kernel 4.4.0-66 Possible DRM connector_status Bug For LG Displays

2017-05-31 Thread Tom Reddish
LG Displays are being reported as "disconnected" when they are powered off (currently connected through DVI to mini-displayport adapter) Only seeing this with LG displays (have tested NEC and Samsung *limited model types for each manufacturer*). With the LG display connected to the graphics

Re: Linux Kernel 4.4.0-66 Possible DRM connector_status Bug For LG Displays

2017-05-31 Thread Tom Reddish
What do you mean by bisect? My gut is telling me it's something that changed in the kernel. Maybe the kernel is correctly parsing the information it is being given from the display now and in the older kernel it was handling that information differently? With the exact same display and no

Re: [PATCH 11/18] drm/amdgpu: export mmhub sw_init into gmc

2017-05-31 Thread Christian König
Am 31.05.2017 um 18:14 schrieb Huang Rui: Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 1 + drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 27 +++ drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h | 1 + 3 files changed, 17

Re: [PATCH 01/18] drm/amdgpu: abstract gart table initialization for gfxhub/mmhub

2017-05-31 Thread Christian König
Am 31.05.2017 um 18:14 schrieb Huang Rui: Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 33 +++- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 33 +++- 2 files changed, 40 insertions(+), 26

Re: [PATCH 18/18] drm/amdgpu: fix the gart table cleared issue for S3

2017-05-31 Thread Christian König
Am 31.05.2017 um 18:29 schrieb Deucher, Alexander: > -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Huang Rui > Sent: Wednesday, May 31, 2017 12:15 PM > To: amd-gfx@lists.freedesktop.org; Deucher, Alexander; Koenig, Christian > Cc: Wang,

RE: Linux Kernel 4.4.0-66 Possible DRM connector_status Bug For LG Displays

2017-05-31 Thread Deucher, Alexander
Use git to bisect between the current problematic kernel and the last working kernel. Bisecting is a git feature that allows you to bisect the commits between two points to determine what change caused the regression. Google for "git bisect howto". Alex From: Tom Reddish

[PATCH 01/18] drm/amdgpu: abstract gart table initialization for gfxhub/mmhub

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 33 +++- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 33 +++- 2 files changed, 40 insertions(+), 26 deletions(-) diff --git

RE: [PATCH 00/18] Vega10 S3 following up

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Huang Rui > Sent: Wednesday, May 31, 2017 12:15 PM > To: amd-gfx@lists.freedesktop.org; Deucher, Alexander; Koenig, Christian > Cc: Wang, Ken; Huang, Ray; Huan, Alvin > Subject: [PATCH 00/18]

Re: [PATCH 04/19] drm/amd/display: Fix handling of scaling and underscan.

2017-05-31 Thread Kai Wasserbäch
Hey Harry, hey Andrey, Harry Wentland wrote on 31.05.2017 17:52: > From: Andrey Grodzovsky > > Summury of changes: s/Summury/Summary/ > 1: Both in check and commit Connector properties were handled as s/in// ? >part of for_each(crtc) loop while they shoud have

RE: [PATCH 02/18] drm/amdgpu: abstract gart aperture initialization for gfxhub/mmhub

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Huang Rui > Sent: Wednesday, May 31, 2017 12:15 PM > To: amd-gfx@lists.freedesktop.org; Deucher, Alexander; Koenig, Christian > Cc: Wang, Ken; Huang, Ray; Huan, Alvin > Subject: [PATCH 02/18]

RE: [PATCH 01/18] drm/amdgpu: abstract gart table initialization for gfxhub/mmhub

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: Huang Rui [mailto:ray.hu...@amd.com] > Sent: Wednesday, May 31, 2017 12:15 PM > To: amd-gfx@lists.freedesktop.org; Deucher, Alexander; Koenig, Christian > Cc: Wang, Ken; Huan, Alvin; Huang, Ray > Subject: [PATCH 01/18] drm/amdgpu: abstract gart table

[PATCH 03/18] drm/amdgpu: abstract system aperture initialization for gfxhub/mmhub

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 61 ++- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 101 ++- 2 files changed, 81 insertions(+), 81 deletions(-) diff --git

Re: [PATCH 12/19] drm/amd/display: Don't guard x86 in Makefile

2017-05-31 Thread Kai Wasserbäch
Hey Harry, you should drop this patch and remove the addition from patch 3 AFAICT. Cheers, Kai P.S.: IIRC the conclusion of the last discussion was, that this code is needed on non-x86 hardware as well. Shouldn't there at least be some TODO added somewhere in the DCN code or maybe now in the

[PATCH 04/18] drm/amdgpu: abstract TLB initialization for gfxhub/mmhub

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 51 ++-- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 22 ++ 2 files changed, 44 insertions(+), 29 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c

RE: [PATCH 18/18] drm/amdgpu: fix the gart table cleared issue for S3

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Huang Rui > Sent: Wednesday, May 31, 2017 12:15 PM > To: amd-gfx@lists.freedesktop.org; Deucher, Alexander; Koenig, Christian > Cc: Wang, Ken; Huang, Ray; Huan, Alvin > Subject: [PATCH 18/18]

RE: Linux Kernel 4.4.0-66 Possible DRM connector_status Bug For LG Displays

2017-05-31 Thread Deucher, Alexander
Can you bisect? Sounds like the monitor does not keep the EDID powered up when the display is off as is required by the vesa spec. Alex From: Tom Reddish [mailto:tom.redd...@mediavuesystems.com] Sent: Wednesday, May 31, 2017 12:20 PM To: Deucher, Alexander; Koenig, Christian Cc:

[PATCH 18/18] drm/amdgpu: fix the gart table cleared issue for S3

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 ++

[PATCH 17/18] drm/amdgpu: add ip block number prints

2017-05-31 Thread Huang Rui
User is able to follow the ip block number to write the ip_block_mask for selecting the one which user would like to enable. Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 16/18] drm/amdgpu: add ip name print for selecting ips with ip_block_mask

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index c6debba..08d6908 100644 ---

[PATCH 15/18] drm/amdgpu: remove mmhub ip

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 - drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c| 93 -- drivers/gpu/drm/amd/amdgpu/soc15.c | 1 - drivers/gpu/drm/amd/include/amd_shared.h | 1 - 4 files

[PATCH 14/18] drm/amdgpu: remove gfxhub ip

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 - drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 93 -- drivers/gpu/drm/amd/amdgpu/soc15.c | 1 - drivers/gpu/drm/amd/include/amd_shared.h | 1 - 4 files

[PATCH 11/18] drm/amdgpu: export mmhub sw_init into gmc

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 1 + drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 27 +++ drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h | 1 + 3 files changed, 17 insertions(+), 12 deletions(-) diff --git

[PATCH 10/18] drm/amdgpu: export gfxhub sw_init into gmc

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 26 ++ drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h | 1 + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c| 2 ++ 3 files changed, 17 insertions(+), 12 deletions(-) diff --git

[PATCH 12/18] drm/amdgpu: export mmhub set clockgating into gmc

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 +++- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 12 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h | 2 ++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git

[PATCH 09/18] drm/amdgpu: fix to miss program invalidation at resume

2017-05-31 Thread Huang Rui
This patch moves invalidation into gart enable function from hw_init. Because we would like align the sequence calling between init and resume. Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 27 +++

[PATCH 08/18] drm/amdgpu: abstract setup vmid config for gfxhub/mmhub

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 55 --- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 56 +--- 2 files changed, 59 insertions(+), 52 deletions(-) diff --git

[PATCH 07/18] drm/amdgpu: abstract disable identity aperture for gfxhub/mmhub

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 37 ++-- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 36 +-- 2 files changed, 41 insertions(+), 32 deletions(-) diff --git

[PATCH 06/18] drm/amdgpu: abstract system domain enablement for gfxhub/mmhub

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 22 -- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 27 --- 2 files changed, 32 insertions(+), 17 deletions(-) diff --git

[PATCH 05/18] drm/amdgpu: abstract cache initialization for gfxhub/mmhub

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 72 +++--- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 88 +++- 2 files changed, 62 insertions(+), 98 deletions(-) diff --git

[PATCH 02/18] drm/amdgpu: abstract gart aperture initialization for gfxhub/mmhub

2017-05-31 Thread Huang Rui
Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 34 +--- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 33 +-- 2 files changed, 36 insertions(+), 31 deletions(-) diff --git

[PATCH 00/18] Vega10 S3 following up

2017-05-31 Thread Huang Rui
Hi all, These patches refines gfxhub/mmhub programming sequence to make them clear and readable. And actually, gfxhub + mmhub = GMCv9 for vega10, we don't need specific gfxhub and mmhub ip blocks, and meanwhile, they have different resume sequence during gfxhub, mmhub, and gmc. That will make

[PATCH 12/19] drm/amd/display: Don't guard x86 in Makefile

2017-05-31 Thread Harry Wentland
make-kpkg doesn't seem to like it Change-Id: Ia589318e8632de57286c4a3d63a0a92a6cb96af3 Signed-off-by: Harry Wentland Reviewed-by: Andrey Grodzovsky Acked-by: Harry Wentland ---

[PATCH 14/19] drm/amd/display: re-order the luma chroma addres updation

2017-05-31 Thread Harry Wentland
From: Shirish S The DCE engine triggers scan as soon as the luma address is updated, since it is updated before chroma address the chroma data is not scanned out properly or in order. This patch fixes this by re-ordering the same. BUG: SWDEV-119421 TEST: (On Chromium OS for

[PATCH 18/19] drm/amd/display: enable static audio routing

2017-05-31 Thread Harry Wentland
From: Indrajit Das Change-Id: Ib61bf88eb16da50017944556995d3789735aea0c Signed-off-by: Indrajit Das Reviewed-by: Tony Cheng Acked-by: Harry Wentland ---

[PATCH 13/19] drm/amd/display: create_links bug with empty DDI slot

2017-05-31 Thread Harry Wentland
From: Hersen Wu Change-Id: Ia19bcb874b7ae22201f2b7cfef3c42c10276c6d5 Signed-off-by: Hersen Wu Reviewed-by: Hersen Wu Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 7

[PATCH 10/19] drm/amd/display: fix NULL pointer in dm_commit_surfaces

2017-05-31 Thread Harry Wentland
From: Jerry Zuo Check if adding surface is failed to prevent NULL pointer deref. Change-Id: I804585bf126e74570875f4b8508358d3bad172a0 Signed-off-by: Jerry Zuo Reviewed-by: Harry Wentland ---

[PATCH 16/19] drm/amd/display: update NV12/NV21 as the YUV format

2017-05-31 Thread Harry Wentland
From: Shirish S This patch updates the YUV format supported to NV12 and NV21 and hence updates the offsets. BUG: SWDEV-119421 TEST: (On Chromium OS for Stoney Only) * Executed below tests to see YUV(underlay) & RGB planes on eDP plane_test --format XR24 --size 500x100

[PATCH 19/19] drm/amd/display: stop adjusting scl taps when scl ratio is one on dcn

2017-05-31 Thread Harry Wentland
From: Dmytro Laktyushkin Change-Id: I7df3470eb793f91e9a3d765b476bf181a56663b3 Signed-off-by: Dmytro Laktyushkin Reviewed-by: Dmytro Laktyushkin Acked-by: Harry Wentland ---

[PATCH 11/19] drm/amd/display: Get rid of get_dm_commit_action

2017-05-31 Thread Harry Wentland
From: Andrey Grodzovsky Use drm_atomic_crtc_needs_modeset instead. Change-Id: I296cd1c8f8a2e4239a3cb814805868c14bcd20ba Signed-off-by: Andrey Grodzovsky Reviewed-by: Harry Wentland ---

[PATCH 15/19] drm/amd/display: default spd packet to invalid

2017-05-31 Thread Harry Wentland
From: Jeff Smith Change-Id: I7ec74c131caa7d085415d5fd15c4e442a39b966a Signed-off-by: Jeff Smith Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 1 + 1

[PATCH 07/19] drm/amd/display: Allow update stream without surface

2017-05-31 Thread Harry Wentland
From: Corbin McElhanney Passing NULL as surfaceUpdates to dc_update_surfaces_and_stream now updates just the stream. Code that is dependent on srf_updates was moved below the NULL check. Change-Id: Iee54909c6c89c150b376aa85c95f0307d4fa91ab Signed-off-by: Corbin

[PATCH 08/19] drm/amd/display: Add FORCE_HDR timing flag

2017-05-31 Thread Harry Wentland
From: Zeyu Fan Change-Id: I486b2be53a380956b3405874ecb92d83b62135a0 Signed-off-by: Zeyu Fan Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 2 ++ 1 file

[PATCH 03/19] drm/amd/display: Limit DCN to x86 arch

2017-05-31 Thread Harry Wentland
DCN bw calcs currently rely on the following gcc options: -mhard-float -msse -mpreferred-stack-boundary=4 We probably shouldn't really try building this on architectures other than x86. Change-Id: I63d214b2f6fe9b3fc0d59bd00563e0543f0baa8c CC: Alex Deucher CC:

[PATCH 06/19] drm/amd/display: Add disable_psr debug flag

2017-05-31 Thread Harry Wentland
From: Charlene Liu Change-Id: I09afa9c67b09ec3d9e547ce71963015d8eddd499 Signed-off-by: Charlene Liu Reviewed-by: Charlene Liu Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 1 + 1

[PATCH 05/19] drm/amd/display: Clean unused interface.

2017-05-31 Thread Harry Wentland
From: Andrey Grodzovsky Change-Id: I65f1e3920bebeac06336add3a136b0ff452782c6 Signed-off-by: Andrey Grodzovsky Reviewed-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc.c | 42

[PATCH 04/19] drm/amd/display: Fix handling of scaling and underscan.

2017-05-31 Thread Harry Wentland
From: Andrey Grodzovsky Summury of changes: 1: Both in check and commit Connector properties were handled as part of for_each(crtc) loop while they shoud have been handled in a dedicated for_each(connector) loop since they are connector properties. Moved. 2:

[PATCH 09/19] drm/amd/display: Disable PSR entry abort to prevent intermittent freezes

2017-05-31 Thread Harry Wentland
From: Amy Zhang Change-Id: I8beaae4b027868ed3a088d89b2396b0097611830 Signed-off-by: Amy Zhang Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 5 + 1 file

[PATCH 00/19] DC Linux Patches May 31, 2017

2017-05-31 Thread Harry Wentland
* Fix missed scaler programming * Some cleanups in atomic_check and commit_tail * Restrict DCN to x86 * Bunch of DCN and other fixes Amy Zhang (1): drm/amd/display: Disable PSR entry abort to prevent intermittent freezes Andrey Grodzovsky (4): drm/amd/display: program scaler not

[PATCH 17/19] drm/amd/display: Don't commit surfaces if no stream

2017-05-31 Thread Harry Wentland
Change-Id: Id369865feb28818a62f8eb26ce4b2dee097a7bcb Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c | 11 +-- 1 file changed,

[PATCH 02/19] drm/amd/display: program scaler not called.

2017-05-31 Thread Harry Wentland
From: Andrey Grodzovsky Scaler code in case of UPDATE_TYPE_MED was not called since new pipe context and current context are the same. Change-Id: Ib8ce1c3497fff24ce78e20a092139a755fb1423d Signed-off-by: Andrey Grodzovsky Reviewed-by: Dmytro

[PATCH 01/19] drm/amd/display: add always_scale debug flag to dc

2017-05-31 Thread Harry Wentland
From: Dmytro Laktyushkin Change-Id: Ie2f36ef791ae61da6a806c1b6ad6195db52afd83 Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland ---

[PATCH 00/19] DC Linux Patches May 31, 2017

2017-05-31 Thread Harry Wentland
* Fix missed scaler programming * Some cleanups in atomic_check and commit_tail * Restrict DCN to x86 * Bunch of DCN and other fixes Amy Zhang (1): drm/amd/display: Disable PSR entry abort to prevent intermittent freezes Andrey Grodzovsky (4): drm/amd/display: program scaler not

RE: [PATCH libdrm v4 1/1] amdgpu: move asic id table to a separate file

2017-05-31 Thread Li, Samuel
Please see comments incline, -Original Message- From: Michel Dänzer [mailto:mic...@daenzer.net] Sent: Wednesday, May 31, 2017 1:15 AM To: Li, Samuel Cc: amd-gfx@lists.freedesktop.org; Yuan, Xiaojie Subject: Re: [PATCH libdrm v4 1/1] amdgpu: move

RE: [PATCH 4/4] drm/amd/powerplay: enable CKS by default on vega10.

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Rex Zhu > Sent: Wednesday, May 31, 2017 8:16 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhu, Rex > Subject: [PATCH 4/4] drm/amd/powerplay: enable CKS by default on vega10. > > Change-Id:

RE: [PATCH 3/4] drm/amd/powerplay: Align with VBIOS to support AVFS parameters.

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Rex Zhu > Sent: Wednesday, May 31, 2017 8:16 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhu, Rex > Subject: [PATCH 3/4] drm/amd/powerplay: Align with VBIOS to support AVFS > parameters. >

RE: [PATCH 2/4] drm/amd/powerplay: Add floor DCEF for DS on boot.

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Rex Zhu > Sent: Wednesday, May 31, 2017 8:16 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhu, Rex > Subject: [PATCH 2/4] drm/amd/powerplay: Add floor DCEF for DS on boot. > > Change-Id:

RE: [PATCH 1/4] drm/amd/powerplay: hardcode temp range to 0-89 for vega10.

2017-05-31 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Rex Zhu > Sent: Wednesday, May 31, 2017 8:16 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhu, Rex > Subject: [PATCH 1/4] drm/amd/powerplay: hardcode temp range to 0-89 for > vega10. > >

Re: iMac 10,1 with Ubuntu 16.04: black screen after suspend

2017-05-31 Thread Florian Echtler
On 30.05.2017 12:54, Lukas Wunner wrote: > On Tue, May 30, 2017 at 11:34:17AM +0200, Florian Echtler wrote: >> On 26.05.2017 23:03, Lukas Wunner wrote: >>> On Fri, May 26, 2017 at 02:13:29PM +0200, Florian Echtler wrote: I'm running Ubuntu 16.04.2 on a 27" unibody iMac 10,1 from 2009.

[PATCH] drm/amdgpu/gfx8: drop per-APU CU limits

2017-05-31 Thread Alex Deucher
Always use the max for the family rather than the per sku limits. This makes sure the mask is always the max size to avoid reporting the wrong number of CUs. Cc: sta...@vger.kernel.org Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 71

[PATCH libdrm 3/5] tests/amdgpu: move decode sum to common

2017-05-31 Thread Leo Liu
Signed-off-by: Leo Liu Acked-by: Christian König --- tests/amdgpu/cs_tests.c| 2 +- tests/amdgpu/decode_messages.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c index

[PATCH libdrm 5/5] tests/amdgpu: implement vcn dec unit tests

2017-05-31 Thread Leo Liu
Signed-off-by: Leo Liu Acked-by: Christian König --- tests/amdgpu/decode_messages.h | 30 + tests/amdgpu/vcn_tests.c | 139 - 2 files changed, 166 insertions(+), 3 deletions(-) diff --git

[PATCH libdrm 4/5] tests/amdgpu: add vcn tests support and sets

2017-05-31 Thread Leo Liu
Signed-off-by: Leo Liu Acked-by: Christian König --- tests/amdgpu/Makefile.am | 3 +- tests/amdgpu/amdgpu_test.c | 6 + tests/amdgpu/amdgpu_test.h | 15 +++ tests/amdgpu/vcn_tests.c | 277 + 4 files

  1   2   >