[Intel-gfx] [PATCH v3 01/10] drm/fb-helper: Cleanup checkpatch warnings

2017-03-21 Thread Thierry Reding
From: Thierry Reding Fix up a couple of checkpatch warnings, such as whitespace or coding style issues. Tested-by: John Stultz Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_fb_helper.c | 54 - 1 file changed, 32 insertions(+), 22 deletions

[Intel-gfx] [PATCH v3 02/10] drm/fb-helper: Reshuffle code for subsequent patches

2017-03-21 Thread Thierry Reding
From: Thierry Reding An unlocked version of the drm_fb_helper_add_one_connector() function will be added in a subsequent patch. Reshuffle the code separately to make the diff more readable later on. Tested-by: John Stultz Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_fb_helper.c | 59

[Intel-gfx] [PATCH v3 00/10] drm/fb-helper: Deferred setup support

2017-03-21 Thread Thierry Reding
From: Thierry Reding This set of patches adds support for deferring FB helper setup, which is useful to obtain a sane configuration even when no outputs are available during probe. One example is HDMI, where fbdev will currently fallback to a 1024x786 resolution if no monitor is connected, and

[Intel-gfx] [PATCH v3 04/10] drm/fb-helper: Push down modeset lock into FB helpers

2017-03-21 Thread Thierry Reding
From: Thierry Reding Move the modeset locking from drivers into FB helpers. Tested-by: John Stultz Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_fb_helper.c| 39 -- drivers/gpu/drm/i915/intel_dp_mst.c| 3 --- drivers/gpu/drm/radeon

[Intel-gfx] [PATCH v3 08/10] drm/hisilicon: Remove custom FB helper deferred setup

2017-03-21 Thread Thierry Reding
From: Thierry Reding The FB helper core now supports deferred setup, so the driver's custom implementation can be removed. Signed-off-by: Thierry Reding --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-)

[Intel-gfx] [PATCH v3 07/10] drm/exynos: Remove custom FB helper deferred setup

2017-03-21 Thread Thierry Reding
From: Thierry Reding The FB helper core now supports deferred setup, so the driver's custom implementation can be removed. Signed-off-by: Thierry Reding --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 6 -- drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 2 -- 2 files changed, 4 inser

[Intel-gfx] [PATCH v3 10/10] drm/rockchip: Remove unnecessary NULL check

2017-03-21 Thread Thierry Reding
From: Thierry Reding The expression &private->fbdev_helper can never be NULL, so the check is completely unnecessary. Signed-off-by: Thierry Reding --- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/r

[Intel-gfx] [PATCH v3 03/10] drm/fb-helper: Improve code readability

2017-03-21 Thread Thierry Reding
From: Thierry Reding Add a couple of temporary variables and use shorter names for existing variables in drm_fb_helper_add_one_connector() for better readability. Tested-by: John Stultz Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_fb_helper.c | 25 - 1 file

[Intel-gfx] [PATCH v3 06/10] drm/fb-helper: Support deferred setup

2017-03-21 Thread Thierry Reding
From: Thierry Reding FB helper code falls back to a 1024x768 mode if no outputs are connected or don't report back any modes upon initialization. This can be annoying because outputs that are added to FB helper later on can't be used with FB helper if they don't support a matc

[Intel-gfx] [PATCH v3 09/10] drm/atmel-hlcdc: Remove unnecessary NULL check

2017-03-21 Thread Thierry Reding
From: Thierry Reding drm_fbdev_cma_hotplug_event() already checks for NULL pointers before dereferencing, so callers don't need to do that. Signed-off-by: Thierry Reding --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --

[Intel-gfx] [PATCH v3 05/10] drm/fb-helper: Add top-level lock

2017-03-21 Thread Thierry Reding
From: Thierry Reding Introduce a new top-level lock for the FB helper code. This will allow better locking granularity and avoid the need to abuse modeset locking for this purpose instead. Tested-by: John Stultz Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_fb_helper.c | 27

Re: [Intel-gfx] [PATCH v3 07/10] drm/exynos: Remove custom FB helper deferred setup

2017-03-21 Thread Thierry Reding
On Tue, Mar 21, 2017 at 11:42:21AM +0100, Andrzej Hajda wrote: > On 21.03.2017 11:20, Daniel Vetter wrote: > > On Tue, Mar 21, 2017 at 10:58:43AM +0100, Andrzej Hajda wrote: > >> On 21.03.2017 09:13, Thierry Reding wrote: > >>> From: Thierry Reding > >>

Re: [Intel-gfx] [PATCH v3 10/10] drm/rockchip: Remove unnecessary NULL check

2017-03-21 Thread Thierry Reding
On Tue, Mar 21, 2017 at 11:27:04AM +0100, Daniel Vetter wrote: > On Tue, Mar 21, 2017 at 09:13:58AM +0100, Thierry Reding wrote: > > From: Thierry Reding > > > > The expression &private->fbdev_helper can never be NULL, so the check is > > completely unnecessar

Re: [Intel-gfx] [PATCH v3 07/10] drm/exynos: Remove custom FB helper deferred setup

2017-03-21 Thread Thierry Reding
On Tue, Mar 21, 2017 at 12:13:26PM +0100, Andrzej Hajda wrote: > On 21.03.2017 11:53, Thierry Reding wrote: > > On Tue, Mar 21, 2017 at 11:42:21AM +0100, Andrzej Hajda wrote: > >> On 21.03.2017 11:20, Daniel Vetter wrote: > >>> On Tue, Mar 21, 2017 at 10:58:4

Re: [Intel-gfx] [PATCH v3 06/10] drm/fb-helper: Support deferred setup

2017-03-22 Thread Thierry Reding
On Tue, Mar 21, 2017 at 11:10:22AM +0100, Daniel Vetter wrote: > On Tue, Mar 21, 2017 at 09:13:54AM +0100, Thierry Reding wrote: [...] > > diff --git a/drivers/gpu/drm/drm_fb_helper.c > > b/drivers/gpu/drm/drm_fb_helper.c [...] > > @@ -2437,11 +247

[Intel-gfx] [PATCH v4 05/11] drm/fb-helper: Add top-level lock

2017-03-29 Thread Thierry Reding
From: Thierry Reding Introduce a new top-level lock for the FB helper code. This will allow better locking granularity and avoid the need to abuse modeset locking for this purpose instead. Tested-by: John Stultz Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- drivers/gpu/drm

[Intel-gfx] [PATCH v4 01/11] drm/fb-helper: Cleanup checkpatch warnings

2017-03-29 Thread Thierry Reding
From: Thierry Reding Fix up a couple of checkpatch warnings, such as whitespace or coding style issues. Tested-by: John Stultz Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_fb_helper.c | 54 - 1 file changed, 32

[Intel-gfx] [PATCH v4 00/11] drm/fb-helper: Deferred setup support

2017-03-29 Thread Thierry Reding
From: Thierry Reding This set of patches adds support for deferring FB helper setup, which is useful to obtain a sane configuration even when no outputs are available during probe. One example is HDMI, where fbdev will currently fallback to a 1024x786 resolution if no monitor is connected, and

[Intel-gfx] [PATCH v4 02/11] drm/fb-helper: Reshuffle code for subsequent patches

2017-03-29 Thread Thierry Reding
From: Thierry Reding An unlocked version of the drm_fb_helper_add_one_connector() function will be added in a subsequent patch. Reshuffle the code separately to make the diff more readable later on. Tested-by: John Stultz Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- drivers

[Intel-gfx] [PATCH v4 06/11] drm/fb-helper: Make top-level lock more robust

2017-03-29 Thread Thierry Reding
From: Thierry Reding The existing drm_fb_helper_hotplug_event() function needs to take the top-level fb-helper lock. However, the function can also be called from code that has already taken this lock. Introduce an unlocked variant of this function that can be used in the latter case. This

[Intel-gfx] [PATCH v4 11/11] drm/rockchip: Remove unnecessary NULL check

2017-03-29 Thread Thierry Reding
From: Thierry Reding The expression &private->fbdev_helper can never be NULL, so the check is completely unnecessary. Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[Intel-gfx] [PATCH v4 09/11] drm/hisilicon: Remove custom FB helper deferred setup

2017-03-29 Thread Thierry Reding
From: Thierry Reding The FB helper core now supports deferred setup, so the driver's custom implementation can be removed. Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 21 +++-- 1 file changed, 11 inser

[Intel-gfx] [PATCH v4 10/11] drm/atmel-hlcdc: Remove unnecessary NULL check

2017-03-29 Thread Thierry Reding
From: Thierry Reding drm_fbdev_cma_hotplug_event() already checks for NULL pointers before dereferencing, so callers don't need to do that. Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 3 +-- 1 file changed, 1 insertion(

[Intel-gfx] [PATCH v4 03/11] drm/fb-helper: Improve code readability

2017-03-29 Thread Thierry Reding
From: Thierry Reding Add a couple of temporary variables and use shorter names for existing variables in drm_fb_helper_add_one_connector() for better readability. Tested-by: John Stultz Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_fb_helper.c | 25

[Intel-gfx] [PATCH v4 04/11] drm/fb-helper: Push down modeset lock into FB helpers

2017-03-29 Thread Thierry Reding
From: Thierry Reding Move the modeset locking from drivers into FB helpers. Tested-by: John Stultz Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_fb_helper.c| 40 +- drivers/gpu/drm/i915/intel_dp_mst.c| 3

[Intel-gfx] [PATCH v4 08/11] drm/exynos: Remove custom FB helper deferred setup

2017-03-29 Thread Thierry Reding
From: Thierry Reding The FB helper core now supports deferred setup, so the driver's custom implementation can be removed. Signed-off-by: Thierry Reding --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 6 -- drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 23 --- 2

[Intel-gfx] [PATCH v4 07/11] drm/fb-helper: Support deferred setup

2017-03-29 Thread Thierry Reding
From: Thierry Reding FB helper code falls back to a 1024x768 mode if no outputs are connected or don't report back any modes upon initialization. This can be annoying because outputs that are added to FB helper later on can't be used with FB helper if they don't support a matc

Re: [Intel-gfx] [PATCH v4 06/11] drm/fb-helper: Make top-level lock more robust

2017-03-29 Thread Thierry Reding
On Wed, Mar 29, 2017 at 04:43:56PM +0200, Thierry Reding wrote: > From: Thierry Reding > > The existing drm_fb_helper_hotplug_event() function needs to take the > top-level fb-helper lock. However, the function can also be called from > code that has already taken this loc

Re: [Intel-gfx] [PATCH v2] pwm: lpss: Make builtin so that i915 can find the pwm_backlight

2017-01-19 Thread Thierry Reding
On Thu, Jan 19, 2017 at 06:58:30PM +0100, Hans de Goede wrote: > The primary consumer of the lpss pwm is the i915 kms driver, > the i915 driver does not support get_pwm returning -EPROBE_DEFER and > its init is very complex making this is almost impossible to fix. > > This commit changes the PWM_L

Re: [Intel-gfx] [PATCH v2] pwm: lpss: Make builtin so that i915 can find the pwm_backlight

2017-01-19 Thread Thierry Reding
On Fri, Jan 20, 2017 at 08:03:33AM +0100, Thierry Reding wrote: > On Thu, Jan 19, 2017 at 06:58:30PM +0100, Hans de Goede wrote: > > The primary consumer of the lpss pwm is the i915 kms driver, > > the i915 driver does not support get_pwm returning -EPROBE_DEFER and > > its

Re: [Intel-gfx] [PATCH v2] pwm: lpss: Make builtin so that i915 can find the pwm_backlight

2017-01-20 Thread Thierry Reding
On Fri, Jan 20, 2017 at 10:02:50AM +0200, Jani Nikula wrote: > On Fri, 20 Jan 2017, Thierry Reding wrote: > > On Thu, Jan 19, 2017 at 06:58:30PM +0100, Hans de Goede wrote: > >> The primary consumer of the lpss pwm is the i915 kms driver, > >> the i915 driver does no

Re: [Intel-gfx] [PATCH v2] pwm: lpss: Make builtin so that i915 can find the pwm_backlight

2017-01-20 Thread Thierry Reding
On Fri, Jan 20, 2017 at 10:48:52AM +0100, Hans de Goede wrote: > Hi, > > On 20-01-17 09:56, Thierry Reding wrote: > > On Fri, Jan 20, 2017 at 10:02:50AM +0200, Jani Nikula wrote: > > > On Fri, 20 Jan 2017, Thierry Reding wrote: > > > > On Thu, Jan 19, 201

Re: [Intel-gfx] [PATCH v2] pwm: lpss: Make builtin so that i915 can find the pwm_backlight

2017-01-20 Thread Thierry Reding
On Fri, Jan 20, 2017 at 11:18:29AM +0100, Hans de Goede wrote: > Hi, > > On 20-01-17 10:55, Andy Shevchenko wrote: > > On Fri, 2017-01-20 at 10:48 +0100, Hans de Goede wrote: > > > I'm fine with doing a v3 with a comment, how about putting that > > > comment > > > right at all the module* stuff an

Re: [Intel-gfx] [PATCH 3/8] drm/aperture: Remove primary argument

2023-04-05 Thread Thierry Reding
rmann > Cc: Javier Martinez Canillas > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Deepak Rawat > Cc: Neil Armstrong > Cc: Kevin Hilman > Cc: Jerome Brunet > Cc: Martin Blumenstingl > Cc: Thierry Reding > Cc: Jonathan Hunter > Cc: Emma Anholt > Cc: Helge

Re: [Intel-gfx] [PATCH v5 09/13] drm/tegra: Use regular fbdev I/O helpers

2023-06-01 Thread Thierry Reding
pers directly within each DRM fbdev emulation, > we can eventually remove DRM's wrapper functions entirely. > > v4: > * use initializer macros for struct fb_ops > v2: > * use FB_SYS_HELPERS option > > Signed-off-by: Thomas Zimmermann > Acked-by: Sam Ra

Re: [Intel-gfx] [PATCH v5 1/4] pwm: rename pwm_apply_state() to pwm_apply_cansleep()

2023-11-24 Thread Thierry Reding
On Sat, Nov 18, 2023 at 04:16:17PM +, Sean Young wrote: > In order to introduce a pwm api which can be used from atomic context, > we will need two functions for applying pwm changes: > > int pwm_apply_cansleep(struct pwm *, struct pwm_state *); > int pwm_apply_atomic(struct pwm *,

Re: [Intel-gfx] [PATCH 4/9] drm/tegra: convert to using is_hdmi from display info

2022-09-15 Thread Thierry Reding
On Thu, Sep 01, 2022 at 03:47:06PM +0300, Jani Nikula wrote: > Prefer the parsed results for is_hdmi in display info over calling > drm_detect_hdmi_monitor(). > > Cc: Thierry Reding > Cc: linux-te...@vger.kernel.org > Signed-off-by: Jani Nikula > --- > drivers/

Re: [Intel-gfx] [PATCH v2] drm/scdc-helper: Pimp SCDC debugs

2023-04-04 Thread Thierry Reding
> Cc: Neil Armstrong > Cc: Robert Foss > Cc: Laurent Pinchart > Cc: Jonas Karlman > Cc: Jernej Skrabec > Cc: Thierry Reding > Cc: Emma Anholt > Cc: Maxime Ripard > Cc: intel-gfx@lists.freedesktop.org > Cc: linux-te...@vger.kernel.org > Signed-off-by: Ville Syrj

Re: [Intel-gfx] [PATCH 05/12] video/hdmi: Don't let the user of this API create invalid infoframes

2013-08-15 Thread Thierry Reding
On Wed, Aug 14, 2013 at 06:19:08PM +0100, Damien Lespiau wrote: > To set the active aspect ratio value in the AVI infoframe today, you not > only have to set the active_aspect field, but also the active_info_valid > bit. Out of the 1 user of this API, we had 100% misuse, forgetting the > _valid bit

Re: [Intel-gfx] [PATCH 06/12] video/hdmi: Derive the bar data valid bit from the bar data fields

2013-08-15 Thread Thierry Reding
On Wed, Aug 14, 2013 at 06:19:09PM +0100, Damien Lespiau wrote: > Just like: > > Author: Damien Lespiau > Date: Mon Aug 12 11:53:24 2013 +0100 > > video/hdmi: Don't let the user of this API create invalid infoframes > > But this time for the horizontal/vertical bar data present bits

Re: [Intel-gfx] [PATCH 07/12] video/hdmi: Introduce helpers for the HDMI vendor specific infoframe

2013-08-15 Thread Thierry Reding
On Wed, Aug 14, 2013 at 06:19:10PM +0100, Damien Lespiau wrote: [...] > diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c > index ac84215..59c4748 100644 > --- a/drivers/video/hdmi.c > +++ b/drivers/video/hdmi.c > @@ -286,6 +286,94 @@ ssize_t hdmi_audio_infoframe_pack(struct > hdmi_audio_in

Re: [Intel-gfx] [PATCH 09/12] drm/edid: Move HDMI_IDENTIFIER to hdmi.h

2013-08-15 Thread Thierry Reding
On Wed, Aug 14, 2013 at 06:19:12PM +0100, Damien Lespiau wrote: [...] > +#define HDMI_IDENTIFIER 0x000c03 HDMI_IDENTIFIER sounds really generic. Perhaps HDMI_INFOFRAME_OUI_HDMI? Thierry pgpsLkgvKVXmx.pgp Description: PGP signature ___ Intel-gfx mailin

Re: [Intel-gfx] [PATCH 10/12] video/hdmi: Hook the HDMI vendor infoframe with the generic _pack()

2013-08-15 Thread Thierry Reding
On Wed, Aug 14, 2013 at 06:19:13PM +0100, Damien Lespiau wrote: [...] > diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h [...] > +union hdmi_vendor_infoframe { > + struct { > + enum hdmi_infoframe_type type; > + unsigned char version; > + unsigned cha

Re: [Intel-gfx] [PATCH 09/12] drm/edid: Move HDMI_IDENTIFIER to hdmi.h

2013-08-19 Thread Thierry Reding
On Mon, Aug 19, 2013 at 02:49:50PM +0100, Damien Lespiau wrote: > On Thu, Aug 15, 2013 at 05:12:00PM +0200, Thierry Reding wrote: > > On Wed, Aug 14, 2013 at 06:19:12PM +0100, Damien Lespiau wrote: > > [...] > > > +#define HDMI_IDENTIFIER 0x000c03 > > > > H

Re: [Intel-gfx] [PATCH] drm/fb-helper: Fix hpd vs. initial config races

2014-04-17 Thread Thierry Reding
s the hotplug event for an external hdmi screen, > but also reliably boots to quickly for the hpd pin to be asserted when > the fb helper calls into the hdmi ->detect function. > > Cc: Thierry Reding > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/drm_fb_helper.c |

Re: [Intel-gfx] [PATCH] drm/fb-helper: Fix hpd vs. initial config races

2014-04-22 Thread Thierry Reding
On Tue, Apr 22, 2014 at 10:26:37AM +0200, Daniel Vetter wrote: > On Thu, Apr 17, 2014 at 10:38:17AM +0200, Thierry Reding wrote: > > On Wed, Apr 16, 2014 at 04:45:21PM +0200, Daniel Vetter wrote: > > > Some drivers need to be able to have a perfect race-free fbcon setup. > >

Re: [Intel-gfx] [PATCH] drm/fb-helper: Fix hpd vs. initial config races

2014-04-22 Thread Thierry Reding
On Tue, Apr 22, 2014 at 10:26:37AM +0200, Daniel Vetter wrote: > On Thu, Apr 17, 2014 at 10:38:17AM +0200, Thierry Reding wrote: > > On Wed, Apr 16, 2014 at 04:45:21PM +0200, Daniel Vetter wrote: > > > Some drivers need to be able to have a perfect race-free fbcon setup. > >

[Intel-gfx] [PATCH 3/4] drm: Introduce drm_fb_helper_prepare()

2014-04-22 Thread Thierry Reding
From: Thierry Reding To implement hotplug detection in a race-free manner, drivers must call drm_kms_helper_poll_init() before hotplug events can be triggered. Such events can be triggered right after any of the encoders or connectors are initialized. At the same time, if the

[Intel-gfx] [PATCH 1/4] drm/fb-helper: Fix hpd vs. initial config races

2014-04-22 Thread Thierry Reding
oof of concept. Feature requested by Thierry since his tegra driver atm reliably boots slowly enough to misses the hotplug event for an external hdmi screen, but also reliably boots to quickly for the hpd pin to be asserted when the fb helper calls into the hdmi ->detect function. Cc: Thierry

[Intel-gfx] [PATCH 4/4] drm/tegra: Implement race-free hotplug detection

2014-04-22 Thread Thierry Reding
From: Thierry Reding A race condition currently exists on Tegra, where it can happen that a monitor attached via HDMI isn't detected during the initial FB helper setup, but the hotplug event happens too early to be processed by the poll helpers because they haven't been initialized

[Intel-gfx] [PATCH 2/4] drm: Constify struct drm_fb_helper_funcs

2014-04-22 Thread Thierry Reding
From: Thierry Reding There's no need for this to be modifiable. Make it const so that it can be put into the .rodata section. Signed-off-by: Thierry Reding --- drivers/gpu/drm/armada/armada_fbdev.c | 2 +- drivers/gpu/drm/ast/ast_fb.c | 2 +- drivers/gpu/drm/

Re: [Intel-gfx] [PATCH 3/4] drm: Introduce drm_fb_helper_prepare()

2014-04-23 Thread Thierry Reding
On Tue, Apr 22, 2014 at 05:54:06PM +0200, Daniel Vetter wrote: > On Tue, Apr 22, 2014 at 04:42:20PM +0200, Thierry Reding wrote: [...] > > diff --git a/drivers/gpu/drm/drm_fb_helper.c > > b/drivers/gpu/drm/drm_fb_helper.c [...] > > @@ -502,6 +503,33 @@ static void drm_fb_he

Re: [Intel-gfx] [PATCH 3/4] drm: Introduce drm_fb_helper_prepare()

2014-04-23 Thread Thierry Reding
On Wed, Apr 23, 2014 at 09:35:48AM +0200, Daniel Vetter wrote: > On Wed, Apr 23, 2014 at 09:14:41AM +0200, Thierry Reding wrote: > > On Tue, Apr 22, 2014 at 05:54:06PM +0200, Daniel Vetter wrote: > > > On Tue, Apr 22, 2014 at 04:42:20PM +0200, Thierry Reding wrote: > > [.

Re: [Intel-gfx] [PATCH 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-05-13 Thread Thierry Reding
On Mon, May 12, 2014 at 10:03:55AM +0200, Daniel Vetter wrote: > On Mon, May 12, 2014 at 11:37:53AM +0530, Sagar Arun Kamble wrote: > > I support approach using docbook to start since there are not lot of > > properties. Laurent has ack'ed this one. Can we go ahead with this? > > http://lists.freed

Re: [Intel-gfx] [PATCH 05/10] drm: add a path blob property

2014-05-13 Thread Thierry Reding
On Mon, May 12, 2014 at 04:46:42PM +1000, Dave Airlie wrote: > From: Dave Airlie > > This property will be used by the MST code to provide userspace > with a path to parse so it can recognise connectors around hotplugs. > > Signed-off-by: Dave Airlie > --- > drivers/gpu/drm/drm_crtc.c | 26 +++

Re: [Intel-gfx] [PATCH 04/10] drm/crtc: add interface to reinitialise the legacy mode group

2014-05-13 Thread Thierry Reding
On Mon, May 12, 2014 at 04:46:41PM +1000, Dave Airlie wrote: > From: Dave Airlie > > This can be called to update things after dynamic connectors/encoders > are created/deleted. > > Signed-off-by: Dave Airlie > --- > drivers/gpu/drm/drm_crtc.c | 9 + > include/drm/drm_crtc.h | 1 +

Re: [Intel-gfx] [PATCH 10/10] i915: mst topology dumper in debugfs

2014-05-13 Thread Thierry Reding
On Mon, May 12, 2014 at 04:46:47PM +1000, Dave Airlie wrote: [...] > @@ -3813,6 +3838,7 @@ static const struct drm_info_list i915_debugfs_list[] = > { > {"i915_pc8_status", i915_pc8_status, 0}, > {"i915_power_domain_info", i915_power_domain_info, 0}, > {"i915_display_info", i915_

Re: [Intel-gfx] [PATCH 1/1] Documentation: drm: describing drm properties exposed by various drivers

2014-05-13 Thread Thierry Reding
On Tue, May 13, 2014 at 09:34:45AM +0200, Daniel Vetter wrote: > On Tue, May 13, 2014 at 9:17 AM, Thierry Reding > wrote: > > On Mon, May 12, 2014 at 10:03:55AM +0200, Daniel Vetter wrote: > >> On Mon, May 12, 2014 at 11:37:53AM +0530, Sagar Arun Kamble wrote: > >&

Re: [Intel-gfx] [PATCH 10/10] i915: mst topology dumper in debugfs

2014-05-13 Thread Thierry Reding
On Tue, May 13, 2014 at 12:18:35PM +0200, Daniel Vetter wrote: > On Tue, May 13, 2014 at 10:33:27AM +0200, Thierry Reding wrote: > > On Mon, May 12, 2014 at 04:46:47PM +1000, Dave Airlie wrote: > > [...] > > > @@ -3813,6 +3838,7 @@ static const struct drm_info_list

Re: [Intel-gfx] Design review request: DRM color manager

2014-05-14 Thread Thierry Reding
On Tue, May 13, 2014 at 09:18:45AM +0530, Sharma, Shashank wrote: > Daniel, > Please find my comments inline. > > Regards > Shashank > On 5/12/2014 8:58 PM, Daniel Vetter wrote: > >On Mon, May 12, 2014 at 05:35:13PM +0530, Sharma, Shashank wrote: > >>Thanks for your time and the comments David. >

Re: [Intel-gfx] Design review request: DRM color manager

2014-05-15 Thread Thierry Reding
On Thu, May 15, 2014 at 10:52:38AM +0530, Sharma, Shashank wrote: [...] > Please note that the color correction methods changes per platform and > what's valid for one Intel platform may not be valid for other. So the > atomic modeset should have a clear idea of what is supported on which > platfor

Re: [Intel-gfx] [PATCH 07/12] drm/irq: kerneldoc polish

2014-05-15 Thread Thierry Reding
On Wed, May 14, 2014 at 08:51:09PM +0200, Daniel Vetter wrote: [...] > diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c [...] > index dd786d84daab..5ff986bd4de4 100644 > --- a/drivers/gpu/drm/drm_irq.c > +++ b/drivers/gpu/drm/drm_irq.c > @@ -1,6 +1,5 @@ > -/** > - * \file drm_irq.

Re: [Intel-gfx] [PATCH 08/12] drm/irq: Add kms-native crtc interface functions

2014-05-15 Thread Thierry Reding
or the reverse lookup. I'd still prefer to have i915 changes in a separate commit, but otherwise: Reviewed-by: Thierry Reding pgpk7N3wuAH7q.pgp Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 08/12] drm/irq: Add kms-native crtc interface functions

2014-05-15 Thread Thierry Reding
On Thu, May 15, 2014 at 12:10:16PM +0200, Daniel Vetter wrote: > On Thu, May 15, 2014 at 9:34 AM, Thierry Reding > wrote: > > This seems slightly backwards. Since drm_vblank_get() is what's being > > deprecated here, wouldn't it make more sense to write > >

Re: [Intel-gfx] [RFC] set up an sync channel between audio and display driver (i.e. ALSA and DRM)

2014-05-20 Thread Thierry Reding
On Tue, May 20, 2014 at 12:04:38PM +0200, Daniel Vetter wrote: > Also adding dri-devel and linux-media. Please don't forget these lists for > the next round. > -Daniel > > On Tue, May 20, 2014 at 12:02:04PM +0200, Daniel Vetter wrote: > > Adding Greg just as an fyi since we've chatted briefly abou

Re: [Intel-gfx] [alsa-devel] [RFC] set up an sync channel between audio and display driver (i.e. ALSA and DRM)

2014-05-20 Thread Thierry Reding
On Tue, May 20, 2014 at 04:45:56PM +0200, Daniel Vetter wrote: > On Tue, May 20, 2014 at 4:29 PM, Imre Deak wrote: > > On Tue, 2014-05-20 at 05:52 +0300, Lin, Mengdong wrote: > >> This RFC is based on previous discussion to set up a generic > >> communication channel between display and audio driv

Re: [Intel-gfx] [alsa-devel] [RFC] set up an sync channel between audio and display driver (i.e. ALSA and DRM)

2014-05-20 Thread Thierry Reding
On Tue, May 20, 2014 at 05:07:51PM +0200, Daniel Vetter wrote: > On 20/05/2014 16:57, Thierry Reding wrote: > >On Tue, May 20, 2014 at 04:45:56PM +0200, Daniel Vetter wrote: > >>>On Tue, May 20, 2014 at 4:29 PM, Imre Deak wrote: > >>>> >On Tue, 2014-05

Re: [Intel-gfx] [PATCH 01/12] drm: Use correct spinlock flavor in drm_vblank_get()

2014-05-21 Thread Thierry Reding
; --- > drivers/gpu/drm/drm_irq.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Thierry Reding pgpk47T2UOhHK.pgp Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesk

Re: [Intel-gfx] [PATCH 02/12] drm: Make the vblank disable timer per-crtc

2014-05-21 Thread Thierry Reding
ked before, why do we even need this timer? Why not simply disable interrupts when the last vblank reference goes away? Generally, though: Reviewed-by: Thierry Reding pgp_M10LG3SwK.pgp Description: PGP signature ___ Intel-gfx mailing list

Re: [Intel-gfx] [PATCH 03/12] drm: Make blocking vblank wait return when the vblank interrupts get disabled

2014-05-21 Thread Thierry Reding
On Wed, May 14, 2014 at 08:51:05PM +0200, Daniel Vetter wrote: > From: Ville Syrjälä > > If there's a blocking vblank wait in progress while the vblank interrupt > gets disabled, the current code will just let the vblank wait time out. > Instead make it return immediately when vblank interrupts g

Re: [Intel-gfx] [PATCH 03/12] drm: Make blocking vblank wait return when the vblank interrupts get disabled

2014-05-21 Thread Thierry Reding
On Wed, May 21, 2014 at 01:20:55PM +0200, Thierry Reding wrote: > On Wed, May 14, 2014 at 08:51:05PM +0200, Daniel Vetter wrote: > > From: Ville Syrjälä > > > > If there's a blocking vblank wait in progress while the vblank interrupt > > gets disabled, the curre

Re: [Intel-gfx] [PATCH 04/12] drm: Add drm_vblank_on()

2014-05-21 Thread Thierry Reding
On Wed, May 14, 2014 at 08:51:06PM +0200, Daniel Vetter wrote: > From: Ville Syrjälä > > drm_vblank_off() will turn off vblank interrupts, but as long as the > refcount is elevated drm_vblank_get() will not re-enable them. This > is a problem is someone is holding a vblank reference while a modes

Re: [Intel-gfx] [PATCH 05/12] drm/i915: Remove drm_vblank_pre/post_modeset calls

2014-05-21 Thread Thierry Reding
On Wed, May 14, 2014 at 08:51:07PM +0200, Daniel Vetter wrote: > Originally these functions have been for user modesetting drivers to > ensure vblank processing doesn't fall over completely around modeset > changes. This has been carried over ever since then. > > Now that Ville cleaned our vblank

Re: [Intel-gfx] [PATCH 09/12] drm/i915: rip our vblank reset hacks for runtime PM

2014-05-21 Thread Thierry Reding
On Tue, May 20, 2014 at 03:03:41PM +0300, Ville Syrjälä wrote: > On Wed, May 14, 2014 at 08:51:11PM +0200, Daniel Vetter wrote: > > Now that we unconditionally dtrt when disabling/enabling crtcs we > > don't need any hacks any longer to keep the vblank logic sane when > > all the registers go poof.

Re: [Intel-gfx] [PATCH 09/12] drm/irq: Lack of interrupt support in drm_vblank_on|off

2014-05-21 Thread Thierry Reding
errupts and hence also not vblank waits. > > Just return early on such drivers. > > Note that with pageflips drivers are free to implement them however > they wish to. > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/drm_irq.c | 6 ++ > 1 file change

Re: [Intel-gfx] [PATCH 11/12] [RFC] drm/irq: More robustness in drm_vblank_on|off

2014-05-21 Thread Thierry Reding
On Wed, May 14, 2014 at 08:51:16PM +0200, Daniel Vetter wrote: > If we want to use this functionality in generic helpers to make > sure that all drivers have somewhat sane vblank handling across > modesets/dpms, we need to make it work for all drivers. But some > don't support interrupts and hence

Re: [Intel-gfx] [PATCH 00/12] irq vblank handling rework

2014-05-21 Thread Thierry Reding
On Wed, May 21, 2014 at 10:35:59AM +0200, Daniel Vetter wrote: > On Wed, May 21, 2014 at 11:26:55AM +0300, Ville Syrjälä wrote: > > For everything but the reset_vblank_counter() thing: > > Reviewed-by: Ville Syrjälä > > > > And another caveat: I only glanced at the crtc_helper stuff. It looks > >

Re: [Intel-gfx] [PATCH 1/3] drm/crtc: Add property for aspect ratio

2014-05-22 Thread Thierry Reding
On Thu, May 22, 2014 at 04:50:48PM +0530, Vandana Kannan wrote: > Added a property to enable user space to set aspect ratio. > This patch contains declaration of the property and code to create the > property. > > Signed-off-by: Vandana Kannan > Cc: dri-de...@lists.freedesktop.org > --- > driver

Re: [Intel-gfx] [PATCH 2/3] drm/edid: Check for user aspect ratio input

2014-05-22 Thread Thierry Reding
On Thu, May 22, 2014 at 04:50:49PM +0530, Vandana Kannan wrote: > In case user has specified an input for aspect ratio through the property, > then the user space value for PAR would take preference over the value from > CEA mode list. > > Signed-off-by: Vandana Kannan > Cc: dri-de...@lists.freed

Re: [Intel-gfx] [PATCH v2 2/4] drm/edid: Check for user aspect ratio input

2014-06-04 Thread Thierry Reding
t; - Modified the comment "Populate..." as per review comments > > Signed-off-by: Vandana Kannan > Cc: Thierry Reding > Cc: Daniel Vetter > > --- > drivers/gpu/drm/drm_edid.c | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff

Re: [Intel-gfx] [PATCH v2 1/4] drm/crtc: Add property for aspect ratio

2014-06-04 Thread Thierry Reding
struct drm_property *dirty_info_property; This seems rather randomly inserted into the list. I think either the list should be sorted alphabetically or you should append new entries. But that's somewhat bikesheddy, so feel free to ignore. With my first comment addressed: Reviewed-by:

Re: [Intel-gfx] [PATCH v3 2/4] drm/edid: Check for user aspect ratio input

2014-06-05 Thread Thierry Reding
t; - Modified the comment "Populate..." as per review comments > > v3: Thierry's review comments. > - Modified the comment to block comment format. > > Signed-off-by: Vandana Kannan > Cc: Thierry Reding > --- > drivers/gpu/drm/drm_edid.c |

Re: [Intel-gfx] [PATCH v3 1/4] drm/crtc: Add property for aspect ratio

2014-06-05 Thread Thierry Reding
On Thu, Jun 05, 2014 at 02:40:08PM +0530, Vandana Kannan wrote: [...] > diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c [...] > /** > + * drm_mode_create_aspect_ratio_property - create aspect ratio property > + * @dev: DRM device > + * > + * Called by a driver the first time i

Re: [Intel-gfx] [PATCH v3 1/4] drm/crtc: Add property for aspect ratio

2014-06-10 Thread Thierry Reding
On Tue, Jun 10, 2014 at 02:00:37PM +0530, Vandana Kannan wrote: > On Jun-05-2014 2:58 PM, Thierry Reding wrote: > > On Thu, Jun 05, 2014 at 02:40:08PM +0530, Vandana Kannan wrote: > > [...] > >> diff --git a/drivers/gpu/drm/drm_crtc.c b/dr

[Intel-gfx] [PATCH v5 3/5] drm/dp: Add DisplayPort link helpers

2014-02-20 Thread Thierry Reding
From: Thierry Reding Add a helper to probe a DP link (read out the supported DPCD revision, maximum rate, link count and capabilities) as well as power up the DP link and configure it accordingly. Reviewed-by: Alex Deucher Reviewed-by: Jani Nikula Signed-off-by: Thierry Reding --- Changes in

[Intel-gfx] [PATCH v5 1/5] drm/dp: Add AUX channel infrastructure

2014-02-20 Thread Thierry Reding
From: Thierry Reding This is a superset of the current i2c_dp_aux bus functionality and can be used to transfer native AUX in addition to I2C-over-AUX messages. Helpers are provided to read and write the DPCD, either blockwise or byte-wise. Many of the existing helpers for DisplayPort take a

[Intel-gfx] [PATCH v5 2/5] drm/dp: Add drm_dp_dpcd_read_link_status()

2014-02-20 Thread Thierry Reding
From: Thierry Reding The function reads the link status (6 bytes starting at offset 0x202) from the DPCD so that it can be conveniently passed to other DPCD helpers. Reviewed-by: Alex Deucher Reviewed-by: Jani Nikula Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 16

[Intel-gfx] [PATCH v5 4/5] drm/dp: Allow registering AUX channels as I2C busses

2014-02-20 Thread Thierry Reding
From: Thierry Reding Implements an I2C-over-AUX I2C adapter on top of the generic drm_dp_aux infrastructure. It extracts the retry logic from existing drivers, which should help in porting those drivers to this new helper. Reviewed-by: Alex Deucher Reviewed-by: Jani Nikula Signed-off-by

[Intel-gfx] [PATCH v5 0/5] drm/dp: Introduce AUX channel infrastructure

2014-02-20 Thread Thierry Reding
From: Thierry Reding Hi, This small series introduces some infrastructure to support AUX channels in a generic way. Drivers make use of it by embedding and filling in a struct drm_dp_aux. Various helpers can then be used to for example read from or write to the DPCD. Patch 1 adds the basic

Re: [Intel-gfx] [PATCH v4 5/5] drm/tegra: Add eDP support

2014-02-25 Thread Thierry Reding
On Wed, Jan 22, 2014 at 02:14:07PM -0700, Stephen Warren wrote: > On 01/21/2014 12:24 PM, Thierry Reding wrote: [...] > > +static void tegra_dpaux_write_fifo(struct tegra_dpaux *dpaux, const u8 > > *buffer, > > Is that anything like writesl(); similar for > tegra_dpaux_

Re: [Intel-gfx] [PATCH 1/1] drm/i915: Enabling 128x128 and 256x256 ARGB Cursor Support

2014-02-25 Thread Thierry Reding
On Tue, Feb 18, 2014 at 03:13:33PM +0200, Ville Syrjälä wrote: [...] > Once we have drm_planes for cursors, I was thinking we might add some kind > of enum property that lists all the supported sizes for the plane. This comment was intriguing, so I was wondering whether you could elaborate a littl

Re: [Intel-gfx] [PATCH 0/6] Intel Color Manager Framework

2014-02-25 Thread Thierry Reding
On Fri, Feb 21, 2014 at 10:41:14AM -0500, Alex Deucher wrote: > On Fri, Feb 21, 2014 at 9:46 AM, Ville Syrjälä > wrote: > > On Fri, Feb 21, 2014 at 02:20:24PM +, Sharma, Shashank wrote: > >> Hi Ville, > >> > >> Thanks for your time and comments. > >> I can understand two basic problems what yo

Re: [Intel-gfx] [RFC PATCH] drm/dp: let drivers specify the name of the I2C-over-AUX adapter

2014-03-10 Thread Thierry Reding
t; + * NULL, dev_name() of .dev will be used. > + * Nit: That new paragraph sticks out because it's wider than the rest, even though it still fits into 80 characters. I don't feel all that strongly about either of the above, so: Reviewed-by: Thierry Reding pgpZN07uvRcGA.pgp D

Re: [Intel-gfx] [PATCH 1/2] drm/crtc-helper: fix locking for drm_helper_disable_unused_functions

2014-03-21 Thread Thierry Reding
adding locking > WARNs as part of the recent kerneldoc abi polishing done in Tested-by: Thierry Reding pgptSZEMMOr8y.pgp Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 2/2] drm/fb-helper: improve drm_fb_helper_initial_config locking

2014-03-21 Thread Thierry Reding
and nouveau in drm_fb_helper_initial_config. Fixes any of the WARNINGs remaining after patch 1/2 for me on Tegra as well, so: Tested-by: Thierry Reding pgp9xXBCMW7V6.pgp Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.

Re: [Intel-gfx] [PATCH] drm/plane_helper: don't disable plane in destroy function

2014-04-11 Thread Thierry Reding
trying to disable things harder is a bit a bug. Caught by Thierry > since it resulted in some mode_config.mutex locking backtraces. > > Cc: Thierry Reding > Cc: Matt Roper > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/drm_plane_helper.c | 1 - > 1 file changed,

Re: [Intel-gfx] [PATCH] drm: Don't split up debug output

2013-11-18 Thread Thierry Reding
string and va_list can be properly verified for correctness. I guess we leave it up to the compiler to do that verification using the __printf() annotation, so I think it should be fine to use it here: Reviewed-by: Thierry Reding pgpb1iR3mjIM2.pgp Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 1/2] drm/dp: add eDP 1.2 display control DPCD register definitions

2013-11-18 Thread Thierry Reding
On Fri, Nov 15, 2013 at 03:01:50PM +0200, Jani Nikula wrote: > Preparing for the future eDP panels. > > Signed-off-by: Jani Nikula > --- > include/drm/drm_dp_helper.h | 29 + > 1 file changed, 29 insertions(+) Reviewed-by: Thierry Reding

Re: [Intel-gfx] [PATCH 2/2] drm/i915/dp: check eDP display control capability registers

2013-11-18 Thread Thierry Reding
t's a matter of time. Give > ourselves a reminder when we need to fix this for real. > > Signed-off-by: Jani Nikula > --- > drivers/gpu/drm/i915/intel_dp.c | 14 ++ > 1 file changed, 14 insertions(+) I have a few general comments below, but this patch itself

Re: [Intel-gfx] [PATCH 2/2] drm/i915/dp: check eDP display control capability registers

2013-11-18 Thread Thierry Reding
On Mon, Nov 18, 2013 at 10:09:56AM -0500, Alex Deucher wrote: > On Mon, Nov 18, 2013 at 9:27 AM, Thierry Reding > wrote: > > On Fri, Nov 15, 2013 at 03:01:51PM +0200, Jani Nikula wrote: > >> Debug print the capabilities, and flag an error if the panel does not > >&g

<    1   2   3   4   5   >