[PATCH v3 2/7] drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-27 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> Reviewed-by: Daniel Vetter <daniel.vet...@ffwll.ch> --- drivers/gpu/drm/qxl/qxl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c inde

[PATCH v3 3/7] drm/fb-helper: Add fb_deferred_io support

2016-04-27 Thread Noralf Trønnes
This adds deferred io support to drm_fb_helper. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a dedicated worker ensuring that it always runs in process context. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Chan

[PATCH v3 4/7] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-27 Thread Noralf Trønnes
t to nocache for instance, so I think the safest bet is to do this in the driver and not in the fbdev core. And we can't call fb_pgprotect() from fb_deferred_io_mmap() either because we don't have access to the file pointer that powerpc needs. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> ---

[PATCH v3 2/7] drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-27 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes Reviewed-by: Daniel Vetter --- drivers/gpu/drm/qxl/qxl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c index bb7ce07..3f7c543 100644 --- a/drivers/gpu/drm/qxl/qxl_fb.c

[PATCH v3 3/7] drm/fb-helper: Add fb_deferred_io support

2016-04-27 Thread Noralf Trønnes
This adds deferred io support to drm_fb_helper. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a dedicated worker ensuring that it always runs in process context. Signed-off-by: Noralf Trønnes --- Changes since v2: - FB_DEFER

[PATCH v3 4/7] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-27 Thread Noralf Trønnes
t to nocache for instance, so I think the safest bet is to do this in the driver and not in the fbdev core. And we can't call fb_pgprotect() from fb_deferred_io_mmap() either because we don't have access to the file pointer that powerpc needs. Signed-off-by: Noralf Trønnes --- Changes since v1: - E

[PATCH v3 7/7] drm/udl: Use drm_fb_helper deferred_io support

2016-04-27 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now schedule a worker instead of being flushed directly like it was previously (recorded when in atomic). This patch has only been compile tested. Signed-off-by: Nor

[PATCH v3 7/7] drm/udl: Use drm_fb_helper deferred_io support

2016-04-27 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now schedule a worker instead of being flushed directly like it was previously (recorded when in atomic). This patch has only been compile tested. Signed-off-by: Nor

[PATCH v3 5/7] drm/fb-cma-helper: Add fb_deferred_io support

2016-04-27 Thread Noralf Trønnes
e hook to set a driver provided (struct drm_framebuffer_funcs *)->dirty() function. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes since v2: - FB_DEFERRED_IO is now always selected by DRM_KMS_FB_HELPER, ifdef removed drivers/gpu/drm/drm_fb_cma

[PATCH v3 1/7] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-27 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> Reviewed-by: Daniel Vetter <daniel.vet...@ffwll.ch> --- drivers/gpu/drm/udl/udl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c inde

[PATCH v3 5/7] drm/fb-cma-helper: Add fb_deferred_io support

2016-04-27 Thread Noralf Trønnes
e hook to set a driver provided (struct drm_framebuffer_funcs *)->dirty() function. Signed-off-by: Noralf Trønnes --- Changes since v2: - FB_DEFERRED_IO is now always selected by DRM_KMS_FB_HELPER, ifdef removed drivers/gpu/drm/drm_fb_cma_helper.c | 178 +--- in

[PATCH v3 1/7] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-27 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes Reviewed-by: Daniel Vetter --- drivers/gpu/drm/udl/udl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c index fd1eb9d..a52de2f 100644 --- a/drivers/gpu/drm/udl/udl_fb.c

Re: [PATCH v2 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-27 Thread Noralf Trønnes
Den 26.04.2016 19:19, skrev Daniel Vetter: On Tue, Apr 26, 2016 at 06:24:54PM +0200, Noralf Trønnes wrote: Den 25.04.2016 11:09, skrev Daniel Vetter: On Sun, Apr 24, 2016 at 10:48:58PM +0200, Noralf Trønnes wrote: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. The fbdev

Re: [PATCH v2 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-27 Thread Noralf Trønnes
Den 26.04.2016 19:19, skrev Daniel Vetter: On Tue, Apr 26, 2016 at 06:24:54PM +0200, Noralf Trønnes wrote: Den 25.04.2016 11:09, skrev Daniel Vetter: On Sun, Apr 24, 2016 at 10:48:58PM +0200, Noralf Trønnes wrote: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. The fbdev

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-26 Thread Noralf Trønnes
Den 25.04.2016 23:13, skrev Laurent Pinchart: Hi Noralf, On Monday 25 Apr 2016 20:35:18 Noralf Trønnes wrote: Den 25.04.2016 18:38, skrev Ville Syrjälä: On Mon, Apr 25, 2016 at 06:05:20PM +0200, Daniel Vetter wrote: On Mon, Apr 25, 2016 at 06:09:44PM +0300, Ville Syrjälä wrote: On Mon, Apr

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-26 Thread Noralf Trønnes
Den 25.04.2016 23:13, skrev Laurent Pinchart: Hi Noralf, On Monday 25 Apr 2016 20:35:18 Noralf Trønnes wrote: Den 25.04.2016 18:38, skrev Ville Syrjälä: On Mon, Apr 25, 2016 at 06:05:20PM +0200, Daniel Vetter wrote: On Mon, Apr 25, 2016 at 06:09:44PM +0300, Ville Syrjälä wrote: On Mon, Apr

Re: [PATCH v2 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-26 Thread Noralf Trønnes
Den 25.04.2016 11:09, skrev Daniel Vetter: On Sun, Apr 24, 2016 at 10:48:58PM +0200, Noralf Trønnes wrote: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a ded

Re: [PATCH v2 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-26 Thread Noralf Trønnes
Den 25.04.2016 11:09, skrev Daniel Vetter: On Sun, Apr 24, 2016 at 10:48:58PM +0200, Noralf Trønnes wrote: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a ded

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-25 Thread Noralf Trønnes
Den 25.04.2016 18:38, skrev Ville Syrjälä: On Mon, Apr 25, 2016 at 06:05:20PM +0200, Daniel Vetter wrote: On Mon, Apr 25, 2016 at 06:09:44PM +0300, Ville Syrjälä wrote: On Mon, Apr 25, 2016 at 04:03:13PM +0200, Noralf Trønnes wrote: Den 25.04.2016 15:02, skrev Ville Syrjälä: On Mon, Apr 25

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-25 Thread Noralf Trønnes
Den 25.04.2016 18:38, skrev Ville Syrjälä: On Mon, Apr 25, 2016 at 06:05:20PM +0200, Daniel Vetter wrote: On Mon, Apr 25, 2016 at 06:09:44PM +0300, Ville Syrjälä wrote: On Mon, Apr 25, 2016 at 04:03:13PM +0200, Noralf Trønnes wrote: Den 25.04.2016 15:02, skrev Ville Syrjälä: On Mon, Apr 25

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-25 Thread Noralf Trønnes
Den 25.04.2016 15:02, skrev Ville Syrjälä: On Mon, Apr 25, 2016 at 02:55:52PM +0200, Noralf Trønnes wrote: Den 25.04.2016 14:39, skrev Ville Syrjälä: On Sun, Apr 24, 2016 at 10:48:55PM +0200, Noralf Trønnes wrote: Add some utility functions for struct drm_clip_rect. Looks like mostly you're

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-25 Thread Noralf Trønnes
Den 25.04.2016 15:02, skrev Ville Syrjälä: On Mon, Apr 25, 2016 at 02:55:52PM +0200, Noralf Trønnes wrote: Den 25.04.2016 14:39, skrev Ville Syrjälä: On Sun, Apr 24, 2016 at 10:48:55PM +0200, Noralf Trønnes wrote: Add some utility functions for struct drm_clip_rect. Looks like mostly you're

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-25 Thread Noralf Trønnes
Den 25.04.2016 14:39, skrev Ville Syrjälä: On Sun, Apr 24, 2016 at 10:48:55PM +0200, Noralf Trønnes wrote: Add some utility functions for struct drm_clip_rect. Looks like mostly you're just duplicating the drm_rect stuff. Why can't you use what's there already? That's because

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-25 Thread Noralf Trønnes
Den 25.04.2016 14:39, skrev Ville Syrjälä: On Sun, Apr 24, 2016 at 10:48:55PM +0200, Noralf Trønnes wrote: Add some utility functions for struct drm_clip_rect. Looks like mostly you're just duplicating the drm_rect stuff. Why can't you use what's there already? That's because

[PATCH v2 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-24 Thread Noralf Trønnes
This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a dedicated worker ensuring that it always runs in process context. Signed-off-by: Noralf Trønnes <nor...@tr

[PATCH v2 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-24 Thread Noralf Trønnes
This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a dedicated worker ensuring that it always runs in process context. Signed-off-by: Noralf Trønnes --- Changes si

[PATCH v2 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-24 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now schedule a worker instead of being flushed directly like it was previously (recorded when in atomic). This patch has only been compile tested. Signed-off-by: Nor

[PATCH v2 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-24 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now schedule a worker instead of being flushed directly like it was previously (recorded when in atomic). This patch has only been compile tested. Signed-off-by: Nor

[PATCH v2 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-24 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper which mirrors the one qxl has had. This patch has only been compile tested. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes since v1: - Add FIXME about special dirty() callback for fbdev - Remove note in commit message

[PATCH v2 3/8] drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-24 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/qxl/qxl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c index 7136e52..06f032d 100644 --- a/drivers/gpu/drm/qxl/qxl_fb.c +

[PATCH v2 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-24 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper which mirrors the one qxl has had. This patch has only been compile tested. Signed-off-by: Noralf Trønnes --- Changes since v1: - Add FIXME about special dirty() callback for fbdev - Remove note in commit message about deferred worker

[PATCH v2 3/8] drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-24 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/qxl/qxl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c index 7136e52..06f032d 100644 --- a/drivers/gpu/drm/qxl/qxl_fb.c +++ b/drivers/gpu/drm/qxl/qx

[PATCH v2 6/8] drm/fb-cma-helper: Add fb_deferred_io support

2016-04-24 Thread Noralf Trønnes
e hook to set a driver provided (struct drm_framebuffer_funcs *)->dirty() function. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/drm_fb_cma_helper.c | 190 +--- include/drm/drm_fb_cma_helper.h | 14 +++ 2 files changed, 192 in

[PATCH v2 6/8] drm/fb-cma-helper: Add fb_deferred_io support

2016-04-24 Thread Noralf Trønnes
e hook to set a driver provided (struct drm_framebuffer_funcs *)->dirty() function. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_fb_cma_helper.c | 190 +--- include/drm/drm_fb_cma_helper.h | 14 +++ 2 files changed, 192 insertions(+), 12 deletions

[PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-24 Thread Noralf Trønnes
Add some utility functions for struct drm_clip_rect. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/drm_rect.c | 67 include/drm/drm_rect.h | 69 ++ 2 files change

[PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-24 Thread Noralf Trønnes
Add some utility functions for struct drm_clip_rect. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_rect.c | 67 include/drm/drm_rect.h | 69 ++ 2 files changed, 136 insertions(+) diff --git

[PATCH v2 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-24 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/udl/udl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c index fd1eb9d..a52de2f 100644 --- a/drivers/gpu/drm/udl/udl_fb.c +

[PATCH v2 0/8] drm: Add fbdev deferred io support to helpers

2016-04-24 Thread Noralf Trønnes
Export fb_deferred_io_mmap() - Add some more documentation - Add qxl and udl patches Noralf Trønnes (8): drm/rect: Add some drm_clip_rect utility functions drm/udl: Change drm_fb_helper_sys_*() calls to sys_*() drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*() drm/fb-helpe

[PATCH v2 5/8] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-24 Thread Noralf Trønnes
t to nocache for instance, so I think the safest bet is to do this in the driver and not in the fbdev core. And we can't call fb_pgprotect() from fb_deferred_io_mmap() either because we don't have access to the file pointer that powerpc needs. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> ---

[PATCH v2 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-24 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/udl/udl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c index fd1eb9d..a52de2f 100644 --- a/drivers/gpu/drm/udl/udl_fb.c +++ b/drivers/gpu/drm/udl/ud

[PATCH v2 0/8] drm: Add fbdev deferred io support to helpers

2016-04-24 Thread Noralf Trønnes
Export fb_deferred_io_mmap() - Add some more documentation - Add qxl and udl patches Noralf Trønnes (8): drm/rect: Add some drm_clip_rect utility functions drm/udl: Change drm_fb_helper_sys_*() calls to sys_*() drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*() drm/fb-helpe

[PATCH v2 5/8] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-24 Thread Noralf Trønnes
t to nocache for instance, so I think the safest bet is to do this in the driver and not in the fbdev core. And we can't call fb_pgprotect() from fb_deferred_io_mmap() either because we don't have access to the file pointer that powerpc needs. Signed-off-by: Noralf Trønnes --- Changes since v1: - E

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-22 Thread Noralf Trønnes
Den 22.04.2016 19:05, skrev Daniel Vetter: On Fri, Apr 22, 2016 at 04:17:14PM +0200, Noralf Trønnes wrote: Den 22.04.2016 10:27, skrev Daniel Vetter: On Thu, Apr 21, 2016 at 08:54:45PM +0200, Noralf Trønnes wrote: Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-22 Thread Noralf Trønnes
Den 22.04.2016 19:05, skrev Daniel Vetter: On Fri, Apr 22, 2016 at 04:17:14PM +0200, Noralf Trønnes wrote: Den 22.04.2016 10:27, skrev Daniel Vetter: On Thu, Apr 21, 2016 at 08:54:45PM +0200, Noralf Trønnes wrote: Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-22 Thread Noralf Trønnes
Den 22.04.2016 10:27, skrev Daniel Vetter: On Thu, Apr 21, 2016 at 08:54:45PM +0200, Noralf Trønnes wrote: Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. Accumulated fbdev framebuffer changes are signaled using the callback

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-22 Thread Noralf Trønnes
Den 22.04.2016 10:27, skrev Daniel Vetter: On Thu, Apr 21, 2016 at 08:54:45PM +0200, Noralf Trønnes wrote: Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. Accumulated fbdev framebuffer changes are signaled using the callback

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-21 Thread Noralf Trønnes
Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. Accumulated fbdev framebuffer changes are signaled using the callback (struct drm_framebuffer_funcs *)->dirty() The drm_fb_helper_sys_*() functions will accumulate chan

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-21 Thread Noralf Trønnes
Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. Accumulated fbdev framebuffer changes are signaled using the callback (struct drm_framebuffer_funcs *)->dirty() The drm_fb_helper_sys_*() functions will accumulate chan

Re: [PATCH 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-21 Thread Noralf Trønnes
Den 21.04.2016 09:28, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 08:15:30PM +0200, Noralf Trønnes wrote: Den 20.04.2016 19:42, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:23PM +0200, Noralf Trønnes wrote: Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_

Re: [PATCH 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-21 Thread Noralf Trønnes
Den 21.04.2016 09:28, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 08:15:30PM +0200, Noralf Trønnes wrote: Den 20.04.2016 19:42, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:23PM +0200, Noralf Trønnes wrote: Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_

Re: [PATCH 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:59, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:29PM +0200, Noralf Trønnes wrote: Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, inst

Re: [PATCH 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:59, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:29PM +0200, Noralf Trønnes wrote: Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, inst

Re: [PATCH 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:47, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:28PM +0200, Noralf Trønnes wrote: Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, inst

Re: [PATCH 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:47, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:28PM +0200, Noralf Trønnes wrote: Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, inst

Re: [PATCH 5/8] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:44, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:26PM +0200, Noralf Trønnes wrote: Export fb_deferred_io_mmap so drivers can change vma->vm_page_prot. When the framebuffer memory is allocated using dma_alloc_writecombine() instead of vmalloc(), I get cache sync

Re: [PATCH 5/8] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:44, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:26PM +0200, Noralf Trønnes wrote: Export fb_deferred_io_mmap so drivers can change vma->vm_page_prot. When the framebuffer memory is allocated using dma_alloc_writecombine() instead of vmalloc(), I get cache sync

Re: [PATCH 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:42, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:23PM +0200, Noralf Trønnes wrote: Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrect,copyarea,imageblit} functions will schedule the worker that calls the deferred_io callback

Re: [PATCH 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:42, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:23PM +0200, Noralf Trønnes wrote: Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrect,copyarea,imageblit} functions will schedule the worker that calls the deferred_io callback

[PATCH 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-20 Thread Noralf Trønnes
Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrect,copyarea,imageblit} functions will schedule the worker that calls the deferred_io callback. This will break this driver so use the sys_{fillrect,copyarea,imageblit} functions directly. Signed-off-by: Noralf Trønnes

[PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-20 Thread Noralf Trønnes
ure and calling fb_deferred_io_init() using the provided callback: (struct fb_deferred_io).deferred_io = drm_fb_helper_deferred_io; Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/drm_fb_helper.c | 119 +++- include/drm/drm_fb

[PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-20 Thread Noralf Trønnes
ure and calling fb_deferred_io_init() using the provided callback: (struct fb_deferred_io).deferred_io = drm_fb_helper_deferred_io; Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_fb_helper.c | 119 +++- include/drm/drm_fb_helper.h | 15 + 2 fi

[PATCH 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-20 Thread Noralf Trønnes
Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrect,copyarea,imageblit} functions will schedule the worker that calls the deferred_io callback. This will break this driver so use the sys_{fillrect,copyarea,imageblit} functions directly. Signed-off-by: Noralf Trønnes

[PATCH 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, instead of being flushed directly. This patch has only been compile tested. Signed-off-by: Noralf Trønnes &

[PATCH 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, instead of being flushed directly. This patch has only been compile tested. Signed-off-by: Noralf Trønnes --- driv

[PATCH 5/8] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-20 Thread Noralf Trønnes
nfo, struct vm_area_struct *vma) { fb_deferred_io_mmap(info, vma); vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); return 0; } Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/video/fbdev/core/fb_defio.c | 3 ++- inc

[PATCH 5/8] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-20 Thread Noralf Trønnes
nfo, struct vm_area_struct *vma) { fb_deferred_io_mmap(info, vma); vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); return 0; } Signed-off-by: Noralf Trønnes --- drivers/video/fbdev/core/fb_defio.c | 3 ++- include/linux/fb.h

[PATCH 3/8] drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-20 Thread Noralf Trønnes
Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrect,copyarea,imageblit} functions will schedule the worker that calls the deferred_io callback. This will break this driver so use the sys_{fillrect,copyarea,imageblit} functions directly. Signed-off-by: Noralf Trønnes

[PATCH 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-20 Thread Noralf Trønnes
Add some utility functions for struct drm_clip_rect. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/drm_rect.c | 67 include/drm/drm_rect.h | 69 ++ 2 files change

[PATCH 6/8] drm/fb-cma-helper: Add fb_deferred_io support

2016-04-20 Thread Noralf Trønnes
e hook to set a driver provided (struct drm_framebuffer_funcs *)->dirty() function. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/drm_fb_cma_helper.c | 190 +--- include/drm/drm_fb_cma_helper.h | 14 +++ 2 files changed, 192 in

[PATCH 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
ist corruption problems mentioned in commit 677d23b70bf9 ("drm/udl: disable fb_defio by default"). This patch has only been compile tested. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/udl/udl_drv.h | 2 - drivers/gpu/drm/

[PATCH 3/8] drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-20 Thread Noralf Trønnes
Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrect,copyarea,imageblit} functions will schedule the worker that calls the deferred_io callback. This will break this driver so use the sys_{fillrect,copyarea,imageblit} functions directly. Signed-off-by: Noralf Trønnes

[PATCH 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-20 Thread Noralf Trønnes
Add some utility functions for struct drm_clip_rect. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_rect.c | 67 include/drm/drm_rect.h | 69 ++ 2 files changed, 136 insertions(+) diff --git

[PATCH 6/8] drm/fb-cma-helper: Add fb_deferred_io support

2016-04-20 Thread Noralf Trønnes
e hook to set a driver provided (struct drm_framebuffer_funcs *)->dirty() function. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_fb_cma_helper.c | 190 +--- include/drm/drm_fb_cma_helper.h | 14 +++ 2 files changed, 192 insertions(+), 12 deletions

[PATCH 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
ist corruption problems mentioned in commit 677d23b70bf9 ("drm/udl: disable fb_defio by default"). This patch has only been compile tested. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/udl/udl_drv.h | 2 - drivers/gpu/drm/udl/udl_fb.c | 152 --

[PATCH 0/8] drm: Add fbdev deferred io support to helpers

2016-04-20 Thread Noralf Trønnes
Export fb_deferred_io_mmap() - Add some more documentation - Add qxl and udl patches Noralf Trønnes (8): drm/rect: Add some drm_clip_rect utility functions drm/udl: Change drm_fb_helper_sys_*() calls to sys_*() drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*() drm/fb-helper: Add fb_deferred_io s

[PATCH 0/8] drm: Add fbdev deferred io support to helpers

2016-04-20 Thread Noralf Trønnes
Export fb_deferred_io_mmap() - Add some more documentation - Add qxl and udl patches Noralf Trønnes (8): drm/rect: Add some drm_clip_rect utility functions drm/udl: Change drm_fb_helper_sys_*() calls to sys_*() drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*() drm/fb-helper: Add fb_deferred_io s

Re: [PATCH v2 8/8] ARM: bcm2835: Add Kconfig support for bcm2836

2016-01-03 Thread Noralf Trønnes
Den 17.12.2015 00:55, skrev Eric Anholt: This should be a complete port of bcm2835 functionality to bcm2836 (Raspberry Pi 2). Signed-off-by: Eric Anholt --- v2: Implement Arnd's feedback to not split to ARCH_BCM2836, and instead use more conditionals in ARCH_BCM2835. Also reduce diff

Re: [PATCH v2 8/8] ARM: bcm2835: Add Kconfig support for bcm2836

2016-01-03 Thread Noralf Trønnes
Den 17.12.2015 00:55, skrev Eric Anholt: This should be a complete port of bcm2835 functionality to bcm2836 (Raspberry Pi 2). Signed-off-by: Eric Anholt --- v2: Implement Arnd's feedback to not split to ARCH_BCM2836, and instead use more conditionals in ARCH_BCM2835.

Re: [PATCH v2 0/8] Raspberry Pi 2 support.

2015-12-26 Thread Noralf Trønnes
Den 22.12.2015 20:01, skrev Eric Anholt: After finally booting the RPi2 I get several messages of: unexpected IRQ trap at vector 00 while typing _one_ character over uart. We were doing some debugging of that recently. It seems that every once in a while we get woken up but nothing shows

Re: [PATCH v2 0/8] Raspberry Pi 2 support.

2015-12-26 Thread Noralf Trønnes
Den 22.12.2015 20:01, skrev Eric Anholt: After finally booting the RPi2 I get several messages of: unexpected IRQ trap at vector 00 while typing _one_ character over uart. We were doing some debugging of that recently. It seems that every once in a while we get woken up but nothing shows

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Noralf Trønnes
Den 17.10.2015 20:45, skrev Rob Clark: On Sat, Oct 17, 2015 at 2:27 PM, Greg Kroah-Hartman wrote: On Sat, Oct 17, 2015 at 01:54:43PM -0400, Rob Clark wrote: On Sat, Oct 17, 2015 at 12:56 PM, Greg Kroah-Hartman wrote: I'm guessing the time is a matter of probing and undoing the probes

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Noralf Trønnes
Den 17.10.2015 20:45, skrev Rob Clark: On Sat, Oct 17, 2015 at 2:27 PM, Greg Kroah-Hartman wrote: On Sat, Oct 17, 2015 at 01:54:43PM -0400, Rob Clark wrote: On Sat, Oct 17, 2015 at 12:56 PM, Greg Kroah-Hartman wrote: I'm guessing the

Re: [PATCH 1/2] staging: fbtft: add support for ST7789V display controller

2015-10-11 Thread Noralf Trønnes
Den 11.10.2015 09:31, skrev Dennis Menschel: Am 10.10.2015 um 17:36 schrieb Noralf Trønnes: Den 07.10.2015 22:15, skrev Dennis Menschel: This patch adds support for the Sitronix ST7789V display controller. The controller is intended for small color displays with a resolution of up to 320x240

Re: [PATCH 1/2] staging: fbtft: add support for ST7789V display controller

2015-10-11 Thread Noralf Trønnes
Den 11.10.2015 09:31, skrev Dennis Menschel: Am 10.10.2015 um 17:36 schrieb Noralf Trønnes: Den 07.10.2015 22:15, skrev Dennis Menschel: This patch adds support for the Sitronix ST7789V display controller. The controller is intended for small color displays with a resolution of up to 320x240

Re: [PATCH 1/2] staging: fbtft: add support for ST7789V display controller

2015-10-10 Thread Noralf Trønnes
Den 07.10.2015 22:15, skrev Dennis Menschel: This patch adds support for the Sitronix ST7789V display controller. The controller is intended for small color displays with a resolution of up to 320x240 pixels. Signed-off-by: Dennis Menschel --- The future of fbtft is uncertain after fbdev

Re: [PATCH 1/2] staging: fbtft: add support for ST7789V display controller

2015-10-10 Thread Noralf Trønnes
Den 07.10.2015 22:15, skrev Dennis Menschel: This patch adds support for the Sitronix ST7789V display controller. The controller is intended for small color displays with a resolution of up to 320x240 pixels. Signed-off-by: Dennis Menschel --- The future of fbtft is

[PATCH v2] Input: Add support for FocalTech FT6236 touchscreen controller

2015-10-01 Thread Noralf Trønnes
This adds support for the FT6x06 and the FT6x36 family of capacitive touch panel controllers, in particular the FT6236. Signed-off-by: Noralf Trønnes --- The driver is based on: https://github.com/adafruit/adafruit-raspberrypi-linux/blob/rpi-3.18.y/drivers/input/touchscreen/ft6x06_ts.c Changes

[PATCH v2] Input: Add support for FocalTech FT6236 touchscreen controller

2015-10-01 Thread Noralf Trønnes
This adds support for the FT6x06 and the FT6x36 family of capacitive touch panel controllers, in particular the FT6236. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- The driver is based on: https://github.com/adafruit/adafruit-raspberrypi-linux/blob/rpi-3.18.y/drivers/input/touch

[PATCH] Input: Add support for FocalTech FT6236 touchscreen controller

2015-09-29 Thread Noralf Trønnes
This adds support for the FT6x06 and the FT6x36 family of capacitive touch panel controllers, in particular the FT6236. Signed-off-by: Noralf Trønnes --- The driver is based on: https://github.com/adafruit/adafruit-raspberrypi-linux/blob/rpi-3.18.y/drivers/input/touchscreen/ft6x06_ts.c

[PATCH] Input: Add support for FocalTech FT6236 touchscreen controller

2015-09-29 Thread Noralf Trønnes
This adds support for the FT6x06 and the FT6x36 family of capacitive touch panel controllers, in particular the FT6236. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- The driver is based on: https://github.com/adafruit/adafruit-raspberrypi-linux/blob/rpi-3.18.y/drivers/input/touch

Re: No more new fbdev drivers, please

2015-09-28 Thread Noralf Trønnes
Den 27.09.2015 18:08, skrev Emil Velikov: Hi all, On 27 September 2015 at 14:09, Noralf Trønnes wrote: Den 24.09.2015 14:27, skrev Tomi Valkeinen: Hi all, fbdev is (more or less) maintained, but it's a deprecated framework. All new Linux display drivers should be done on DRM. So let's

Re: No more new fbdev drivers, please

2015-09-28 Thread Noralf Trønnes
Den 27.09.2015 18:08, skrev Emil Velikov: Hi all, On 27 September 2015 at 14:09, Noralf Trønnes <nor...@tronnes.org> wrote: Den 24.09.2015 14:27, skrev Tomi Valkeinen: Hi all, fbdev is (more or less) maintained, but it's a deprecated framework. All new Linux display drivers should b

Re: No more new fbdev drivers, please

2015-09-27 Thread Noralf Trønnes
Den 24.09.2015 14:27, skrev Tomi Valkeinen: Hi all, fbdev is (more or less) maintained, but it's a deprecated framework. All new Linux display drivers should be done on DRM. So let's not add any more new fbdev drivers. I will continue to maintain the current fbdev drivers, and I don't mind

Re: No more new fbdev drivers, please

2015-09-27 Thread Noralf Trønnes
Den 24.09.2015 14:27, skrev Tomi Valkeinen: Hi all, fbdev is (more or less) maintained, but it's a deprecated framework. All new Linux display drivers should be done on DRM. So let's not add any more new fbdev drivers. I will continue to maintain the current fbdev drivers, and I don't mind

Re: [PATCH v3] watchdog: bcm2835: Fix poweroff behaviour

2015-09-13 Thread Noralf Trønnes
Den 18.06.2015 05:58, skrev Guenter Roeck: On 06/17/2015 07:04 AM, Noralf Trønnes wrote: Currently poweroff/halt results in a reboot on the Raspberry Pi. The firmware uses the RSTS register to know which partiton to boot from. The partiton value is spread into bits 0, 2, 4, 6, 8, 10. Partiton

Re: [PATCH] irqchip: bcm2835: Add FIQ support

2015-09-13 Thread Noralf Trønnes
Den 22.07.2015 23:32, skrev Eric Anholt: Noralf Trønnes writes: Add a duplicate irq range with an offset on the hwirq's so the driver can detect that enable_fiq() is used. Tested with downstream dwc_otg USB controller driver. Signed-off-by: Noralf Trønnes --- arch/arm/mach-bcm/Kconfig

Re: [PATCH v3] watchdog: bcm2835: Fix poweroff behaviour

2015-09-13 Thread Noralf Trønnes
Den 18.06.2015 05:58, skrev Guenter Roeck: On 06/17/2015 07:04 AM, Noralf Trønnes wrote: Currently poweroff/halt results in a reboot on the Raspberry Pi. The firmware uses the RSTS register to know which partiton to boot from. The partiton value is spread into bits 0, 2, 4, 6, 8, 10. Partiton

Re: [PATCH] irqchip: bcm2835: Add FIQ support

2015-09-13 Thread Noralf Trønnes
Den 22.07.2015 23:32, skrev Eric Anholt: Noralf Trønnes <nor...@tronnes.org> writes: Add a duplicate irq range with an offset on the hwirq's so the driver can detect that enable_fiq() is used. Tested with downstream dwc_otg USB controller driver. Signed-off-by: Noralf Trønne

Re: [PATCH 3/3] staging: fbtft: use pr_fmt

2015-09-10 Thread Noralf Trønnes
10.09.2015 06:54, skrev Sudip Mukherjee: On Wed, Sep 09, 2015 at 11:20:08PM +0200, Noralf Trønnes wrote: Den 09.09.2015 20:35, skrev Greg Kroah-Hartman: On Sat, Sep 05, 2015 at 07:13:45PM +0530, Sudip Mukherjee wrote: Instead of defining DRVNAME and using it in all calls to pr_* family

Re: [PATCH v5 0/6] bcm2835: auxiliar device support for spi

2015-09-10 Thread Noralf Trønnes
Den 09.09.2015 03:48, skrev Eric Anholt: ker...@martin.sperl.org writes: From: Martin Sperl The BCM2835 contains 3 auxiliar devices: * spi1 * spi2 * uart1 All of those 3 devices are enabled/disabled via a shared register, which is set by default to be disabled. Access to this register

<    2   3   4   5   6   7   8   9   >