From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "Josh Wu" <josh.wu@atmel.com>,
"Bhuvanchandra DV" <bhuvanchandra.dv@toradex.com>,
"Neil Armstrong" <narmstrong@baylibre.com>,
"Eric Anholt" <eric@anholt.net>,
nouveau@lists.freedesktop.org, "Guido Günther" <agx@sigxcpu.org>,
"open list:DRM PANEL DRIVERS" <dri-devel@lists.freedesktop.org>,
"Gustaf Lindström" <gl@axentia.se>,
"Andrzej Hajda" <a.hajda@samsung.com>,
"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
"Philipp Zabel" <philipp.zabel@gmail.com>,
"Sam Ravnborg" <sam@ravnborg.org>,
"Marian-Cristian Rotariu"
<marian-cristian.rotariu.rb@bp.renesas.com>,
"Jagan Teki" <jagan@amarulasolutions.com>,
"Thomas Hellstrom" <thellstrom@vmware.com>,
"Joonyoung Shim" <jy0922.shim@samsung.com>,
"Jonathan Marek" <jonathan@marek.ca>,
"Stefan Mavrodiev" <stefan@olimex.com>,
"Adam Ford" <aford173@gmail.com>,
"Jerry Han" <hanxu5@huaqin.corp-partner.google.com>,
"VMware Graphics" <linux-graphics-maintainer@vmware.com>,
"Ben Skeggs" <bskeggs@redhat.com>,
"H. Nikolaus Schaller" <hns@goldelico.com>,
"Robert Chiras" <robert.chiras@nxp.com>,
"Heiko Schocher" <hs@denx.de>, "Icenowy Zheng" <icenowy@aosc.io>,
"Jonas Karlman" <jonas@kwiboo.se>,
intel-gfx <intel-gfx@lists.freedesktop.org>,
"Maxime Ripard" <mripard@kernel.org>,
"Alexandre Courbot" <acourbot@nvidia.com>,
"Fabio Estevam" <festevam@gmail.com>,
"open list:ARM/Amlogic Meson..."
<linux-amlogic@lists.infradead.org>,
"Vincent Abriou" <vincent.abriou@st.com>,
"Andreas Pretzsch" <apr@cn-eng.de>,
"Jernej Skrabec" <jernej.skrabec@siol.net>,
"Alex Gonzalez" <alex.gonzalez@digi.com>,
"Purism Kernel Team" <kernel@puri.sm>,
"Boris Brezillon" <bbrezillon@kernel.org>,
"Seung-Woo Kim" <sw0312.kim@samsung.com>,
"Christoph Fritz" <chf.fritz@googlemail.com>,
"Kyungmin Park" <kyungmin.park@samsung.com>,
"Heiko Stuebner" <heiko.stuebner@theobroma-systems.com>,
"Eugen Hristev" <eugen.hristev@microchip.com>,
"Giulio Benetti" <giulio.benetti@micronovasrl.com>
Subject: Re: [Intel-gfx] (no subject)
Date: Wed, 26 Feb 2020 17:08:19 +0200 [thread overview]
Message-ID: <20200226150819.GK13686@intel.com> (raw)
In-Reply-To: <CACRpkdZSapEh3sCqGjpnOuX-vbf1C=AjzN7Ryu2v6V5npoWgoA@mail.gmail.com>
On Wed, Feb 26, 2020 at 03:56:36PM +0100, Linus Walleij wrote:
> On Wed, Feb 26, 2020 at 3:34 PM Ville Syrjälä
> <ville.syrjala@linux.intel.com> wrote:
> > On Wed, Feb 26, 2020 at 01:08:06PM +0100, Linus Walleij wrote:
> > > On Wed, Feb 26, 2020 at 12:57 PM Ville Syrjälä
> > > <ville.syrjala@linux.intel.com> wrote:
> > > > On Tue, Feb 25, 2020 at 10:52:25PM +0100, Linus Walleij wrote:
> > >
> > > > > I have long suspected that a whole bunch of the "simple" displays
> > > > > are not simple but contains a display controller and memory.
> > > > > That means that the speed over the link to the display and
> > > > > actual refresh rate on the actual display is asymmetric because
> > > > > well we are just updating a RAM, the resolution just limits how
> > > > > much data we are sending, the clock limits the speed on the
> > > > > bus over to the RAM on the other side.
> > > >
> > > > IMO even in command mode mode->clock should probably be the actual
> > > > dotclock used by the display. If there's another clock for the bus
> > > > speed/etc. it should be stored somewhere else.
> > >
> > > Good point. For the DSI panels we have the field hs_rate
> > > for the HS clock in struct mipi_dsi_device which is based
> > > on exactly this reasoning. And that is what I actually use for
> > > setting the HS clock.
> > >
> > > The problem is however that we in many cases have so
> > > substandard documentation of these panels that we have
> > > absolutely no idea about the dotclock. Maybe we should
> > > just set it to 0 in these cases?
> >
> > Don't you always have a TE interrupt or something like that
> > available? Could just measure it from that if no better
> > information is available?
>
> Yes and I did exactly that, so that is why this comment is in
> the driver:
>
> static const struct drm_display_mode sony_acx424akp_cmd_mode = {
> (...)
> /*
> * Some desired refresh rate, experiments at the maximum "pixel"
> * clock speed (HS clock 420 MHz) yields around 117Hz.
> */
> .vrefresh = 60,
>
> I got a review comment at the time saying 117 Hz was weird.
> We didn't reach a proper conclusion on this:
> https://lore.kernel.org/dri-devel/CACRpkdYW3YNPSNMY3A44GQn8DqK-n9TLvr7uipF7LM_DHZ5=Lg@mail.gmail.com/
>
> Thierry wasn't sure if 60Hz was good or not, so I just had to
> go with something.
>
> We could calculate the resulting pixel clock for ~117 Hz with
> this resolution and put that in the clock field but ... don't know
> what is the best?
I would vote for that approach.
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2020-02-26 15:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-26 11:57 [Intel-gfx] (no subject) Ville Syrjälä
2020-02-26 12:08 ` Linus Walleij
2020-02-26 14:34 ` Ville Syrjälä
2020-02-26 14:56 ` Linus Walleij
2020-02-26 15:08 ` Ville Syrjälä [this message]
[not found] <20220519095508.115203-1-christian.koenig@amd.com>
2022-05-19 10:50 ` Matthew Auld
-- strict thread matches above, loose matches on Subject: below --
2022-09-22 23:31 Alan Previn
2023-05-24 10:23 [Intel-gfx] [PATCH] drm/i915:fix kernel-doc trivial warnings pengfuyuan
2023-06-20 23:55 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
2023-06-21 0:05 ` [Intel-gfx] (no subject) philly j
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=20200226150819.GK13686@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=a.hajda@samsung.com \
--cc=acourbot@nvidia.com \
--cc=aford173@gmail.com \
--cc=agx@sigxcpu.org \
--cc=alex.gonzalez@digi.com \
--cc=apr@cn-eng.de \
--cc=bbrezillon@kernel.org \
--cc=bhuvanchandra.dv@toradex.com \
--cc=bskeggs@redhat.com \
--cc=chf.fritz@googlemail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=eric@anholt.net \
--cc=eugen.hristev@microchip.com \
--cc=festevam@gmail.com \
--cc=giulio.benetti@micronovasrl.com \
--cc=gl@axentia.se \
--cc=hanxu5@huaqin.corp-partner.google.com \
--cc=heiko.stuebner@theobroma-systems.com \
--cc=hns@goldelico.com \
--cc=hs@denx.de \
--cc=icenowy@aosc.io \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jagan@amarulasolutions.com \
--cc=jernej.skrabec@siol.net \
--cc=jonas@kwiboo.se \
--cc=jonathan@marek.ca \
--cc=josh.wu@atmel.com \
--cc=jy0922.shim@samsung.com \
--cc=kernel@puri.sm \
--cc=kyungmin.park@samsung.com \
--cc=linus.walleij@linaro.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-graphics-maintainer@vmware.com \
--cc=marian-cristian.rotariu.rb@bp.renesas.com \
--cc=mripard@kernel.org \
--cc=narmstrong@baylibre.com \
--cc=nouveau@lists.freedesktop.org \
--cc=philipp.zabel@gmail.com \
--cc=robert.chiras@nxp.com \
--cc=sam@ravnborg.org \
--cc=stefan@olimex.com \
--cc=sw0312.kim@samsung.com \
--cc=thellstrom@vmware.com \
--cc=vincent.abriou@st.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox