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://
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
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
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
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
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
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
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/
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,
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
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
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
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 |
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
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
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
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
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
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)
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
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
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
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
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/
> -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
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
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
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
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
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
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
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
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,
+
> -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.
>
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..
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
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
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
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
[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
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
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
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
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/
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 ---
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
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
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
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
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
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
51 matches
Mail list logo