Re: [PATCH] drm/ttm: stop warning on TT shrinker failure

2021-03-24 Thread Daniel Vetter
alloc a page with relevant gfp attributes, copy and > add_to_swap_cache()? Or perhaps that doesn't work well from a shrinker > either? So before we toss everything and go an a great rewrite-the-world tour, what if we just try to split up big objects. So for objects which are

Re: [PATCH] drm/ttm: stop warning on TT shrinker failure

2021-03-24 Thread Daniel Vetter
On Wed, Mar 24, 2021 at 01:00:28PM +0100, Christian König wrote: > Am 24.03.21 um 12:55 schrieb Daniel Vetter: > > On Wed, Mar 24, 2021 at 11:19:13AM +0100, Thomas Hellström (Intel) wrote: > > > On 3/23/21 4:45 PM, Christian König wrote: > > > > Am 23.03.21

Re: [PATCH] drm/amdgpu: Ensure that the modifier requested is supported by plane.

2021-03-24 Thread Daniel Stone
kernel is not doing this, the kernel is objectively wrong. (And I know it doesn't do this in most cases, because otherwise I wouldn't be able to use this GNOME session on an Intel laptop, where modifiers are blacklisted.) Cheers, Daniel ___ dri

Re: [Intel-gfx] [PATCH v9 25/70] drm/i915: Take reservation lock around i915_vma_pin.

2021-03-24 Thread Daniel Vetter
co.uk/ What's really worrying here is the silent (accidental maybe, commit message doesn't explain anything) change to the argument of set_to_gtt_domain(). I've decided to just go with what we have right now, but please double-check this matches the old version you've had before

Re: [Intel-gfx] [PATCH v9 27/70] drm/i915: Make __engine_unpark() compatible with ww locking.

2021-03-24 Thread Daniel Vetter
, runtime pm resume is on the critical path for dma-fence (we might need to wake up the device for e.g. atomic modeset commits), so definitely can't have a dma_resv_lock in here. -Daniel > > Signed-off-by: Maarten Lankhorst > Reviewed-by: Thomas Hellström > --- > drivers/gpu/d

Re: [Intel-gfx] [PATCH v9 28/70] drm/i915: Take obj lock around set_domain ioctl

2021-03-24 Thread Daniel Vetter
uff that wasn't reset yet, so I picked up the old version here: https://lore.kernel.org/intel-gfx/20210128162612.927917-29-maarten.lankho...@linux.intel.com/ That one looks a lot more reasonable. -Daniel > --- > drivers/gpu/drm/i915/gem/i915_gem_domain.c | 41 ++

Re: [Intel-gfx] [PATCH v9 30/70] drm/i915: Fix pread/pwrite to work with new locking rules.

2021-03-24 Thread Daniel Vetter
l-gfx/20210128162612.927917-31-maarten.lankho...@linux.intel.com/ because too much conflicts with this version here. -Daniel > --- > drivers/gpu/drm/i915/Makefile | 1 - > drivers/gpu/drm/i915/gem/i915_gem_fence.c | 95 - > drivers/gpu/drm/i915/gem/i915_ge

Re: [PATCH] drm/amdgpu: Ensure that the modifier requested is supported by plane.

2021-03-24 Thread Daniel Stone
)? > That's correct. Not passing any modifiers is the same as explicitly passing INVALID, both of which mean 'the driver will figure it out somehow'; that driver-specific determination is not the same as explicit LINEAR. (I cannot regret enough that INVA

Re: [Intel-gfx] [PATCH v9 31/70] drm/i915: Fix workarounds selftest, part 1

2021-03-24 Thread Daniel Vetter
rg/intel-gfx/20210128162612.927917-32-maarten.lankho...@linux.intel.com/ Cheers, Daniel > --- > drivers/gpu/drm/i915/gem/i915_gem_object.h| 3 + > drivers/gpu/drm/i915/gem/i915_gem_pages.c | 12 +++ > .../gpu/drm/i915/gt/selftest_workarounds.c| 95 +-- > 3 f

Re: [Intel-gfx] [PATCH v9 34/70] drm/i915: Add ww locking around vm_access()

2021-03-24 Thread Daniel Vetter
n vm_access callback, generic_access_phys should be used here instead. I've applied this, but can you pls do a follow up patch here? Thanks, Daniel > --- > drivers/gpu/drm/i915/gem/i915_gem_mman.c | 24 ++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > &g

Re: [Intel-gfx] [PATCH v9 44/70] drm/i915/selftests: Prepare context tests for obj->mm.lock removal.

2021-03-24 Thread Daniel Vetter
lore.kernel.org/intel-gfx/20210128162612.927917-45-maarten.lankho...@linux.intel.com/ There was some functional changes in the test, so I figured that's the safer path. -Daniel > --- > drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 10 +- > 1 file changed,

Re: [Intel-gfx] [PATCH v9 63/70] drm/i915: Move gt_revoke() slightly

2021-03-24 Thread Daniel Vetter
global reset also thrashes mmaps, but it's a global reset we're talking about here, everything is thrash anyway. Plus/minus fenced gtt mmaps really doesn't change the tally. The real solution is per-engine reset here, and making sure that works as well as absolutely possible. Maart

Re: [Intel-gfx] [PATCH v9 64/70] drm/i915: Add missing -EDEADLK path in execbuffer ggtt pinning.

2021-03-24 Thread Daniel Vetter
by: Maarten Lankhorst This partially reverts https://lore.kernel.org/intel-gfx/cam0jshohkzhivgi-x37w2rxyqhm1vbqb8uzavyexejuwe0l...@mail.gmail.com/ which I'm going to throw out anyway. So not merged this one here. -Daniel > --- > drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 ++

Re: [Intel-gfx] [PATCH v9 65/70] drm/i915: Fix pin_map in scheduler selftests

2021-03-24 Thread Daniel Vetter
On Tue, Mar 23, 2021 at 04:50:54PM +0100, Maarten Lankhorst wrote: > Signed-off-by: Maarten Lankhorst Fixes a commit I'll drop anyway, so didn't bother with this one. -Daniel > --- > drivers/gpu/drm/i915/selftests/i915_scheduler.c | 2 +- > 1 file changed, 1 in

Re: [Intel-gfx] [PATCH v9 63/70] drm/i915: Move gt_revoke() slightly

2021-03-24 Thread Daniel Vetter
On Wed, Mar 24, 2021 at 07:15:36PM +0200, Ville Syrjälä wrote: > On Wed, Mar 24, 2021 at 06:00:12PM +0100, Daniel Vetter wrote: > > On Tue, Mar 23, 2021 at 04:50:52PM +0100, Maarten Lankhorst wrote: > > > We get a lockdep splat when the reset mutex is held, because it can b

Re: [Intel-gfx] [PATCH v9 70/70] drm/i915: Remove asynchronous vma binding

2021-03-24 Thread Daniel Vetter
l it a false positive, that's always a bit a bold statement for lockdep splats which needs extroadinary evidence. So maybe drop that part. Also maybe good to reference the commit which added async ggtt pte writes for reference here. With those things on the commit message addressed: Acked-by:

Re: [Intel-gfx] [PATCH v9 66/70] drm/i915: Add ww parameter to get_pages() callback

2021-03-24 Thread Daniel Vetter
bsw fix, but the others are for lmem enabling, so imo can go in through the usual way. -Daniel > --- > drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 3 ++- > drivers/gpu/drm/i915/gem/i915_gem_internal.c | 3 ++- > drivers/gpu/drm/i915/gem/i915_gem_object_types.h |

Re: [PATCH 3/3] mm: unexport follow_pfn

2021-03-24 Thread Daniel Vetter
On Wed, Mar 24, 2021 at 09:52:11AM -0300, Jason Gunthorpe wrote: > On Tue, Mar 16, 2021 at 04:33:03PM +0100, Daniel Vetter wrote: > > Both kvm (in bd2fae8da794 ("KVM: do not assume PTE is writable after > > follow_pfn")) and vfio (in 07956b6269d3 ("vfio/type1: Use

Re: [PATCH] drm/ttm: stop warning on TT shrinker failure

2021-03-24 Thread Daniel Vetter
On Wed, Mar 24, 2021 at 01:07:44PM +0100, Christian König wrote: > > > Am 24.03.21 um 13:01 schrieb Daniel Vetter: > > On Wed, Mar 24, 2021 at 01:00:28PM +0100, Christian König wrote: > > > Am 24.03.21 um 12:55 schrieb Daniel Vetter: > > > > On Wed, Mar

Re: [PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-24 Thread Daniel Vetter
t; +static unsigned long ttm_dma32_pages_limit; > + > +MODULE_PARM_DESC(dma32_pages_limit, "Limit for the allocated DMA32 pages"); > +module_param_named(dma32_pages_limit, ttm_dma32_pages_limit, ulong, 0644); > + > +static atomic_long_t ttm_pages_allocated; > +s

[PATCH 1/2] drm/i915: add gem/gt TODO

2021-03-24 Thread Daniel Vetter
w it's just the TODO file Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Jason Ekstrand Cc: Dave Airlie Acked-by: Dave Airlie Acked-by: Rodrigo Vivi Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/TODO.txt | 41 +++ 1 file changed, 41 insert

[PATCH 2/2] drm/doc: Add RFC section

2021-03-24 Thread Daniel Vetter
Airlie Acked-by: Rodrigo Vivi Acked-by: Dave Airlie Signed-off-by: Daniel Vetter --- Documentation/gpu/index.rst | 1 + Documentation/gpu/rfc.rst | 17 + 2 files changed, 18 insertions(+) create mode 100644 Documentation/gpu/rfc.rst diff --git a/Documentation/gpu/index.rst b

Re: [PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-25 Thread Daniel Vetter
On Thu, Mar 25, 2021 at 9:07 AM Christian König wrote: > > Am 24.03.21 um 20:29 schrieb Daniel Vetter: > > On Wed, Mar 24, 2021 at 02:48:45PM +0100, Christian König wrote: > >> The shrinker based approach still has some flaws. Especially that we need > >> tempor

Re: [PATCH] drivers: gpu: drm: xen_drm_front_drm_info is declared twice

2021-03-25 Thread Daniel Vetter
-i-apply-my-patch We need to hard-reset drm-misc-next-fixes back, please re-apply the patches (both of them) to drm-misc-fixes. Also adding drm-misc maintainers. -Daniel > > Thank you, > > Oleksandr > > > --- > > drivers/gpu/drm/xen/xen_drm_front_conn.h |

Re: linux-next: please do not base your tree on v5.12-rc1-dontuse

2021-03-25 Thread Daniel Vetter
'll fix for tomorrow. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drivers: gpu: drm: xen_drm_front_drm_info is declared twice

2021-03-25 Thread Daniel Vetter
On Thu, Mar 25, 2021 at 10:16 AM Daniel Vetter wrote: > > On Thu, Mar 25, 2021 at 7:53 AM Oleksandr Andrushchenko > wrote: > > > > Hi, > > > > On 3/25/21 8:19 AM, Wan Jiabing wrote: > > > struct xen_drm_front_drm_info has been declared. > > > R

Re: [PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-25 Thread Daniel Vetter
On Thu, Mar 25, 2021 at 10:27 AM Christian König wrote: > > Am 25.03.21 um 09:31 schrieb Daniel Vetter: > > On Thu, Mar 25, 2021 at 9:07 AM Christian König > > wrote: > >> Am 24.03.21 um 20:29 schrieb Daniel Vetter: > >>> On Wed, Mar 24, 2021 at

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Daniel Vetter
size is *not* necessarily aligned to the CPU page table sizes and DAX > > would benefit from better handling of this mismatch. > > > >> On top of this, unless we want to do the walk trying increasingly smaller > >> sizes of vmf_insert_xxx(), we'd have to use

Re: [Intel-gfx] [PATCH] drm/i915: Implement SINGLE_TIMELINE with a syncobj (v2)

2021-03-25 Thread Daniel Vetter
On Thu, Mar 25, 2021 at 10:48 AM Tvrtko Ursulin wrote: > > > On 24/03/2021 17:18, Jason Ekstrand wrote: > > On Wed, Mar 24, 2021 at 6:36 AM Tvrtko Ursulin > > wrote: > >> > >> > >> On 24/03/2021 09:52, Daniel Vetter wrote: > >>> On

Re: [PATCH] drm/i915: Fix userptr so we do not have to worry about obj->mm.lock, v8.

2021-03-25 Thread Daniel Vetter
arily) required. > > Changes since v6: > > - Ensure userptr validity is checked in set_domain through a special path. > > Changes since v7: > > - Chane kvfree to kvfree(). > > v8: Change "Chane kvfree to kvfree()" to "Change kfree() to kvfree()" ?

Re: [PATCH v5 5/6] backlight: rt4831: Adds support for Richtek RT4831 backlight

2021-03-25 Thread Daniel Thompson
propval << RT4831_BLOVP_SHIFT); > + if (ret) > + return ret; > + > + ret = device_property_read_u8(dev, "richtek,channel-use", &propval); > + if (ret) { > + dev_err(dev, "richtek,channel-use DT property missing\n&q

Re: [PATCH v5 5/6] backlight: rt4831: Adds support for Richtek RT4831 backlight

2021-03-25 Thread Daniel Thompson
On Thu, Mar 25, 2021 at 04:22:11PM +0800, ChiYuan Huang wrote: > Dear reviewers: > >Didn't get any response about this backlight patch. > Is there any part need to be refined? Thanks for the reminders and sorry for the delay. Have just replied to the original

Re: [igt-dev] [PATCH i-g-t 2/5] tests: Build gem_concurrent_all with meson

2021-03-25 Thread Daniel Vetter
ries. On the series: Acked-by: Daniel Vetter > --- > tests/meson.build | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/tests/meson.build b/tests/meson.build > index 54a1a3c7..8e3cd390 100644 > --- a/tests/meson.build > +++ b/tests/meson.build >

Re: [PATCH 3/3] mm: unexport follow_pfn

2021-03-25 Thread Daniel Vetter
On Wed, Mar 24, 2021 at 08:17:10PM +0100, Daniel Vetter wrote: > On Wed, Mar 24, 2021 at 09:52:11AM -0300, Jason Gunthorpe wrote: > > On Tue, Mar 16, 2021 at 04:33:03PM +0100, Daniel Vetter wrote: > > > Both kvm (in bd2fae8da794 ("KVM: do not assume PTE is writable after

[PATCH] drm/doc: Add RFC section

2021-03-25 Thread Daniel Vetter
) contained somewhere separate (Jason) Cc: Simon Ser Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Jason Ekstrand Cc: Dave Airlie Acked-by: Jason Ekstrand Acked-by: Simon Ser Acked-by: Rodrigo Vivi Acked-by: Dave Airlie Signed-off-by: Daniel Vetter --- Documentation/gpu/index.rst

Re: [PATCH 5/7] drm/i915: Request watchdog infrastructure

2021-03-25 Thread Daniel Vetter
d i915_request_cancel(). > > Associated timeout value is stored in rq->context.watchdog.timeout_us. > > v2: > * Log expiration. > > v3: > * Include more information about user timeline in the log message. > > v4: > * Remove obsolete comment and fix formatting

Re: [Intel-gfx] [PATCH 3/7] drm/i915: Restrict sentinel requests further

2021-03-25 Thread Daniel Vetter
faced with a chain of requests which have > > all been marked as in error. > > > > Because in cases where we end up with a stream of cancelled requests we > > want to turn of request coalescing so they each will get individually > > turn off Fixed while applying. -Da

Re: [PATCH 7/7] drm/i915: Allow configuring default request expiry via modparam

2021-03-25 Thread Daniel Vetter
t; Signed-off-by: Tvrtko Ursulin > Cc: Daniel Vetter > Acked-by: Daniel Vetter Entire series merged, thanks for the patches. -Daniel > --- > drivers/gpu/drm/i915/gem/i915_gem_context.c | 5 +++-- > drivers/gpu/drm/i915/i915_params.c | 5 + > drivers/gpu/drm/i915/i915_

Re: [PATCH] drm/doc: Add RFC section

2021-03-26 Thread Daniel Vetter
On Thu, Mar 25, 2021 at 11:58:59PM +0100, Daniel Vetter wrote: > Motivated by the pre-review process for i915 gem/gt features, but > probably useful in general for complex stuff. > > v2: Add reminder to not forget userspace projects in the discussion > (Simon, Jason) > >

Re: [Intel-gfx] [PATCH v4 0/7] Default request/fence expiry + watchdog

2021-03-26 Thread Daniel Vetter
rom > the kernel side either. (Although disclaimer my memory may be leaky - Daniel > suspects old hangcheck had some stricter, more indiscriminatory, angles to it. > But apart from being prone to both false negatives and false positives I can't > remember that myself.) > > Sh

[PULL] topic/i915-gem-next

2021-03-26 Thread Daniel Vetter
x27;s a huge thing, tons of work, but finally we have it merged. Cheers, Daniel The following changes since commit 06debd6e1b28029e6e77c41e59a162868f377897: Merge tag 'drm-intel-next-2021-03-16' of git://anongit.freedesktop.org/drm/drm-intel into drm-next (2021-03-18 08:06:34 +1000)

Re: [PULL] topic/i915-gem-next

2021-03-26 Thread Daniel Vetter
On Fri, Mar 26, 2021 at 2:31 PM Jani Nikula wrote: > > On Fri, 26 Mar 2021, Daniel Vetter wrote: > > The rough plan we discussed somewhat ad-hoc with Jani&Rodrigo (Joonas was > > out this week, but back next) is that they send out a pull with what's > > the

Re: [pull] amdgpu, amdkfd, radeon drm-next-5.12

2021-03-26 Thread Daniel Vetter
On Thu, Feb 18, 2021 at 11:15 PM Alex Deucher wrote: > > Hi Dave, Daniel, > > Fixes for 5.12. > > The following changes since commit 4c3a3292730c56591472717d8c5c0faf74f6c6bb: > > drm/amd/display: fix unused variable warning (2021-02-05 09:49:44 +1000) > > are avai

[PATCH v5 0/2] gpu: drm: add driver for ili9361 panel

2021-03-28 Thread Daniel Mack
This is v3 of the series. Changelog: v2 -> v3: * Turn Documentation into yaml format v3 -> v4: * Fix reference error in yaml file v4 -> v5: * More yaml file documentation fixes Daniel Mack (2): dt-bindings: display: add bindings for newhaven,1.8-128160EF

[PATCH v5 2/2] drm/tiny: add driver for newhaven,1.8-128160EF

2021-03-28 Thread Daniel Mack
This patch adds support for Newhaven's NHD-1.8-128160EF display, featuring an Ilitek ILI9163 controller. Signed-off-by: Daniel Mack Acked-by: Daniel Vetter --- drivers/gpu/drm/tiny/Kconfig | 13 ++ drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/ili9163.c

[PATCH v5 1/2] dt-bindings: display: add bindings for newhaven, 1.8-128160EF

2021-03-28 Thread Daniel Mack
This adds documentation for a new ILI9163 based, SPI connected display. Signed-off-by: Daniel Mack --- .../display/panel/ilitek,ili9163.yaml | 69 +++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9163

Re: [PATCH v6 4/4] backlight: rt4831: Adds support for Richtek RT4831 backlight

2021-03-29 Thread Daniel Thompson
It's common used to drive the display WLED. There're four channels Nitpicking but I was expecting the original typo be converted to "commonly". With that addressed: Reviewed-by: Daniel Thompson Daniel. ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v6 2/4] backlight: rt4831: Adds DT binding document for Richtek RT4831 backlight

2021-03-29 Thread Daniel Thompson
On Sun, Mar 28, 2021 at 11:24:17PM +0800, cy_huang wrote: > From: ChiYuan Huang > > Adds DT binding document for Richtek RT4831 backlight. > > Signed-off-by: ChiYuan Huang Reviewed-by: Daniel Thompson ___ dri-devel mailing

[PATCH v5 1/2] dt-bindings: display: add bindings for newhaven, 1.8-128160EF

2021-03-29 Thread Daniel Mack
This adds documentation for a new ILI9163 based, SPI connected display. Signed-off-by: Daniel Mack --- .../display/panel/ilitek,ili9163.yaml | 69 +++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9163

[PATCH v6 1/2] drm/tiny: add driver for newhaven,1.8-128160EF

2021-03-29 Thread Daniel Mack
This patch adds support for Newhaven's NHD-1.8-128160EF display, featuring an Ilitek ILI9163 controller. Signed-off-by: Daniel Mack Acked-by: Daniel Vetter --- drivers/gpu/drm/tiny/Kconfig | 13 ++ drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/ili9163.c

[PATCH v6 0/2] gpu: drm: add driver for ili9361 panel

2021-03-29 Thread Daniel Mack
This is v3 of the series. Changelog: v2 -> v3: * Turn Documentation into yaml format v3 -> v4: * Fix reference error in yaml file v4 -> v5: * More yaml file documentation fixes v5 -> v6: * More yaml file documentation fixes Daniel Mack (2):

[PATCH v6 2/2] dt-bindings: display: add bindings for newhaven, 1.8-128160EF

2021-03-29 Thread Daniel Mack
This adds documentation for a new ILI9163 based, SPI connected display. Signed-off-by: Daniel Mack --- .../display/panel/ilitek,ili9163.yaml | 69 +++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9163

[PATCH v5 2/2] drm/tiny: add driver for newhaven,1.8-128160EF

2021-03-29 Thread Daniel Mack
This patch adds support for Newhaven's NHD-1.8-128160EF display, featuring an Ilitek ILI9163 controller. Signed-off-by: Daniel Mack Acked-by: Daniel Vetter --- drivers/gpu/drm/tiny/Kconfig | 13 ++ drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/ili9163.c

[PATCH v7 1/2] dt-bindings: display: add bindings for newhaven, 1.8-128160EF

2021-03-29 Thread Daniel Mack
This adds documentation for a new ILI9163 based, SPI connected display. Signed-off-by: Daniel Mack --- .../display/panel/ilitek,ili9163.yaml | 69 +++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9163

[PATCH v7 0/2] gpu: drm: add driver for ili9361 panel

2021-03-29 Thread Daniel Mack
Fix ordering of patches Daniel Mack (2): dt-bindings: display: add bindings for newhaven,1.8-128160EF drm/tiny: add driver for newhaven,1.8-128160EF .../display/panel/ilitek,ili9163.yaml | 69 +++ drivers/gpu/drm/tiny/Kconfig | 13 + drivers/gpu/dr

[PATCH v7 2/2] drm/tiny: add driver for newhaven,1.8-128160EF

2021-03-29 Thread Daniel Mack
This patch adds support for Newhaven's NHD-1.8-128160EF display, featuring an Ilitek ILI9163 controller. Signed-off-by: Daniel Mack Acked-by: Daniel Vetter --- drivers/gpu/drm/tiny/Kconfig | 13 ++ drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/ili9163.c

[PATCH v8 0/2] gpu: drm: add driver for ili9361 panel

2021-03-31 Thread Daniel Mack
Fix ordering of patches v7 -> v8: * More yaml file documentation fixes Daniel Mack (2): dt-bindings: display: add bindings for newhaven,1.8-128160EF drm/tiny: add driver for newhaven,1.8-128160EF .../display/panel/ilitek,ili9163.yaml | 69 +++ drivers/gp

[PATCH v8 2/2] drm/tiny: add driver for newhaven,1.8-128160EF

2021-03-31 Thread Daniel Mack
This patch adds support for Newhaven's NHD-1.8-128160EF display, featuring an Ilitek ILI9163 controller. Signed-off-by: Daniel Mack Acked-by: Daniel Vetter --- drivers/gpu/drm/tiny/Kconfig | 13 ++ drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/ili9163.c

[PATCH v8 1/2] dt-bindings: display: add bindings for newhaven, 1.8-128160EF

2021-03-31 Thread Daniel Mack
This adds documentation for a new ILI9163 based, SPI connected display. Signed-off-by: Daniel Mack --- .../display/panel/ilitek,ili9163.yaml | 69 +++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9163

Re: [PATCH -next] backlight: backlight: Use DEFINE_MUTEX() for mutex lock

2021-04-06 Thread Daniel Thompson
backlight_class->dev_groups = bl_device_groups; > backlight_class->pm = &backlight_class_dev_pm_ops; > INIT_LIST_HEAD(&backlight_dev_list); > - mutex_init(&backlight_dev_list_mutex); > BLOCKING_INIT_NOTIFIER_HEAD(&backlight_notifier); On Mon, 4 Jan 2021

Re: [Intel-gfx] [PATCH] drm-buf: Add debug option

2021-01-14 Thread Daniel Vetter
On Wed, Jan 13, 2021 at 10:08 PM Chris Wilson wrote: > Quoting Daniel Vetter (2021-01-13 20:50:11) > > On Wed, Jan 13, 2021 at 4:43 PM Chris Wilson > > wrote: > > > > > > Quoting Daniel Vetter (2021-01-13 14:06:04) > > > > We have too many peopl

Re: [PATCH 00/31] Rid W=1 warnings from Video

2021-01-14 Thread Daniel Vetter
maybe because of this: [2]? > > BR, > Jani. > > > [1] https://cgit.freedesktop.org/drm/drm-misc > [2] http://lore.kernel.org/r/20210114113107.62210...@canb.auug.org.au Patch for that just got committted, so this shouldn't be too big a window for drm-misc-next to be ex

Re: [PATCH 00/35] Add HMM-based SVM memory manager to KFD

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 4:27 AM Jerome Glisse wrote: > > On Wed, Jan 13, 2021 at 09:31:11PM +0100, Daniel Vetter wrote: > > On Wed, Jan 13, 2021 at 5:56 PM Jerome Glisse wrote: > > > On Fri, Jan 08, 2021 at 03:40:07PM +0100, Daniel Vetter wrote: > > > > On Thu,

Re: [Intel-gfx] [PATCH] drm-buf: Add debug option

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 10:23 AM Chris Wilson wrote: > > Quoting Daniel Vetter (2021-01-14 09:02:57) > > On Wed, Jan 13, 2021 at 10:08 PM Chris Wilson > > wrote: > > > Quoting Daniel Vetter (2021-01-13 20:50:11) > > > > On Wed, Jan 13, 2021

Re: [PATCH] drm/vc4: Initialize vc4_drm_driver with CMA helper defaults

2021-01-14 Thread Daniel Vetter
initializer > macro. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/vc4/vc4_bo.c | 14 -- > drivers/gpu/drm/vc4/vc4_drv.c | 7 +-- > drivers/gpu/drm/vc4/vc4_drv.h | 3 --- > 3 files changed, 1 insertion(+), 23 del

Re: [Intel-gfx] [PATCH] drm-buf: Add debug option

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 09:45:37AM +, Chris Wilson wrote: > Quoting Daniel Vetter (2021-01-14 09:30:32) > > On Thu, Jan 14, 2021 at 10:23 AM Chris Wilson > > wrote: > > > The only other problem I see with the implementation is that there's > > > n

Re: [PATCH 00/31] Rid W=1 warnings from Video

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 10:11:01AM +0100, Daniel Vetter wrote: > On Thu, Jan 14, 2021 at 10:04 AM Jani Nikula > wrote: > > > > On Wed, 13 Jan 2021, Lee Jones wrote: > > > On Wed, 13 Jan 2021, Sam Ravnborg wrote: > > > > > >> Hi Lee, > > &

Re: [PATCH 00/35] Add HMM-based SVM memory manager to KFD

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 10:26 AM Daniel Vetter wrote: > > On Thu, Jan 14, 2021 at 4:27 AM Jerome Glisse wrote: > > > > On Wed, Jan 13, 2021 at 09:31:11PM +0100, Daniel Vetter wrote: > > > On Wed, Jan 13, 2021 at 5:56 PM Jerome Glisse wrote: > > > > O

Re: [PATCH 00/35] Add HMM-based SVM memory manager to KFD

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 11:49 AM Christian König wrote: > > Am 13.01.21 um 17:56 schrieb Jerome Glisse: > > On Fri, Jan 08, 2021 at 03:40:07PM +0100, Daniel Vetter wrote: > >> On Thu, Jan 07, 2021 at 11:25:41AM -0500, Felix Kuehling wrote: > >>> Am 2021-01-07 u

Re: HMM fence (was Re: [PATCH 00/35] Add HMM-based SVM memory manager to KFD)

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 2:37 PM Christian König wrote: > > Am 14.01.21 um 12:52 schrieb Daniel Vetter: > > [SNIP] > >>> I had a new idea, i wanted to think more about it but have not yet, > >>> anyway here it is. Adding a new callback to dma fence which ask

Re: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12

2021-01-14 Thread Daniel Vetter
cma helpers) about leaking mmaps, which keeps too many fb alive, so maybe we have gained a refcount leak somewhere recently. But could also be totally unrelated. -Daniel > > Christian. > > > > > [1] https://pastebin.com/n0FE7Hsu > > [2] https://pastebin.com

Re: HMM fence (was Re: [PATCH 00/35] Add HMM-based SVM memory manager to KFD)

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 3:13 PM Christian König wrote: > > Am 14.01.21 um 14:57 schrieb Daniel Vetter: > > On Thu, Jan 14, 2021 at 2:37 PM Christian König > > wrote: > >> Am 14.01.21 um 12:52 schrieb Daniel Vetter: > >>> [SNIP] > >>>>> I

Re: [PATCH] drm/vblank: Fix typo in docs

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 07:52:45PM +0530, Sumera Priyadarsini wrote: > Fix typo in intro chapter in drm_vblank.c. > Change 'sacn' to 'scan'. > > Signed-off-by: Sumera Priyadarsini Nice catch, applied. -Daniel > --- > drivers/gpu/drm/drm_vblank.c | 2 +

Re: HMM fence (was Re: [PATCH 00/35] Add HMM-based SVM memory manager to KFD)

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 4:08 PM Christian König wrote: > Am 14.01.21 um 15:23 schrieb Daniel Vetter: > > On Thu, Jan 14, 2021 at 3:13 PM Christian König > > wrote: > >> Am 14.01.21 um 14:57 schrieb Daniel Vetter: > >>> On Thu, Jan 14, 2021 at 2:37 PM Chr

Re: fbcon: remove soft scrollback code (missing Doc. patch)

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 4:56 PM Geert Uytterhoeven wrote: > > Hi Daniel, > > CC linux-fbdev > > On Tue, Jan 12, 2021 at 5:00 PM Daniel Vetter wrote: > > On Sat, Jan 9, 2021 at 12:11 AM Linus Torvalds > > wrote: > > > On Fri, Jan 8, 2021 at 11:13 AM Philli

Re: HMM fence (was Re: [PATCH 00/35] Add HMM-based SVM memory manager to KFD)

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 5:01 PM Christian König wrote: > > Am 14.01.21 um 16:40 schrieb Daniel Vetter: > > [SNIP] > >> So I think we have to somehow solve this in the kernel or we will go in > >> circles all the time. > >> > >>> So from that

Re: [PATCH 2/2] drm/cma-helper: Implement mmap as GEM CMA object functions

2021-01-14 Thread Daniel Vetter
;vm_ops; I think this should be done in core, otherwise we have tons of refcount leaks. I think this was an oversight when we've done that refactoring. Also drivers can easily overwrite this one if they really have to, but not assigned this is a clear bug. -Daniel > + >

Re: HMM fence (was Re: [PATCH 00/35] Add HMM-based SVM memory manager to KFD)

2021-01-14 Thread Daniel Vetter
On Thu, Jan 14, 2021 at 08:08:06PM +0100, Christian König wrote: > Am 14.01.21 um 17:36 schrieb Daniel Vetter: > > On Thu, Jan 14, 2021 at 5:01 PM Christian König > > wrote: > > > Am 14.01.21 um 16:40 schrieb Daniel Vetter: > > > > [SNIP] > > > > &

[PATCH] drm-buf: Add debug option

2021-01-15 Thread Daniel Vetter
chances for an invalid dereference. v2: Add a note to the @map_dma_buf hook that exporters shouldn't do fancy caching tricks, which would blow up with this address scrambling trick here (Chris) Enable by default when CONFIG_DMA_API_DEBUG is enabled. Reviewed-by: Chris Wilson Signed-off-by: Dani

Re: [Linaro-mm-sig] [PATCH] drm-buf: Add debug option

2021-01-15 Thread Daniel Vetter
On Fri, Jan 15, 2021 at 2:09 PM Christian König wrote: > > Am 15.01.21 um 14:02 schrieb Daniel Vetter: > > have too many people abusing the struct page they can get at but > > really shouldn't in importers. Aside from that the backing page might > > simply not ex

Re: [PATCH v4 2/5] drm/doc: document the type plane property

2021-01-15 Thread Daniel Vetter
On Fri, Jan 15, 2021 at 12:06 PM Simon Ser wrote: > > On Tuesday, December 22nd, 2020 at 2:59 PM, Daniel Vetter > wrote: > > > > + * type: > > > + * Immutable property describing the type of the plane. > > > + * > > &

Re: [PATCH] drm/syncobj: make lockdep complain on WAIT_FOR_SUBMIT

2021-01-15 Thread Daniel Vetter
lly this should also go boom when you do it in places like serving (hmm) page faults, which I think we want. Just locking dma_resv_lock wont go boom like that (since taking the dma_resv_lock from a page fault handler is explicitly allowed, it nests within mmap_lock). Conceptually I think it

Re: [PATCH v2] drm: Improve the output_poll_changed description

2021-01-15 Thread Daniel Vetter
* drm_fbdev_generic_setup() which takes care of any necessary * hotplug event forwarding already without further involvement by * the driver. Can you pls respin, with the function change dropped and the fixme replaced with the above? Thanks, Daniel > - * > -

Re: [PATCH v2] drm: Set vm_ops to GEM object's values during mmap

2021-01-15 Thread Daniel Vetter
as GEM CMA object > > functions") > > Reported-by: Kieran Bingham > > Tested-by: Kieran Bingham > > Re-tested just fine this side ;-) > - https://paste.ubuntu.com/p/Jgz6xMKNJX/ Reviewed-by: Daniel Vetter > > Thanks > > Kieran > &g

[PATCH] dma-buf: Add debug option

2021-01-15 Thread Daniel Vetter
Christian) Reviewed-by: Chris Wilson (v2) Signed-off-by: Daniel Vetter Cc: Chris Wilson Cc: Sumit Semwal Cc: "Christian König" Cc: David Stevens Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org --- drivers/dma-buf/Kconfig | 8 +++

[PATCH] dma-buf: Add debug option

2021-01-15 Thread Daniel Vetter
code (Christian) v4: #ifdef, not #if (0day) Reviewed-by: Chris Wilson (v2) Signed-off-by: Daniel Vetter Cc: Chris Wilson Cc: Sumit Semwal Cc: "Christian König" Cc: David Stevens Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org --- drivers/dma-buf/Kconfig | 8

[PATCH] dma-buf: Add debug option

2021-01-15 Thread Daniel Vetter
code (Christian) v4: #ifdef, not #if (0day) v5: sg_table can also be an ERR_PTR (Chris, Christian) Reviewed-by: Chris Wilson (v2) Signed-off-by: Daniel Vetter Cc: Chris Wilson Cc: Sumit Semwal Cc: "Christian König" Cc: David Stevens Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lis

Re: [PATCH v3] drm: Improve the output_poll_changed description

2021-01-17 Thread Daniel Vetter
n with the helpers. Drivers use > > + * drm_kms_helper_hotplug_event() to call this hook to inform the > > fbdev > > I don't understand this. Maybe it's "Drivers implementing fbdev > emulation use drm_kms_helper_hotplug_event() to call ..." ? Yeah this just do

Re: BUG: unable to handle kernel NULL pointer dereference in fbcon_cursor

2021-01-18 Thread Daniel Vetter
On Sun, Jan 17, 2021 at 03:29:05AM -0800, syzbot wrote: > syzbot has bisected this issue to: > > commit ea40d7857d5250e5400f38c69ef9e17321e9c4a2 > Author: Daniel Vetter > Date: Fri Oct 9 23:21:56 2020 + > > drm/vkms: fbdev emulation support Not sure you want

Re: [PATCH v5 1/2] drm/doc: fix drm_plane_type docs

2021-01-18 Thread Daniel Vetter
ed. > > > > Signed-off-by: Simon Ser > > Reviewed-by: Daniel Vetter > > Cc: Pekka Paalanen > > --- > > include/drm/drm_plane.h | 21 + > > 1 file changed, 13 insertions(+), 8 deletions(-) > > > > diff --git a/include/dr

Re: [PATCH 00/29] [Set 15] Finally rid W=1 warnings from GPU!

2021-01-18 Thread Daniel Vetter
o drm-misc-next, but some patch monkey help would be really great :-) Thanks, Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] vgaarb: Remove unneeded semicolons

2021-01-18 Thread Daniel Vetter
On Mon, Jan 18, 2021 at 01:03:55AM +, Yue Zou wrote: > Remove superfluous semicolons after function definitions. > > Signed-off-by: Yue Zou Thanks for your patch, applied. -Daniel > --- > include/linux/vgaarb.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(

Re: [PATCH 2/3] drm/ingenic: Register devm action to cleanup encoders

2021-01-18 Thread Daniel Vetter
you want this in -fixes, then I think hand-roll it. But devm_ for drm objects really is the wrong fix. -Daniel > > -Paul > > > > Fixes: c369cb27c267 ("drm/ingenic: Support multiple panels/bridges") > > > Cc: # 5.8+ > > > Signed-off-by: Paul Cercuei

Re: [PATCH 1/3] drm/vmwgfx: Drop svga_lock

2021-01-18 Thread Daniel Vetter
> For the series: Reviewed-by: Roland Scheidegger Series merged, thanks for taking a look. -Daniel > > Roland > > Am 12.01.21 um 09:49 schrieb Daniel Vetter: > > Hi Roland, > > > > Hopefully you had a nice start into the new year! Ping for some > &g

Re: [PATCH] dma-buf: Add debug option

2021-01-18 Thread Daniel Vetter
On Fri, Jan 15, 2021 at 07:52:53PM +0100, Christian König wrote: > Am 15.01.21 um 17:47 schrieb Daniel Vetter: > > We have too many people abusing the struct page they can get at but > > really shouldn't in importers. Aside from that the backing page might > > simply

Re: [PATCH v4 1/6] drm: Upcast struct drm_device.dev to struct pci_device; replace pdev

2021-01-18 Thread Daniel Vetter
patch > > Signed-off-by: Thomas Zimmermann > Tested-by: Andy Lavr > Acked-by: Sam Ravnborg Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/drm_agpsupport.c | 9 ++--- > drivers/gpu/drm/drm_bufs.c | 4 ++-- > drivers/gpu/drm/drm_edid.c

Re: [PATCH 00/40] [Set 14] Rid W=1 warnings from GPU

2021-01-18 Thread Daniel Vetter
> > niggly little warnings. > > > > Penultimate set, promise. :) > > > Thank you for all that work. For all the vmwgfx bits: > Reviewed-by: Zack Rusin I pulled all the non-vmxgfx patches to drm-misc-next, I'll leave the vmw stuff to Zack. Thanks for your work here! -Dani

Re: [PATCH 00/29] [Set 15] Finally rid W=1 warnings from GPU!

2021-01-18 Thread Daniel Vetter
pls holler if they're stuck). Note that we have some build issue on some of the configs sfr uses, so drm trees are still stuck on old versions in linux-next. Hopefully should get resolved soon, the bugfix is in some subtree I've heard. -Daniel -- Da

Re: [PATCH v3 2/8] drm/amdgpu: Remove references to struct drm_device.pdev

2021-01-18 Thread Daniel Vetter
xa9 > > > > Any idea what's going wrong here? > > I meanwhile posted an updated patchset with a fix in patch 1. [1] Maybe > you can apply this one and test. > > The original bug report and testing is at [2]. Apparently, DRM core has > to be changed together with

Re: [PATCH 00/29] [Set 15] Finally rid W=1 warnings from GPU!

2021-01-18 Thread Daniel Vetter
On Mon, Jan 18, 2021 at 03:09:45PM +, Lee Jones wrote: > On Mon, 18 Jan 2021, Daniel Vetter wrote: > > > On Fri, Jan 15, 2021 at 06:27:15PM +, Zack Rusin wrote: > > > > > > > On Jan 15, 2021, at 13:15, Lee Jones wrote: > > > > > > &g

<    5   6   7   8   9   10   11   12   13   14   >