[Intel-gfx] [PATCH v5 09/14] drm: i915: remove dead code and pointless local lut storage

2017-07-13 Thread Peter Rosin
. Since the fb helpers .gamma_set and .gamma_get are obsolete, remove the dead code. Acked-by: Daniel Vetter <daniel.vet...@ffwll.ch> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/i915/intel_drv.h | 1 - drivers/gpu/drm/i915/intel_

[Intel-gfx] [PATCH v5 00/14] improve the fb_setcmap helper

2017-07-13 Thread Peter Rosin
(the definitions were removed in v1). Cheers, peda Peter Rosin (14): drm: rename, adjust and export drm_atomic_replace_property_blob drm/atomic-helper: update lut props directly in ..._legacy_gamma_set drm/fb-helper: separate the fb_setcmap helper into atomic and legacy paths drm:

[Intel-gfx] [PATCH v4 09/14] drm: i915: remove dead code and pointless local lut storage

2017-07-06 Thread Peter Rosin
. Since the fb helpers .gamma_set and .gamma_get are obsolete, remove the dead code. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/i915/intel_drv.h | 1 - drivers/gpu/drm/i915/intel_fbdev.c | 31 --- 2 files changed, 32 deletions(-) diff

[Intel-gfx] [PATCH v4 00/14] improve the fb_setcmap helper

2017-07-06 Thread Peter Rosin
ISUAL_TRUECOLOR. - Add a comment about colliding bitfields in the nouveau driver. - Remove gamma_set/gamma_get declarations from the radeon driver (the definitions were removed in v1). Cheers, peda Peter Rosin (14): drm/atomic: export drm_atomic_replace_property_blob drm/atomic-helper: upd

Re: [Intel-gfx] [PATCH v3 00/16] improve the fb_setcmap helper

2017-07-05 Thread Peter Rosin
On 2017-07-05 08:08, Daniel Vetter wrote: > On Tue, Jul 04, 2017 at 12:36:56PM +0200, Peter Rosin wrote: >> Hi! >> >> While trying to get CLUT support for the atmel_hlcdc driver, and >> specifically for the emulated fbdev interface, I received some >> push-back

[Intel-gfx] [PATCH v3 11/16] drm: i915: remove dead code and pointless local lut storage

2017-07-04 Thread Peter Rosin
. Since the fb helpers .gamma_set and .gamma_get are obsolete, remove the dead code. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/i915/intel_drv.h | 1 - drivers/gpu/drm/i915/intel_fbdev.c | 31 --- 2 files changed, 32 deletions(-) diff

[Intel-gfx] [PATCH v3 00/16] improve the fb_setcmap helper

2017-07-04 Thread Peter Rosin
eudo-palette for FB_VISUAL_TRUECOLOR. - Add a comment about colliding bitfields in the nouveau driver. - Remove gamma_set/gamma_get declarations from the radeon driver (the definitions were removed in v1). Cheers, peda Peter Rosin (16): drm/fb-helper: factor out pseudo-palette drm/fb-

Re: [Intel-gfx] [PATCH v2 00/14] improve the fb_setcmap helper

2017-06-26 Thread Peter Rosin
On 2017-06-26 11:35, Daniel Vetter wrote: > On Thu, Jun 22, 2017 at 08:06:23AM +0200, Peter Rosin wrote: >> Hi! >> >> While trying to get CLUT support for the atmel_hlcdc driver, and >> specifically for the emulated fbdev interface, I received some >> push-back

[Intel-gfx] [PATCH 01/11] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-06-23 Thread Peter Rosin
? drm_fb_helper_save_lut_atomic justs saves the gamma lut for later. However, it saves it to the gamma_store which should already be up to date with what .gamma_get would return and is thus a nop. So, zap it. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/drm_fb_helper.c

[Intel-gfx] [PATCH v2 11/14] drm: nouveau: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/nouveau/di

Re: [Intel-gfx] [PATCH 01/11] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-06-23 Thread Peter Rosin
On 2017-06-21 09:38, Daniel Vetter wrote: > On Tue, Jun 20, 2017 at 09:25:25PM +0200, Peter Rosin wrote: >> This makes the redundant fb helpers .load_lut, .gamma_set and .gamma_get >> totally obsolete. >> >> I think the gamma_store can end up invalid on error. But the

[Intel-gfx] [PATCH v2 04/14] drm: amd: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/amd/

[Intel-gfx] [PATCH v2 10/14] drm: mgag200: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/m

[Intel-gfx] [PATCH 10/11] drm: stm: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helper .load_lut is no longer used, and can not work right without also providing the fb helpers .gamma_set and .gamma_get thus rendering the code in this driver suspect. Just remove the dead code. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/stm/ltdc.

[Intel-gfx] [PATCH 05/11] dmr: gma500: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
make the driver work for the C8 mode from the fbdev interface. But that is untested. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/gma500/framebuffer.c | 22 drivers/gpu/drm/gma500/gma_display.c | 32 ++ drivers/g

[Intel-gfx] [PATCH v2 12/14] drm: radeon: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/

[Intel-gfx] [PATCH v2 05/14] drm: armada: remove dead empty functions

2017-06-23 Thread Peter Rosin
The redundant fb helpers .gamma_set and .gamma_get are no longer used. Remove the dead code. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/armada/armada_crtc.c | 10 -- drivers/gpu/drm/armada/armada_crtc.h | 2 -- drivers/gpu/drm/armada/armada_fbdev.c | 2

[Intel-gfx] [PATCH v2 03/14] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-06-23 Thread Peter Rosin
This makes the redundant fb helpers .load_lut, .gamma_set and .gamma_get totally obsolete. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/drm_fb_helper.c | 151 +--- 1 file changed, 63 insertions(+), 88 deletions(-) This is an alter

Re: [Intel-gfx] [PATCH v2 13/14] drm: stm: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
On 2017-06-22 13:49, Philippe CORNU wrote: > On 06/22/2017 08:06 AM, Peter Rosin wrote: >> The redundant fb helper .load_lut is no longer used, and can not >> work right without also providing the fb helpers .gamma_set and >> .gamma_get thus rendering the code in this drive

[Intel-gfx] [PATCH 09/11] drm: radeon: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/

[Intel-gfx] [PATCH v2 08/14] drm: gma500: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/gma500/framebu

[Intel-gfx] [PATCH 04/11] drm: cirrus: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/

[Intel-gfx] [PATCH 07/11] drm: mgag200: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/m

[Intel-gfx] [PATCH v2 14/14] drm: remove unused and redundant callbacks

2017-06-23 Thread Peter Rosin
Drivers no longer have any need for these callbacks, and there are no users. Zap. Zap-zap-zzzap-p-pp-p. Signed-off-by: Peter Rosin <p...@axentia.se> --- include/drm/drm_fb_helper.h | 32 include/drm/drm_modeset_helper_vtables.

Re: [Intel-gfx] [PATCH 08/11] drm: nouveau: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
On 2017-06-20 21:25, Peter Rosin wrote: > The redundant fb helpers .load_lut, .gamma_set and .gamma_get are > no longer used. Remove the dead code and hook up the crtc .gamma_set > to use the crtc gamma_store directly instead of duplicating that > info locally. [...] > - for

[Intel-gfx] [PATCH 00/11] improve the fb_setcmap helper

2017-06-23 Thread Peter Rosin
bit-manipulation somewhere in this mostly mechanical change... Cheers, peda Peter Rosin (11): drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set drm: amd: remove dead code and pointless local lut storage drm: ast: remove dead code and pointless local lut storage

[Intel-gfx] [PATCH 02/11] drm: amd: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/amd/

[Intel-gfx] [PATCH v2 00/14] improve the fb_setcmap helper

2017-06-23 Thread Peter Rosin
in the nouveau driver. - Remove gamma_set/gamma_get declarations from the radeon driver (the definitions were removed in v1). Cheers, peda Peter Rosin (14): drm/fb-helper: keep the .gamma_store updated in drm_fb_helper_setcmap drm/fb-helper: remove drm_fb_helper_save_lut_atomic drm/fb-helper

[Intel-gfx] [PATCH v2 06/14] drm: ast: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/ast/ast

[Intel-gfx] [PATCH v2 07/14] drm: cirrus: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/

Re: [Intel-gfx] [PATCH 01/11] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-06-23 Thread Peter Rosin
On 2017-06-22 08:36, Daniel Vetter wrote: > On Wed, Jun 21, 2017 at 11:40:52AM +0200, Peter Rosin wrote: >> On 2017-06-21 09:38, Daniel Vetter wrote: >>> On Tue, Jun 20, 2017 at 09:25:25PM +0200, Peter Rosin wrote: >>>> This makes the redundant fb helpers .load_

[Intel-gfx] [PATCH v2 02/14] drm/fb-helper: remove drm_fb_helper_save_lut_atomic

2017-06-23 Thread Peter Rosin
drm_fb_helper_save_lut_atomic is redundant since the .gamma_store is now always kept up to date by drm_fb_helper_setcmap. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/drm_fb_helper.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/g

[Intel-gfx] [PATCH 08/11] drm: nouveau: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/nouveau/di

[Intel-gfx] [PATCH 03/11] drm: ast: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/ast/ast

[Intel-gfx] [PATCH v2 13/14] drm: stm: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
The redundant fb helper .load_lut is no longer used, and can not work right without also providing the fb helpers .gamma_set and .gamma_get thus rendering the code in this driver suspect. Just remove the dead code. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/stm/ltdc.

[Intel-gfx] [PATCH v2 09/14] drm: i915: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
. Since the fb helpers .gamma_set and .gamma_get are obsolete, remove the dead code. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/i915/intel_drv.h | 1 - drivers/gpu/drm/i915/intel_fbdev.c | 31 --- 2 files changed, 32 deletions(-) diff

[Intel-gfx] [PATCH v2 03/14] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-06-23 Thread Peter Rosin
This makes the redundant fb helpers .load_lut, .gamma_set and .gamma_get totally obsolete. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/drm_fb_helper.c | 154 1 file changed, 63 insertions(+), 91 deletions(-) diff --git a/drive

[Intel-gfx] [PATCH 11/11] drm: remove unused and redundant callbacks

2017-06-23 Thread Peter Rosin
Drivers no longer have any need for these callbacks, and there are no users. Zap. Zap-zap-zzzap-p-pp-p. Signed-off-by: Peter Rosin <p...@axentia.se> --- include/drm/drm_fb_helper.h | 32 include/drm/drm_modeset_helper_vtables.

[Intel-gfx] [PATCH v2 01/14] drm/fb-helper: keep the .gamma_store updated in drm_fb_helper_setcmap

2017-06-23 Thread Peter Rosin
I think the gamma_store can end up invalid on error. But the way I read it, that can happen in drm_mode_gamma_set_ioctl as well, so why should this pesky legacy fbdev stuff be any better? Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/drm_fb_helper.

[Intel-gfx] [PATCH 06/11] drm: i915: remove dead code and pointless local lut storage

2017-06-23 Thread Peter Rosin
. Since the fb helper .gamma_set and .gamma_get are no longer used, just kill the mysterious dead code. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/i915/intel_drv.h | 1 - drivers/gpu/drm/i915/intel_fbdev.c | 31 --- 2 files changed, 32 del

Re: [Intel-gfx] [PATCH 09/12] drm/fb-helper: Split dpms handling into legacy and atomic paths

2017-06-23 Thread Peter Rosin
that code as-is for now. > > Cc: Peter Rosin <p...@axentia.se> For the whole series (lightly) Tested-by: Peter Rosin <p...@axentia.se> Cheers, peda ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH v2 01/14] drm/fb-helper: keep the .gamma_store updated in drm_fb_helper_setcmap

2017-06-23 Thread Peter Rosin
I think the gamma_store can end up invalid on error. But the way I read it, that can happen in drm_mode_gamma_set_ioctl as well, so why should this pesky legacy fbdev stuff be any better? Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/gpu/drm/drm_fb_helper.