Re: [Intel-gfx] [patch] drm/i915: fix a read size argument

2016-10-13 Thread Chris Wilson
fe5a66f91c88 ("drm/i915: Read PSR caps/intermediate freqs/etc. only > once on eDP") > Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com> Oops, does smatch catch this? I don't recall seeing the complaint in recent runs? Reviewed-by: Chris Wilson <ch...@chris-wi

Re: [Intel-gfx] [patch] drm/i915: fix a read size argument

2016-10-13 Thread Chris Wilson
fe5a66f91c88 ("drm/i915: Read PSR caps/intermediate freqs/etc. only > once on eDP") > Signed-off-by: Dan Carpenter Oops, does smatch catch this? I don't recall seeing the complaint in recent runs? Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH] mm/vmalloc: reduce the number of lazy_max_pages to reduce latency

2016-10-09 Thread Chris Wilson
just leaves the complication of whether to use cond_resched_lock() or a lock around the individual __free_vmap_area(). -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH] mm/vmalloc: reduce the number of lazy_max_pages to reduce latency

2016-10-09 Thread Chris Wilson
just leaves the complication of whether to use cond_resched_lock() or a lock around the individual __free_vmap_area(). -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH] mm/vmalloc: reduce the number of lazy_max_pages to reduce latency

2016-10-09 Thread Chris Wilson
On Sat, Oct 08, 2016 at 08:43:51PM -0700, Joel Fernandes wrote: > On Thu, Sep 29, 2016 at 1:18 AM, Chris Wilson <ch...@chris-wilson.co.uk> > wrote: > > On Thu, Sep 29, 2016 at 03:34:11PM +0800, Jisheng Zhang wrote: > >> On Marvell berlin arm64 platforms, I see t

Re: [PATCH] mm/vmalloc: reduce the number of lazy_max_pages to reduce latency

2016-10-09 Thread Chris Wilson
On Sat, Oct 08, 2016 at 08:43:51PM -0700, Joel Fernandes wrote: > On Thu, Sep 29, 2016 at 1:18 AM, Chris Wilson > wrote: > > On Thu, Sep 29, 2016 at 03:34:11PM +0800, Jisheng Zhang wrote: > >> On Marvell berlin arm64 platforms, I see the preemptoff tracer report > &

Re: [Intel-gfx] [PATCH 5/6] drm/i915/gen9: Get rid of redundant watermark values

2016-10-05 Thread Chris Wilson
ert all these hardcoded values > to PLANE_X, and convert "int"s  to "enum plane"s everywhere. Note that this is not PLANE_A, but setting up a shorthand local for const struct skl_plane_wm *p_wm = crtc_state->wm.skl.optimal.planes; -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [Intel-gfx] [PATCH 5/6] drm/i915/gen9: Get rid of redundant watermark values

2016-10-05 Thread Chris Wilson
ert all these hardcoded values > to PLANE_X, and convert "int"s  to "enum plane"s everywhere. Note that this is not PLANE_A, but setting up a shorthand local for const struct skl_plane_wm *p_wm = crtc_state->wm.skl.optimal.planes; -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [Intel-gfx] [PATCH v2] drm/i915: Fix build when !CONFIG_DEBUG_FS

2016-09-30 Thread Chris Wilson
ut pipe CRC code") > Fixes: 13fa0253d97a ("drm/i915: Use new CRC debugfs API") Reveiwed-by: Chris Wilson <ch...@chris-wilson.co.uk> -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [Intel-gfx] [PATCH v2] drm/i915: Fix build when !CONFIG_DEBUG_FS

2016-09-30 Thread Chris Wilson
0253d97a ("drm/i915: Use new CRC debugfs API") Reveiwed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [Intel-gfx] [PATCH] drm/i915: Fix build when !CONFIG_DEBUG_FS

2016-09-30 Thread Chris Wilson
> + size_t *values_cnt) { return 0; } > +#endif Please fix by passing the right pointer to intel_display_crc_init() instead. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [Intel-gfx] [PATCH] drm/i915: Fix build when !CONFIG_DEBUG_FS

2016-09-30 Thread Chris Wilson
c_source(struct drm_crtc *crtc, const char *source_name, > size_t *values_cnt); > +#else > +static inline int intel_crtc_set_crc_source(struct drm_crtc *crtc, > + const char *source_name, > +

Re: [PATCH] mm/vmalloc: reduce the number of lazy_max_pages to reduce latency

2016-09-29 Thread Chris Wilson
On Thu, Sep 29, 2016 at 04:28:08PM +0800, Jisheng Zhang wrote: > On Thu, 29 Sep 2016 09:18:18 +0100 Chris Wilson wrote: > > > On Thu, Sep 29, 2016 at 03:34:11PM +0800, Jisheng Zhang wrote: > > > On Marvell berlin arm64 platforms, I see the preemptoff tracer report > &g

Re: [PATCH] mm/vmalloc: reduce the number of lazy_max_pages to reduce latency

2016-09-29 Thread Chris Wilson
On Thu, Sep 29, 2016 at 04:28:08PM +0800, Jisheng Zhang wrote: > On Thu, 29 Sep 2016 09:18:18 +0100 Chris Wilson wrote: > > > On Thu, Sep 29, 2016 at 03:34:11PM +0800, Jisheng Zhang wrote: > > > On Marvell berlin arm64 platforms, I see the preemptoff tracer report > &g

Re: [PATCH] mm/vmalloc: reduce the number of lazy_max_pages to reduce latency

2016-09-29 Thread Chris Wilson
unsigned long *start, unsigned long *end, __free_vmap_area(va); spin_unlock(_area_lock); } - spin_unlock(_lock); } /* should now be safe. That should significantly reduce the preempt-disabled section, I think. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH] mm/vmalloc: reduce the number of lazy_max_pages to reduce latency

2016-09-29 Thread Chris Wilson
unsigned long *start, unsigned long *end, __free_vmap_area(va); spin_unlock(_area_lock); } - spin_unlock(_lock); } /* should now be safe. That should significantly reduce the preempt-disabled section, I think. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH 2/2] drm: Simplify drm_printk to reduce object size quite a bit

2016-09-26 Thread Chris Wilson
ing the call size for DRM_DEBUG is a definite improvement. Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk> > > Miscellanea: > > o Convert args... to ##__VA_ARGS__ > o The equivalent DRM_DEV_ macros are rarely used and not > worth conversion Today. I woul

Re: [PATCH 2/2] drm: Simplify drm_printk to reduce object size quite a bit

2016-09-26 Thread Chris Wilson
ing the call size for DRM_DEBUG is a definite improvement. Reviewed-by: Chris Wilson > > Miscellanea: > > o Convert args... to ##__VA_ARGS__ > o The equivalent DRM_DEV_ macros are rarely used and not > worth conversion Today. I would rather see us to migrate to DRM_

Re: [Intel-gfx] [PATCH v3 5/5] drm/i915: squash lines for simple wrapper functions

2016-09-16 Thread Chris Wilson
ngine_cs *engine) > */ > int intel_engine_init_common(struct intel_engine_cs *engine) > { > - int ret; > - > - ret = intel_engine_init_breadcrumbs(engine); > - if (ret) > - return ret; > - > - return 0; > + return intel_engine_init_breadcrumbs(engine); These are written like this for consistency and ease of change. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [Intel-gfx] [PATCH v3 5/5] drm/i915: squash lines for simple wrapper functions

2016-09-16 Thread Chris Wilson
struct intel_engine_cs *engine) > { > - int ret; > - > - ret = intel_engine_init_breadcrumbs(engine); > - if (ret) > - return ret; > - > - return 0; > + return intel_engine_init_breadcrumbs(engine); These are written like this for consistency and ease of change. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [Intel-gfx] 4.8-rc1: it is now common that machine needs re-run of xrandr after resume

2016-09-14 Thread Chris Wilson
lme, kernel log as delme2. Nothing too > suspicious :-(. [ 234.547] (EE) intel(0): failed to set mode: Permission denied upon resume. There is a VT switch so there should be a DropMaster, SetMaster combo across resume, but that didn't flag any errors. I couldn't see any sign of logind (so no revoc

Re: [Intel-gfx] 4.8-rc1: it is now common that machine needs re-run of xrandr after resume

2016-09-14 Thread Chris Wilson
lme, kernel log as delme2. Nothing too > suspicious :-(. [ 234.547] (EE) intel(0): failed to set mode: Permission denied upon resume. There is a VT switch so there should be a DropMaster, SetMaster combo across resume, but that didn't flag any errors. I couldn't see any sign of logind (so no revoc

Re: drm/i915: undefined symbol I915_SW_FENCE_CHECK_DAG

2016-09-12 Thread Chris Wilson
is the yet unconditional return > intentional? The patch is queued up elsewhere. It's part of the selftests. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: drm/i915: undefined symbol I915_SW_FENCE_CHECK_DAG

2016-09-12 Thread Chris Wilson
is the yet unconditional return > intentional? The patch is queued up elsewhere. It's part of the selftests. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH] gpio: Remove superfluous include of io-mapping.h

2016-08-24 Thread Chris Wilson
On Wed, Aug 24, 2016 at 01:55:28PM +0200, Linus Walleij wrote: > On Tue, Aug 23, 2016 at 10:32 PM, Chris Wilson <ch...@chris-wilson.co.uk> > wrote: > > > The io-mapping.h include arose from the need to workaround an arch/um > > compile failure: > > > >d

Re: [PATCH] gpio: Remove superfluous include of io-mapping.h

2016-08-24 Thread Chris Wilson
On Wed, Aug 24, 2016 at 01:55:28PM +0200, Linus Walleij wrote: > On Tue, Aug 23, 2016 at 10:32 PM, Chris Wilson > wrote: > > > The io-mapping.h include arose from the need to workaround an arch/um > > compile failure: > > > >drivers/gpio/gpio-mpc8

Re: [PATCH] infiniband/mlx5: Remove superfluous include of io-mapping.h

2016-08-23 Thread Chris Wilson
On Wed, Aug 24, 2016 at 12:15:50AM +0300, Leon Romanovsky wrote: > On Tue, Aug 23, 2016 at 09:16:26PM +0100, Chris Wilson wrote: > > This file does not use any structs or functions defined by io-mapping.h > > (nor does it directly use iomap, ioremap, iounamp or friends). Remove it

Re: [PATCH] infiniband/mlx5: Remove superfluous include of io-mapping.h

2016-08-23 Thread Chris Wilson
On Wed, Aug 24, 2016 at 12:15:50AM +0300, Leon Romanovsky wrote: > On Tue, Aug 23, 2016 at 09:16:26PM +0100, Chris Wilson wrote: > > This file does not use any structs or functions defined by io-mapping.h > > (nor does it directly use iomap, ioremap, iounamp or friends). Remove it

[PATCH] infiniband/mlx5: Remove superfluous include of io-mapping.h

2016-08-23 Thread Chris Wilson
: Eli Cohen <e...@mellanox.com> Date: Sun Jul 7 17:25:49 2013 +0300 mlx5: Add driver for Mellanox Connect-IB adapters which looks like a copy across from the Mellanox ethernet driver. Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Eli Cohen <e...@mellanox.com> Cc

[PATCH] infiniband/mlx5: Remove superfluous include of io-mapping.h

2016-08-23 Thread Chris Wilson
: Eli Cohen Date: Sun Jul 7 17:25:49 2013 +0300 mlx5: Add driver for Mellanox Connect-IB adapters which looks like a copy across from the Mellanox ethernet driver. Signed-off-by: Chris Wilson Cc: Eli Cohen Cc: Jack Morgenstein Cc: Or Gerlitz Cc: Matan Barak Cc: Leon Romanovsky Cc: Doug

[PATCH] gpio: Remove superfluous include of io-mapping.h

2016-08-23 Thread Chris Wilson
ilding under arch/um). My desire to remove the unneed include to io-mapping is to simplify verification of changes to io-mapping.h Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Linus Walleij <linus.wall...@linaro.org> Cc: Alexandre Courbot <gnu...@gmail.com> Cc: linux-g..

[PATCH] gpio: Remove superfluous include of io-mapping.h

2016-08-23 Thread Chris Wilson
ilding under arch/um). My desire to remove the unneed include to io-mapping is to simplify verification of changes to io-mapping.h Signed-off-by: Chris Wilson Cc: Linus Walleij Cc: Alexandre Courbot Cc: linux-g...@vger.kernel.org --- drivers/gpio/gpiolib-of.c | 1 - 1 file changed, 1 deletion(-)

Re: include/linux/io-mapping.h:130:39: error: implicit declaration of function 'ioremap_wc'

2016-08-23 Thread Chris Wilson
g.h The original patch is incorrect as io-mapping.h is not the right header for iounmap() - that is #include (pulling in ) which is (and was) already present. So the root cause here is arch/um not supplying enough stubs? But in the meantime, do you mind removing the incorrect include now that

Re: include/linux/io-mapping.h:130:39: error: implicit declaration of function 'ioremap_wc'

2016-08-23 Thread Chris Wilson
e right header for iounmap() - that is #include (pulling in ) which is (and was) already present. So the root cause here is arch/um not supplying enough stubs? But in the meantime, do you mind removing the incorrect include now that you have a w/a to keep 0day quiet? :) -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: i865, drm_modeset_lock_all: BUG: unable to handle kernel NULL pointer dereference at 00000104

2016-08-23 Thread Chris Wilson
RROR* pipe A underrun Other than the annoying underrun, is everything else as expected? i.e. no connected outputs? Have we lost dvo detection? -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: i865, drm_modeset_lock_all: BUG: unable to handle kernel NULL pointer dereference at 00000104

2016-08-23 Thread Chris Wilson
RROR* pipe A underrun Other than the annoying underrun, is everything else as expected? i.e. no connected outputs? Have we lost dvo detection? -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: i865, drm_modeset_lock_all: BUG: unable to handle kernel NULL pointer dereference at 00000104

2016-08-23 Thread Chris Wilson
4,6 @@ void intel_dvo_init(struct drm_device *dev) return; } - drm_encoder_cleanup(_encoder->base); kfree(intel_dvo); kfree(intel_connector); } -- Chris Wilson, Intel Open Source Technology Centre

Re: i865, drm_modeset_lock_all: BUG: unable to handle kernel NULL pointer dereference at 00000104

2016-08-23 Thread Chris Wilson
4,6 @@ void intel_dvo_init(struct drm_device *dev) return; } - drm_encoder_cleanup(_encoder->base); kfree(intel_dvo); kfree(intel_connector); } -- Chris Wilson, Intel Open Source Technology Centre

[PATCH v2] dma-buf: Wait on the reservation object when sync'ing before CPU access

2016-08-15 Thread Chris Wilson
igt/prime_vgem Testcase: igt/gem_concurrent_blit # *vgem* Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Sumit Semwal <sumit.sem...@linaro.org> Cc: Daniel Vetter <daniel.vet...@ffwll.ch> Cc: Eric Anholt <e...@anholt.net> Cc: linux-me...@vger.kernel.org Cc: dri-de.

[PATCH v2] dma-buf: Wait on the reservation object when sync'ing before CPU access

2016-08-15 Thread Chris Wilson
igt/prime_vgem Testcase: igt/gem_concurrent_blit # *vgem* Signed-off-by: Chris Wilson Cc: Sumit Semwal Cc: Daniel Vetter Cc: Eric Anholt Cc: linux-me...@vger.kernel.org Cc: dri-de...@lists.freedesktop.org Cc: linaro-mm-...@lists.linaro.org Cc: linux-kernel@vger.kernel.org --- drivers/dma-buf/

[PATCH v2] dma-buf: Wait on the reservation object when sync'ing before CPU access

2016-08-15 Thread Chris Wilson
igt/prime_vgem Testcase: igt/gem_concurrent_blit # *vgem* Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Sumit Semwal <sumit.sem...@linaro.org> Cc: Daniel Vetter <daniel.vet...@ffwll.ch> Cc: Eric Anholt <e...@anholt.net> Cc: linux-me...@vger.kernel.org Cc: dri-de.

[PATCH v2] dma-buf: Wait on the reservation object when sync'ing before CPU access

2016-08-15 Thread Chris Wilson
igt/prime_vgem Testcase: igt/gem_concurrent_blit # *vgem* Signed-off-by: Chris Wilson Cc: Sumit Semwal Cc: Daniel Vetter Cc: Eric Anholt Cc: linux-me...@vger.kernel.org Cc: dri-de...@lists.freedesktop.org Cc: linaro-mm-...@lists.linaro.org Cc: linux-kernel@vger.kernel.org --- drivers/dma-buf/

Re: [PATCH] relay: Use per CPU constructs for the relay channel buffer pointers

2016-08-11 Thread Chris Wilson
constructs, provided by the > kernel, to allocate & access the array of pointer to channel buffers. > > Cc: Chris Wilson <ch...@chris-wilson.co.uk> > Cc: Tvrtko Ursulin <tvrtko.ursu...@intel.com> > Signed-off-by: Akash Goel <akash.g...@intel.com> This has the

Re: [PATCH] relay: Use per CPU constructs for the relay channel buffer pointers

2016-08-11 Thread Chris Wilson
by the > kernel, to allocate & access the array of pointer to channel buffers. > > Cc: Chris Wilson > Cc: Tvrtko Ursulin > Signed-off-by: Akash Goel This has the benefit of being a mechnical change and I could not think of a better way to express the per-cpu indirection. r

[PATCH v3] mm/slub: Run free_partial() outside of the kmem_cache_node->list_lock

2016-08-09 Thread Chris Wilson
quot;) Reported-by: Dave Gordon <david.s.gor...@intel.com> Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com> Cc: Christoph Lameter <c...@linux.com> Cc: Pekka Enberg <penb...@kernel.org> Cc: David Rientjes <rien

[PATCH v3] mm/slub: Run free_partial() outside of the kmem_cache_node->list_lock

2016-08-09 Thread Chris Wilson
1e2 [i915] [ 138.850707] [] SyS_delete_module+0x193/0x1f0 [ 138.850711] [] entry_SYSCALL_64_fastpath+0x1c/0xac v2: Keep remove_partial() under the lock, just move discard_slab() outside the lock. v3: Rename discard list. Fixes: 52b4b950b507 ("mm: slab: free kmem_cache_node after destroy sysfs file&q

Re: [PATCH v2] mm/slub: Run free_partial() outside of the kmem_cache_node->list_lock

2016-08-09 Thread Chris Wilson
On Tue, Aug 09, 2016 at 06:45:39PM +0300, Vladimir Davydov wrote: > On Tue, Aug 09, 2016 at 04:27:46PM +0100, Chris Wilson wrote: > ... > > diff --git a/mm/slub.c b/mm/slub.c > > index 825ff45..58f0eb6 100644 > > --- a/mm/slub.c > > +++ b/mm/slub.c > &g

Re: [PATCH v2] mm/slub: Run free_partial() outside of the kmem_cache_node->list_lock

2016-08-09 Thread Chris Wilson
On Tue, Aug 09, 2016 at 06:45:39PM +0300, Vladimir Davydov wrote: > On Tue, Aug 09, 2016 at 04:27:46PM +0100, Chris Wilson wrote: > ... > > diff --git a/mm/slub.c b/mm/slub.c > > index 825ff45..58f0eb6 100644 > > --- a/mm/slub.c > > +++ b/mm/slub.c > &g

[PATCH v2] mm/slub: Run free_partial() outside of the kmem_cache_node->list_lock

2016-08-09 Thread Chris Wilson
1e2 [i915] [ 138.850707] [] SyS_delete_module+0x193/0x1f0 [ 138.850711] [] entry_SYSCALL_64_fastpath+0x1c/0xac v2: Keep remove_partial() under the lock, just move discard_slab() outside the lock. Fixes: 52b4b950b507 ("mm: slab: free kmem_cache_node after destroy sysfs file") Reported-by: D

[PATCH v2] mm/slub: Run free_partial() outside of the kmem_cache_node->list_lock

2016-08-09 Thread Chris Wilson
1e2 [i915] [ 138.850707] [] SyS_delete_module+0x193/0x1f0 [ 138.850711] [] entry_SYSCALL_64_fastpath+0x1c/0xac v2: Keep remove_partial() under the lock, just move discard_slab() outside the lock. Fixes: 52b4b950b507 ("mm: slab: free kmem_cache_node after destroy sysfs file") Reported-by: Dave

[PATCH] mm/slub: Run free_partial() outside of the kmem_cache_node->list_lock

2016-08-09 Thread Chris Wilson
1e2 [i915] [ 138.850707] [] SyS_delete_module+0x193/0x1f0 [ 138.850711] [] entry_SYSCALL_64_fastpath+0x1c/0xac Fixes: 52b4b950b507 ("mm: slab: free kmem_cache_node after destroy sysfs file") Reported-by: Dave Gordon <david.s.gor...@intel.com> Signed-off-by: Chris Wilson <ch...@chr

[PATCH] mm/slub: Run free_partial() outside of the kmem_cache_node->list_lock

2016-08-09 Thread Chris Wilson
1e2 [i915] [ 138.850707] [] SyS_delete_module+0x193/0x1f0 [ 138.850711] [] entry_SYSCALL_64_fastpath+0x1c/0xac Fixes: 52b4b950b507 ("mm: slab: free kmem_cache_node after destroy sysfs file") Reported-by: Dave Gordon Signed-off-by: Chris Wilson Cc: Christoph Lameter Cc: Pekka Enberg Cc: David

Re: [PATCH] kernel/cpu: Distinct name for cpu_hotplug.dep_map

2016-08-05 Thread Chris Wilson
IC_LOCKDEP_MAP_INIT("cpu_hotplug.dep_map", > _hotplug.dep_map), > #endif > }; Going by /* * Static locks do not have their class-keys yet - for them the key * is the lock object itself: */ if (unlikely(!lock->key)) l

Re: [PATCH] kernel/cpu: Distinct name for cpu_hotplug.dep_map

2016-08-05 Thread Chris Wilson
* Static locks do not have their class-keys yet - for them the key * is the lock object itself: */ if (unlikely(!lock->key)) lock->key = (void *)lock; this is the right choice for .key (as lock here is the dep_map). Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: problem with 731c7d3, "main drm pull request for 4.8"

2016-08-05 Thread Chris Wilson
_helper] > [1.356038] [] ? drm_modeset_unlock_all+0x66/0xc0 [drm] > [1.356038] [] cirrus_fbdev_init+0xa0/0xb0 [cirrus] > [1.356038] [] cirrus_modeset_init+0x18b/0x1e0 [cirrus] > [1.356038] [] cirrus_driver_load+0xbc/0x100 [cirrus] > [1.356038] [] drm_dev_register+0xa9/0xd0 [drm]

Re: problem with 731c7d3, "main drm pull request for 4.8"

2016-08-05 Thread Chris Wilson
_helper] > [1.356038] [] ? drm_modeset_unlock_all+0x66/0xc0 [drm] > [1.356038] [] cirrus_fbdev_init+0xa0/0xb0 [cirrus] > [1.356038] [] cirrus_modeset_init+0x18b/0x1e0 [cirrus] > [1.356038] [] cirrus_driver_load+0xbc/0x100 [cirrus] > [1.356038] [] drm_dev_register+0xa9/0xd0 [drm]

Re: [PATCH 3/3 v3] drm: bridge/dw-hdmi: Move edid reading to .detect() callback

2016-08-05 Thread Chris Wilson
atus (as tracked by probe helpers) > - anything in the edid changes (when setting it > drm_mode_connector_update_edid_property) > - other changes (like sink state changes in dpcd or whatever) > > That way userspace would be able to reliably spot such changes and do a > new modeset. Yes, please. I have had similar wishes for state changes and overall modeset counters. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH 3/3 v3] drm: bridge/dw-hdmi: Move edid reading to .detect() callback

2016-08-05 Thread Chris Wilson
atus (as tracked by probe helpers) > - anything in the edid changes (when setting it > drm_mode_connector_update_edid_property) > - other changes (like sink state changes in dpcd or whatever) > > That way userspace would be able to reliably spot such changes and do a > new modeset. Yes, please. I have had similar wishes for state changes and overall modeset counters. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH v5 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-05 Thread Chris Wilson
On Fri, Aug 05, 2016 at 08:28:15AM +0100, Chris Wilson wrote: > On Thu, Aug 04, 2016 at 11:24:14PM -0300, Gustavo Padovan wrote: > > From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> > > > > Signalling doesn't need to be enabled at sync_file creation, it is onl

Re: [PATCH v5 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-05 Thread Chris Wilson
On Fri, Aug 05, 2016 at 08:28:15AM +0100, Chris Wilson wrote: > On Thu, Aug 04, 2016 at 11:24:14PM -0300, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > Signalling doesn't need to be enabled at sync_file creation, it is only > > required if userspace waiting

Re: [PATCH v5 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-05 Thread Chris Wilson
set enabled and protect fence_add_callback() > > v4: use user bit from fence flags (comment from Chris Wilson) > > Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk> > --- > + if (!test_and_set_bit(POLL_ENABLED, _file->fence->flag

Re: [PATCH v5 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-05 Thread Chris Wilson
k() > > v4: use user bit from fence flags (comment from Chris Wilson) > > Signed-off-by: Gustavo Padovan > --- > + if (!test_and_set_bit(POLL_ENABLED, _file->fence->flags)) { > + if (fence_add_callback(sync_file->fence, _fil

Re: [PATCH v5 4/5] Documentation: add doc for sync_file_get_fence()

2016-08-05 Thread Chris Wilson
+from it. > + > +Interface: > + struct fence *sync_file_get_fence(int fd); > + > + > +The function return a struct fence pointer referencing the fence(s) in the > Sync > +File. + The returned reference is owned by the caller and must be disposed of afterwards using fenc

Re: [PATCH v5 4/5] Documentation: add doc for sync_file_get_fence()

2016-08-05 Thread Chris Wilson
unction return a struct fence pointer referencing the fence(s) in the > Sync > +File. + The returned reference is owned by the caller and must be disposed of afterwards using fence_put(). In case of error, a NULL is returned instead. Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH v4 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-04 Thread Chris Wilson
On Thu, Aug 04, 2016 at 06:18:53PM -0300, Gustavo Padovan wrote: > 2016-08-03 Chris Wilson <ch...@chris-wilson.co.uk>: > > > On Tue, Jul 12, 2016 at 03:08:45PM -0300, Gustavo Padovan wrote: > > > From: Gustavo Padovan <gustavo.pado...@collabora.co.uk> >

Re: [PATCH v4 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-04 Thread Chris Wilson
On Thu, Aug 04, 2016 at 06:18:53PM -0300, Gustavo Padovan wrote: > 2016-08-03 Chris Wilson : > > > On Tue, Jul 12, 2016 at 03:08:45PM -0300, Gustavo Padovan wrote: > > > From: Gustavo Padovan > > > > > > Signalling doesn't need to be enabled at sync_f

Re: [PATCH v4 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-03 Thread Chris Wilson
if (!test_and_set_bit(POLL_ENABLED, _file->fence->flags)) { if (fence_add_callback(sync_file->fence, _file->cb, fence_check_cb_func) < 0) wake_up_all(_file->wq); } Saves adding a raw atomic. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH v4 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-03 Thread Chris Wilson
ce->flags)) { if (fence_add_callback(sync_file->fence, _file->cb, fence_check_cb_func) < 0) wake_up_all(_file->wq); } Saves adding a raw atomic. -Chris -- Chris Wilson, Intel Open Source Technology Centre

[PATCH] list: Expand list_first_entry_or_null()

2016-07-23 Thread Chris Wilson
generate smaller code. Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Cc: "Paul E. McKenney" <paul...@linux.vnet.ibm.com> Cc: Andrew Morton <a...@linux-foundation.org> Cc: Dan Williams <dan.j.willi...@intel.com> Cc: Jan Kara <j...@suse.cz> Cc: Jose

[PATCH] list: Expand list_first_entry_or_null()

2016-07-23 Thread Chris Wilson
generate smaller code. Signed-off-by: Chris Wilson Cc: "Paul E. McKenney" Cc: Andrew Morton Cc: Dan Williams Cc: Jan Kara Cc: Josef Bacik Cc: linux-kernel@vger.kernel.org --- include/linux/list.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/linu

Re: [PATCH -next] drm/vgem: Fix non static symbol warning

2016-07-19 Thread Chris Wilson
static? > > Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn> Thanks, Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk> -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH -next] drm/vgem: Fix non static symbol warning

2016-07-19 Thread Chris Wilson
ngjun Thanks, Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [rfc PATCH] drm/i915: Simplify shrinker_lock

2016-07-17 Thread Chris Wilson
nder pressure. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [rfc PATCH] drm/i915: Simplify shrinker_lock

2016-07-17 Thread Chris Wilson
nder pressure. -Chris -- Chris Wilson, Intel Open Source Technology Centre

[PATCH v2 1/7] kfence: Introduce kfence, a N:M completion mechanism

2016-07-17 Thread Chris Wilson
provides a building block which can be used for determining an order in which tasks can execute. Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Sumit Semwal <sumit.sem...@linaro.org> Cc: Shuah Khan <shua...@osg.samsung.com> Cc: Tejun Heo <t...@kernel.org> Cc: D

[PATCH v2 1/7] kfence: Introduce kfence, a N:M completion mechanism

2016-07-17 Thread Chris Wilson
provides a building block which can be used for determining an order in which tasks can execute. Signed-off-by: Chris Wilson Cc: Sumit Semwal Cc: Shuah Khan Cc: Tejun Heo Cc: Daniel Vetter Cc: Andrew Morton Cc: Ingo Molnar Cc: Kees Cook Cc: Thomas Gleixner Cc: "Paul E. McKenney"

[PATCH v2 6/7] async: Add execution barriers

2016-07-17 Thread Chris Wilson
. not be scheduled) until all work queued before the barrier is completed. Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Sumit Semwal <sumit.sem...@linaro.org> Cc: Shuah Khan <shua...@osg.samsung.com> Cc: Tejun Heo <t...@kernel.org> Cc: Daniel Vetter <daniel.

[PATCH v2 6/7] async: Add execution barriers

2016-07-17 Thread Chris Wilson
. not be scheduled) until all work queued before the barrier is completed. Signed-off-by: Chris Wilson Cc: Sumit Semwal Cc: Shuah Khan Cc: Tejun Heo Cc: Daniel Vetter Cc: Andrew Morton Cc: Ingo Molnar Cc: Kees Cook Cc: Thomas Gleixner Cc: "Paul E. McKenney" Cc: Dan Williams

[PATCH v2 5/7] async: Add support for explicit fine-grained barriers

2016-07-17 Thread Chris Wilson
scheme based upon kfences and back every task with one. Any task may now wait upon the kfence before being scheduled, and equally the kfence may be used to wait on the task itself (rather than waiting on the cookie for all previous tasks to be completed). Signed-off-by: Chris Wilson <ch...@ch

[PATCH v2 7/7] async: Introduce a dependency resolver for parallel execution

2016-07-17 Thread Chris Wilson
, and async_dependency_get() retrieves a kfence for inspection or waiting upon. Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Sumit Semwal <sumit.sem...@linaro.org> Cc: Shuah Khan <shua...@osg.samsung.com> Cc: Tejun Heo <t...@kernel.org> Cc: Daniel Vetter <daniel.vet...@

[PATCH v2 4/7] async: Add kselftests for async-domains

2016-07-17 Thread Chris Wilson
A preparatory patch for adding new features (and their tests). First we want to add coverage of existing features to kselftest. Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> --- lib/Kconfig.debug | 9 ++ lib/Makefile

[PATCH v2 3/7] kfence: Extend kfences for listening on DMA fences

2016-07-17 Thread Chris Wilson
dma-buf provides an interfaces for receiving notifications from DMA hardware, and for implicitly tracking fences used for rendering into dma-buf. We want to be able to use these event sources along with kfence for easy collection and combining with other events. Signed-off-by: Chris Wilson <

[PATCH v2 4/7] async: Add kselftests for async-domains

2016-07-17 Thread Chris Wilson
A preparatory patch for adding new features (and their tests). First we want to add coverage of existing features to kselftest. Signed-off-by: Chris Wilson --- lib/Kconfig.debug | 9 ++ lib/Makefile| 1 + lib/test-async-domain.c

[PATCH v2 3/7] kfence: Extend kfences for listening on DMA fences

2016-07-17 Thread Chris Wilson
dma-buf provides an interfaces for receiving notifications from DMA hardware, and for implicitly tracking fences used for rendering into dma-buf. We want to be able to use these event sources along with kfence for easy collection and combining with other events. Signed-off-by: Chris Wilson Cc

[PATCH v2 5/7] async: Add support for explicit fine-grained barriers

2016-07-17 Thread Chris Wilson
scheme based upon kfences and back every task with one. Any task may now wait upon the kfence before being scheduled, and equally the kfence may be used to wait on the task itself (rather than waiting on the cookie for all previous tasks to be completed). Signed-off-by: Chris Wilson Cc: Sumit Semwal

[PATCH v2 7/7] async: Introduce a dependency resolver for parallel execution

2016-07-17 Thread Chris Wilson
, and async_dependency_get() retrieves a kfence for inspection or waiting upon. Signed-off-by: Chris Wilson Cc: Sumit Semwal Cc: Shuah Khan Cc: Tejun Heo Cc: Daniel Vetter Cc: Andrew Morton Cc: Ingo Molnar Cc: Kees Cook Cc: Thomas Gleixner Cc: "Paul E. McKenney" Cc: Dan Williams Cc: Andrey Ry

[PATCH v2 2/7] kfence: Wrap hrtimer to provide a time source for a kfence

2016-07-17 Thread Chris Wilson
A common requirement when scheduling a task is that it should be not be begun until a certain point in time is passed (e.g. queue_delayed_work()). kfence_await_hrtimer() causes the kfence to asynchronously wait until after the appropriate time before being woken. Signed-off-by: Chris Wilson <

Introduce fences for N:M completion variables [v2]

2016-07-17 Thread Chris Wilson
Peter Zijlstra gave a lot of feedback and thanks to him, I think both the function names and docs are a lot more sane. There is also a good consensus on renaming dma-buf's struct fence to be struct dma_fence, allowing for use of the cleaner name for the core struct. A quick overview of a fence is

[PATCH v2 2/7] kfence: Wrap hrtimer to provide a time source for a kfence

2016-07-17 Thread Chris Wilson
A common requirement when scheduling a task is that it should be not be begun until a certain point in time is passed (e.g. queue_delayed_work()). kfence_await_hrtimer() causes the kfence to asynchronously wait until after the appropriate time before being woken. Signed-off-by: Chris Wilson Cc

Introduce fences for N:M completion variables [v2]

2016-07-17 Thread Chris Wilson
Peter Zijlstra gave a lot of feedback and thanks to him, I think both the function names and docs are a lot more sane. There is also a good consensus on renaming dma-buf's struct fence to be struct dma_fence, allowing for use of the cleaner name for the core struct. A quick overview of a fence is

Re: [PATCH 2/9] async: Introduce kfence, a N:M completion mechanism

2016-07-13 Thread Chris Wilson
On Wed, Jul 13, 2016 at 11:38:52AM +0200, Peter Zijlstra wrote: > On Fri, Jun 24, 2016 at 10:08:46AM +0100, Chris Wilson wrote: > > diff --git a/kernel/async.c b/kernel/async.c > > index d2edd6efec56..d0bcb7cc4884 100644 > > --- a/kernel/async.c > > +++ b/kernel

Re: [PATCH 2/9] async: Introduce kfence, a N:M completion mechanism

2016-07-13 Thread Chris Wilson
On Wed, Jul 13, 2016 at 11:38:52AM +0200, Peter Zijlstra wrote: > On Fri, Jun 24, 2016 at 10:08:46AM +0100, Chris Wilson wrote: > > diff --git a/kernel/async.c b/kernel/async.c > > index d2edd6efec56..d0bcb7cc4884 100644 > > --- a/kernel/async.c > > +++ b/kernel

Re: [PATCH v2] relay: Add global mode support for buffer-only channels

2016-07-12 Thread Chris Wilson
e it accessible to > modules like i915 ? Yes, we need the companion function in i915.ko. That needs to be explained in the patch notes to justify adding the EXPORT_SYMBOL. Otherwise without that context, it looks unnecessary as Andrew objected to. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH v2] relay: Add global mode support for buffer-only channels

2016-07-12 Thread Chris Wilson
e it accessible to > modules like i915 ? Yes, we need the companion function in i915.ko. That needs to be explained in the patch notes to justify adding the EXPORT_SYMBOL. Otherwise without that context, it looks unnecessary as Andrew objected to. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH v2] relay: Add global mode support for buffer-only channels

2016-07-12 Thread Chris Wilson
entry + * is available. */ int relay_late_setup_files(struct rchan *chan, const char *base_filename, with a comment in the changelog that modules using relay_open() in early init also want to later register their buffer-only relays once debugfs is available, e.g. i915. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH v2] relay: Add global mode support for buffer-only channels

2016-07-12 Thread Chris Wilson
rchan *chan, const char *base_filename, with a comment in the changelog that modules using relay_open() in early init also want to later register their buffer-only relays once debugfs is available, e.g. i915. -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [PATCH] relay: Add global mode support for buffer-only channels

2016-07-04 Thread Chris Wilson
userspace, which enables them to capture data/logs from relay file in order & > without any post processing, support of Global buffer mode is warranted. > > Cc: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro> > Cc: Tom Zanussi <tzanu...@gmail.com> > Cc: Chris W

Re: [PATCH] relay: Add global mode support for buffer-only channels

2016-07-04 Thread Chris Wilson
to capture data/logs from relay file in order & > without any post processing, support of Global buffer mode is warranted. > > Cc: Eduard - Gabriel Munteanu > Cc: Tom Zanussi > Cc: Chris Wilson > Signed-off-by: Akash Goel > --- > kernel/relay.c | 32 +++

Re: [PATCH v2 3/4] dma-buf/sync_file: add sync_file_get_fence()

2016-07-01 Thread Chris Wilson
le; > + struct fence *fence; > + > + sync_file = sync_file_fdget(fd); > + if (!sync_file) > + return NULL; > + > + fence = sync_file->fence; > + fence_get(fence); Or just fence = get_fence(sync_file->fence); > + fput(sync_file->fil

Re: [PATCH v2 3/4] dma-buf/sync_file: add sync_file_get_fence()

2016-07-01 Thread Chris Wilson
_fdget(fd); > + if (!sync_file) > + return NULL; > + > + fence = sync_file->fence; > + fence_get(fence); Or just fence = get_fence(sync_file->fence); > + fput(sync_file->file); Reviewed-by: Chris Wilson Using fence-array for this works very nicely, as we can then inspect the fences returned and handle native fences for fd passed around. -Chris -- Chris Wilson, Intel Open Source Technology Centre

<    3   4   5   6   7   8   9   10   11   12   >