Skip to contentSkip to conversation

Status of radeonfb in 2.5?

DISCUSSION Nicholas Wourms 7 participants 13 messages Oct 15, 2002 – Nov 21, 2002 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Hi,

I was curious to know if the maintainer for the radeonfb driver was planning to update it wrt James' recent API changes. Considiering it is the latest line available, I'd hope that its brokeness will not be permanent ;-).

Cheers,
Nicholas

-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm

#1 lore raw

radeonfb for 2.5 will be updated in the next release (or 2).

ani

Quoted 12 lines · Nicholas Wourms

Hi,

I was curious to know if the maintainer for the radeonfb driver was planning to update it wrt James' recent API changes. Considiering it is the latest line available, I'd hope that its brokeness will not be permanent ;-).

Cheers,
Nicholas

Quoted 10 lines

-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
Linux-fbdev-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm

#2 lore raw
Quoted 4 lines · Ani Joshi

radeonfb for 2.5 will be updated in the next release (or 2).

Ping? =)

Cheers,
Nicholas

-------------------------------------------------------
This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en

#3 lore raw
In reply to Nicholas Wourms
Quoted 4 lines

I was curious to know if the maintainer for the radeonfb driver was planning to update it wrt James' recent API changes. Considiering it is the latest line available, I'd hope that its brokeness will not be permanent ;-).

I've ported radeonfb 0.1.6 to 2.5.42 (available in the linuxppc-2.5 bk tree) and will port it to James latest changes. Ani (the maintainer) will probably then just use that port.

Ben.

-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm

#4 lore raw
Quoted 9 lines · Benjamin Herrenschmidt
Quoted 1 line

I was curious to know if the maintainer for the radeonfb driver was planning to update it wrt James' recent API changes. Considiering it is the latest line available, I'd hope that its brokeness will not be permanent ;-).

I've ported radeonfb 0.1.6 to 2.5.42 (available in the linuxppc-2.5 bk tree) and will port it to James latest changes. Ani (the maintainer) will probably then just use that port.

Ben.

Excellent! Two other questions (not necessarily related):

A) Is it (or will it ever be) possible to run dual head using two different cards (like radeon & riva-tnt2)? I know there is still much work to be done, but I was curious if this was even remotely possible. Sorta hate to let a good video card go to waste if you know what I mean :-).

B) Does anyone have a painless, yet precise way of generating modelines for fb.modes if you are using XFree-4.2? I only ask because the XFree modelines are all determined by i2c DDC probing, thus there are none in the XF86Config file. The modeline output captured in the log XFree.0.log is not the same output which modeline2fb expects. Anyhow, I've tried using some of the information in the log, but I always get funky results. I may be looking in the wrong place, but the documentation for both the fbdev kernel drivers and the X drivers are sorely out of date, so please excuse me if this is a question that has previously been answered. I just need some formulae to convert values between what shows up in XFree.0.log when i2c DDC probes for the modelines and what needs to go in fb.modes. Thanks in advance!

Cheers,
Nicholas

-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm

#5 lore raw
Quoted 5 lines · Nicholas Wourms

A) Is it (or will it ever be) possible to run dual head using two different cards (like radeon & riva-tnt2)? I know there is still much work to be done, but I was curious if this was even remotely possible.

I think it should theoretically work, but as always the only way to tell is to try it. :)

Quoted 5 lines

B) Does anyone have a painless, yet precise way of generating modelines for fb.modes if you are using XFree-4.2? I only ask because the XFree modelines are all determined by i2c DDC probing, thus there are none in the XF86Config file.

If the X driver supports Option "UseFBDev", you should be able to use fbset with that.

Signature · 10 lines
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast



-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
#6 lore raw
Quoted 9 lines · Michel Dänzer
Quoted 5 lines · Nicholas Wourms

A) Is it (or will it ever be) possible to run dual head using two different cards (like radeon & riva-tnt2)? I know there is still much work to be done, but I was curious if this was even remotely possible.

I think it should theoretically work, but as always the only way to tell is to try it. :)

Well there isn't much on multiheading in the documentation, so I was hoping for some hints or key insights into how to set this up. Is there any special magic that the matrox people use to thell the kernel to initialize both framebuffers?

Quoted 10 lines
Quoted 6 lines

B) Does anyone have a painless, yet precise way of generating modelines for fb.modes if you are using XFree-4.2? I only ask because the XFree modelines are all determined by i2c DDC probing, thus there are none in the XF86Config file.

If the X driver supports Option "UseFBDev", you should be able to use fbset with that.

Huh? The problem is that fbset will not work because I need to populate fb.modes with proper mode lines. So at the moment fbset won't work at all. What I was asking, since the documention was written when XFree 3.x was still in use, was how do I get (calculate) the modelines for fb.modes based on the information the i2c DDC probing XFree-4.2.1 outputs in XFree.0.log? Or is there a better way? What might be cool is if the fb drivers used the lm-sensors(i2c) capabilities to automagically probe the information and set up the most optimal settings. Maybe I'm talking too much about something I'm not all that familiar with... Still, it would be nice =).

Cheers,
Nicholas

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#7 lore raw
Quoted 9 lines · Nicholas Wourms
Quoted 7 lines · Michel Dänzer
Quoted 5 lines · Nicholas Wourms

A) Is it (or will it ever be) possible to run dual head using two different cards (like radeon & riva-tnt2)? I know there is still much work to be done, but I was curious if this was even remotely possible.

Quoted 5 lines
Quoted 2 lines

I think it should theoretically work, but as always the only way to tell is to try it. :)

Well there isn't much on multiheading in the documentation, so I was hoping for some hints or key insights into how to set this up.

Something like video=radeonfb video=riva ?

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

B) Does anyone have a painless, yet precise way of generating modelines for fb.modes if you are using XFree-4.2? I only ask because the XFree modelines are all determined by i2c DDC probing, thus there are none in the XF86Config file.

Quoted 6 lines
Quoted 3 lines

If the X driver supports Option "UseFBDev", you should be able to use fbset with that.

Huh? The problem is that fbset will not work because I need to populate fb.modes with proper mode lines. So at the moment fbset won't work at all.

I was thinking of running X with Option "UseFBDev" and getting information about the modes with fbset.

Signature · 9 lines
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#8 lore raw
Quoted 10 lines · Michel Dänzer
Quoted 10 lines
Quoted 9 lines
Quoted 5 lines

B) Does anyone have a painless, yet precise way of generating modelines for fb.modes if you are using XFree-4.2? I only ask because the XFree modelines are all determined by i2c DDC probing, thus there are none in the XF86Config file.

If the X driver supports Option "UseFBDev", you should be able to use fbset with that.

Quoted 7 lines
Quoted 3 lines

Huh? The problem is that fbset will not work because I need to populate fb.modes with proper mode lines. So at the moment fbset won't work at all.

I was thinking of running X with Option "UseFBDev" and getting information about the modes with fbset.

Hmm... I guess that setting doesn't do what I thought it did. I'll give it a shot and see if it works. Thanks!

Cheers,
Nicholas

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#9 lore raw
In reply to Nicholas Wourms
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Nicholas" == Nicholas Wourms <[email protected]> writes:

Nicholas> how do I get (calculate) the modelines for fb.modes Nicholas> based on the information the i2c DDC probing XFree-4.2.1 Nicholas> outputs in XFree.0.log?

It is just a matter of reformatting. Eg, from this box:

(II) Reloading /usr/X11R6/lib/modules/libddc.a
[etc]
(II) RADEON(0): Supported Future Video Modes:
(II) RADEON(0): #0: hsize: 1600 vsize 1200 refresh: 60 vid: 16553 (II) RADEON(0): Supported additional Video Mode:
(II) RADEON(0): clock: 162.0 MHz Image Size: 305 x 228 mm

(II) RADEON(0): h_active: 1600  h_sync: 1664  h_sync_end 1856 h_blank_end 2160 h_border: 0
(II) RADEON(0): v_active: 1200  v_sync: 1201  v_sync_end 1204 v_blanking: 1250 v_border: 0

Those lines give the data for a modeline. That translates to:

Modeline "1600x1200x60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250

-JimC

-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com

#10 lore raw
In reply to Nicholas Wourms
Quoted 7 lines · Nicholas Wourms

B) Does anyone have a painless, yet precise way of generating modelines for fb.modes if you are using XFree-4.2? I only ask because the XFree modelines are all determined by i2c DDC probing, thus there are none in the XF86Config file. The modeline output captured in the log XFree.0.log is not the same output which modeline2fb expects. Anyhow, I've tried using some of the information

Quoted 9 lines

in the log, but I always get funky results. I may be looking in the wrong place, but the documentation for both the fbdev kernel drivers and the X drivers are sorely out of date, so please excuse me if this is a question that has previously been answered. I just need some formulae to convert values between what shows up in XFree.0.log when i2c DDC probes for the modelines and what needs to go in fb.modes. Thanks in advance!

Not necessarily painless...

Given timings in X modeline format (you can generate with xvidtune):

"XRESxYRES" MHZ XACTIVE FP_X HSYNC BP_X YACTIVE FP_Y VSYNC
BP_Y +hsync +vsync

Then timings in fb.mode:

mode "XRESxYRES MHZ"
# D: "MHZ, H: HorizSync kHz, V: VertRefresh Hz geometry xres yres vxres vyres bpp
timings pixclock left right upper lower hsync vsync hsync high
vsync high
endmode

where:

pixclock = 1000000/MHZ
left = BP_X - HSYNC
right = FP_X - XACTIVE
upper = BP_Y - VSYNC
lower = FP_Y - YACTIVE
hsync = HSYNC - FP_X
vsync = VSYNC - FP_Y

What you need to concentrate on is the timings field of fb.modes. This also assumes that the driver actually reads the timings field. Some drivers disregard those values (considers only xres and yres) then configure their own timings.

Tony

-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD

#11 lore raw
Quoted 27 lines · Antonino Daplas

Not necessarily painless...

Given timings in X modeline format (you can generate with xvidtune):

"XRESxYRES" MHZ XACTIVE FP_X HSYNC BP_X YACTIVE FP_Y VSYNC
BP_Y +hsync +vsync

Then timings in fb.mode:

mode "XRESxYRES MHZ"
# D: "MHZ, H: HorizSync kHz, V: VertRefresh Hz geometry xres yres vxres vyres bpp
timings pixclock left right upper lower hsync vsync hsync high
vsync high
endmode

where:

pixclock = 1000000/MHZ
left = BP_X - HSYNC
right = FP_X - XACTIVE
upper = BP_Y - VSYNC
lower = FP_Y - YACTIVE
hsync = HSYNC - FP_X
vsync = VSYNC - FP_Y

Quoted 5 lines

What you need to concentrate on is the timings field of fb.modes. This also assumes that the driver actually reads the timings field. Some drivers disregard those values (considers only xres and yres) then configure their own timings.

Tony,

Thank you, this is *exactly* what I was looking for! I never knew what xvidtune was really for, but this sure answers that one.

Cheers,
Nicholas

-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD

#12 lore raw
In reply to Nicholas Wourms
Quoted 8 lines

Excellent! Two other questions (not necessarily related):

A) Is it (or will it ever be) possible to run dual head using two different cards (like radeon & riva-tnt2)? I know there is still much work to be done, but I was curious if this was even remotely possible. Sorta hate to let a good video card go to waste if you know what I mean :-).

Well that depends on if it is possible to initialize the card fully without using the graphics BIOS. To my current knowledge the Matrox card can do this and it is possible for the 3Dfx family of cards. This I have seen in the docs. As for NVIDIA cards they don't release that info and ATI is also funny about release such info as well :-(

Quoted 2 lines

XFree-4.2? I only ask because the XFree modelines are all determined by i2c DDC probing, thus there are none in the

Ah DDC support. I really wanted to add that into the fbdev layer but unfortunely I don't have the time to do that :-( Only if I did fbdev for a living.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf