mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ani Joshi <ajoshi@unixbox.com>
To: Peter Chubb <peter@chubb.wattle.id.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Radeon FB in 2.6.0-test4 fails for me
Date: Tue, 26 Aug 2003 11:02:56 -0700 (PDT)	[thread overview]
Message-ID: <Pine.BSF.4.50.0308261102240.15539-200000@shell.unixbox.com> (raw)
In-Reply-To: <16202.57600.498532.587264@wombat.chubb.wattle.id.au>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1827 bytes --]


try the attatched patch (its against test4).


ani

On Tue, 26 Aug 2003, Peter Chubb wrote:

>
> Hi,
> 	On a Clevo laptop with a Radeon Mobility M7 LW (AGP), enabling
> 	the Radeon frame buffer results in an unusable LCD display (as
> 	if the horizontal and/or vertical sync were incorrect -- lots
> 	of skewed diagonal lines)
>
> The kernel log shows this:
>
>  radeonfb_pci_register BEGIN
>  radeonfb: ref_clk=2700, ref_div=12, xclk=16600 from BIOS
>  radeonfb: probed DDR SGRAM 65536k videoram
>  radeon_get_moninfo: bios 4 scratch = 1000004
>  radeonfb: panel ID string: Samsung LTN150P1-L02
>  radeonfb: detected DFP panel size from BIOS
>  radeonfb: probed DDR SGRAM 65536k videoram
>  radeon_get_moninfo: bios 4 scratch = 1000004
>  radeonfb: panel ID string: Samsung LTN150P1-L02
>  radeonfb: detected DFP panel size from BIOS: 1400x1050
>  radeonfb: ATI Radeon M7 LW DDR SGRAM 64 MB
>  radeonfb: DVI port LCD monitor connected
>  radeonfb: CRT port no monitor connected
>  radeonfb_pci_register END
>  hStart = 1440, hEnd = 1552, hTotal = 1688
>  vStart = 1050, vEnd = 1053, vTotal = 1063
>  h_total_disp = 0xae00d2^I   hsync_strt_wid = 0x8e059a
>  v_total_disp = 0x4190426^I   vsync_strt_wid = 0x830419
>  post div = 0x2
>  fb_div = 0x60
>  ppll_div_3 = 0x10060
>  ron = 1792, roff = 22036
>  vclk_freq = 10800, per = 787
>  Console: switching to colour frame buffer device 175x65
>
>
> With FBDEV disabled in X, I see this in Xfree86.0.log:
> (WW) RADEON(0): LCD: Using default hsync range of 28.00-33.00kHz
> (WW) RADEON(0): LCD: using default vrefresh range of 43.00-72.00Hz
> (II) RADEON(0): Clock range:  12.00 to 350.00 MHz
> ...
> (**) RADEON(0): *Mode "1400x1050": 108.0 MHz (scaled from 0.0 MHz), 64.0 kHz, 60.2 Hz
> (II) RADEON(0): Modeline "1400x1050"  108.00  1400 34208 34320 1688  1050 1050 1053 1063
>

[-- Attachment #2: Type: TEXT/PLAIN, Size: 583 bytes --]

diff -uNr linux-2.6.0-test4.orig/drivers/video/radeonfb.c linux-2.6.0-test4/drivers/video/radeonfb.c
--- linux-2.6.0-test4.orig/drivers/video/radeonfb.c	2003-08-22 17:01:33.000000000 -0700
+++ linux-2.6.0-test4/drivers/video/radeonfb.c	2003-08-26 10:48:03.000000000 -0700
@@ -2090,7 +2090,7 @@
 	
 	}
 	/* Update fix */
-        info->fix.line_length = rinfo->pitch*64;
+        info->fix.line_length = mode->xres_virtual*(mode->bits_per_pixel/8);
         info->fix.visual = rinfo->depth == 8 ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_DIRECTCOLOR;
 
 #ifdef CONFIG_BOOTX_TEXT

  reply	other threads:[~2003-08-26 18:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-26  4:24 Peter Chubb
2003-08-26 18:02 ` Ani Joshi [this message]
2003-08-26 21:08   ` Peter Chubb
2003-09-25 18:46   ` Peter Osterlund

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=Pine.BSF.4.50.0308261102240.15539-200000@shell.unixbox.com \
    --to=ajoshi@unixbox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter@chubb.wattle.id.au \
    /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

all inboxes | Powered by JetHome®