I have 5 vidcapture cards, all of which show up in /proc/pci
Only the first 4 show up in /proc/bus/i2c*
I tried this on 2 completely unidentical systems, and both 2.4.21, and
2.4.20
I verified that all 5 cards are actually good... {before people start
pointing fingers}
Where do I need to start looking to fix it?
It looks like the offending code might be in:
i2c-algo-bit.c
in function:
static int test_bus(struct i2c_algo_bit_data *adap, char* name) {
I'm no coder but it looks like it is limited to 4 devices as a hardcode?
anyone know of a way to do it so that it does:
for x := {n devices} do
crap
On Tue, 24 Jun 2003, Sir Ace wrote:
>
> I have 5 vidcapture cards, all of which show up in /proc/pci
> Only the first 4 show up in /proc/bus/i2c*
>
> I tried this on 2 completely unidentical systems, and both 2.4.21, and
> 2.4.20
>
> I verified that all 5 cards are actually good... {before people start
> pointing fingers}
>
> Where do I need to start looking to fix it?
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
Nope sory, that was wrong... I should have read the rest of the code...
Any ideas yet? {grin}
On Tue, 24 Jun 2003, Sir Ace wrote:
>
> It looks like the offending code might be in:
> i2c-algo-bit.c
>
> in function:
> static int test_bus(struct i2c_algo_bit_data *adap, char* name) {
>
>
> I'm no coder but it looks like it is limited to 4 devices as a hardcode?
> anyone know of a way to do it so that it does:
>
> for x := {n devices} do
> crap
>
> On Tue, 24 Jun 2003, Sir Ace wrote:
>
> >
> > I have 5 vidcapture cards, all of which show up in /proc/pci
> > Only the first 4 show up in /proc/bus/i2c*
> >
> > I tried this on 2 completely unidentical systems, and both 2.4.21, and
> > 2.4.20
> >
> > I verified that all 5 cards are actually good... {before people start
> > pointing fingers}
> >
> > Where do I need to start looking to fix it?
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to [email protected]
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
Man how many times can I reply to my own post?
Anyway I found this:
linux/i2c.h:#define I2C_ADAP_MAX 16
Is there a danger is setting it to say 32?
{or 31 if there is a high bit problem}?
On Tue, 24 Jun 2003, Sir Ace wrote:
>
> Nope sory, that was wrong... I should have read the rest of the code...
> Any ideas yet? {grin}
>
> On Tue, 24 Jun 2003, Sir Ace wrote:
>
> >
> > It looks like the offending code might be in:
> > i2c-algo-bit.c
> >
> > in function:
> > static int test_bus(struct i2c_algo_bit_data *adap, char* name) {
> >
> >
> > I'm no coder but it looks like it is limited to 4 devices as a hardcode?
> > anyone know of a way to do it so that it does:
> >
> > for x := {n devices} do
> > crap
> >
> > On Tue, 24 Jun 2003, Sir Ace wrote:
> >
> > >
> > > I have 5 vidcapture cards, all of which show up in /proc/pci
> > > Only the first 4 show up in /proc/bus/i2c*
> > >
> > > I tried this on 2 completely unidentical systems, and both 2.4.21, and
> > > 2.4.20
> > >
> > > I verified that all 5 cards are actually good... {before people start
> > > pointing fingers}
> > >
> > > Where do I need to start looking to fix it?
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > the body of a message to [email protected]
> > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > > Please read the FAQ at http://www.tux.org/lkml/
> > >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to [email protected]
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
Ok, wrong again, the line directly above it:
#define I2C_ALGO_MAX 4 /* control memory consumption */
That is my problem, so is it safe to up that value.
{Yes my final answer}
{grin}
-- Sir Ace
On Tue, 24 Jun 2003, Sir Ace wrote:
>
> Man how many times can I reply to my own post?
> Anyway I found this:
>
> linux/i2c.h:#define I2C_ADAP_MAX 16
>
> Is there a danger is setting it to say 32?
> {or 31 if there is a high bit problem}?
>
>
>
> On Tue, 24 Jun 2003, Sir Ace wrote:
>
> >
> > Nope sory, that was wrong... I should have read the rest of the code...
> > Any ideas yet? {grin}
> >
> > On Tue, 24 Jun 2003, Sir Ace wrote:
> >
> > >
> > > It looks like the offending code might be in:
> > > i2c-algo-bit.c
> > >
> > > in function:
> > > static int test_bus(struct i2c_algo_bit_data *adap, char* name) {
> > >
> > >
> > > I'm no coder but it looks like it is limited to 4 devices as a hardcode?
> > > anyone know of a way to do it so that it does:
> > >
> > > for x := {n devices} do
> > > crap
> > >
> > > On Tue, 24 Jun 2003, Sir Ace wrote:
> > >
> > > >
> > > > I have 5 vidcapture cards, all of which show up in /proc/pci
> > > > Only the first 4 show up in /proc/bus/i2c*
> > > >
> > > > I tried this on 2 completely unidentical systems, and both 2.4.21, and
> > > > 2.4.20
> > > >
> > > > I verified that all 5 cards are actually good... {before people start
> > > > pointing fingers}
> > > >
> > > > Where do I need to start looking to fix it?
> > > > -
> > > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > > the body of a message to [email protected]
> > > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > > > Please read the FAQ at http://www.tux.org/lkml/
> > > >
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > the body of a message to [email protected]
> > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > > Please read the FAQ at http://www.tux.org/lkml/
> > >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to [email protected]
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
I doubled the original lines to this:
#define I2C_ALGO_MAX 8 /* control memory consumption */
#define I2C_ADAP_MAX 32
#define I2C_DRIVER_MAX 32
#define I2C_CLIENT_MAX 64
#define I2C_DUMMY_MAX 8
and it did not fix my problem.... This is starting to appear
non-trivial..
Help?
-- Sir Ace
On Tue, 24 Jun 2003, Sir Ace wrote:
>
> Ok, wrong again, the line directly above it:
> #define I2C_ALGO_MAX 4 /* control memory consumption */
>
> That is my problem, so is it safe to up that value.
> {Yes my final answer}
>
> {grin}
>
> -- Sir Ace
>
> On Tue, 24 Jun 2003, Sir Ace wrote:
>
> >
> > Man how many times can I reply to my own post?
> > Anyway I found this:
> >
> > linux/i2c.h:#define I2C_ADAP_MAX 16
> >
> > Is there a danger is setting it to say 32?
> > {or 31 if there is a high bit problem}?
> >
> >
> >
> > On Tue, 24 Jun 2003, Sir Ace wrote:
> >
> > >
> > > Nope sory, that was wrong... I should have read the rest of the code...
> > > Any ideas yet? {grin}
> > >
> > > On Tue, 24 Jun 2003, Sir Ace wrote:
> > >
> > > >
> > > > It looks like the offending code might be in:
> > > > i2c-algo-bit.c
> > > >
> > > > in function:
> > > > static int test_bus(struct i2c_algo_bit_data *adap, char* name) {
> > > >
> > > >
> > > > I'm no coder but it looks like it is limited to 4 devices as a hardcode?
> > > > anyone know of a way to do it so that it does:
> > > >
> > > > for x := {n devices} do
> > > > crap
> > > >
> > > > On Tue, 24 Jun 2003, Sir Ace wrote:
> > > >
> > > > >
> > > > > I have 5 vidcapture cards, all of which show up in /proc/pci
> > > > > Only the first 4 show up in /proc/bus/i2c*
> > > > >
> > > > > I tried this on 2 completely unidentical systems, and both 2.4.21, and
> > > > > 2.4.20
> > > > >
> > > > > I verified that all 5 cards are actually good... {before people start
> > > > > pointing fingers}
> > > > >
> > > > > Where do I need to start looking to fix it?
> > > > > -
> > > > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > > > the body of a message to [email protected]
> > > > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > > > > Please read the FAQ at http://www.tux.org/lkml/
> > > > >
> > > > -
> > > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > > the body of a message to [email protected]
> > > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > > > Please read the FAQ at http://www.tux.org/lkml/
> > > >
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > the body of a message to [email protected]
> > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > > Please read the FAQ at http://www.tux.org/lkml/
> > >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to [email protected]
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
New problem, the 2.4.x kernels, showed all 5 adapters in /proc/pci
2.5.73 shows all 5, but only names 4, as shown below: {0059}
root@snapshot:/usr/src/linux-2.5.73/Documentation/i2c# cat
/proc/bus/pci/devices
0000 11063189 0 e0000008 00000000 00000000
00000000 00000000 0000000000000000 08000000
00000000 00000000 00000000 00000000 00000000
00000000 agpgart-via
0008 1106b168 0 00000000 00000000 00000000
00000000 00000000 0000000000000000 00000000
00000000 00000000 00000000 00000000 00000000
00000000
0030 109e036e 11 dfdff008 00000000 00000000
00000000 00000000 0000000000000000 00001000
00000000 00000000 00000000 00000000 00000000
00000000 bttv
0031 109e0878 11 dfdfd008 00000000 00000000
00000000 00000000 0000000000000000 00001000
00000000 00000000 00000000 00000000 00000000
00000000 btaudio
0038 109e036e 12 dfdfe008 00000000 00000000
00000000 00000000 0000000000000000 00001000
00000000 00000000 00000000 00000000 00000000
00000000 bttv
0039 109e0878 12 dfdfb008 00000000 00000000
00000000 00000000 0000000000000000 00001000
00000000 00000000 00000000 00000000 00000000
00000000 btaudio
0040 109e036e 13 dfdfc008 00000000 00000000
00000000 00000000 0000000000000000 00001000
00000000 00000000 00000000 00000000 00000000
00000000 bttv
0041 109e0878 13 dfdf9008 00000000 00000000
00000000 00000000 0000000000000000 00001000
00000000 00000000 00000000 00000000 00000000
00000000 btaudio
0050 109e036e 11 dfdfa008 00000000 00000000
00000000 00000000 0000000000000000 00001000
00000000 00000000 00000000 00000000 00000000
00000000 bttv
0051 109e0878 11 dfdf7008 00000000 00000000
00000000 00000000 0000000000000000 00001000
00000000 00000000 00000000 00000000 00000000
00000000 btaudio
0058 109e036e 12 dfdf8008 00000000 00000000
00000000 00000000 0000000000000000 00001000
00000000 00000000 00000000 00000000 00000000
00000000
0059 109e0878 12 dfdf5008 00000000 00000000
00000000 00000000 0000000000000000 00001000
00000000 00000000 00000000 00000000 00000000
00000000
0080 11063038 15 00000000 00000000 00000000
00000000 0000e401 0000000000000000 00000000
00000000 00000000 00000000 00000020 00000000
00000000
0081 11063038 15 00000000 00000000 00000000
00000000 0000e801 0000000000000000 00000000
00000000 00000000 00000000 00000020 00000000
00000000
0082 11063038 15 00000000 00000000 00000000
00000000 0000ec01 0000000000000000 00000000
00000000 00000000 00000000 00000020 00000000
00000000
0083 11063104 15 dfffff00 00000000 00000000
00000000 00000000 0000000000000000 00000100
00000000 00000000 00000000 00000000 00000000
00000000
0088 11063177 0 00000000 00000000 00000000
00000000 00000000 0000000000000000 00000000
00000000 00000000 00000000 00000000 00000000
00000000 vt596 smbus
0089 11060571 0 00000000 00000000 00000000
00000000 0000fc01 0000000000000000 00000000
00000000 00000000 00000000 00000010 00000000
00000000 VIA IDE
0090 11063065 17 0000e001 dffffe00 00000000
00000000 00000000 0000000000000000 00000100
00000100 00000000 00000000 00000000 00000000
00000000 via-rhine
0100 10025157 10 d0000008 0000c801 dfef0000
00000000 00000000 00000000dfec0000 08000000
00000100 00010000 00000000 00000000 00000000
00020000 radeonfb
On Tue, 24 Jun 2003, Sir Ace wrote:
>
> I doubled the original lines to this:
> #define I2C_ALGO_MAX 8 /* control memory consumption */
> #define I2C_ADAP_MAX 32
> #define I2C_DRIVER_MAX 32
> #define I2C_CLIENT_MAX 64
> #define I2C_DUMMY_MAX 8
>
> and it did not fix my problem.... This is starting to appear
> non-trivial..
>
> Help?
>
> -- Sir Ace
>
> On Tue, 24 Jun 2003, Sir Ace wrote:
>
> >
> > Ok, wrong again, the line directly above it:
> > #define I2C_ALGO_MAX 4 /* control memory consumption */
> >
> > That is my problem, so is it safe to up that value.
> > {Yes my final answer}
> >
> > {grin}
> >
> > -- Sir Ace
> >
> > On Tue, 24 Jun 2003, Sir Ace wrote:
> >
> > >
> > > Man how many times can I reply to my own post?
> > > Anyway I found this:
> > >
> > > linux/i2c.h:#define I2C_ADAP_MAX 16
> > >
> > > Is there a danger is setting it to say 32?
> > > {or 31 if there is a high bit problem}?
> > >
> > >
> > >
> > > On Tue, 24 Jun 2003, Sir Ace wrote:
> > >
> > > >
> > > > Nope sory, that was wrong... I should have read the rest of the code...
> > > > Any ideas yet? {grin}
> > > >
> > > > On Tue, 24 Jun 2003, Sir Ace wrote:
> > > >
> > > > >
> > > > > It looks like the offending code might be in:
> > > > > i2c-algo-bit.c
> > > > >
> > > > > in function:
> > > > > static int test_bus(struct i2c_algo_bit_data *adap, char* name) {
> > > > >
> > > > >
> > > > > I'm no coder but it looks like it is limited to 4 devices as a hardcode?
> > > > > anyone know of a way to do it so that it does:
> > > > >
> > > > > for x := {n devices} do
> > > > > crap
> > > > >
> > > > > On Tue, 24 Jun 2003, Sir Ace wrote:
> > > > >
> > > > > >
> > > > > > I have 5 vidcapture cards, all of which show up in /proc/pci
> > > > > > Only the first 4 show up in /proc/bus/i2c*
> > > > > >
> > > > > > I tried this on 2 completely unidentical systems, and both 2.4.21, and
> > > > > > 2.4.20
> > > > > >
> > > > > > I verified that all 5 cards are actually good... {before people start
> > > > > > pointing fingers}
> > > > > >
> > > > > > Where do I need to start looking to fix it?
> > > > > > -
> > > > > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > > > > the body of a message to [email protected]
> > > > > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > > > > > Please read the FAQ at http://www.tux.org/lkml/
> > > > > >
> > > > > -
> > > > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > > > the body of a message to [email protected]
> > > > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > > > > Please read the FAQ at http://www.tux.org/lkml/
> > > > >
> > > > -
> > > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > > the body of a message to [email protected]
> > > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > > > Please read the FAQ at http://www.tux.org/lkml/
> > > >
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > the body of a message to [email protected]
> > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > > Please read the FAQ at http://www.tux.org/lkml/
> > >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to [email protected]
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>