Thread (45 messages) 45 messages, 5 authors, 2003-09-15

Re: Re: New radeonfb, mostly untested

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2003-09-10 17:22:07

It  fails only  if  compiled  as module. I  see  that fb_find_mode  (and
my_atoi) are marked  as __init. Maybe they get discarded  after boot and
when  radeonfb module  tries  to call  them it  ends  up in  deallocated
memory...
Exactly, they should definitely not be marked __init
When booting  with radeonfb  compiled in  the screen  is shifted  on the
left. At 1024x768 it is shifted by 2 characters:

hStart = 1048, hEnd = 1184, hTotal = 1344
vStart = 771, vEnd = 777, vTotal = 806
h_total_disp = 0x7f00a7 hsync_strt_wid = 0x910422
v_total_disp = 0x2ff0325 vsync_strt_wid = 0x860302
pixclock = 15384
freq = 6500
post div = 0x4
fb_div = 0x74
ppll_div_3 = 0x20074
Console: switching to colour frame buffer device 128x48

At 1280x768  (native res of my  LCD - now it  works) it is shifted  by 3
chars:

    Detailed Monitor Information
       108 MHz 1280 1328 1440 1688 1024 1025 1028 1066 +HSync +VSync

       Serial No     :  HD  001699
       Monitor Name  : Philips 170S4
       HorizSync     : 30-82 KHz
       VertRefresh   : 56-76 Hz
       Max Pixelclock: 140 MHz
 ========================================
ATI Radeon NE 9700 R300 SDR SGRAM 128 MB
hStart = 1359, hEnd = 1496, hTotal = 1713
vStart = 1025, vEnd = 1028, vTotal = 1060
h_total_disp = 0x9f00d5 hsync_strt_wid = 0x910559
v_total_disp = 0x3ff0423 vsync_strt_wid = 0x830400
pixclock = 9179
freq = 10894
post div = 0x2
fb_div = 0x61
ppll_div_3 = 0x10061
Console: switching to colour frame buffer device 160x64

This is very  annoying because I must re-center the  screen every time I
switch from  console to X and  viceversa. I had the same  issue with the
old driver + i2c code.

That doesn't happen with the standard modedb. At 1024x768 with
ignore_edid it's ok. At 1280x1024 it falls back to 800x600.
Can you try tweaking the hSync and vSync polarity ?

Ben.
 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help