Re: [PATCH 1/3] drm/amdgpu: check domain sanity in amdgpu_bo_pin_restricted()

2016-08-17 Thread Michel Dänzer
On 18/08/16 02:36 PM, Flora Cui wrote: > abort if the bo is pined to other domain already > > Change-Id: I0e8eb3e0af0fad1edaf647050399e5a36226a5d9 > Signed-off-by: Flora Cui The new patches 1 & 3 are Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://

答复: [PATCH 3/3] drm/amdgpu: use domain's gpu_offset for start addr

2016-08-17 Thread Wang, Ken
Reviewed-by: Ken Wang 发件人: amd-gfx 代表 Flora Cui 发送时间: 2016年8月18日 13:36:59 收件人: amd-gfx@lists.freedesktop.org 抄送: Cui, Flora 主题: [PATCH 3/3] drm/amdgpu: use domain's gpu_offset for start addr Change-Id: I77610c286af4cf77bb508136fffc0c77c7cbc34b Signed-off-by: F

[PATCH 1/3] drm/amdgpu: check domain sanity in amdgpu_bo_pin_restricted()

2016-08-17 Thread Flora Cui
abort if the bo is pined to other domain already Change-Id: I0e8eb3e0af0fad1edaf647050399e5a36226a5d9 Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd

[PATCH 3/3] drm/amdgpu: use domain's gpu_offset for start addr

2016-08-17 Thread Flora Cui
Change-Id: I77610c286af4cf77bb508136fffc0c77c7cbc34b Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 8 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_objec

[PATCH 6/7] drm/amdgpu: link all shadow bo V2

2016-08-17 Thread Chunming Zhou
V2: 1. use mutex instead of spinlock for shadow list, since its process could sleep. 2. move list_del to bo destroy phase. Change-Id: I8af3b42e1b5d84ca04277f95aeca44cbc534ccb2 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 5 + drivers/gpu/drm/amd/amdgpu/amdgp

[PATCH 7/7] drm/amdgpu: recover vram bo from shadow after gpu reset

2016-08-17 Thread Chunming Zhou
Change-Id: I963598ba6eb44bc8620d70e026c0175d1a1de120 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 60 +- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amd

[PATCH 5/7] drm/amdgpu: update pt shadow while updating pt V2

2016-08-17 Thread Chunming Zhou
V2: move shadow parameter to amdgpu_pte_update_params. Change-Id: Ibc8fb4c5c9be38934ebd6d56f1cbd49cb82d53af Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdg

[PATCH 1/7] drm/amdgpu: add need backup function V2

2016-08-17 Thread Chunming Zhou
V2: add checking if need backup in amdgpu_bo_create. Change-Id: I76e2552078c9ae11b7f2a1769025230f61733659 Signed-off-by: Chunming Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 drivers/gpu/drm/amd/

[PATCH 0/7] shadow page table support V6 ---> shadow bo support

2016-08-17 Thread Chunming Zhou
Since we cannot ensure VRAM is consistent after a GPU reset, page table shadowing is necessary. Shadowed page tables are, in a sense, a method to recover the consistent state of the page tables before the reset occurred. We need to allocate GTT bo as the shadow of VRAM bo when creating page table,

[PATCH 4/7] drm/amdgpu: update pd shadow while updating pd V2

2016-08-17 Thread Chunming Zhou
V2: Checking if shadow is valid. Change-Id: Ief33f9539c24e1ab696935e2bfedd3630c07fc67 Signed-off-by: Chunming Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 60 +++--- 2 files changed, 42

[PATCH 2/7] drm/amdgpu: add direct submision option for copy_buffer

2016-08-17 Thread Chunming Zhou
Change-Id: I3acdcf24b0ccb86d5f2b0593ffcf3dad8b6ad29f Signed-off-by: Chunming Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | 4 ++-- drivers/gpu/d

[PATCH 3/7] drm/amdgpu: sync bo and shadow V3

2016-08-17 Thread Chunming Zhou
Use shadow flag to judge which direction to sync. V2: Don't need bo pin, so remove it. V3: 1. Split to two functions, one is backup_to_shadow, another is restore_from_shadow. 2. Clean up previous shadow direction difinitions. Change-Id: I9b540970d3a24c6aebeaa94c99f66a89134c663d Signed-off-by: Chu

Re: [PATCH 3/3] drm/amdgpu: minor refine amdgpu ttm codes

2016-08-17 Thread Michel Dänzer
On 18/08/16 11:58 AM, Flora Cui wrote: > 1. add check for domain in amdgpu_bo_pin_restricted() > 2. get domain gpu_offset for common use Please split this up into multiple patches, one for each logical change. Patch 1 is Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer |

[PATCH 2/3] drm/amdgpu: allow pagelist to be NULL for amdgpu_gart_bind

2016-08-17 Thread Flora Cui
Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c index 0feea34..03b9fd6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart

[PATCH 3/3] drm/amdgpu: minor refine amdgpu ttm codes

2016-08-17 Thread Flora Cui
1. add check for domain in amdgpu_bo_pin_restricted() 2. get domain gpu_offset for common use Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 13 +++-- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 8 ++-- 2 files changed, 9 insertions(+), 12 deletions(-) d

[PATCH 1/3] amdgpu: move ttm domain definitions to amdgpu.h

2016-08-17 Thread Flora Cui
Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 8 drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index a55eb6f..92064be

Re: [PATCH 5/5] drm/amdgpu: fix timeout value check in amd_sched_job_recovery

2016-08-17 Thread zhoucm1
On 2016年08月17日 20:26, Christian König wrote: From: Christian König Could be that we don't actually have a timeout set. Signed-off-by: Christian König Reviewed-by: Chunming Zhou --- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [PATCH 4/5] drm/amdgpu: fix sdma_v2_4_ring_test_ib

2016-08-17 Thread zhoucm1
On 2016年08月17日 20:26, Christian König wrote: From: Christian König Typo in checking the return code. Signed-off-by: Christian König Reviewed-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm

Re: Random short freezes due to TTM buffer migrations

2016-08-17 Thread Marek Olšák
Actually, I was wrong. The buffers in that app are pretty small. The largest one has 86 MB and others have 52 MB. I must have misread that as 520 MB. At one point, ttm_bo_validate with a 32 MB buffer moved 971 MB. Maybe it's just a VRAM fragmentation issue (i.e. a lack of contiguous free memory)

Re: [PATCH 3/5] drm/amdgpu: fix lru size grouping

2016-08-17 Thread Felix Kuehling
One suggestion inline [FK]. With that fixed, Reviewed-by: Felix Kuehling Regards, Felix On 16-08-17 08:26 AM, Christian König wrote: > From: Christian König > > Adding a BO can make it the insertion point for larger sizes as well. > > Signed-off-by: Christian König > --- > drivers/gpu/drm

Re: Random short freezes due to TTM buffer migrations

2016-08-17 Thread Christian König
Sharing buffers between applications is handled by the DRM layer and transparent to the driver. E.g. the driver is not even informed if a sharing is done by DMA-buf or GEM flink, it's just another reference to the BO. So there isn't any change to that at all. Regards, Christian. Am 17.08.20

[pull] amdgpu drm-fixes-4.8

2016-08-17 Thread Alex Deucher
Hi Dave, Just one small fix for amdgpu this week for systems with a gart aperture > 4 GB. The following changes since commit 93b1f14553a5f48104b639d28e41c2bb73c0dc37: Merge tag 'mediatek-drm-fixes-2016-08-12' of git://git.pengutronix.de/git/pza/linux into drm-fixes (2016-08-15 16:07:14 +1000

Re: Random short freezes due to TTM buffer migrations

2016-08-17 Thread Felix Kuehling
I think the scatter-gather tables only support system memory. As I understand it, a buffer in VRAM has be migrated to system memory before it can be shared with another driver. I'm more concerned about sharing with the same driver. There is a special code path for that, where we simply add another

slowpath warning on Tonga

2016-08-17 Thread StDenis, Tom
I just happened to notice this on my Tonga. It's otherwise operating fine. For ref, it's attached to a HDMI KVM which eventually makes it way to a DVI-D monitor. [ 28.579561] [ cut here ] [ 28.579613] WARNING: CPU: 4 PID: 1276 at drivers/gpu/drm/amd/amdgpu/../dal/

RE: [PATCH] drm/amd/amdgpu: Add more debugfs config data

2016-08-17 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Tom St Denis > Sent: Wednesday, August 17, 2016 12:13 PM > To: amd-gfx@lists.freedesktop.org > Cc: StDenis, Tom > Subject: [PATCH] drm/amd/amdgpu: Add more debugfs config data > > Adds family

Re: [PATCH xserver 0/6] modesetting: add DRI2 page flip support

2016-08-17 Thread Martin Peres
On 17/08/16 13:29, Qiang Yu wrote: Hi guys, This patch set is for adding DRI2 page flip support to modesetting driver. I mainly take reference of amdgpu DDX and reuse present page flip code in the modesetting driver. Regards, Qiang Qiang Yu (6): modesetting: make ms_do_pageflip generic for s

[PATCH] drm/amd/amdgpu: Add more debugfs config data

2016-08-17 Thread Tom St Denis
Adds family and external_rev_id to config data Signed-off-by: Tom St Denis --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index bbd317

Re: [PATCH 1/5] drm/radeon: fix radeon_move_blit on 32bit systems

2016-08-17 Thread Alex Deucher
On Wed, Aug 17, 2016 at 8:26 AM, Christian König wrote: > From: Christian König > > This bug seems to be present for a very long time. > > Signed-off-by: Christian König Patches 1,2,4 are: Reviewed-by: Alex Deucher patches 3, 5 are: Acked-by: Alex Deucher > --- > drivers/gpu/drm/radeon/rad

Re: [PATCH xf86-video-amdgpu] Remove unused lut_r/g/b arrays from drmmode_crtc_private_rec

2016-08-17 Thread Alex Deucher
On Wed, Aug 17, 2016 at 5:58 AM, Michel Dänzer wrote: > From: Michel Dänzer > > Fixes: 1091f28e1fa2 ("Remove drmmode_load_palette") > Signed-off-by: Michel Dänzer Reviewed-by: Alex Deucher > --- > src/drmmode_display.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/src/drmmode_displ

Re: [PATCH 0/8] shadow page table support V5 ---> shadow bo support

2016-08-17 Thread StDenis, Tom
Yup, either way is fine as long as it's consistent. Tom From: amd-gfx on behalf of Christian König Sent: Wednesday, August 17, 2016 10:16 To: StDenis, Tom; Zhou, David(ChunMing); amd-gfx@lists.freedesktop.org Subject: Re: [PATCH 0/8] shadow page table support

Re: [PATCH 0/8] shadow page table support V5 ---> shadow bo support

2016-08-17 Thread Christian König
Errors should actually be reported by the caller, not here. So we should probably remove that DRM_ERROR here as well. Christian. Am 17.08.2016 um 16:10 schrieb StDenis, Tom: Why not be consistent and add a DRM_ERROR on all paths that include an error? e.g. instead of if (r) goto erro

Re: [PATCH 0/8] shadow page table support V5 ---> shadow bo support

2016-08-17 Thread StDenis, Tom
Why not be consistent and add a DRM_ERROR on all paths that include an error? e.g. instead of if (r) goto error_free; Throw a DRM_ERROR("") in there. Tom From: amd-gfx on behalf of Christian König Sent: Wednesday, August 17, 2016 10:04 To: Zhou, Dav

Re: [PATCH 0/8] shadow page table support V5 ---> shadow bo support

2016-08-17 Thread Christian König
Patch #1: Could be that we need to add another module parameter to control this, but I think for now that should be sufficient. Patch is Reviewed-by: Christian König Patch #2: + if (direct_submit) { + r = amdgpu_ib_schedule(ring, job->num_ibs, job->ibs, +

RE: [PATCH v2] drm/amd/powerplay: enable power containment features for tonga.

2016-08-17 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Rex Zhu > Sent: Wednesday, August 17, 2016 6:06 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhu, Rex > Subject: [PATCH v2] drm/amd/powerplay: enable power containment > features for tonga. >

[PATCH 4/5] drm/amdgpu: fix sdma_v2_4_ring_test_ib

2016-08-17 Thread Christian König
From: Christian König Typo in checking the return code. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c b/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c index e822296..

[PATCH 3/5] drm/amdgpu: fix lru size grouping

2016-08-17 Thread Christian König
From: Christian König Adding a BO can make it the insertion point for larger sizes as well. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 8 2 files changed, 9 insertions(+) diff --git a/drivers/gpu/drm/amd

[PATCH 1/5] drm/radeon: fix radeon_move_blit on 32bit systems

2016-08-17 Thread Christian König
From: Christian König This bug seems to be present for a very long time. Signed-off-by: Christian König --- drivers/gpu/drm/radeon/radeon_ttm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c ind

[PATCH 2/5] drm/amdgpu: fix amdgpu_move_blit on 32bit systems

2016-08-17 Thread Christian König
From: Christian König This bug seems to be present for a very long time. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdg

[PATCH 5/5] drm/amdgpu: fix timeout value check in amd_sched_job_recovery

2016-08-17 Thread Christian König
From: Christian König Could be that we don't actually have a timeout set. Signed-off-by: Christian König --- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/sc

Re: Kernel deadlock in amdgpu_job_submit

2016-08-17 Thread Christian König
[11160.387924] [] amd_sched_entity_push_job+0x77/0x110 [amdgpu] [11160.387927] [] ? wake_atomic_t_function+0x60/0x60 [11160.387943] [] amdgpu_job_submit+0x84/0xc0 [amdgpu] [11160.387953] [] amdgpu_copy_buffer+0x14a/0x1c0 [amdgpu] [11160.387963] [] amdgpu_move_blit+0x9d/0x140 [amdgpu] It's bl

Kernel deadlock in amdgpu_job_submit

2016-08-17 Thread Marek Olšák
Hi, I have a kernel deadlock here. Piglit tests running at the same time: marek32295 0.0 0.6 472148 50100 ?Ssl 12:53 0:00 /home/marek/dev/piglit/bin/gl-1.0-blend-func -auto -fbo marek32403 0.0 0.6 532528 55908 ?Ssl 12:53 0:00 /home/marek/dev/piglit/bin/tex3d -aut

[PATCH v2] drm/amd/powerplay: enable power containment features for tonga.

2016-08-17 Thread Rex Zhu
v2: fix build error introduced when fix code style problems. Change-Id: Ifa9bdfd92fe060349cfbf7c10cd75d30d8acb95d Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 24 +- drivers/gpu/drm/amd/powerplay/hwm

[PATCH xf86-video-amdgpu] Remove unused lut_r/g/b arrays from drmmode_crtc_private_rec

2016-08-17 Thread Michel Dänzer
From: Michel Dänzer Fixes: 1091f28e1fa2 ("Remove drmmode_load_palette") Signed-off-by: Michel Dänzer --- src/drmmode_display.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/drmmode_display.h b/src/drmmode_display.h index 617f2bc..2e62a8c 100644 --- a/src/drmmode_display.h +++ b/src/drm

[PATCH xserver 6/6] modesetting: remove redundent pixmap destroy

2016-08-17 Thread Qiang Yu
Signed-off-by: Qiang Yu --- hw/xfree86/drivers/modesetting/dri2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/dri2.c b/hw/xfree86/drivers/modesetting/dri2.c index 4cf638e..b18f0b8 100644 --- a/hw/xfree86/drivers/modesetting/dri2.c +++ b/hw/xfree86/drivers/

[PATCH xserver 5/6] modesetting: merge common page flip code for present and dri2

2016-08-17 Thread Qiang Yu
Signed-off-by: Qiang Yu --- hw/xfree86/drivers/modesetting/dri2.c | 72 ++-- hw/xfree86/drivers/modesetting/driver.h | 33 +- hw/xfree86/drivers/modesetting/pageflip.c | 105 -- hw/xfree86/drivers/modesetting/present.c | 72 ---

[PATCH xserver 2/6] modesetting: move ms_do_pageflip to pageflip.c

2016-08-17 Thread Qiang Yu
Signed-off-by: Qiang Yu --- hw/xfree86/drivers/modesetting/Makefile.am | 1 + hw/xfree86/drivers/modesetting/driver.h| 48 ++ hw/xfree86/drivers/modesetting/pageflip.c | 251 hw/xfree86/drivers/modesetting/present.c | 252 - 4

[PATCH xserver 0/6] modesetting: add DRI2 page flip support

2016-08-17 Thread Qiang Yu
Hi guys, This patch set is for adding DRI2 page flip support to modesetting driver. I mainly take reference of amdgpu DDX and reuse present page flip code in the modesetting driver. Regards, Qiang Qiang Yu (6): modesetting: make ms_do_pageflip generic for share with DRI2 modesetting: move ms

[PATCH xserver 3/6] modesetting: add DRI2 page flip support

2016-08-17 Thread Qiang Yu
Signed-off-by: Qiang Yu --- hw/xfree86/drivers/modesetting/dri2.c | 260 -- 1 file changed, 251 insertions(+), 9 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/dri2.c b/hw/xfree86/drivers/modesetting/dri2.c index 83cb3e0..11e0e6f 100644 --- a/hw/xfree86

[PATCH] drm/amd/powerplay: enable power containment features for tonga.

2016-08-17 Thread Rex Zhu
Change-Id: Ibe7ddaea7188d40204b33574402d88bf50acff62 Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 24 +- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h | 11 +- .../gpu/drm/amd/powerplay/hwmgr/to

[PATCH xserver 4/6] modesetting: exclude DRI2 and Present page flip

2016-08-17 Thread Qiang Yu
Signed-off-by: Qiang Yu --- hw/xfree86/drivers/modesetting/dri2.c| 13 +++-- hw/xfree86/drivers/modesetting/drmmode_display.h | 3 +++ hw/xfree86/drivers/modesetting/present.c | 15 +++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/hw/xfr

[PATCH xserver 1/6] modesetting: make ms_do_pageflip generic for share with DRI2

2016-08-17 Thread Qiang Yu
Signed-off-by: Qiang Yu --- hw/xfree86/drivers/modesetting/present.c | 36 +++- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/present.c b/hw/xfree86/drivers/modesetting/present.c index 0093fb5..ff24594 100644 --- a/hw/x