[PATCH v2] drm/sched: Avoid infinite waits in the drm_sched_entity_destroy() path

2020-10-01 Thread Boris Brezillon
If we don't initialize the entity to idle and the entity is never scheduled before being destroyed we end up with an infinite wait in the destroy path. v2: - Add Steven's R-b Signed-off-by: Boris Brezillon Reviewed-by: Steven Price --- This is something I noticed while debugging another issue o

Re: [PATCH RFC 0/1] drm/ttm: Allocate transparent huge pages without clearing __GFP_COMP

2020-10-01 Thread Christian König
Hi Alex, adding Daniel as well. Am 01.10.20 um 20:45 schrieb Alex Goins: Hi Christian, On Thu, 1 Oct 2020, Christian König wrote: Hi Alex, first of all accessing the underlying page of an exported DMA-buf is illegal! So I'm not 100% sure what you're intentions are here, please explain furth

[drm-intel:drm-intel-next-queued 14/14] drivers/gpu/drm/i915/display/intel_lspcon.c:533:6: warning: no previous prototype for function 'lspcon_init'

2020-10-01 Thread kernel test robot
tree: git://anongit.freedesktop.org/drm-intel drm-intel-next-queued head: f542d671ffcec772a561cd41c7e2394392d9dafb commit: f542d671ffcec772a561cd41c7e2394392d9dafb [14/14] drm/i915: Init lspcon after HPD in intel_dp_detect() config: x86_64-randconfig-a003-20201001 (attached as .config

linux-next: manual merge of the drm tree with Linus' tree

2020-10-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c between commit: b19515253623 ("drm/amd/pm: setup APU dpm clock table in SMU HW initialization") from the Linus tree and commits: 82cac71c1b64 ("drm/amd/pm: put Navi1X umc cdr w

[RFC PATCH] drm: add support for taking drm atomic state snapshot

2020-10-01 Thread Abhinav Kumar
Add support to capture the drm atomic state snapshot which can then be wired up with the devcoredump of the relevant display errors to give useful information to debug the issues. Since the devcoredump is read by usermode and it is allowed upto 5 minutes to read the coredump, capturing the snapsho

[Bug 209457] AMDGPU resume fail with RX 580 GPU

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209457 --- Comment #6 from Robert M. Muncrief (rmuncr...@humanavance.com) --- Created attachment 292755 --> https://bugzilla.kernel.org/attachment.cgi?id=292755&action=edit Full Xorg resume fail output for kernel 5.8.12 Here is the Xorg.0.log log outp

[Bug 209457] AMDGPU resume fail with RX 580 GPU

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209457 --- Comment #5 from Robert M. Muncrief (rmuncr...@humanavance.com) --- Created attachment 292753 --> https://bugzilla.kernel.org/attachment.cgi?id=292753&action=edit Full dmesg resume fail output for kernel 5.8.12 I suspended my computer during

Re: [PATCH 1/3] drm/msm: add MSM_BO_CACHED_COHERENT

2020-10-01 Thread Jordan Crouse
On Wed, Sep 30, 2020 at 08:27:04PM -0400, Jonathan Marek wrote: > Add a new cache mode for creating coherent host-cached BOs. Reviewed-by: Jordan Crouse > Signed-off-by: Jonathan Marek > --- > drivers/gpu/drm/msm/adreno/adreno_device.c | 1 + > drivers/gpu/drm/msm/msm_drv.h | 1 +

Re: [Freedreno] [PATCH 2/3] drm/msm: add DRM_MSM_GEM_SYNC_CACHE for non-coherent cache maintenance

2020-10-01 Thread Jordan Crouse
On Wed, Sep 30, 2020 at 08:27:05PM -0400, Jonathan Marek wrote: > This makes it possible to use the non-coherent cached MSM_BO_CACHED mode, > which otherwise doesn't provide any method for cleaning/invalidating the > cache to sync with the device. > > Signed-off-by: Jonathan Marek > --- > driver

[drm-intel:drm-intel-next-queued 14/14] drivers/gpu/drm/i915/display/intel_lspcon.c:533:6: warning: no previous prototype for 'lspcon_init'

2020-10-01 Thread kernel test robot
tree: git://anongit.freedesktop.org/drm-intel drm-intel-next-queued head: f542d671ffcec772a561cd41c7e2394392d9dafb commit: f542d671ffcec772a561cd41c7e2394392d9dafb [14/14] drm/i915: Init lspcon after HPD in intel_dp_detect() config: x86_64-rhel (attached as .config) compiler: gcc-9 (Debian 9.3

Re: [RFC][PATCH 5/6] dma-buf: system_heap: Add pagepool support to system heap

2020-10-01 Thread John Stultz
On Tue, Sep 29, 2020 at 9:46 PM Chris Goldsworthy wrote: > > On 2020-09-25 21:24, John Stultz wrote: > > Reuse/abuse the pagepool code from the network code to speed > > up allocation performance. > > > > This is similar to the ION pagepool usage, but tries to > > utilize generic code instead of a

[PATCH v3 0/2] drm/i915/jsl: Update JSL Voltage swing table

2020-10-01 Thread Tejas Upadhyay
Patch series covers following thigns: 1. Split and differentiate between EHL and JSL platfrom 2. Update voltage swing table for eDP on JSL platform Changes since V2 : - Added IS_EHL_JSL to replace IS_ELKHARTLAKE - EHL/JSL PCI ids split added - Rebased to drm master commit

[PATCH v3 2/2] drm/i915/edp/jsl: Update vswing table for HBR and HBR2

2020-10-01 Thread Tejas Upadhyay
JSL has update in vswing table for eDP. BSpec: 21257 Changes since V2 : - Added IS_EHL_JSL to replace IS_ELKHARTLAKE - EHL/JSL PCI ids split added - Changes rebased as per new drm top commit Changes since V1 : - IS_ELKHARTLAKE and IS_JASPERLAKE is replaced wit

[PATCH v3 1/2] drm/i915/jsl: Split EHL/JSL platform info and PCI ids

2020-10-01 Thread Tejas Upadhyay
Split the basic platform definition, macros, and PCI IDs to differentiate between EHL and JSL platforms. Changes since V2 : - Added IS_EHL_JSL to replace IS_ELKHARTLAKE - EHL/JSL PCI ids split added Changes since V1 : - IS_ELKHARTLAKE and IS_JASPERLAKE is replaced with

[Bug 209417] kernel-5.8*, amdgpu - Blank screen shortly after boot, "fixed" with suspend and wake up

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209417 --- Comment #6 from Alex Deucher (alexdeuc...@gmail.com) --- Please change the component to Video(DRI - Intel) -- You are receiving this mail because: You are watching the assignee of the bug. ___ dri-

[Bug 209417] kernel-5.8*, amdgpu - Blank screen shortly after boot, "fixed" with suspend and wake up

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209417 Juan (juantxor...@gmail.com) changed: What|Removed |Added CC||juantxor...@gmail.com ---

[Bug 209457] AMDGPU resume fail with RX 580 GPU

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209457 --- Comment #4 from Robert M. Muncrief (rmuncr...@humanavance.com) --- You are correct, the restored 5.8.5 dmesg output doesn't have the full output either, and it's the only other output I can find in my backups. I apologize for my error. Unfo

[Bug 209457] AMDGPU resume fail with RX 580 GPU

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209457 --- Comment #3 from Alex Deucher (alexdeuc...@gmail.com) --- Looks like you attached the wrong file? Can you elaborate on how you use your GPUs? If you take vfio out of the picture, do you still have the issues? -- You are receiving this mail

Re: [PATCH RFC 0/1] drm/ttm: Allocate transparent huge pages without clearing __GFP_COMP

2020-10-01 Thread Alex Goins
Hi Christian, On Thu, 1 Oct 2020, Christian König wrote: > Hi Alex, > > first of all accessing the underlying page of an exported DMA-buf is > illegal! So I'm not 100% sure what you're intentions are here, please > explain further. We have some mapping requirements that I was hoping I could add

[Bug 209457] AMDGPU resume fail with RX 580 GPU

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209457 --- Comment #2 from Robert M. Muncrief (rmuncr...@humanavance.com) --- Created attachment 292741 --> https://bugzilla.kernel.org/attachment.cgi?id=292741&action=edit Resume failure, full dmesg output from kernel 5.8.5 The last full dmesg output

Re: [RFC][PATCH 5/6] dma-buf: system_heap: Add pagepool support to system heap

2020-10-01 Thread John Stultz
On Thu, Oct 1, 2020 at 7:49 AM Chris Goldsworthy wrote: > On 2020-09-29 21:46, Chris Goldsworthy wrote: > > On 2020-09-25 21:24, John Stultz wrote: > >> Reuse/abuse the pagepool code from the network code to speed > >> up allocation performance. > >> > >> This is similar to the ION pagepool usage,

Re: Nouveau wiki migration

2020-10-01 Thread Karol Herbst
On Thu, Oct 1, 2020 at 7:53 PM Sam Ravnborg wrote: > > Hi Karol. > > On Thu, Oct 01, 2020 at 01:36:52PM +0200, Karol Herbst wrote: > > On Fri, Sep 25, 2020 at 11:27 PM Karol Herbst wrote: > > > > > > Hi everybody, > > > > > > I think it's time to finally move our wiki from the old infrastructure

RE: [PATCH v7 2/4] drm/kmb: Add support for KeemBay Display

2020-10-01 Thread Chrisanthus, Anitha
Hi Daniel, I was finally able to test the driver with 5.9 kernel with minor changes in the driver. Ran the igt_vblank test and it passed/skipped all the subtests except the pipe-A-accuracy-idle test. Results are attached. Investigated the failing test and it seems like drm_handle_vblank() is ta

[Bug 209457] AMDGPU resume fail with RX 580 GPU

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209457 Alex Deucher (alexdeuc...@gmail.com) changed: What|Removed |Added CC||alexdeuc...@gmail.c

[Bug 204241] amdgpu fails to resume from suspend

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204241 --- Comment #74 from Robert M. Muncrief (rmuncr...@humanavance.com) --- (In reply to Lahfa Samy from comment #73) > (In reply to Robert M. Muncrief from comment #72) > > (In reply to Alex Deucher from comment #71) > > > The original issue reported

Re: Nouveau wiki migration

2020-10-01 Thread Sam Ravnborg
Hi Karol. On Thu, Oct 01, 2020 at 01:36:52PM +0200, Karol Herbst wrote: > On Fri, Sep 25, 2020 at 11:27 PM Karol Herbst wrote: > > > > Hi everybody, > > > > I think it's time to finally move our wiki from the old infrastructure > > over to gitlab pages. > > > > This comes with several benefits: >

Re: [git pull] drm amdgpu + vmwgfx fixes for 5.9-rc8

2020-10-01 Thread pr-tracker-bot
The pull request you sent on Thu, 1 Oct 2020 16:10:22 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-10-01-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fcadab740480e0e0e9fa9bd272acd409884d431a Thank you! -- Deet-doot-dot, I am a bot. https://

[Bug 204241] amdgpu fails to resume from suspend

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204241 --- Comment #73 from Lahfa Samy (s...@lahfa.xyz) --- (In reply to Robert M. Muncrief from comment #72) > (In reply to Alex Deucher from comment #71) > > The original issue reported in this bug was fixed long ago. If you are > > having issues, ple

[Bug 204241] amdgpu fails to resume from suspend

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204241 --- Comment #72 from Robert M. Muncrief (rmuncr...@humanavance.com) --- (In reply to Alex Deucher from comment #71) > The original issue reported in this bug was fixed long ago. If you are > having issues, please file a new report. I just filed

[Bug 209457] New: AMDGPU resume fail with RX 580 GPU

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209457 Bug ID: 209457 Summary: AMDGPU resume fail with RX 580 GPU Product: Drivers Version: 2.5 Kernel Version: 5.8.12 to 5.9-rc6 Hardware: x86-64 OS: Linux Tree: Ma

Re: [PATCH v6] drm/i915: Init lspcon after HPD in intel_dp_detect()

2020-10-01 Thread Ville Syrjälä
On Wed, Jun 10, 2020 at 03:55:10PM +0800, Kai-Heng Feng wrote: > On HP 800 G4 DM, if HDMI cable isn't plugged before boot, the HDMI port > becomes useless and never responds to cable hotplugging: > [3.031904] [drm:lspcon_init [i915]] *ERROR* Failed to probe lspcon > [3.031945] [drm:intel_dd

Re: [PATCH] panfrost: Fix job timeout handling

2020-10-01 Thread Steven Price
On 01/10/2020 16:49, Boris Brezillon wrote: On Thu, 1 Oct 2020 15:49:39 +0100 Steven Price wrote: On 01/10/2020 15:01, Boris Brezillon wrote: If more than two or more jobs end up timeout-ing concurrently, only one of them (the one attached to the scheduler acquiring the lock) is fully handled

Re: [PATCH tip/core/rcu 11/15] drm/i915: Cleanup PREEMPT_COUNT leftovers

2020-10-01 Thread Paul E. McKenney
On Thu, Oct 01, 2020 at 10:25:06AM +0200, Thomas Gleixner wrote: > On Thu, Oct 01 2020 at 10:17, Joonas Lahtinen wrote: > > Quoting paul...@kernel.org (2020-09-29 02:30:58) > >> CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be > >> removed. Cleanup the leftovers before doing so. > >

Re: [PATCH] panfrost: Fix job timeout handling

2020-10-01 Thread Boris Brezillon
On Thu, 1 Oct 2020 15:49:39 +0100 Steven Price wrote: > On 01/10/2020 15:01, Boris Brezillon wrote: > > If more than two or more jobs end up timeout-ing concurrently, only one > > of them (the one attached to the scheduler acquiring the lock) is fully > > handled. The other one remains in a dangl

Re: [PATCH v2 0/3] drm: commit_work scheduling

2020-10-01 Thread Daniel Vetter
On Thu, Oct 1, 2020 at 5:15 PM Rob Clark wrote: > > On Thu, Oct 1, 2020 at 12:25 AM Daniel Vetter wrote: > > > > On Wed, Sep 30, 2020 at 11:16 PM Rob Clark wrote: > > > > > > From: Rob Clark > > > > > > The android userspace treats the display pipeline as a realtime problem. > > > And arguably,

Re: [Intel-gfx] [PATCH] Revert "drm/i915: Force state->modeset=true when distrust_bios_wm==true"

2020-10-01 Thread Ville Syrjälä
On Wed, Sep 30, 2020 at 03:47:06PM +0200, Stefan Joosten wrote: > The fix of flagging state->modeset whenever distrust_bios_wm is set > causes a regression when initializing display(s) attached to a Lenovo > USB-C docking station. The display remains blank until the dock is > reattached. Revert to

Re: [PATCH] panfrost: Fix job timeout handling

2020-10-01 Thread Boris Brezillon
On Thu, 1 Oct 2020 15:49:39 +0100 Steven Price wrote: > On 01/10/2020 15:01, Boris Brezillon wrote: > > If more than two or more jobs end up timeout-ing concurrently, only one > > of them (the one attached to the scheduler acquiring the lock) is fully > > handled. The other one remains in a dangl

Re: [PATCH v2 0/3] drm: commit_work scheduling

2020-10-01 Thread Rob Clark
On Thu, Oct 1, 2020 at 12:25 AM Daniel Vetter wrote: > > On Wed, Sep 30, 2020 at 11:16 PM Rob Clark wrote: > > > > From: Rob Clark > > > > The android userspace treats the display pipeline as a realtime problem. > > And arguably, if your goal is to not miss frame deadlines (ie. vblank), > > it i

Re: linux-next: manual merge of the akpm tree with the drm-intel tree

2020-10-01 Thread Daniel Vetter
On Thu, Oct 1, 2020 at 5:08 PM Jani Nikula wrote: > > On Thu, 01 Oct 2020, Daniel Vetter wrote: > > On Thu, Oct 1, 2020 at 3:53 PM Christoph Hellwig wrote: > >> > >> On Thu, Oct 01, 2020 at 08:39:17PM +1000, Stephen Rothwell wrote: > >> > Hi all, > >> > > >> > Today's linux-next merge of the akp

Re: linux-next: manual merge of the akpm tree with the drm-intel tree

2020-10-01 Thread Jani Nikula
On Thu, 01 Oct 2020, Daniel Vetter wrote: > On Thu, Oct 1, 2020 at 3:53 PM Christoph Hellwig wrote: >> >> On Thu, Oct 01, 2020 at 08:39:17PM +1000, Stephen Rothwell wrote: >> > Hi all, >> > >> > Today's linux-next merge of the akpm tree got a conflict in: >> > >> > drivers/gpu/drm/i915/gem/i915

Re: [PATCH] drm/sched: Avoid infinite waits in the drm_sched_entity_destroy() path

2020-10-01 Thread Steven Price
On 01/10/2020 15:12, Boris Brezillon wrote: If we don't initialize the entity to idle and the entity is never scheduled before being destroyed we end up with an infinite wait in the destroy path. Signed-off-by: Boris Brezillon This seems reasonable to me - it looks like in theory if you very

[Bug 204241] amdgpu fails to resume from suspend

2020-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204241 --- Comment #71 from Alex Deucher (alexdeuc...@gmail.com) --- The original issue reported in this bug was fixed long ago. If you are having issues, please file a new report. -- You are receiving this mail because: You are watching the assignee

Re: [PATCH] panfrost: Fix job timeout handling

2020-10-01 Thread Steven Price
On 01/10/2020 15:01, Boris Brezillon wrote: If more than two or more jobs end up timeout-ing concurrently, only one of them (the one attached to the scheduler acquiring the lock) is fully handled. The other one remains in a dangling state where it's no longer part of the scheduling queue, but sti

Re: linux-next: manual merge of the akpm tree with the drm-intel tree

2020-10-01 Thread Daniel Vetter
On Thu, Oct 1, 2020 at 3:53 PM Christoph Hellwig wrote: > > On Thu, Oct 01, 2020 at 08:39:17PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the akpm tree got a conflict in: > > > > drivers/gpu/drm/i915/gem/i915_gem_pages.c > > > > between commit: > > > > 4caf0

[PATCH] drm/sched: Avoid infinite waits in the drm_sched_entity_destroy() path

2020-10-01 Thread Boris Brezillon
If we don't initialize the entity to idle and the entity is never scheduled before being destroyed we end up with an infinite wait in the destroy path. Signed-off-by: Boris Brezillon --- This is something I noticed while debugging another issue on panfrost causing the scheduler to be in a weird s

[PATCH] panfrost: Fix job timeout handling

2020-10-01 Thread Boris Brezillon
If more than two or more jobs end up timeout-ing concurrently, only one of them (the one attached to the scheduler acquiring the lock) is fully handled. The other one remains in a dangling state where it's no longer part of the scheduling queue, but still blocks something in scheduler thus leading

Re: [PATCH] panfrost: Fix job timeout handling

2020-10-01 Thread Boris Brezillon
Oops, the prefix should be "drm/panfrost", will fix that in v2. On Thu, 1 Oct 2020 16:01:43 +0200 Boris Brezillon wrote: > If more than two or more jobs end up timeout-ing concurrently, only one > of them (the one attached to the scheduler acquiring the lock) is fully > handled. The other one r

Re: [PATCH v2] drm: bridge: cdns-mhdp8546: fix compile warning

2020-10-01 Thread Tomi Valkeinen
Hi Dave, Can you pick this up to drm-next? Fixes the x64 build warnings for the recent cdns-mhdp-5.10 pull. Tomi On 29/09/2020 12:19, Tomi Valkeinen wrote: > On x64 we get: > > drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:751:10: warning: > conversion from 'long unsigned int' to 'unsi

Re: [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()

2020-10-01 Thread Steven Price
On 01/10/2020 12:25, Daniel Vetter wrote: On Thu, Oct 1, 2020 at 12:58 PM Steven Price wrote: On 21/09/2020 14:10, Qinglang Miao wrote: Simplify the return expression. Signed-off-by: Qinglang Miao Reviewed-by: Steven Price As committer/maintainer for this please indicate whether you'll

Re: Nouveau wiki migration

2020-10-01 Thread Karol Herbst
On Fri, Sep 25, 2020 at 11:27 PM Karol Herbst wrote: > > Hi everybody, > > I think it's time to finally move our wiki from the old infrastructure > over to gitlab pages. > > This comes with several benefits: > * full control through git over the ikiwiki pipeline (setup files, > plugins, system pac

[PATCH 2/8] drm/ttm: move ttm_set_memory.h out of include

2020-10-01 Thread Christian König
This is not something drivers should use. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 3 ++- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 3 ++- {include => drivers/gpu}/drm/ttm/ttm_set_memory.h | 0 3 files changed, 4 insertions(+), 2 deletions(

[PATCH 8/8] drm/ttm: nuke caching placement flags

2020-10-01 Thread Christian König
Changing the caching on the fly never really worked flawlessly. So stop this completely and just let drivers specific the desired caching in the tt or bus object. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 20 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm

[PATCH 6/8] drm/ttm: add caching state to ttm_bus_placement

2020-10-01 Thread Christian König
And implement setting it up correctly in the drivers. This allows getting rid of the placement flags for this. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 1 + drivers/gpu/drm/drm_gem_vram_helper.c | 1 + drivers/gpu/drm/nouveau/nouveau_bo.c | 11

[PATCH 7/8] drm/ttm: use caching instead of placement for ttm_io_prot

2020-10-01 Thread Christian König
Instead of the placement flags use the caching of the bus mapping or tt object for the page protection flags. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo_util.c| 23 ++- drivers/gpu/drm/ttm/ttm_bo_vm.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_blit.c |

[PATCH 3/8] drm/ttm: cleanup ttm_handle_caching_state_failure

2020-10-01 Thread Christian König
Remove unused parameters, shorten the function name. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c inde

[PATCH 1/8] drm/ttm: remove TTM_PAGE_FLAG_WRITE

2020-10-01 Thread Christian König
Not used any more. Signed-off-by: Christian König --- include/drm/ttm/ttm_tt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/drm/ttm/ttm_tt.h b/include/drm/ttm/ttm_tt.h index 91691240a509..5d1835d44084 100644 --- a/include/drm/ttm/ttm_tt.h +++ b/include/drm/ttm/ttm_tt.h @@ -34,7 +34

[PATCH 4/8] drm/ttm: rename TTM caching enum

2020-10-01 Thread Christian König
Cleanup the enum name and its values and give it a separate header file. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +- drivers/gpu/drm/radeon/radeon_ttm.c | 2 +- drivers/gpu/drm/ttm/ttm_page_alloc.c

[PATCH 5/8] drm/ttm: set the tt caching state at creation time

2020-10-01 Thread Christian König
All drivers can determine the tt caching state at creation time, no need to do this on the fly during every validation. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 9 - drivers/gpu/drm/drm_gem_vram_helper.c | 2 +- drivers/gpu/drm/nouveau/nouvea

Re: [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()

2020-10-01 Thread Daniel Vetter
On Thu, Oct 1, 2020 at 12:58 PM Steven Price wrote: > > On 21/09/2020 14:10, Qinglang Miao wrote: > > Simplify the return expression. > > > > Signed-off-by: Qinglang Miao > > Reviewed-by: Steven Price As committer/maintainer for this please indicate whether you'll merge this or not, with just a

Re: [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()

2020-10-01 Thread Steven Price
On 21/09/2020 14:10, Qinglang Miao wrote: Simplify the return expression. Signed-off-by: Qinglang Miao Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_de

Re: [PATCH -next] drm/panfrost: simplify the return expression of cz_ih_hw_init()

2020-10-01 Thread Steven Price
On 21/09/2020 14:10, Qinglang Miao wrote: Simplify the return expression. Signed-off-by: Qinglang Miao Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_device.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_de

Re: [PATCH v2] drm: bridge: cdns-mhdp8546: fix compile warning

2020-10-01 Thread Daniel Vetter
On Thu, Oct 01, 2020 at 12:57:46PM +0300, Tomi Valkeinen wrote: > Hi Dave, > > Can you pick this up to drm-next? Fixes the x64 build warnings for the recent > cdns-mhdp-5.10 pull. Applied, hopefully that's fast enough before sfr does the next round of linux-next. -Daniel > > Tomi > > On 29/0

linux-next: manual merge of the akpm tree with the drm-intel tree

2020-10-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: drivers/gpu/drm/i915/gem/i915_gem_pages.c between commit: 4caf017ee937 ("drm/i915/gem: Avoid implicit vmap for highmem on x86-32") ba2ebf605d5f ("drm/i915/gem: Prevent using pgprot_writecombine() if PAT is not supported

Re: linux-next: build warning after merge of the drm tree

2020-10-01 Thread Stephen Rothwell
Hi all, On Wed, 23 Sep 2020 13:36:01 +1000 Stephen Rothwell wrote: > > After merging the drm tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function > 'cdns_mhdp_fw_activate': > drivers/gpu/drm/bridge/ca

Re: [PATCH] drm/ttm: fix regression in ttm moves

2020-10-01 Thread Christian König
I don't see the patch, can you point me to it? Thanks, Christian. Am 01.10.20 um 07:25 schrieb Dave Airlie: Tracked it down to my init mem type changes, patch is on the list. Dave. On Wed, 30 Sep 2020 at 18:28, Christian König wrote: That sounds like the same problem I've got when drm-next

Re: [PATCH 3/3 v3] backlight: Add Kinetic KTD253 backlight driver

2020-10-01 Thread Lee Jones
On Wed, 30 Sep 2020, Linus Walleij wrote: > On Fri, Aug 28, 2020 at 12:47 PM Lee Jones wrote: > > > > create mode 100644 drivers/video/backlight/ktd253-backlight.c > > > > Applied, thanks. > > Not to unnecessarily nag but I can't see this in linux-next and since we > are at -rc7 it makes me a

Re: [PATCH 1/3] drm: Add and export function drm_gem_cma_create_noalloc

2020-10-01 Thread Daniel Vetter
On Wed, Sep 30, 2020 at 07:16:42PM +0200, Paul Cercueil wrote: > Add and export the function drm_gem_cma_create_noalloc(), which is just > __drm_gem_cma_create() renamed. > > This function can be used by drivers that need to create a GEM object > without allocating the backing memory. > > Signed-

Re: [RFC PATCH 0/4] Add a RPMsg driver to support AI Processing Unit (APU)

2020-10-01 Thread Daniel Vetter
On Wed, Sep 30, 2020 at 01:53:46PM +0200, Alexandre Bailon wrote: > This adds a RPMsg driver that implements communication between the CPU and an > APU. > This uses VirtIO buffer to exchange messages but for sharing data, this uses > a dmabuf, mapped to be shared between CPU (userspace) and APU. >

Re: [PATCH 1/2] drm/vc4: kms: Assign a FIFO to enabled CRTCs instead of active

2020-10-01 Thread Maxime Ripard
On Thu, Sep 24, 2020 at 05:08:56PM +0900, Hoegeun Kwon wrote: > Hi Maxime, > > On 9/18/20 11:59 PM, Maxime Ripard wrote: > > The HVS has three FIFOs that can be assigned to a number of PixelValves > > through a mux. > > > > However, changing that FIFO requires that we disable and then enable the >

[PATCH 3/3] drm/msm: bump up the uapi version

2020-10-01 Thread Jonathan Marek
Increase the minor version to indicate the presence of new features. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/msm_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 305db1db1064..502aafe7d1e

Re: [PATCH] drm/msm/dp: add voltage corners voting support base on dp link rate

2020-10-01 Thread Stephen Boyd
Quoting Kuogee Hsieh (2020-09-29 10:10:26) > Set link rate by using OPP set rate api so that CX level will be set > accordingly base on the link rate. s/base/based/ > > Signed-off-by: Kuogee Hsieh > --- > diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c > b/drivers/gpu/drm/msm/dp/dp_ctrl.c > inde

Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline

2020-10-01 Thread Maxime Ripard
Hi Stefan, On Wed, Sep 30, 2020 at 06:52:13PM +0200, Stefan Wahren wrote: > Am 30.09.20 um 18:38 schrieb Nathan Chancellor: > > On Wed, Sep 30, 2020 at 04:07:58PM +0200, Maxime Ripard wrote: > >> Hi Nathan, > >> > >> On Tue, Sep 29, 2020 at 03:15:26PM -0700, Nathan Chancellor wrote: > >>> On Thu,

[RFC PATCH 4/4] rpmsg: apu_rpmsg: Add an IOCTL to request IOMMU mapping

2020-10-01 Thread Alexandre Bailon
Currently, the kernel is automatically doing an IOMMU memory mapping. But we want to do it automatically for two reasons: - to reduce the overhead of each APU operation - to get the device address and use it as input for an operation This adds 2 IOCTL to manually IOMMU map and unmap memory. Signed

[PATCH] Revert "drm/i915: Force state->modeset=true when distrust_bios_wm==true"

2020-10-01 Thread Stefan Joosten
The fix of flagging state->modeset whenever distrust_bios_wm is set causes a regression when initializing display(s) attached to a Lenovo USB-C docking station. The display remains blank until the dock is reattached. Revert to bring the behavior of the functional v5.6 stable. This reverts commit 0

Re: [PATCH rdma-next v4 4/4] RDMA/umem: Move to allocate SG table from pages

2020-10-01 Thread Jason Gunthorpe
On Wed, Sep 30, 2020 at 02:53:58PM +0300, Maor Gottlieb wrote: > > On 9/30/2020 2:45 PM, Jason Gunthorpe wrote: > > On Wed, Sep 30, 2020 at 12:53:21PM +0300, Leon Romanovsky wrote: > > > On Tue, Sep 29, 2020 at 04:59:29PM -0300, Jason Gunthorpe wrote: > > > > On Sun, Sep 27, 2020 at 09:46:47AM +03

Re: [PATCH 1/2] drm/vc4: hdmi: Disable Wifi Frequencies

2020-10-01 Thread Maxime Ripard
Hi Daniel, On Mon, Sep 28, 2020 at 11:02:11AM +0200, Daniel Vetter wrote: > On Mon, Sep 28, 2020 at 9:06 AM Maxime Ripard wrote: > > > > There's cross-talk on the RPi4 between the 2.4GHz channels used by the WiFi > > chip and some resolutions, most notably 1440p at 60Hz. > > > > In such a case, w

[PATCH 2/3] drm/msm: add DRM_MSM_GEM_SYNC_CACHE for non-coherent cache maintenance

2020-10-01 Thread Jonathan Marek
This makes it possible to use the non-coherent cached MSM_BO_CACHED mode, which otherwise doesn't provide any method for cleaning/invalidating the cache to sync with the device. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/msm_drv.c | 21 + drivers/gpu/drm/msm/msm_dr

Re: [PATCH rdma-next v4 4/4] RDMA/umem: Move to allocate SG table from pages

2020-10-01 Thread Maor Gottlieb
On 9/30/2020 2:45 PM, Jason Gunthorpe wrote: On Wed, Sep 30, 2020 at 12:53:21PM +0300, Leon Romanovsky wrote: On Tue, Sep 29, 2020 at 04:59:29PM -0300, Jason Gunthorpe wrote: On Sun, Sep 27, 2020 at 09:46:47AM +0300, Leon Romanovsky wrote: @@ -296,11 +223,17 @@ static struct ib_umem *__ib_um

Re: [PATCH rdma-next v4 4/4] RDMA/umem: Move to allocate SG table from pages

2020-10-01 Thread Jason Gunthorpe
On Wed, Sep 30, 2020 at 12:53:21PM +0300, Leon Romanovsky wrote: > On Tue, Sep 29, 2020 at 04:59:29PM -0300, Jason Gunthorpe wrote: > > On Sun, Sep 27, 2020 at 09:46:47AM +0300, Leon Romanovsky wrote: > > > @@ -296,11 +223,17 @@ static struct ib_umem *__ib_umem_get(struct > > > ib_device *device,

[RFC PATCH 2/4] rpmsg: apu_rpmsg: Add support for async apu request

2020-10-01 Thread Alexandre Bailon
From: Julien STEPHAN In order to improve performances and flexibility, add support of async request. Signed-off-by: Julien STEPHAN Signed-off-by: Alexandre Bailon --- drivers/rpmsg/apu_rpmsg.c | 208 ++--- include/uapi/linux/apu_rpmsg.h | 6 +- 2 files chang

[PATCH 0/3] drm/msm: support for host-cached BOs

2020-10-01 Thread Jonathan Marek
This is to support cached and cached-coherent memory types in vulkan. I made a corresponding WIP merge request [1] which shows usage of this. [1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6949 Jonathan Marek (3): drm/msm: add MSM_BO_CACHED_COHERENT drm/msm: add DRM_MSM_GEM_SY

Re: linux-next: build failure after merge of the drm tree

2020-10-01 Thread Paul Cercueil
Le mer. 30 sept. 2020 à 18:11, Christoph Hellwig a écrit : On Wed, Sep 30, 2020 at 03:33:13PM +0200, Paul Cercueil wrote: One thing missing for remap_pfn_range(), I have no alternative for this: vma->vm_page_prot = dma_pgprot(dev, vma->vm_page_prot, DMA_ATTR_NON_CONSISTENT); So I hav

[RFC PATCH 1/4] Add a RPMSG driver for the APU in the mt8183

2020-10-01 Thread Alexandre Bailon
This adds a driver to communicate with the APU available in the mt8183. The driver is generic and could be used for other APU. It mostly provides a userspace interface to send messages and and share big buffers with the APU. Signed-off-by: Alexandre Bailon --- drivers/rpmsg/Kconfig |

Re: [PATCH rdma-next v4 4/4] RDMA/umem: Move to allocate SG table from pages

2020-10-01 Thread Maor Gottlieb
On 9/30/2020 6:14 PM, Jason Gunthorpe wrote: On Wed, Sep 30, 2020 at 06:05:15PM +0300, Maor Gottlieb wrote: This is right only for the last iteration. E.g. in the first iteration in case that there are more pages (left_pages), then we allocate SG_MAX_SINGLE_ALLOC.  We don't know how many pages

[PATCH 3/3] drm/ingenic: Alloc cached GEM buffers with dma_alloc_noncoherent

2020-10-01 Thread Paul Cercueil
It turns out that if you want to mmap GEM buffers fully cached, then they should be allocated as such as well. Who would have known? Introduce a custom .dumb_create callback, that will behave just like drm_gem_cma_dumb_create(), except that it will allocate the GEM buffer using dma_alloc_noncohere

[PATCH 1/2] dt-bindings: drm/bridge: ti-sn65dsi86: Replace #pwm-cells

2020-10-01 Thread Bjorn Andersson
While the signal on GPIO4 to drive the backlight controller indeed is pulse width modulated its purpose is specifically to control the brightness of a backlight. Drop the #pwm-cells and instead expose a new property to configure the granularity of the backlight PWM signal. Signed-off-by: Bjorn An

Re: linux-next: build failure after merge of the drm tree

2020-10-01 Thread Paul Cercueil
Le mer. 30 sept. 2020 à 18:40, Christoph Hellwig a écrit : On Wed, Sep 30, 2020 at 06:39:18PM +0200, Paul Cercueil wrote: dma_alloc_pages gives you cached memory, so you can't just use an uncached protection for the userspace mmap here. If you want uncached memory you need to use dma_a

[RFC PATCH 0/4] Add a RPMsg driver to support AI Processing Unit (APU)

2020-10-01 Thread Alexandre Bailon
This adds a RPMsg driver that implements communication between the CPU and an APU. This uses VirtIO buffer to exchange messages but for sharing data, this uses a dmabuf, mapped to be shared between CPU (userspace) and APU. The driver is relatively generic, and should work with any SoC implementing

Re: [PATCH 1/2] dt-bindings: drm/bridge: ti-sn65dsi86: Replace #pwm-cells

2020-10-01 Thread Steev Klimaszewski
On 9/30/20 5:35 PM, Bjorn Andersson wrote: > While the signal on GPIO4 to drive the backlight controller indeed is > pulse width modulated its purpose is specifically to control the > brightness of a backlight. > > Drop the #pwm-cells and instead expose a new property to configure the > granulari

Re: [PATCH 2/2] drm/bridge: ti-sn65dsi86: Expose backlight controls

2020-10-01 Thread Steev Klimaszewski
On 9/30/20 5:35 PM, Bjorn Andersson wrote: > The TI SN65DSI86 can be configured to generate a PWM pulse on GPIO4, > to be used to drive a backlight driver. > > Signed-off-by: Bjorn Andersson > --- > drivers/gpu/drm/bridge/Kconfig| 1 + > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 143 +++

[PATCH 2/3] drm/ingenic: Update code to mmap GEM buffers cached

2020-10-01 Thread Paul Cercueil
The DMA API changed at the same time commit 37054fc81443 ("gpu/drm: ingenic: Add option to mmap GEM buffers cached") was added. Rework the code to work with the new DMA API. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 24 +++ 1 file changed, 7

[PATCH] drm/bridge: ti-sn65dsi86: remove redundant null check

2020-10-01 Thread Xu Wang
Because clk_disable_unprepare already checked NULL clock parameter, so the additional checks are unnecessary, just remove it Signed-off-by: Xu Wang --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.

Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline

2020-10-01 Thread Nathan Chancellor
On Wed, Sep 30, 2020 at 04:07:58PM +0200, Maxime Ripard wrote: > Hi Nathan, > > On Tue, Sep 29, 2020 at 03:15:26PM -0700, Nathan Chancellor wrote: > > On Thu, Sep 03, 2020 at 10:01:52AM +0200, Maxime Ripard wrote: > > > Now that all the drivers have been adjusted for it, let's bring in the > > > n

[PATCH 2/2] drm/bridge: ti-sn65dsi86: Expose backlight controls

2020-10-01 Thread Bjorn Andersson
The TI SN65DSI86 can be configured to generate a PWM pulse on GPIO4, to be used to drive a backlight driver. Signed-off-by: Bjorn Andersson --- drivers/gpu/drm/bridge/Kconfig| 1 + drivers/gpu/drm/bridge/ti-sn65dsi86.c | 143 +- 2 files changed, 140 insertions(+

Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline

2020-10-01 Thread Maxime Ripard
Hi Nathan, On Tue, Sep 29, 2020 at 03:15:26PM -0700, Nathan Chancellor wrote: > On Thu, Sep 03, 2020 at 10:01:52AM +0200, Maxime Ripard wrote: > > Now that all the drivers have been adjusted for it, let's bring in the > > necessary device tree changes. > > > > The VEC and PV3 are left out for now

[PATCH 1/3] drm: Add and export function drm_gem_cma_create_noalloc

2020-10-01 Thread Paul Cercueil
Add and export the function drm_gem_cma_create_noalloc(), which is just __drm_gem_cma_create() renamed. This function can be used by drivers that need to create a GEM object without allocating the backing memory. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/drm_gem_cma_helper.c | 11 ++-

Re: [PATCH 0/3] Prevent out-of-bounds access for built-in font data buffers

2020-10-01 Thread Peilin Ye
On Wed, Sep 30, 2020 at 01:52:11PM +0200, Greg Kroah-Hartman wrote: > On Wed, Sep 30, 2020 at 01:25:14PM +0200, Daniel Vetter wrote: > > On Wed, Sep 30, 2020 at 12:56 PM Peilin Ye wrote: > > > Yes, and built-in fonts don't use refcount. Or maybe we can let > > > find_font() and get_default_font()

Re: [PATCH rdma-next v4 4/4] RDMA/umem: Move to allocate SG table from pages

2020-10-01 Thread Maor Gottlieb
On 9/30/2020 2:58 PM, Jason Gunthorpe wrote: On Wed, Sep 30, 2020 at 02:53:58PM +0300, Maor Gottlieb wrote: On 9/30/2020 2:45 PM, Jason Gunthorpe wrote: On Wed, Sep 30, 2020 at 12:53:21PM +0300, Leon Romanovsky wrote: On Tue, Sep 29, 2020 at 04:59:29PM -0300, Jason Gunthorpe wrote: On Sun, S

Re: linux-next: build failure after merge of the drm tree

2020-10-01 Thread Paul Cercueil
Hi Christoph, Le mer. 30 sept. 2020 à 11:02, Christoph Hellwig a écrit : On Mon, Sep 28, 2020 at 03:31:28PM +0200, Paul Cercueil wrote: It's allocated with dma_alloc_wc, but then it's only accessed as non-coherent. Anyway, for the time being I guess you could revert 37054fc81443. But I

[PATCH] drm/ingenic: remove redundant null check

2020-10-01 Thread Xu Wang
Because clk_disable_unprepare already checked NULL clock parameter, so the additional checks are unnecessary, just remove them. Signed-off-by: Xu Wang --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/ingenic/i

  1   2   >