From: Eric Anholt <eric@anholt.net>
To: Linus Walleij <linus.walleij@linaro.org>,
Thierry Reding <thierry.reding@gmail.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/panel: Fix ARM Versatile panel clocks
Date: Thu, 08 Feb 2018 10:50:58 +0000 [thread overview]
Message-ID: <87372bzre5.fsf@anholt.net> (raw)
In-Reply-To: <20180208095326.15849-1-linus.walleij@linaro.org>
[-- Attachment #1.1: Type: text/plain, Size: 1629 bytes --]
Linus Walleij <linus.walleij@linaro.org> writes:
> These clocks are in kHz not in Hz, oops. Fix it so my
> new bandwidth calculations patch starts working with these
> panels.
>
> Cc: Eric Anholt <eric@anholt.net>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> drivers/gpu/drm/panel/panel-arm-versatile.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-arm-versatile.c b/drivers/gpu/drm/panel/panel-arm-versatile.c
> index 3930b4925b15..35707d0ae6b0 100644
> --- a/drivers/gpu/drm/panel/panel-arm-versatile.c
> +++ b/drivers/gpu/drm/panel/panel-arm-versatile.c
> @@ -132,7 +132,7 @@ static const struct versatile_panel_type versatile_panels[] = {
> .width_mm = 79,
> .height_mm = 54,
> .mode = {
> - .clock = 10000000,
> + .clock = 10000,
> .hdisplay = 320,
> .hsync_start = 320 + 6,
> .hsync_end = 320 + 6 + 6,
> @@ -156,7 +156,7 @@ static const struct versatile_panel_type versatile_panels[] = {
> .width_mm = 171,
> .height_mm = 130,
> .mode = {
> - .clock = 25000000,
> + .clock = 25000,
> .hdisplay = 640,
> .hsync_start = 640 + 24,
> .hsync_end = 640 + 24 + 96,
> @@ -179,7 +179,7 @@ static const struct versatile_panel_type versatile_panels[] = {
> .width_mm = 34,
> .height_mm = 45,
> .mode = {
> - .clock = 625000000,
> + .clock = 625000,
625000kHz still seems really suspicious. The fbdev driver does:
clk_set_rate(fb->clk, (1000000000 / regs.pixclock) * 1000);
which seems really strange to me -- set the clock rate lower as pixclock
increases? What's going on here?
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2018-02-08 11:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-08 9:53 [PATCH] drm/panel: Fix ARM Versatile panel clocks Linus Walleij
2018-02-08 10:50 ` Eric Anholt [this message]
2018-02-11 10:53 ` Linus Walleij
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=87372bzre5.fsf@anholt.net \
--to=eric@anholt.net \
--cc=dri-devel@lists.freedesktop.org \
--cc=linus.walleij@linaro.org \
--cc=thierry.reding@gmail.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 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.