Re: [PATCH 1/1] drm/amdgpu: Wait for newly allocated PTs to be idle

2019-03-13 Thread Koenig, Christian
Am 12.03.19 um 22:20 schrieb Kuehling, Felix: > When page table are updated by the CPU, synchronize with the > allocation and initialization of newly allocated page tables. Really good catch, didn't thought about that fully when writing the original patch. Would you mind if instead of this patch

Re: [PATCH 2/3] drm/amdgpu: support userptr cross VMAs case with HMM v3

2019-03-13 Thread Christian König
Acked-by: Christian König But I have the strong feeling that we sooner or later need to rewrite the whole stuff from scratch. Especially the struct amdgpu_ttm_tt structure now has a lot of superfluous stuff left. Christian. Am 13.03.19 um 02:47 schrieb Kuehling, Felix: This patch is Revi

Re: [PATCH] drm/v3d: Fix calling drm_sched_resubmit_jobs for same sched.

2019-03-13 Thread Christian König
Am 12.03.19 um 17:57 schrieb Andrey Grodzovsky: Also stop calling drm_sched_increase_karma multiple times. Signed-off-by: Andrey Grodzovsky Acked-by: Christian König --- drivers/gpu/drm/v3d/v3d_sched.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/dri

Re: [PATCH 1/1] drm/amdgpu: Wait for newly allocated PTs to be idle

2019-03-13 Thread Christian König
All commands updating the page tables are pushed through the same scheduler entity. And that one makes sure that they are all executed on the same SDMA engine. Switching of entities between engines happens only when the entities are idle. Regards, Christian. Am 13.03.19 um 00:36 schrieb Kue

[PATCH] drm/amdgpu: revert "cleanup setting bulk_movable"

2019-03-13 Thread Christian König
This reverts commit 4ef27005fefd4be102010b7d8552fec1ee13435a. It can trigger a reference counter bug in TTM. Need to investigate further, but for now revert the offending change. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 ++ 1 file changed, 2 insertions(+) d

Re: [PATCH] drm/amdgpu: revert "cleanup setting bulk_movable"

2019-03-13 Thread Michel Dänzer
On 2019-03-13 9:38 a.m., Christian König wrote: > This reverts commit 4ef27005fefd4be102010b7d8552fec1ee13435a. > > It can trigger a reference counter bug in TTM. Need to investigate further, > but > for now revert the offending change. > > Signed-off-by: Christian König > --- > drivers/gpu/dr

[PATCH] drm/amdkfd/sriov:Put the pre and post reset in exclusive mode v2

2019-03-13 Thread wentalou
add amdgpu_amdkfd_pre_reset and amdgpu_amdkfd_post_reset inside amdgpu_device_reset_sriov. Change-Id: Icf2839f0b620ce9d47d6414b6c32b9d06672f2ac Signed-off-by: Wentao Lou --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amd

RE: [PATCH 3/6] drm/amdgpu: allocate VM PDs/PTs on demand

2019-03-13 Thread Russell, Kent
Fantastic, I'm integrating it now. Fingers crossed! Kent > -Original Message- > From: Kuehling, Felix > Sent: Tuesday, March 12, 2019 7:31 PM > To: Yang, Philip ; Russell, Kent > ; Koenig, Christian ; > amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH 3/6] drm/amdgpu: allocate VM PDs/

Re: [PATCH 1/9] dma-buf: add new dma_fence_chain container v5

2019-03-13 Thread kbuild test robot
/commits/Chunming-Zhou/dma-buf-add-new-dma_fence_chain-container-v5/20190313-080623 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' All warnings (new ones prefixed by >>): >> dri

Re: Slow memory access when using OpenCL without X11

2019-03-13 Thread Lauri Ehrenpreis
What I observe is that moving the mouse made the memory speed go up and also it made mclk=1200Mhz in rocm-smi output. However if I force mclk to 1200Mhz myself then memory speed is still slow. So rocm-smi output when memory speed went fast due to mouse movement: rocm-smi

[PATCH] drm/amdgpu: enable gfxoff again on raven series

2019-03-13 Thread Huang Rui
This patch enables gfxoff and stutter mode again, since we take more testing on raven series. For raven2 and picasso, we can enable it directly. And for raven, we need check the RLC ucode version cannot be less than #531. Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

RE: [PATCH] drm/amdgpu: enable gfxoff again on raven series

2019-03-13 Thread Gao, Likun
Tested-by: Likun Gao Regards, Likun -Original Message- From: amd-gfx On Behalf Of Huang Rui Sent: Wednesday, March 13, 2019 8:28 PM To: amd-gfx@lists.freedesktop.org Cc: Huang, Ray Subject: [PATCH] drm/amdgpu: enable gfxoff again on raven series This patch enables gfxoff and stutter m

Re: [PATCH 2/3] drm/amdgpu: free up the first paging queue

2019-03-13 Thread Christian König
To be on the safe side I've adjusted the code to work with any number of SDMA instances. Christian. Am 12.03.19 um 16:33 schrieb Deucher, Alexander: I don't think Raven has a paging queue in the first place. Alex *From:*

[PATCH 1/3] drm/amdgpu: re-enable retry faults

2019-03-13 Thread Christian König
Now that we have re-reoute faults to the other IH ring we can enable retries again. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/

[PATCH 2/3] drm/amdgpu: free up the first paging queue v2

2019-03-13 Thread Christian König
We need the first paging queue to handle page faults. v2: handle any number of SDMA instances gracefully Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdg

[PATCH 3/3] drm/amdgpu: use more entries for the first paging queue

2019-03-13 Thread Christian König
To aid recoverable page faults. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c index 335a0edf114b..8f5026c123ef 100644 --- a/dri

Re: [PATCH] drm/amdgpu: enable gfxoff again on raven series

2019-03-13 Thread Deucher, Alexander
Reviewed-by: Alex Deucher From: amd-gfx on behalf of Huang Rui Sent: Wednesday, March 13, 2019 8:27 AM To: amd-gfx@lists.freedesktop.org Cc: Huang, Ray Subject: [PATCH] drm/amdgpu: enable gfxoff again on raven series This patch enables gfxoff and stutter mode a

Radeon init fail and resulting cascade of UBSAN errors

2019-03-13 Thread Meelis Roos
I just put a Radeon 9600XT into an Athlon XP machine. I do not know if the card is good or not, but 2D dumb framebufer works fine with radeon module. However, init of the acceleration engine fails. I compiled my own kernel (v5.0 from git) with UBSAN (no other debug yet) and got a cascade of UBSAN

Re: [PATCH] drm/v3d: Fix calling drm_sched_resubmit_jobs for same sched.

2019-03-13 Thread Eric Anholt
"Grodzovsky, Andrey" writes: > They are not the same, but the guilty job belongs to only one {entity, > scheduler} pair and so we mark as guilty only for that particular > entity in the context of that scheduler only once. I get it now, sorry. I'll merge this through drm-misc-next. signature.

[PATCH] drm/amd/display: Respect DRM framebuffer info for video surfaces

2019-03-13 Thread Nicholas Kazlauskas
[Why] Incorrect hardcoded assumptions are made regarding luma and chroma alignment. The actual values set for the DRM framebuffer should be used when programming the address. [How] Respect the given pitch for both luma and chroma planes - it's not like we can force the alignment to anything else a

Re: [PATCH] drm/v3d: Fix calling drm_sched_resubmit_jobs for same sched.

2019-03-13 Thread Grodzovsky, Andrey
On 3/13/19 12:13 PM, Eric Anholt wrote: > "Grodzovsky, Andrey" writes: > >> They are not the same, but the guilty job belongs to only one {entity, >> scheduler} pair and so we mark as guilty only for that particular >> entity in the context of that scheduler only once. > I get it now, sorry. I'l

Re: [PATCH 1/3] drm/amdgpu: re-enable retry faults

2019-03-13 Thread Kuehling, Felix
The series is Reviewed-by: Felix Kuehling On 2019-03-13 9:44 a.m., Christian König wrote: > Now that we have re-reoute faults to the other IH > ring we can enable retries again. > > Signed-off-by: Christian König > --- > drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 2 +- > drivers/gpu/drm/amd/a

Re: [PATCH] drm/amdkfd/sriov:Put the pre and post reset in exclusive mode v2

2019-03-13 Thread Alex Deucher
On Wed, Mar 13, 2019 at 6:04 AM wentalou wrote: > > add amdgpu_amdkfd_pre_reset and amdgpu_amdkfd_post_reset inside > amdgpu_device_reset_sriov. > > Change-Id: Icf2839f0b620ce9d47d6414b6c32b9d06672f2ac > Signed-off-by: Wentao Lou Acked-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/amdg

Re: [PATCH] drm/v3d: Fix calling drm_sched_resubmit_jobs for same sched.

2019-03-13 Thread Eric Anholt
"Grodzovsky, Andrey" writes: > On 3/13/19 12:13 PM, Eric Anholt wrote: >> "Grodzovsky, Andrey" writes: >> >>> They are not the same, but the guilty job belongs to only one {entity, >>> scheduler} pair and so we mark as guilty only for that particular >>> entity in the context of that scheduler o

Re: [PATCH] drm/amd/display: Respect DRM framebuffer info for video surfaces

2019-03-13 Thread Wentland, Harry
On 2019-03-13 12:35 p.m., Nicholas Kazlauskas wrote: > [Why] > Incorrect hardcoded assumptions are made regarding luma and chroma > alignment. The actual values set for the DRM framebuffer should be used > when programming the address. > > [How] > Respect the given pitch for both luma and chroma p

Re: [PATCH] drm/v3d: Fix calling drm_sched_resubmit_jobs for same sched.

2019-03-13 Thread Grodzovsky, Andrey
np Andrey On 3/13/19 1:53 PM, Eric Anholt wrote: > "Grodzovsky, Andrey" writes: > >> On 3/13/19 12:13 PM, Eric Anholt wrote: >>> "Grodzovsky, Andrey" writes: >>> They are not the same, but the guilty job belongs to only one {entity, scheduler} pair and so we mark as guilty only for th

Re: Slow memory access when using OpenCL without X11

2019-03-13 Thread Kuehling, Felix
Hi Lauri, I still think the SMU is doing something funny, but rocm-smi isn't showing enough information to really see what's going on. On APUs the SMU firmware is embedded in the system BIOS. Unlike discrete GPUs, the SMU firmware is not loaded by the driver. You could try updating your system

[PATCH AUTOSEL 4.20 32/60] drm/amd/display: Fix negative cursor pos programming

2019-03-13 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 0921c41e19028314830b33daa681e46b46477c5e ] [Why] If the cursor pos passed from DM is less than the plane_state->dst_rect top left corner then the unsigned cursor pos wraps around to a large positive number since cursor pos is a u32. There was an attem

[pull] amdgpu drm-next-5.1

2019-03-13 Thread Alex Deucher
Hi Dave, Daniel, A few fixes for 5.1: - Update golden regs for gfx9 - Powerplay fixes The following changes since commit 59d3191f14dc18881fec1172c7096b7863622803: drm/amd/display: don't call dm_pp_ function from an fpu block (2019-03-06 15:31:20 -0500) are available in the Git repository at:

Re: Slow memory access when using OpenCL without X11

2019-03-13 Thread Lauri Ehrenpreis
For reproduction only the tiny cl_slow_test.cpp is needed which is attached to first e-mail. System information is following: CPU: Ryzen5 2400G Main board: Gigabyte AMD B450 AORUS mini itx: https://www.gigabyte.com/Motherboard/B450-I-AORUS-PRO-WIFI-rev-10#kf BIOS: F5 8.47 MB 2019/01/25 (latest) Ke

[PATCH v3 0/5] drm: Fix fb changes for async updates

2019-03-13 Thread Helen Koike
Hello, This series fixes the slow down in performance introduced by "[PATCH v2] drm: Block fb changes for async plane updates" where async update falls back to a sync update, causing igt failures of type: "CRITICAL: completed 97 cursor updated in a period of 30 flips, we expect to complet

[PATCH v3 2/5] drm/amd: fix fb references in async update

2019-03-13 Thread Helen Koike
Async update callbacks are expected to set the old_fb in the new_state so prepare/cleanup framebuffers are balanced. Calling drm_atomic_set_fb_for_plane() (which gets a reference of the new fb and put the old fb) is not required, as it's taken care by drm_mode_cursor_universal() when calling drm_a

[PATCH v3 5/5] drm: don't block fb changes for async plane updates

2019-03-13 Thread Helen Koike
In the case of a normal sync update, the preparation of framebuffers (be it calling drm_atomic_helper_prepare_planes() or doing setups with drm_framebuffer_get()) are performed in the new_state and the respective cleanups are performed in the old_state. In the case of async updates, the preparatio

[PATCH v2] drm/amdgpu: enable gfxoff again on raven series (v2)

2019-03-13 Thread Huang Rui
This patch enables gfxoff and stutter mode again, since we take more testing on raven series. For raven2 and picasso, we can enable it directly. And for raven, we need check the RLC/SMC ucode version cannot be less than #531/0x1e45. v2: add smc version checking for raven. Signed-off-by: Huang Rui

RE: [PATCH v2] drm/amdgpu: enable gfxoff again on raven series (v2)

2019-03-13 Thread Gao, Likun
Tested-by: Likun Gao Regards, Likun -Original Message- From: amd-gfx On Behalf Of Huang Rui Sent: Thursday, March 14, 2019 1:56 PM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Gao, Likun ; Huang, Ray Subject: [PATCH v2] drm/amdgpu: enable gfxoff again on raven series (v2