Eric W. Biederman | 1 Dec 2004 05:22

Re: get_pbus

YhLu <YhLu <at> tyan.com> writes:

> You mean to access extra reg space (4096 bytes) for PCI-E device?
> 
> We don't need to touch that extra space ....in LinuxBIOS.

So far.  The question is how long will that last.
What firmware has to do especially with onboard hardware
never follows the rules for ordinary hardware.  Especially
when bug workarounds are involved.

> Under LinuxBIOS + kernel + IB driver, the IB adapter works well with S289x.
> need to create one entry in mptable for the device. Otherwise it can not get
> INT.
> 
> Currently I can not make MSI work....Kernel 2.6.

I have not had a chance to play with that.  I saw something on the
openib list a while ago about MSI with a mellanox IB card not having a
complete firmware implementation or something like that.

Eric
_______________________________________________
Linuxbios mailing list
Linuxbios <at> clustermatic.org
http://www.clustermatic.org/mailman/listinfo/linuxbios

YhLu | 1 Dec 2004 05:40

strange prink_debug output with dev_path

What is the difference between 
        printk_debug("smbus:  %s[%d]->",  dev_path(dev->bus->dev),
dev->bus->link );
        printk_debug("%s",  dev_path(dev));

and 

        printk_debug("smbus:  %s[%d]->%s",  dev_path(dev->bus->dev),
dev->bus->link ,  dev_path(dev));

the first print 
smbus:  PCI: 01:01.1[0]->I2C: 50

the second one print
smbus:  PCI: 01:01.1[0]-> PCI: 01:01.1

YH
_______________________________________________
Linuxbios mailing list
Linuxbios <at> clustermatic.org
http://www.clustermatic.org/mailman/listinfo/linuxbios

zhu shi song | 1 Dec 2004 13:38
Picon
Favicon

about power on

   I hope when power is on, my MB can boot without
press the switch. How can I do that?
   tks
  zhu

		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 
_______________________________________________
Linuxbios mailing list
Linuxbios <at> clustermatic.org
http://www.clustermatic.org/mailman/listinfo/linuxbios

mark.wilkinson | 1 Dec 2004 18:20

CVS Commit

Hi All,
      I've just committed changes to the following files used by the VIA Epia

northbridge/via/vt8601/raminit.c
southbridge/via/vt8231/vt8231_early_smbus.c

Changes are as follows :-
  re-written smbus_read_byte based on intel/i82801dbm after suggestion from ron,
  modifications to raminit to handle changes on re-written routine.

Regards
Mark Wilkinson.

----------------------------------------------------------------
This message was sent using ISPMailNow.com
_______________________________________________
Linuxbios mailing list
Linuxbios <at> clustermatic.org
http://www.clustermatic.org/mailman/listinfo/linuxbios

Eric W. Biederman | 1 Dec 2004 21:37

Re: strange prink_debug output with dev_path

YhLu <YhLu <at> tyan.com> writes:

> What is the difference between 
>         printk_debug("smbus:  %s[%d]->",  dev_path(dev->bus->dev),
> dev->bus->link );
>         printk_debug("%s",  dev_path(dev));
> 
> and 
> 
>         printk_debug("smbus:  %s[%d]->%s",  dev_path(dev->bus->dev),
> dev->bus->link ,  dev_path(dev));
> 
> the first print 
> smbus:  PCI: 01:01.1[0]->I2C: 50
> 
> the second one print
> smbus:  PCI: 01:01.1[0]-> PCI: 01:01.1

dev_path returns the address of a statically allocated buffer
that it puts the path in.  That address is always the same.
So multiple calls to dev_path before printing the path are a
problem.

I had a hard time balancing convenience and safety when
implementing this.

If we need to fix this likely there are 2 possibilities.
1) Pass dev_path the address of a buffer, to write into.
2) Update printk to have a special format flag that
   performs the actions of dev_path.
(Continue reading)

YhLu | 1 Dec 2004 22:34

print_smbus_regs_all

I add some code to debug_device to dump smbus for S4882.

 

Please let me know if you need me to commit it.

 

                                        device pci 1.3 on

                                                chip drivers/generic/i2cmux

                                                        device i2c 18 on #0

                                                                chip drivers/generic/generic #cpu0 temp

                                                                        device i2c4c on end

                                                                end

                                                        end

                                                        device i2c 18 on #1

                                                                chip drivers/generic/generic #dimm 0-0-0

                                                                        device i2c 30 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 0-0-1

                                                                        device i2c 31 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 0-1-0

                                                                        device i2c 32 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 0-1-1

                                                                        device i2c 33 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 0-0-0

                                                                        device i2c 50 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 0-0-1

                                                                        device i2c 51 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 0-1-0

                                                                        device i2c 52 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 0-1-1

                                                                        device i2c 53 on end

                                                                end

                                                        end

                                                        device i2c 18 on #2

                                                                chip drivers/generic/generic #dimm 1-0-0

                                                                        device i2c 50 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 1-0-1

                                                                        device i2c 51 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 1-1-0

                                                                        device i2c 52 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 1-1-1

                                                                        device i2c 53 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 1-0-0

                                                                        device i2c 30 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 1-0-1

                                                                        device i2c 31 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 1-1-0

                                                                        device i2c 32 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 1-1-1

                                                                        device i2c 33 on end

                                                                end

                                                        end

                                                        device i2c 18 on #3

                                                                chip drivers/generic/generic #dimm 2-0-0

                                                                        device i2c 50 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 2-0-1

                                                                        device i2c 51 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 2-1-0

                                                                        device i2c 52 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 2-1-1

                                                                        device i2c 53 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 2-0-0

                                                                        device i2c 30 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 2-0-1

                                                                        device i2c 31 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 2-1-0

                                                                        device i2c 32 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 2-1-1

                                                                        device i2c 33 on end

                                                                end

                                                        end

                                                        device i2c 18 on #4

                                                                chip drivers/generic/generic #dimm 3-0-0

                                                                        device i2c 50 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 3-0-1

                                                                        device i2c 51 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 3-1-0

                                                                        device i2c 52 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 3-1-1

                                                                        device i2c 53 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 3-0-0

                                                                        device i2c 30 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 3-0-1

                                                                        device i2c 31 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 3-1-0

                                                                        device i2c 32 on end

                                                                end

                                                                chip drivers/generic/generic #dimm 3-1-1

                                                                        device i2c 33 on end

                                                                end

                                                        end

                                                        device i2c 18 on #0

                                                                chip drivers/generic/generic #cpu1 temp

                                                                        device i2c4c on end

                                                                end

                                                        end

                                                        device i2c 18 on #0

                                                                chip drivers/generic/generic #cpu2 temp

                                                                        device i2c4c on end

                                                                end

                                                        end

                                                        device i2c 18 on #0

                                                                chip drivers/generic/generic #cpu3 temp

                                                                        device i2c4c on end

                                                                end

                                                        end

                                                end # i2cmux

                                                chip drivers/generic/generic # ADM1027 CPU1 vid and System FAN...

                                                        device i2c 2e on end

                                                end

                                                chip drivers/generic/generic # Winbond HWM 0x54 CPU1 vid

                                                        device i2c2a on end

                                                end

                                                chip drivers/generic/generic # Winbond HWM 0x92

                                                        device i2c 49 on end

                                                end

                                                chip drivers/generic/generic # Winbond HWM 0x94

                                                        device i2c4a on end

                                                end

                                                chip drivers/generic/generic # ??

                                                        device i2c 69 on end

                                                end

                                        end # acpi

 

smbus:  PCI: 01:04.3[0]->I2C: 18

00: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

10: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

20: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

30: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

40: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

50: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

60: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

70: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

80: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

90: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

a0: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

b0: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

c0: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

d0: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

e0: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

f0: e0 10 f0 00 e0 10 f0 00 e0 10 f0 00 e0 10 f0 00

smbus:  I2C: 18[0]->I2C: 4c

00: 22 31 92 80 08 46 00 46 00 80 08 46 00 46 00 00

10: 60 00 00 00 00 00 a4 00 00 55 00 00 00 00 00 00

20: 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

40: 00 00 00 00 00 00 00 00 ff ff 20 3f 00 17 00 04

50: 7f3f7f3f7f3f7f3f7f3f7f3f7f3f7f3f

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

b0: 2e 20 43 dd 8f 00 05 00 00 00 00 00 00 00 00 00

c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 41

smbus:  I2C: 18[1]->I2C: 30

00: bad device status= ffffffff

 

smbus:  I2C: 18[1]->I2C: 31

00: bad device status= ffffffff

 

smbus:  I2C: 18[1]->I2C: 32

00: bad device status= ffffffff

 

smbus:  I2C: 18[1]->I2C: 33

00: bad device status= ffffffff

 

smbus:  I2C: 18[1]->I2C: 50

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[1]->I2C: 51

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[1]->I2C: 52

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[1]->I2C: 53

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[2]->I2C: 50

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 67 24 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[2]->I2C: 51

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[2]->I2C: 52

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[2]->I2C: 53

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[2]->I2C: 30

00: bad device status= ffffffff

 

smbus:  I2C: 18[2]->I2C: 31

00: bad device status= ffffffff

 

smbus:  I2C: 18[2]->I2C: 32

00: bad device status= ffffffff

 

smbus:  I2C: 18[2]->I2C: 33

00: bad device status= ffffffff

 

smbus:  I2C: 18[3]->I2C: 50

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[3]->I2C: 51

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[3]->I2C: 52

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[3]->I2C: 53

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[3]->I2C: 30

00: bad device status= ffffffff

 

smbus:  I2C: 18[3]->I2C: 31

00: bad device status= ffffffff

 

smbus:  I2C: 18[3]->I2C: 32

00: bad device status= ffffffff

 

smbus:  I2C: 18[3]->I2C: 33

00: bad device status= ffffffff

 

smbus:  I2C: 18[4]->I2C: 50

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 09 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[4]->I2C: 51

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[4]->I2C: 52

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 15 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[4]->I2C: 53

00: 80 08 07 0d 0b 02 48 00 04 50 65 02 82 08 08 01

10: 0e 04 18 01 02 26 c0 60 70 00 00 3c 28 3c 28 80

20: 60 60 40 40 00 00 00 00 00 37 46 28 28 50 64 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2b

40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

50: 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0d 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

smbus:  I2C: 18[4]->I2C: 30

00: bad device status= ffffffff

 

smbus:  I2C: 18[4]->I2C: 31

00: bad device status= ffffffff

 

smbus:  I2C: 18[4]->I2C: 32

00: bad device status= ffffffff

 

smbus:  I2C: 18[4]->I2C: 33

00: bad device status= ffffffff

 

smbus:  I2C: 18[5]->I2C: 4c

00: 22 33 92 80 08 46 00 46 00 80 08 46 00 46 00 00

10: e0 00 00 00 00 00 a4 00 00 55 00 00 00 00 00 00

20: 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

40: 00 00 00 00 00 00 00 00 ff ff 20 3f 00 17 00 04

50: 7f3f7f3f7f3f7f3f7f3f7f3f7f3f7f3f

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

b0: 21 20 41 dd 8c 00 05 00 00 00 00 00 00 00 00 00

c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 41

smbus:  I2C: 18[6]->I2C: 4c

00: 22 31 92 80 08 46 00 46 00 80 08 46 00 46 00 00

10: e0 00 00 00 00 00 a4 00 00 55 00 00 00 00 00 00

20: 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

40: 00 00 00 00 00 00 00 00 ff ff 20 3f 00 17 00 04

50: 7f3f7f3f7f3f7f3f7f3f7f3f7f3f7f3f

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

b0: 4c 20 46 d9 92 00 0d 00 00 00 00 00 00 00 00 00

c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 41

smbus:  I2C: 18[7]->I2C: 4c

00: 21 34 12 80 08 46 00 46 00 80 08 46 00 46 00 00

10: 20 00 00 00 00 00 a4 00 00 55 00 00 00 00 00 00

20: 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00

30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

40: 00 00 00 00 00 00 00 00 ff ff 20 3f 00 17 00 04

50: 7f3f7f3f7f3f7f3f7f3f7f3f7f3f7f3f

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

b0: 4a 20 4b d9 91 00 05 00 00 00 00 00 00 00 00 00

c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 41

smbus:  PCI: 01:04.3[0]->I2C: 2e

00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

20: 00 00 00 00 00 80 80 80 00 00 00 00 00 00 00 00

30: ff ff ff 00 00 00 00 00 00 00 00 00 00 27 41 60

40: 04 00 00 02 00 ff 00 ff 00 ff 00 ff 00 ff 81 7f

50: 81 7f 81 7f ff ff ff ff ff ff ff ff 62 62 62 c4

60: c4 c4 00 00 80 80 80 5a5a5a 64 64 64 44 40 00

70: 00 00 00 00 00 00 00 00 00 00 00 55 00 00 00 00

80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

smbus:  PCI: 01:04.3[0]->I2C: 2a

00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

20: 60 5f d1 bb a3 a3 4c 1b d7 d5 76 86 6d 86 6d ed

30: b0 00 00 00 00 00 00 80 20 00 84 00 00 00 00 00

40: 01 db 0b ff 3f 00 00 52 2a 02 21 44 18 95 80 5c

50: ff ff 00 ff ff ff 00 80 21 70 ff ff 11 00 ff 05

60: 60 60 d2 bb a3 a3 4d 1b d9 d5 76 86 6d 86 6d ed

70: b0 00 00 00 00 00 00 80 20 00 84 00 00 00 00 00

80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

a0: 60 60 d2 bb a3 a3 4c 1b d8 d5 76 86 6d 86 6d ed

b0: b0 00 00 00 00 00 00 80 20 00 84 00 00 00 00 00

c0: 01 00 00 ff 3f 00 00 52 2a 02 21 44 18 95 80 5c

d0: ff ff 00 ff ff ff 00 80 21 70 ff ff 11 00 ff 05

e0: 60 60 d2 bb a3 a3 4d 1b d9 d5 77 86 6d 86 6d ed

f0: b0 00 00 00 00 00 00 80 20 00 84 00 00 00 00 00

smbus:  PCI: 01:04.3[0]->I2C: 49

00: 1c bad device status= ffffffff

 

smbus:  PCI: 01:04.3[0]->I2C: 4a

00: bad device status= ffffffff

 

smbus:  PCI: 01:04.3[0]->I2C: 69

00: 0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f

10: 0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f

20: 0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f

30: 0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f

40: 0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f

50: 0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f

60: 0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f

70: 0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f

80: 00 ff fe 00 2f f8 0f 11 00 10 01 8b 64 0e 18 50

90: ff 0f0f 00 ff 01 ff aa ab 00 00 00 03 d3 d3 d3

a0: 00 ff fe 00 2f f8 0f 11 00 10 01 8b 64 0e 18 50

b0: ff 0f0f 00 ff 01 ff aa ab 00 00 00 03 d3 d3 d3

c0: 00 ff fe 00 2f f8 0f 11 00 10 01 8b 64 0e 18 50

d0: ff 0f0f 00 ff 01 ff aa ab 00 00 00 03 d3 d3 d3

e0: 00 ff fe 00 2f f8 0f 11 00 10 01 8b 64 0e 18 50

f0: ff 0f0f 00 ff 01 ff aa ab 00 00 00 03 d3 d3 d3

Devices initialized

Stefan Reinauer | 1 Dec 2004 22:35
Gravatar

error disclosure

Hi there,

the error disclosure of the config tool is a little bit mystic.
Building the sandpoint configuration says the following:

Creating directory motorola_sandpoint/only
Creating motorola_sandpoint/only/static.c
Traceback (most recent call last):
  File "motorola_sandpoint/config.py", line 2732, in ?
    writecode(image)
  File "motorola_sandpoint/config.py", line 2649, in writecode
    gencode(image.getroot(), file, 1)
  File "motorola_sandpoint/config.py", line 2654, in gencode
    part.gencode(file, pass_num)
  File "motorola_sandpoint/config.py", line 804, in gencode
    file.write("struct device **last_dev_p = &%s.next;\n" %
(self.image.last_dev
ice.instance_name))
AttributeError: 'int' object has no attribute 'instance_name'

This looks like an error in the config tool, while it is a mistake in the
config file. Is there any easy way to point the user/developer to the
place in the config file that is wrong (rather than printing a python
traceback)?  This could make it a lot easier for newbies to create fresh
linuxbios ports to motherboards whose hardware is basically already
supported and it could safe the regulars quite some time comparing
config files between the ports...

Stefan

_______________________________________________
Linuxbios mailing list
Linuxbios <at> clustermatic.org
http://www.clustermatic.org/mailman/listinfo/linuxbios

Eric W. Biederman | 1 Dec 2004 22:47

Re: error disclosure

Stefan Reinauer <stepan <at> openbios.org> writes:

> Hi there,
> 
> the error disclosure of the config tool is a little bit mystic.
> Building the sandpoint configuration says the following:

 
> This looks like an error in the config tool, while it is a mistake in the
> config file. Is there any easy way to point the user/developer to the
> place in the config file that is wrong (rather than printing a python
> traceback)?  This could make it a lot easier for newbies to create fresh
> linuxbios ports to motherboards whose hardware is basically already
> supported and it could safe the regulars quite some time comparing
> config files between the ports...

Last I looked a lot of the problem is design issues with the python parser
generator the code is using.  It does not do a very good job at remember 
making it possible to print good error messages.

The case you mention does not look like the typical failure there so it may
allow for a simple fix.

Eric

_______________________________________________
Linuxbios mailing list
Linuxbios <at> clustermatic.org
http://www.clustermatic.org/mailman/listinfo/linuxbios

Eric W. Biederman | 1 Dec 2004 22:49

Re: print_smbus_regs_all

YhLu <YhLu <at> tyan.com> writes:

> I add some code to debug_device to dump smbus for S4882.
>  
> Please let me know if you need me to commit it.

I don't know about need but I think it could be handy to have.
Especially as we don't have many users of i2c code in the tree at the present
time.

Eric
_______________________________________________
Linuxbios mailing list
Linuxbios <at> clustermatic.org
http://www.clustermatic.org/mailman/listinfo/linuxbios

Ronald G. Minnich | 1 Dec 2004 22:59

Re: error disclosure


On Wed, 1 Dec 2004, Eric W. Biederman wrote:

> Last I looked a lot of the problem is design issues with the python
> parser generator the code is using.  It does not do a very good job at
> remember making it possible to print good error messages.

yeah, that parser generator is disappointing in the error recovery.

Fixes gratefully accepted.

ron
_______________________________________________
Linuxbios mailing list
Linuxbios <at> clustermatic.org
http://www.clustermatic.org/mailman/listinfo/linuxbios


Gmane