linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 0/3 Add I2C/DDC support to radeonfb
@ 2003-08-22 16:24 Kronos
  2003-08-27 12:44 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 6+ messages in thread
From: Kronos @ 2003-08-22 16:24 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: Benjamin Herrenschmidt, James Simmons

In reply to this mail I'll send 3 patches that add i2c to radeonfb.

The first  patch adds a new  driver-id to the i2c-id.h,  a config option
and all the  i2c stuff to radeonfb.c. It doesn't change  te behaviour of
the driver.

The second patch registers the i2c bus, updates default var according to
EDID data and creates a modeb ouf of EDID.

i2c  bus  is registered  in  radeonfb_pci_register  and unregistered  in
radeonfb_pci_unregister. I'm a  bit concerned about XFree  that uses the
same bus...

I'm  having problems  with  this patch,  but  I think  that  the bug  is
elsewhere. If I don't  set any mode on lilo command  line the driver try
to use the default mode taken from  EDID. In my case the default mode is
1280x1024@60Hz.

This is 2.6.0-test3 + my patches:

radeonfb_pci_register END
hStart = 1328, hEnd = 1440, hTotal = 1688
vStart = 1025, vEnd = 1028, vTotal = 1066
h_total_disp = 0x9f00d2 hsync_strt_wid = 0xe0613
v_total_disp = 0x3ff0429 vsync_strt_wid = 0x30400
post div = 0x2
fb_div = 0x60
ppll_div_3 = 0x10060
ron = 11776, roff = 0
vclk_freq = 10800, per = 0
radeonfb: error ron out of range

...and the screen stays black.
DDA stuff has been disabled in 2.4 but it's still there in 2.6. However
even plain 2.6 is unable to set 1280x1024@60Hz:

hStart = 1296, hEnd = 1512, hTotal = 1568
vStart = 1025, vEnd = 1037, vTotal = 1165
h_total_disp = 0x9f00c3 hsync_strt_wid = 0x9b051a
v_total_disp = 0x3ff048c vsync_strt_wid = 0x8c0400
post div = 0x4
fb_div = 0x8e
ppll_div_3 = 0x2008e
ron = 1232, roff = 24220
vclk_freq = 7988, per = 865
Console: switching to colour frame buffer device 160x64

but  the  screen  stays  black. XFree  works with  no  problem  at  this
resolution.

Also, modes  from EDID  are a  bit different from  modes of  the default
modedb. This is 2.6.0 vanilla at 1024x768@60Hz:

hStart = 1032, hEnd = 1176, hTotal = 1344
vStart = 771, vEnd = 777, vTotal = 806
h_total_disp = 0x7f00a7 hsync_strt_wid = 0x920412
v_total_disp = 0x2ff0325 vsync_strt_wid = 0x860302
post div = 0x4
fb_div = 0x74
ppll_div_3 = 0x20074
ron = 712, roff = 14840
vclk_freq = 6525, per = 530

This is 2.6 + my patches, at 1024x768@60Hz, timings from EDID:

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
post div = 0x4
fb_div = 0x74
ppll_div_3 = 0x20074
ron = 712, roff = 14840
vclk_freq = 6525, per = 530


The third patch attach a sysfb binary attribute to PCI device. EDID data
will show up in /sys/bus/pci/drivers/radeonfb/0000:01:00.0/edid.

This is a  kind of RFC, if  patches look good I'll  rediff against Ben's
tree.

Luca
-- 
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
"It is more complicated than you think"
                -- The Eighth Networking Truth from RFC 1925


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] 0/3 Add I2C/DDC support to radeonfb
  2003-08-22 16:24 [PATCH] 0/3 Add I2C/DDC support to radeonfb Kronos
@ 2003-08-27 12:44 ` Benjamin Herrenschmidt
  2003-08-27 15:17   ` Jon Smirl
  2003-08-27 15:20   ` Kronos
  0 siblings, 2 replies; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2003-08-27 12:44 UTC (permalink / raw)
  To: kronos; +Cc: Linux Fbdev development list, James Simmons

On Fri, 2003-08-22 at 18:24, Kronos wrote:
> In reply to this mail I'll send 3 patches that add i2c to radeonfb.

Just a note to tell that I didn't forget about this, but didn't finish
yet neither. I'll post a new version of radeonfb with major cleanups
(splitted) real soon now which include the i2c stuffs hopefully.

Ben.




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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [PATCH] 0/3 Add I2C/DDC support to radeonfb
  2003-08-27 12:44 ` Benjamin Herrenschmidt
@ 2003-08-27 15:17   ` Jon Smirl
  2003-08-27 16:26     ` Benjamin Herrenschmidt
  2003-08-27 15:20   ` Kronos
  1 sibling, 1 reply; 6+ messages in thread
From: Jon Smirl @ 2003-08-27 15:17 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, kronos
  Cc: Linux Fbdev development list, James Simmons

Kronos and I have a version with I2C, ROM instead of low RAM, error cleanups,
and many more PCI IDs at:
bk://mesa3d.bkbits.net/linux-2.5

I am running that version right now without problem.

--- Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Fri, 2003-08-22 at 18:24, Kronos wrote:
> > In reply to this mail I'll send 3 patches that add i2c to radeonfb.
> 
> Just a note to tell that I didn't forget about this, but didn't finish
> yet neither. I'll post a new version of radeonfb with major cleanups
> (splitted) real soon now which include the i2c stuffs hopefully.
> 
> Ben.
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Linux-fbdev-devel mailing list
> Linux-fbdev-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel


=====
Jon Smirl
jonsmirl@yahoo.com

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] 0/3 Add I2C/DDC support to radeonfb
  2003-08-27 12:44 ` Benjamin Herrenschmidt
  2003-08-27 15:17   ` Jon Smirl
@ 2003-08-27 15:20   ` Kronos
  2003-08-27 16:27     ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 6+ messages in thread
From: Kronos @ 2003-08-27 15:20 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: Linux Fbdev development list, James Simmons

Il Wed, Aug 27, 2003 at 02:44:19PM +0200, Benjamin Herrenschmidt ha scritto: 
> On Fri, 2003-08-22 at 18:24, Kronos wrote:
> > In reply to this mail I'll send 3 patches that add i2c to radeonfb.
> 
> Just a note to tell that I didn't forget about this, but didn't finish
> yet neither. I'll post a new version of radeonfb with major cleanups
> (splitted) real soon now which include the i2c stuffs hopefully.

Do you want a patch against your tree?

Luca
-- 
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [PATCH] 0/3 Add I2C/DDC support to radeonfb
  2003-08-27 15:17   ` Jon Smirl
@ 2003-08-27 16:26     ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2003-08-27 16:26 UTC (permalink / raw)
  To: Jon Smirl; +Cc: kronos, Linux Fbdev development list, James Simmons

On Wed, 2003-08-27 at 17:17, Jon Smirl wrote:
> Kronos and I have a version with I2C, ROM instead of low RAM, error cleanups,
> and many more PCI IDs at:
> bk://mesa3d.bkbits.net/linux-2.5
> 
> I am running that version right now without problem.

Oh, you should have told me, I've been mostly duplicating work here...

Ok, I'll look at this & merge.

Ben.




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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] 0/3 Add I2C/DDC support to radeonfb
  2003-08-27 15:20   ` Kronos
@ 2003-08-27 16:27     ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2003-08-27 16:27 UTC (permalink / raw)
  To: kronos; +Cc: Linux Fbdev development list, James Simmons

On Wed, 2003-08-27 at 17:20, Kronos wrote:
> Il Wed, Aug 27, 2003 at 02:44:19PM +0200, Benjamin Herrenschmidt ha scritto: 
> > On Fri, 2003-08-22 at 18:24, Kronos wrote:
> > > In reply to this mail I'll send 3 patches that add i2c to radeonfb.
> > 
> > Just a note to tell that I didn't forget about this, but didn't finish
> > yet neither. I'll post a new version of radeonfb with major cleanups
> > (splitted) real soon now which include the i2c stuffs hopefully.
> 
> Do you want a patch against your tree?

It's ok, thanks, I'll merge with your bk tree and post the merged version
here.

Ben.




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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-08-27 16:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-22 16:24 [PATCH] 0/3 Add I2C/DDC support to radeonfb Kronos
2003-08-27 12:44 ` Benjamin Herrenschmidt
2003-08-27 15:17   ` Jon Smirl
2003-08-27 16:26     ` Benjamin Herrenschmidt
2003-08-27 15:20   ` Kronos
2003-08-27 16:27     ` Benjamin Herrenschmidt

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).