From: Andrew Morton <akpm@linux-foundation.org>
To: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: Linux-fbdev-devel <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: i810fb: fix wrong pixclock for discrete mode selection
Date: Thu, 19 Nov 2009 14:17:11 -0800 [thread overview]
Message-ID: <20091119141711.c7412dcc.akpm@linux-foundation.org> (raw)
In-Reply-To: <20091119185801.467fbaf8.krzysztof.h1@poczta.fm>
On Thu, 19 Nov 2009 18:58:01 +0100
Krzysztof Helt <krzysztof.h1@poczta.fm> wrote:
> From: Krzysztof Helt <krzysztof.h1@wp.pl>
>
> If the i810fb driver is configured for use only predefined discrete video modes
> the wrong pixclock value is used. The par->regs.pixclock value is a value from
> the previous mode when a video mode is switched. It results in unreadable screen
> if the old video mode has higher resolution and the new mode with the old (high)
> pixclock is outside attached monitor's specs.
>
> Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
> ---
> I have noticed this testing the patch named "i810fb: Fix stack exploding".
>
> This patch requires my patch send to Alan Cox and Andrew Morton
> named "i810fb: Fix stack exploding".
>
> --- drivers/video/i810/i810_dvt.c~ 2009-11-17 19:38:11.002864450 +0100
> +++ drivers/video/i810/i810_dvt.c 2009-11-19 18:48:52.518846238 +0100
Please use `patch -p1' form. That would be:
--- a/drivers/video/i810/i810_dvt.c
+++ a/drivers/video/i810/i810_dvt.c
> @@ -233,7 +233,7 @@ static int i810fb_find_best_mode(u32 xre
> void i810fb_encode_registers(const struct fb_var_screeninfo *var,
> struct i810fb_par *par, u32 xres, u32 yres)
> {
> - u32 i_best = i810fb_find_best_mode(xres, yres, par->regs.pixclock);
> + u32 i_best = i810fb_find_best_mode(xres, yres, var->pixclock);
>
> par->regs = std_modes[i_best];
Confused. My drivers/video/i810/i810_dvt.c is quiet different from yours:
void i810fb_encode_registers(const struct fb_var_screeninfo *var,
struct i810fb_par *par, u32 xres, u32 yres)
{
u32 diff = 0, diff_best = 0xFFFFFFFF, i = 0, i_best = 0;
u8 hfl;
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
prev parent reply other threads:[~2009-11-19 22:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-19 17:58 i810fb: fix wrong pixclock for discrete mode selection Krzysztof Helt
2009-11-19 22:17 ` Andrew Morton [this message]
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=20091119141711.c7412dcc.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=krzysztof.h1@poczta.fm \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).