* [PATCH] drm/i915: remove pixel doubled HDMI modes from valid modes list
@ 2014-08-11 22:33 clinton.a.taylor
2014-08-12 6:39 ` Chris Wilson
0 siblings, 1 reply; 4+ messages in thread
From: clinton.a.taylor @ 2014-08-11 22:33 UTC (permalink / raw)
To: Intel-gfx
From: Clint Taylor <clinton.a.taylor@intel.com>
Intel HDMI does not correctly configure pixel replicated HDMI modes
480i and 576i. Remove support for these modes until DRM has been
changed to correctly identify SD interlaced modes by reporting there
true horizontal resolution 720 instead of the pre-pixel doubled 1440.
Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
---
drivers/gpu/drm/i915/intel_hdmi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index 5f47d35..ab32523 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -873,6 +873,9 @@ intel_hdmi_mode_valid(struct drm_connector *connector,
if (mode->flags & DRM_MODE_FLAG_DBLSCAN)
return MODE_NO_DBLESCAN;
+ if (mode->flags & DRM_MODE_FLAG_DBLCLK)
+ return MODE_NO_INTERLACE;
+
return MODE_OK;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: remove pixel doubled HDMI modes from valid modes list
2014-08-11 22:33 [PATCH] drm/i915: remove pixel doubled HDMI modes from valid modes list clinton.a.taylor
@ 2014-08-12 6:39 ` Chris Wilson
2014-08-12 6:59 ` Daniel Vetter
0 siblings, 1 reply; 4+ messages in thread
From: Chris Wilson @ 2014-08-12 6:39 UTC (permalink / raw)
To: clinton.a.taylor; +Cc: Intel-gfx
On Mon, Aug 11, 2014 at 03:33:02PM -0700, clinton.a.taylor@intel.com wrote:
> From: Clint Taylor <clinton.a.taylor@intel.com>
>
> Intel HDMI does not correctly configure pixel replicated HDMI modes
> 480i and 576i. Remove support for these modes until DRM has been
> changed to correctly identify SD interlaced modes by reporting there
> true horizontal resolution 720 instead of the pre-pixel doubled 1440.
>
> Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
> ---
> drivers/gpu/drm/i915/intel_hdmi.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index 5f47d35..ab32523 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -873,6 +873,9 @@ intel_hdmi_mode_valid(struct drm_connector *connector,
> if (mode->flags & DRM_MODE_FLAG_DBLSCAN)
> return MODE_NO_DBLESCAN;
>
If it is just a workaround for a drm bug. You need a big comment
explaining why you w/a rather than pressing for the bug fix.
> + if (mode->flags & DRM_MODE_FLAG_DBLCLK)
> + return MODE_NO_INTERLACE;
> +
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: remove pixel doubled HDMI modes from valid modes list
2014-08-12 6:39 ` Chris Wilson
@ 2014-08-12 6:59 ` Daniel Vetter
2014-08-12 17:11 ` Clint Taylor
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Vetter @ 2014-08-12 6:59 UTC (permalink / raw)
To: Chris Wilson, clinton.a.taylor, Intel-gfx
On Tue, Aug 12, 2014 at 07:39:24AM +0100, Chris Wilson wrote:
> On Mon, Aug 11, 2014 at 03:33:02PM -0700, clinton.a.taylor@intel.com wrote:
> > From: Clint Taylor <clinton.a.taylor@intel.com>
> >
> > Intel HDMI does not correctly configure pixel replicated HDMI modes
> > 480i and 576i. Remove support for these modes until DRM has been
> > changed to correctly identify SD interlaced modes by reporting there
> > true horizontal resolution 720 instead of the pre-pixel doubled 1440.
> >
> > Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_hdmi.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> > index 5f47d35..ab32523 100644
> > --- a/drivers/gpu/drm/i915/intel_hdmi.c
> > +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> > @@ -873,6 +873,9 @@ intel_hdmi_mode_valid(struct drm_connector *connector,
> > if (mode->flags & DRM_MODE_FLAG_DBLSCAN)
> > return MODE_NO_DBLESCAN;
> >
>
> If it is just a workaround for a drm bug. You need a big comment
> explaining why you w/a rather than pressing for the bug fix.
Well there's a very small chance I'll take this anyway - if the drm core
is broken we need to take out the mode from the drm core, not here.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: remove pixel doubled HDMI modes from valid modes list
2014-08-12 6:59 ` Daniel Vetter
@ 2014-08-12 17:11 ` Clint Taylor
0 siblings, 0 replies; 4+ messages in thread
From: Clint Taylor @ 2014-08-12 17:11 UTC (permalink / raw)
To: Daniel Vetter, Chris Wilson, Intel-gfx
On 08/11/2014 11:59 PM, Daniel Vetter wrote:
> On Tue, Aug 12, 2014 at 07:39:24AM +0100, Chris Wilson wrote:
>> On Mon, Aug 11, 2014 at 03:33:02PM -0700, clinton.a.taylor@intel.com wrote:
>>> From: Clint Taylor <clinton.a.taylor@intel.com>
>>>
>>> Intel HDMI does not correctly configure pixel replicated HDMI modes
>>> 480i and 576i. Remove support for these modes until DRM has been
>>> changed to correctly identify SD interlaced modes by reporting there
>>> true horizontal resolution 720 instead of the pre-pixel doubled 1440.
>>>
>>> Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
>>> ---
>>> drivers/gpu/drm/i915/intel_hdmi.c | 3 +++
>>> 1 file changed, 3 insertions(+)
>>>
>>> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
>>> index 5f47d35..ab32523 100644
>>> --- a/drivers/gpu/drm/i915/intel_hdmi.c
>>> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
>>> @@ -873,6 +873,9 @@ intel_hdmi_mode_valid(struct drm_connector *connector,
>>> if (mode->flags & DRM_MODE_FLAG_DBLSCAN)
>>> return MODE_NO_DBLESCAN;
>>>
>>
>> If it is just a workaround for a drm bug. You need a big comment
>> explaining why you w/a rather than pressing for the bug fix.
>
> Well there's a very small chance I'll take this anyway - if the drm core
> is broken we need to take out the mode from the drm core, not here.
> -Daniel
>
Agreed this is not the correct solution to fix the issue. Advertising
that we support bad geometry is also incorrect.
Clint
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-12 17:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 22:33 [PATCH] drm/i915: remove pixel doubled HDMI modes from valid modes list clinton.a.taylor
2014-08-12 6:39 ` Chris Wilson
2014-08-12 6:59 ` Daniel Vetter
2014-08-12 17:11 ` Clint Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox