From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check
Date: Fri, 9 Dec 2016 10:36:57 +0100 [thread overview]
Message-ID: <20161209093657.jcalemg5xpumr2ma@lukather> (raw)
In-Reply-To: <CAGb2v65uTH_PD28KqAhhzkE5zhLt54GUb7xXNxxe0xHW0A+xjQ@mail.gmail.com>
On Wed, Dec 07, 2016 at 10:26:25AM +0800, Chen-Yu Tsai wrote:
> > Some panels require an exact frequency, some have a minimal frequency
> > but no maximum, some have a maximum frequency but no minimal, and I
> > guess most of them deviates by how much exactly they can take (and
> > possibly can take more easily a higher frequency, but are less
> > tolerant if you take a frequency lower than the nominal.
> >
> > And we cannot remove that check entirely, since some bridges will
> > report out of range frequencies for higher modes that we know we
> > cannot reach.
>
> I believe this should be handled by the bridge driver in the check
> callback?
This doesn't really have anything to do with the bridge itself, it's a
limitation on the encoder. For all we know, the bridge might be able
to operate at the higher resolutions without any issues if the encoder
was able to.
> The callback I'm changing is attached to the connector, which I
> think doesn't get used if you have a bridge instead. And this only
> checks the pre-registered display modes, such as those specified in
> simple-panel or EDID.
Geeee, I forgot to send that one (and thought I did)... I'll send that
patch next week, but basically, I was creating a mode_valid hook at
the encoder level, and moving the RGB mode_valid hook from the
connector to the encoder (since it really is an encoder limitation).
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20161209/18a5ba71/attachment.sig>
WARNING: multiple messages have this Message-ID (diff)
From: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
To: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
Cc: David Airlie <airlied-cv59FeDIM0c@public.gmane.org>,
dri-devel
<dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
linux-arm-kernel
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
linux-kernel
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-sunxi <linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>,
Laurent Pinchart
<laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>,
Sean Paul <seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org>,
Daniel Vetter <daniel.vetter-/w4YWyX8dFk@public.gmane.org>
Subject: Re: [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check
Date: Fri, 9 Dec 2016 10:36:57 +0100 [thread overview]
Message-ID: <20161209093657.jcalemg5xpumr2ma@lukather> (raw)
In-Reply-To: <CAGb2v65uTH_PD28KqAhhzkE5zhLt54GUb7xXNxxe0xHW0A+xjQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1486 bytes --]
On Wed, Dec 07, 2016 at 10:26:25AM +0800, Chen-Yu Tsai wrote:
> > Some panels require an exact frequency, some have a minimal frequency
> > but no maximum, some have a maximum frequency but no minimal, and I
> > guess most of them deviates by how much exactly they can take (and
> > possibly can take more easily a higher frequency, but are less
> > tolerant if you take a frequency lower than the nominal.
> >
> > And we cannot remove that check entirely, since some bridges will
> > report out of range frequencies for higher modes that we know we
> > cannot reach.
>
> I believe this should be handled by the bridge driver in the check
> callback?
This doesn't really have anything to do with the bridge itself, it's a
limitation on the encoder. For all we know, the bridge might be able
to operate at the higher resolutions without any issues if the encoder
was able to.
> The callback I'm changing is attached to the connector, which I
> think doesn't get used if you have a bridge instead. And this only
> checks the pre-registered display modes, such as those specified in
> simple-panel or EDID.
Geeee, I forgot to send that one (and thought I did)... I'll send that
patch next week, but basically, I was creating a mode_valid hook at
the encoder level, and moving the RGB mode_valid hook from the
connector to the encoder (since it really is an encoder limitation).
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
WARNING: multiple messages have this Message-ID (diff)
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Chen-Yu Tsai <wens@csie.org>
Cc: David Airlie <airlied@linux.ie>,
dri-devel <dri-devel@lists.freedesktop.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-sunxi <linux-sunxi@googlegroups.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Sean Paul <seanpaul@chromium.org>, Eric Anholt <eric@anholt.net>,
Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: Re: [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check
Date: Fri, 9 Dec 2016 10:36:57 +0100 [thread overview]
Message-ID: <20161209093657.jcalemg5xpumr2ma@lukather> (raw)
In-Reply-To: <CAGb2v65uTH_PD28KqAhhzkE5zhLt54GUb7xXNxxe0xHW0A+xjQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1522 bytes --]
On Wed, Dec 07, 2016 at 10:26:25AM +0800, Chen-Yu Tsai wrote:
> > Some panels require an exact frequency, some have a minimal frequency
> > but no maximum, some have a maximum frequency but no minimal, and I
> > guess most of them deviates by how much exactly they can take (and
> > possibly can take more easily a higher frequency, but are less
> > tolerant if you take a frequency lower than the nominal.
> >
> > And we cannot remove that check entirely, since some bridges will
> > report out of range frequencies for higher modes that we know we
> > cannot reach.
>
> I believe this should be handled by the bridge driver in the check
> callback?
This doesn't really have anything to do with the bridge itself, it's a
limitation on the encoder. For all we know, the bridge might be able
to operate at the higher resolutions without any issues if the encoder
was able to.
> The callback I'm changing is attached to the connector, which I
> think doesn't get used if you have a bridge instead. And this only
> checks the pre-registered display modes, such as those specified in
> simple-panel or EDID.
Geeee, I forgot to send that one (and thought I did)... I'll send that
patch next week, but basically, I was creating a mode_valid hook at
the encoder level, and moving the RGB mode_valid hook from the
connector to the encoder (since it really is an encoder limitation).
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2016-12-09 9:36 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-24 11:22 [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check Chen-Yu Tsai
2016-11-24 11:22 ` Chen-Yu Tsai
2016-11-24 11:22 ` Chen-Yu Tsai
2016-11-24 15:15 ` Icenowy Zheng
2016-11-24 15:15 ` Icenowy Zheng
2016-12-06 17:29 ` Maxime Ripard
2016-12-06 17:29 ` Maxime Ripard
2016-12-06 17:29 ` Maxime Ripard
2016-12-07 2:26 ` Chen-Yu Tsai
2016-12-07 2:26 ` Chen-Yu Tsai
2016-12-07 2:26 ` Chen-Yu Tsai
2016-12-07 9:48 ` Laurent Pinchart
2016-12-07 9:48 ` Laurent Pinchart
2016-12-07 9:48 ` Laurent Pinchart
2016-12-09 8:57 ` Maxime Ripard
2016-12-09 8:57 ` Maxime Ripard
2016-12-09 8:57 ` Maxime Ripard
2017-02-23 15:54 ` Sean Paul
2017-02-23 15:54 ` Sean Paul
2017-02-23 15:54 ` Sean Paul
2017-02-24 9:51 ` Lucas Stach
2017-02-24 9:51 ` Lucas Stach
2017-02-24 9:51 ` Lucas Stach
2017-02-24 10:20 ` [linux-sunxi] " Chen-Yu Tsai
2017-02-24 10:20 ` Chen-Yu Tsai
2017-02-24 10:20 ` Chen-Yu Tsai
2017-02-24 23:59 ` Stefan Monnier
2017-02-27 7:47 ` Thierry Reding
2017-02-27 7:47 ` Thierry Reding
2017-02-27 7:47 ` Thierry Reding
2017-02-27 8:26 ` Laurent Pinchart
2017-02-27 8:26 ` Laurent Pinchart
2017-02-27 8:26 ` Laurent Pinchart
2016-12-09 9:36 ` Maxime Ripard [this message]
2016-12-09 9:36 ` Maxime Ripard
2016-12-09 9:36 ` Maxime Ripard
2016-12-07 19:16 ` Eric Anholt
2016-12-07 19:16 ` Eric Anholt
2016-12-07 19:32 ` Laurent Pinchart
2016-12-07 19:32 ` Laurent Pinchart
2016-12-07 19:32 ` Laurent Pinchart
2016-12-09 8:39 ` Maxime Ripard
2016-12-09 8:39 ` Maxime Ripard
2016-12-09 8:39 ` Maxime Ripard
2017-02-22 12:46 ` Icenowy Zheng
2017-02-22 12:46 ` Icenowy Zheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161209093657.jcalemg5xpumr2ma@lukather \
--to=maxime.ripard@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.