LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Any one using i2c-voodoo3 module on the 2.6 kernel?
@ 2004-05-14  1:45 Perry Gilfillan
  2004-05-15  6:06 ` Jean Delvare
  0 siblings, 1 reply; 2+ messages in thread
From: Perry Gilfillan @ 2004-05-14  1:45 UTC (permalink / raw)
  To: sensors, kernel

Hello,

I've made some progress with the v3tv project.  Using the recent 2.4 
kernels, with various patches for v4l2, i2c-2.8.x, and sensors-2.8.x, 
I've got all of the v4l modules to attach to the i2c-voodoo3 module.

I've also got a v4l2 radio device working on the 2.4 kernel :)

Now I'd like to start looking at the 2.6 kernel.  At this point it does 
not seem that the i2c-voodoo3 module is loading correctly.  The module 
is totaly silent in the logs, so I can't offer any immediate list of 
symptoms, except to say I can find no reference to it in the sysfs and 
proc directories.

The client module probe functions never see the Voodoo3 adapter.

The call to pci_module_init returns zero. Replacing that with a call to 
pci_register_driver yeilds a one, but this may not be representative, 
since pci_register_driver always returns a non-zero value.

I'm going to add more printk's to the pci-driver.c file, and reboot when 
I have time for it.

I'd appreciate any advice on where to look first, and where in sysfs to 
look for evidence that the module loaded correctly.

Has anyone used the Banshee or Voodoo3 card with the i2c-voodoo3 module 
in the 2.6 kernel with success?



Thanks,

Perry
-----
Projects:
   V3TV:		http://www.gilfillan.org/v3tv/
   VPX3224:	http://www.gilfillan.org/vpx3224/
   V3TV-radio:	http://www.gilfillan.org/v3tv-v4l2/
   snd-tvmixer:	http://www.gilfillan.org/ALSA/



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

* Re: Any one using i2c-voodoo3 module on the 2.6 kernel?
  2004-05-14  1:45 Any one using i2c-voodoo3 module on the 2.6 kernel? Perry Gilfillan
@ 2004-05-15  6:06 ` Jean Delvare
  0 siblings, 0 replies; 2+ messages in thread
From: Jean Delvare @ 2004-05-15  6:06 UTC (permalink / raw)
  To: Perry Gilfillan; +Cc: sensors, linux-kernel

> Now I'd like to start looking at the 2.6 kernel.  At this point it
> does not seem that the i2c-voodoo3 module is loading correctly.  The
> module is totaly silent in the logs, so I can't offer any immediate
> list of symptoms, except to say I can find no reference to it in the
> sysfs and proc directories.

It happens that I have an old Voodoo 3000 graphics card lying in a box
somewhere, so I thought I would try and plug it, and see what happens.

I was able to load the i2c-voodoo3 driver (Linux 2.6.6-rc3) and it seems
to work for me. I have the following line in the logs:

voodoo3 smbus 0000:01:00.0: Using Banshee/Voodoo3 I2C device at e8964000

After loading i2c-dev, "i2cdetect -l" sees two i2c busses on the card,
and I can use i2cdetect, i2cdump etc. So it seems to work fine.

I suspect that you have another driver requesting the card, such has a
framebuffer driver. The 2.4 driver doesn't request the device so no
conflict happens. The 2.6 driver does request it, because it is
considered Bad (TM) to use a device without requesting it. This probably
means that the i2c-voodoo3 driver should me merged into the framebuffer
driver, much like it was done for matroxfb and radeonfb. This also makes
sense because the framebuffer driver can use the DDC channel (which is
no more than I2C, renamed) to retrieve information about the monitor and
adapt its output. But this also raises the problem that people may want
to access the i2c busses without loading the full framebuffer driver...

> The call to pci_module_init returns zero. Replacing that with a call
> to pci_register_driver yeilds a one, but this may not be
> representative, since pci_register_driver always returns a non-zero
> value.

I'm not very qualified about PCI stuff, but this could confirm my
suspicion above.

> I'd appreciate any advice on where to look first, and where in sysfs
> to look for evidence that the module loaded correctly.

See what is done in proc/dump/i2cbusses.c (lm_sensors package). Looks
like you should point your shell to /sys/class/i2c-dev. This suggests
that you have actually loaded i2c-dev.

> Has anyone used the Banshee or Voodoo3 card with the i2c-voodoo3
> module in the 2.6 kernel with success?

Yes ;) although I didn't do anything useful with it after that.

-- 
Jean Delvare
http://khali.linux-fr.org/

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

end of thread, other threads:[~2004-05-15  6:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-14  1:45 Any one using i2c-voodoo3 module on the 2.6 kernel? Perry Gilfillan
2004-05-15  6:06 ` Jean Delvare

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