Re: [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Christian König
Am 11.05.20 um 22:56 schrieb Al Dunsmuir: Hello Dave, On Monday, May 11, 2020, 4:43:01 PM, Dave Airlie wrote: On Tue, 12 May 2020 at 06:28, Alex Deucher wrote: [SNIP] Maybe we can find some way to compartmentalise AGP further? Dave. Significantly reduced caching on memory accesses defin

Re: [PATCH 1/3] drm/radeon: remove AGP support

2020-05-12 Thread Michel Dänzer
On 2020-05-11 10:12 p.m., Alex Deucher wrote: > On Mon, May 11, 2020 at 1:17 PM Christian König > wrote: >> >> AGP is deprecated for 10+ years now and not used any more on modern hardware. >> >> Old hardware should continue to work in PCI mode. > > Might want to clarify that there is no loss of f

[RFC 09/17] drm/amdgpu: use dma-fence annotations in cs_submit()

2020-05-12 Thread Daniel Vetter
This is a bit tricky, since ->notifier_lock is held while calling dma_fence_wait we must ensure that also the read side (i.e. dma_fence_begin_signalling) is on the same side. If we mix this up lockdep complaints, and that's again why we want to have these annotations. A nice side effect of this is

[RFC 07/17] drm/amdgpu: add dma-fence annotations to atomic commit path

2020-05-12 Thread Daniel Vetter
I need a canary in a ttm-based atomic driver to make sure the dma_fence_begin/end_signalling annotations actually work. Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org Cc: linux-r...@vger.kernel.org Cc: amd-gfx@lists.freedesktop.org Cc: intel-...@lists.freedesktop.org Cc: Chris

[RFC 08/17] drm/scheduler: use dma-fence annotations in main thread

2020-05-12 Thread Daniel Vetter
If the scheduler rt thread gets stuck on a mutex that we're holding while waiting for gpu workloads to complete, we have a problem. Add dma-fence annotations so that lockdep can check this for us. I've tried to quite carefully review this, and I think it's at the right spot. But obviosly no exper

[RFC 12/17] drm/amdgpu/dc: Stop dma_resv_lock inversion in commit_tail

2020-05-12 Thread Daniel Vetter
Trying to grab dma_resv_lock while in commit_tail before we've done all the code that leads to the eventual signalling of the vblank event (which can be a dma_fence) is deadlock-y. Don't do that. Here the solution is easy because just grabbing locks to read something races anyway. We don't need to

[RFC 17/17] drm/i915: Annotate dma_fence_work

2020-05-12 Thread Daniel Vetter
i915 does tons of allocations from this worker, which lockdep catches. Also generic infrastructure like this with big potential for how dma_fence or other cross driver contracts work, really should be reviewed on dri-devel. Implementing custom wheels for everything within the driver is a classic c

[RFC 01/17] dma-fence: add might_sleep annotation to _wait()

2020-05-12 Thread Daniel Vetter
But only for non-zero timeout, to avoid false positives. One question here is whether the might_sleep should be unconditional, or only for real timeouts. I'm not sure, so went with the more defensive option. But in the interest of locking down the cross-driver dma_fence rules we might want to be m

[RFC 00/17] dma-fence lockdep annotations

2020-05-12 Thread Daniel Vetter
Hi all, I've dragged my feet for years on this, hoping that cross-release lockdep would do this for us, but well that never really happened unfortunately. So here we are. Cc'ed quite a pile of people since this is about the cross-driver contract around dma_fences. Which is heavily used for dma_bu

[RFC 13/17] drm/scheduler: use dma-fence annotations in tdr work

2020-05-12 Thread Daniel Vetter
In the face of unpriviledged userspace being able to submit bogus gpu workloads the kernel needs gpu timeout and reset (tdr) to guarantee that dma_fences actually complete. Annotate this worker to make sure we don't have any accidental locking inversions or other problems lurking. Originally this

[RFC 11/17] drm/amdgpu: DC also loves to allocate stuff where it shouldn't

2020-05-12 Thread Daniel Vetter
Not going to bother with a complete&pretty commit message, just offending backtrace: kvmalloc_node+0x47/0x80 dc_create_state+0x1f/0x60 [amdgpu] dc_commit_state+0xcb/0x9b0 [amdgpu] amdgpu_dm_atomic_commit_tail+0xd31/0x2010 [amdgpu] commit_tail+0xa4/0x140 [drm

[RFC 04/17] drm/vkms: Annotate vblank timer

2020-05-12 Thread Daniel Vetter
This is needed to signal the fences from page flips, annotate it accordingly. We need to annotate entire timer callback since if we get stuck anywhere in there, then the timer stops, and hence fences stop. Just annotating the top part that does the vblank handling isn't enough. Cc: linux-me...@vge

[RFC 02/17] dma-fence: basic lockdep annotations

2020-05-12 Thread Daniel Vetter
Design is similar to the lockdep annotations for workers, but with some twists: - We use a read-lock for the execution/worker/completion side, so that this explicit annotation can be more liberally sprinkled around. With read locks lockdep isn't going to complain if the read-side isn't neste

[RFC 15/17] Revert "drm/amdgpu: add fbdev suspend/resume on gpu reset"

2020-05-12 Thread Daniel Vetter
This is one from the department of "maybe play lottery if you hit this, karma compensation might work". Or at least lockdep ftw! This reverts commit 565d1941557756a584ac357d945bc374d5fcd1d0. It's not quite as low-risk as the commit message claims, because this grabs console_lock, which might be h

[RFC 06/17] drm/atomic-helper: Add dma-fence annotations

2020-05-12 Thread Daniel Vetter
This is a bit disappointing since we need to split the annotations over all the different parts. I was considering just leaking the critical section into the ->atomic_commit_tail callback of each driver. But that would mean we need to pass the fence_cookie into each driver (there's a total of 13 i

[RFC 05/17] drm/vblank: Annotate with dma-fence signalling section

2020-05-12 Thread Daniel Vetter
This is rather overkill since currently all drivers call this from hardirq (or at least timers). But maybe in the future we're going to have thread irq handlers and what not, doesn't hurt to be prepared. Plus this is an easy start for sprinkling these fence annotations into shared code. Cc: linux-

[RFC 14/17] drm/amdgpu: use dma-fence annotations for gpu reset code

2020-05-12 Thread Daniel Vetter
To improve coverage also annotate the gpu reset code itself, since that's called from other places than drm/scheduler (which is already annotated). Annotations nests, so this doesn't break anything, and allows easier testing. Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org Cc: l

[RFC 03/17] dma-fence: prime lockdep annotations

2020-05-12 Thread Daniel Vetter
Two in one go: - it is allowed to call dma_fence_wait() while holding a dma_resv_lock(). This is fundamental to how eviction works with ttm, so required. - it is allowed to call dma_fence_wait() from memory reclaim contexts, specifically from shrinker callbacks (which i915 does), and from mm

[RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Daniel Vetter
... I think it's time to stop this little exercise. The lockdep splat, for the record: [ 132.583381] == [ 132.584091] WARNING: possible circular locking dependency detected [ 132.584775] 5.7.0-rc3+ #346 Tainted: GW [ 132.585461] ---

[RFC 10/17] drm/amdgpu: s/GFP_KERNEL/GFP_ATOMIC in scheduler code

2020-05-12 Thread Daniel Vetter
My dma-fence lockdep annotations caught an inversion because we allocate memory where we really shouldn't: kmem_cache_alloc+0x2b/0x6d0 amdgpu_fence_emit+0x30/0x330 [amdgpu] amdgpu_ib_schedule+0x306/0x550 [amdgpu] amdgpu_job_run+0x10f/0x260 [amdgpu] drm_sched

[PATCH v4 20/38] drm: radeon: fix common struct sg_table related issues

2020-05-12 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

Re: [RFC 01/17] dma-fence: add might_sleep annotation to _wait()

2020-05-12 Thread Chris Wilson
Quoting Daniel Vetter (2020-05-12 09:59:28) > But only for non-zero timeout, to avoid false positives. > > One question here is whether the might_sleep should be unconditional, > or only for real timeouts. I'm not sure, so went with the more > defensive option. But in the interest of locking down

Re: [RFC 02/17] dma-fence: basic lockdep annotations

2020-05-12 Thread Chris Wilson
Quoting Daniel Vetter (2020-05-12 09:59:29) > Design is similar to the lockdep annotations for workers, but with > some twists: > > - We use a read-lock for the execution/worker/completion side, so that > this explicit annotation can be more liberally sprinkled around. > With read locks lockde

Re: [RFC 01/17] dma-fence: add might_sleep annotation to _wait()

2020-05-12 Thread Christian König
Am 12.05.20 um 10:59 schrieb Daniel Vetter: But only for non-zero timeout, to avoid false positives. One question here is whether the might_sleep should be unconditional, or only for real timeouts. I'm not sure, so went with the more defensive option. But in the interest of locking down the cros

Re: [RFC 02/17] dma-fence: basic lockdep annotations

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 10:04:22AM +0100, Chris Wilson wrote: > Quoting Daniel Vetter (2020-05-12 09:59:29) > > Design is similar to the lockdep annotations for workers, but with > > some twists: > > > > - We use a read-lock for the execution/worker/completion side, so that > > this explicit ann

[PATCH v4 07/38] drm: amdgpu: fix common struct sg_table related issues

2020-05-12 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

Re: [RFC 02/17] dma-fence: basic lockdep annotations

2020-05-12 Thread Chris Wilson
Quoting Daniel Vetter (2020-05-12 10:08:47) > On Tue, May 12, 2020 at 10:04:22AM +0100, Chris Wilson wrote: > > Quoting Daniel Vetter (2020-05-12 09:59:29) > > > Design is similar to the lockdep annotations for workers, but with > > > some twists: > > > > > > - We use a read-lock for the execution

[PATCH] drm/amdgpu: turn back rlcg write for gfx_v10

2020-05-12 Thread Yintian Tao
There is no need to use amdgpu_mm_wreg_mmio_rlc() during initialization time because this interface is only designed for debugfs case to access the registers which are only permitted by RLCG during run-time. Therefore, turn back rlcg write for gfx_v10. If we not turn back it, it will raise amdgpu l

[PATCH] drm/amd/powerplay: ack the SMUToHost interrupt on receive

2020-05-12 Thread Evan Quan
There will be no further interrupt without proper ack for current one. Change-Id: Iad5adcaf7dd5c3a773b3d93ee0922a424dba8ac8 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c

Re: [RFC 02/17] dma-fence: basic lockdep annotations

2020-05-12 Thread Jason Gunthorpe
On Tue, May 12, 2020 at 10:59:29AM +0200, Daniel Vetter wrote: > diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c > index 6802125349fb..d5c0fd2efc70 100644 > +++ b/drivers/dma-buf/dma-fence.c > @@ -110,6 +110,52 @@ u64 dma_fence_context_alloc(unsigned num) > } > EXPORT_SYMBO

Re: [RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 5:00 AM Daniel Vetter wrote: > > ... > > I think it's time to stop this little exercise. > > The lockdep splat, for the record: > > [ 132.583381] == > [ 132.584091] WARNING: possible circular locking dependency detected

Re: [RFC 02/17] dma-fence: basic lockdep annotations

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 09:09:52AM -0300, Jason Gunthorpe wrote: > On Tue, May 12, 2020 at 10:59:29AM +0200, Daniel Vetter wrote: > > diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c > > index 6802125349fb..d5c0fd2efc70 100644 > > +++ b/drivers/dma-buf/dma-fence.c > > @@ -110,

Re: [RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 08:54:45AM -0400, Alex Deucher wrote: > On Tue, May 12, 2020 at 5:00 AM Daniel Vetter wrote: > > > > ... > > > > I think it's time to stop this little exercise. > > > > The lockdep splat, for the record: > > > > [ 132.583381] ===

Re: [PATCH] drm/amd/powerplay: ack the SMUToHost interrupt on receive

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 7:14 AM Evan Quan wrote: > > There will be no further interrupt without proper ack > for current one. > > Change-Id: Iad5adcaf7dd5c3a773b3d93ee0922a424dba8ac8 > Signed-off-by: Evan Quan > --- > drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 6 ++ > 1 file changed, 6 inse

Re: [RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 8:58 AM Daniel Vetter wrote: > > On Tue, May 12, 2020 at 08:54:45AM -0400, Alex Deucher wrote: > > On Tue, May 12, 2020 at 5:00 AM Daniel Vetter > > wrote: > > > > > > ... > > > > > > I think it's time to stop this little exercise. > > > > > > The lockdep splat, for the r

Re: [RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 3:12 PM Alex Deucher wrote: > > On Tue, May 12, 2020 at 8:58 AM Daniel Vetter wrote: > > > > On Tue, May 12, 2020 at 08:54:45AM -0400, Alex Deucher wrote: > > > On Tue, May 12, 2020 at 5:00 AM Daniel Vetter > > > wrote: > > > > > > > > ... > > > > > > > > I think it's ti

Re: [RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 9:17 AM Daniel Vetter wrote: > > On Tue, May 12, 2020 at 3:12 PM Alex Deucher wrote: > > > > On Tue, May 12, 2020 at 8:58 AM Daniel Vetter wrote: > > > > > > On Tue, May 12, 2020 at 08:54:45AM -0400, Alex Deucher wrote: > > > > On Tue, May 12, 2020 at 5:00 AM Daniel Vette

[PATCH][next] drm/amdgpu: remove redundant assignment to variable ret

2020-05-12 Thread Colin King
From: Colin Ian King The variable ret is being initializeed with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/amdgpu/amdg

Re: [PATCH 1/3] drm/radeon: remove AGP support

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 4:16 AM Michel Dänzer wrote: > > On 2020-05-11 10:12 p.m., Alex Deucher wrote: > > On Mon, May 11, 2020 at 1:17 PM Christian König > > wrote: > >> > >> AGP is deprecated for 10+ years now and not used any more on modern > >> hardware. > >> > >> Old hardware should continu

Re: [RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 3:29 PM Alex Deucher wrote: > > On Tue, May 12, 2020 at 9:17 AM Daniel Vetter wrote: > > > > On Tue, May 12, 2020 at 3:12 PM Alex Deucher wrote: > > > > > > On Tue, May 12, 2020 at 8:58 AM Daniel Vetter wrote: > > > > > > > > On Tue, May 12, 2020 at 08:54:45AM -0400, Ale

RE: [PATCH] drm/amdgpu: turn back rlcg write for gfx_v10

2020-05-12 Thread Tao, Yintian
Ping... -Original Message- From: Yintian Tao Sent: 2020年5月12日 18:17 To: Deucher, Alexander ; Liu, Monk ; Liu, Shaoyun Cc: amd-gfx@lists.freedesktop.org; Tao, Yintian Subject: [PATCH] drm/amdgpu: turn back rlcg write for gfx_v10 There is no need to use amdgpu_mm_wreg_mmio_rlc() during

Re: [RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 9:45 AM Daniel Vetter wrote: > > On Tue, May 12, 2020 at 3:29 PM Alex Deucher wrote: > > > > On Tue, May 12, 2020 at 9:17 AM Daniel Vetter > > wrote: > > > > > > On Tue, May 12, 2020 at 3:12 PM Alex Deucher > > > wrote: > > > > > > > > On Tue, May 12, 2020 at 8:58 AM D

Re: [PATCH] drm/amdgpu: turn back rlcg write for gfx_v10

2020-05-12 Thread Deucher, Alexander
[AMD Public Use] Acked-by: Alex Deucher From: Yintian Tao Sent: Tuesday, May 12, 2020 6:17 AM To: Deucher, Alexander ; Liu, Monk ; Liu, Shaoyun Cc: amd-gfx@lists.freedesktop.org ; Tao, Yintian Subject: [PATCH] drm/amdgpu: turn back rlcg write for gfx_v10 The

Re: [PATCH][next] drm/amdgpu: remove redundant assignment to variable ret

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 8:48 AM Colin King wrote: > > From: Colin Ian King > > The variable ret is being initializeed with a value that is never read > and it is being updated later with a new value. The initialization > is redundant and can be removed. > > Addresses-Coverity: ("Unused value") >

Re: [RFC 10/17] drm/amdgpu: s/GFP_KERNEL/GFP_ATOMIC in scheduler code

2020-05-12 Thread Christian König
Hui what? Of hand that doesn't looks correct to me. Why the heck should this be an atomic context? If that's correct allocating memory is the least of the problems we have. Regards, Christian. Am 12.05.20 um 10:59 schrieb Daniel Vetter: My dma-fence lockdep annotations caught an inversion be

Re: [RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 4:24 PM Alex Deucher wrote: > > On Tue, May 12, 2020 at 9:45 AM Daniel Vetter wrote: > > > > On Tue, May 12, 2020 at 3:29 PM Alex Deucher wrote: > > > > > > On Tue, May 12, 2020 at 9:17 AM Daniel Vetter > > > wrote: > > > > > > > > On Tue, May 12, 2020 at 3:12 PM Alex D

Re: [RFC 10/17] drm/amdgpu: s/GFP_KERNEL/GFP_ATOMIC in scheduler code

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 5:56 PM Christian König wrote: > > Hui what? Of hand that doesn't looks correct to me. It's not GFP_ATOMIC, it's just that GFP_ATOMIC is the only shotgun we have to avoid direct reclaim. And direct reclaim might need to call into your mmu notifier, which might need to wait

Re: [RFC 10/17] drm/amdgpu: s/GFP_KERNEL/GFP_ATOMIC in scheduler code

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 6:20 PM Daniel Vetter wrote: > > On Tue, May 12, 2020 at 5:56 PM Christian König > wrote: > > > > Hui what? Of hand that doesn't looks correct to me. > > It's not GFP_ATOMIC, it's just that GFP_ATOMIC is the only shotgun we > have to avoid direct reclaim. And direct reclai

[PATCH 1/3] drm/amd/display: Add DC Debug mask to disable features for bringup

2020-05-12 Thread Harry Wentland
[Why] At bringup we want to be able to disable various power features. [How] These features are already exposed as dc_debug_options and exercised on other OSes. Create a new dc_debug_mask module parameter and expose relevant bits, in particular * DC_DISABLE_PIPE_SPLIT * DC_DISABLE_STUTTER * DC_

[PATCH 3/3] drm/amd/display: Respect PP_STUTTER_MODE but don't override DC_DISABLE_STUTTER

2020-05-12 Thread Harry Wentland
Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index bf347ca43064..9d833264 100

[PATCH 2/3] drm/amd/display: Fix disable_stutter debug option

2020-05-12 Thread Harry Wentland
[Why & How] One call was forcing stutter on instead of looking at the debug option. Ensure we always check the debug option unless we want to force stutter off. Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c | 1 - drivers/gpu/drm/amd/display/dc/dcn10

[PATCH 0/3] Adding DC debug options

2020-05-12 Thread Harry Wentland
To facilitate bringup of new ASICs, debugging, and measuring of various power features we would like the ability to disable them as needed. This differs from dcfeaturemask in that dcfeaturemask is a collection of experimental features that can't be enabled by default, whereas dcdebugmask is a coll

Re: [PATCH 1/3] drm/amd/display: Add DC Debug mask to disable features for bringup

2020-05-12 Thread Kazlauskas, Nicholas
On 2020-05-12 12:45 p.m., Harry Wentland wrote: [Why] At bringup we want to be able to disable various power features. [How] These features are already exposed as dc_debug_options and exercised on other OSes. Create a new dc_debug_mask module parameter and expose relevant bits, in particular *

RE: [PATCH] drm/amdgpu: turn back rlcg write for gfx_v10

2020-05-12 Thread Liu, Shaoyun
[AMD Public Use] [AMD Public Use] Hi, YinTao The write to CSIB register through RLCG requires RLCG firmware to support it. This currently only implemented by nv12 . So you need to find a way to block it for other GFX 10 asic like NV14 , nv21 if you want to revert the code. On existing code

Re: [PATCH 1/3] drm/amd/display: Add DC Debug mask to disable features for bringup

2020-05-12 Thread Harry Wentland
On 2020-05-12 12:54 p.m., Kazlauskas, Nicholas wrote: > On 2020-05-12 12:45 p.m., Harry Wentland wrote: >> [Why] >> At bringup we want to be able to disable various power features. >> >> [How] >> These features are already exposed as dc_debug_options and exercised >> on other OSes. Create a new d

Re: [PATCH 1/3] drm/amd/display: Add DC Debug mask to disable features for bringup

2020-05-12 Thread Harry Wentland
On 2020-05-12 12:54 p.m., Kazlauskas, Nicholas wrote: > On 2020-05-12 12:45 p.m., Harry Wentland wrote: >> [Why] >> At bringup we want to be able to disable various power features. >> >> [How] >> These features are already exposed as dc_debug_options and exercised >> on other OSes. Create a new d

Re: [RFC 10/17] drm/amdgpu: s/GFP_KERNEL/GFP_ATOMIC in scheduler code

2020-05-12 Thread Christian König
Ah! So we can't allocate memory while scheduling anything because it could be that memory reclaim is waiting for the scheduler to finish pushing things to the hardware, right? Indeed a nice problem, haven't noticed that one. Christian. Am 12.05.20 um 18:27 schrieb Daniel Vetter: On Tue, Ma

Re: [PATCH 1/3] drm/radeon: remove AGP support

2020-05-12 Thread Thomas Zimmermann
Hi Christian Am 11.05.20 um 19:17 schrieb Christian König: > AGP is deprecated for 10+ years now and not used any more on modern hardware. > > Old hardware should continue to work in PCI mode. > > Signed-off-by: Christian König > --- > drivers/gpu/drm/radeon/Makefile| 4 +- > drivers

Re: [PATCH 1/3] drm/radeon: remove AGP support

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 2:20 PM Thomas Zimmermann wrote: > > Hi Christian > > Am 11.05.20 um 19:17 schrieb Christian König: > > AGP is deprecated for 10+ years now and not used any more on modern > > hardware. > > > > Old hardware should continue to work in PCI mode. > > > > Signed-off-by: Christ

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Thomas Zimmermann
Hi Am 11.05.20 um 19:17 schrieb Christian König: > Hi guys, > > Well let's face it AGP is a total headache to maintain and dead for at least > 10+ years. > > We have a lot of x86 specific stuff in the architecture independent graphics > memory management to get the caching right, abusing the D

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 2:29 PM Thomas Zimmermann wrote: > > Hi > > Am 11.05.20 um 19:17 schrieb Christian König: > > Hi guys, > > > > Well let's face it AGP is a total headache to maintain and dead for at > > least 10+ years. > > > > We have a lot of x86 specific stuff in the architecture indepe

Re: [RFC 10/17] drm/amdgpu: s/GFP_KERNEL/GFP_ATOMIC in scheduler code

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 7:31 PM Christian König wrote: > > Ah! > > So we can't allocate memory while scheduling anything because it could > be that memory reclaim is waiting for the scheduler to finish pushing > things to the hardware, right? Yup, that's my understanding. But like with all things

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Thomas Zimmermann
Hi Alex Am 12.05.20 um 20:32 schrieb Alex Deucher: > On Tue, May 12, 2020 at 2:29 PM Thomas Zimmermann wrote: >> >> Hi >> >> Am 11.05.20 um 19:17 schrieb Christian König: >>> Hi guys, >>> >>> Well let's face it AGP is a total headache to maintain and dead for at >>> least 10+ years. >>> >>> We h

Re: [Nouveau] [RFC] Remove AGP support from Radeon/Nouveau/TTM

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 3:10 PM Thomas Zimmermann wrote: > > Hi Alex > > Am 12.05.20 um 20:32 schrieb Alex Deucher: > > On Tue, May 12, 2020 at 2:29 PM Thomas Zimmermann > > wrote: > >> > >> Hi > >> > >> Am 11.05.20 um 19:17 schrieb Christian König: > >>> Hi guys, > >>> > >>> Well let's face it

Re: [RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Kazlauskas, Nicholas
On 2020-05-12 12:12 p.m., Daniel Vetter wrote: On Tue, May 12, 2020 at 4:24 PM Alex Deucher wrote: On Tue, May 12, 2020 at 9:45 AM Daniel Vetter wrote: On Tue, May 12, 2020 at 3:29 PM Alex Deucher wrote: On Tue, May 12, 2020 at 9:17 AM Daniel Vetter wrote: On Tue, May 12, 2020 at 3:12

Re: [PATCH] drm/amdgpu: simplify ATIF backlight handling

2020-05-12 Thread Alex Deucher
Ping? Alex On Thu, May 7, 2020 at 12:09 PM Alex Deucher wrote: > > Ping? > > On Tue, May 5, 2020 at 3:48 PM Alex Deucher wrote: > > > > Just register the a pointer to the backlight device and use > > that. Unifies the DC and non-DC handling. > > > > Signed-off-by: Alex Deucher > > --- > > dri

Re: [Nouveau] [PATCH 1/3] drm/radeon: remove AGP support

2020-05-12 Thread Alex Deucher
On Tue, May 12, 2020 at 4:52 PM Roy Spliet wrote: > > Op 12-05-2020 om 14:36 schreef Alex Deucher: > > On Tue, May 12, 2020 at 4:16 AM Michel Dänzer wrote: > >> > >> On 2020-05-11 10:12 p.m., Alex Deucher wrote: > >>> On Mon, May 11, 2020 at 1:17 PM Christian König > >>> wrote: > > AGP

Re: [Nouveau] [PATCH 1/3] drm/radeon: remove AGP support

2020-05-12 Thread Roy Spliet
Op 12-05-2020 om 14:36 schreef Alex Deucher: On Tue, May 12, 2020 at 4:16 AM Michel Dänzer wrote: On 2020-05-11 10:12 p.m., Alex Deucher wrote: On Mon, May 11, 2020 at 1:17 PM Christian König wrote: AGP is deprecated for 10+ years now and not used any more on modern hardware. Old hardware

[pull] amdgpu, amdkfd drm-next-5.8

2020-05-12 Thread Alex Deucher
Hi Dave, Daniel, More stuff for 5.8. The following changes since commit b8020b0304c8f44e5e29f0b1a04d31e0bf68d26a: drm/amdkfd: Enable over-subscription with >1 GWS queue (2020-04-28 16:20:30 -0400) are available in the Git repository at: git://people.freedesktop.org/~agd5f/linux tags/amd-d

RE: [PATCH] drm/amd/powerplay: ack the SMUToHost interrupt on receive

2020-05-12 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] Just setting the ACK bit is enough and no need to touch other bits. It's aligned with windows and confirmed by my local test. Thanks, Evan -Original Message- From: Alex Deucher Sent: Tuesday, May 12, 2020 9:05 PM To: Quan, Evan Cc: am

RE: [PATCH] drm/amd/powerplay: ack the SMUToHost interrupt on receive

2020-05-12 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] -Original Message- From: Alex Deucher Sent: Tuesday, May 12, 2020 9:05 PM To: Quan, Evan Cc: amd-gfx list ; Deucher, Alexander Subject: Re: [PATCH] drm/amd/powerplay: ack the SMUToHost interrupt on receive On Tue, May 12, 2020 at 7:

[PATCH] drm/amd/powerplay: ack the SMUToHost interrupt on receive V2

2020-05-12 Thread Evan Quan
There will be no further interrupt without proper ack for current one. V2: fix typo to really set ACK bit only Change-Id: Iad5adcaf7dd5c3a773b3d93ee0922a424dba8ac8 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 6 ++ 1 file changed, 6 ins

Re: [RFC 16/17] drm/amdgpu: gpu recovery does full modesets

2020-05-12 Thread Daniel Vetter
On Tue, May 12, 2020 at 10:10 PM Kazlauskas, Nicholas wrote: > > On 2020-05-12 12:12 p.m., Daniel Vetter wrote: > > On Tue, May 12, 2020 at 4:24 PM Alex Deucher wrote: > >> > >> On Tue, May 12, 2020 at 9:45 AM Daniel Vetter > >> wrote: > >>> > >>> On Tue, May 12, 2020 at 3:29 PM Alex Deucher