Adam Chunn wrote:
Kerry Shu wrote:
I attached the pcitool package for you to have a try. <snipped
package install instructions for SUNWio-tools>
access the configuration space:
# pcitool /p...@0,0 -d bdf=5.0.0,config -b 0x100 -r
==> from this output, you can check if the device is in D0 or not. I can
also help to double check it for you.
My output:
% pfexec pcitool /p...@0,0 -d bdf=5.0.0,config -b 0x100 -r
0F 0E 0D 0C 0B 0A 09 08 07 06 05 04 03 02 01 00
-----------------------------------------------
0x00000000e0500000: 00 00 00 10 05 01 00 02 00 10 00 47 00 14 15 b6
0x00000000e0500010: 00 00 00 00 00 00 00 00 fe 5e 00 00 fe 5f 00 00
0x00000000e0500020: 00 14 10 ee 00 00 00 00 00 00 00 00 00 00 00 00
0x00000000e0500030: 00 00 01 0b 00 00 00 00 00 00 00 40 fe 60 00 00
0x00000000e0500040: 00 00 00 00 01 80 60 05 00 00 00 00 08 03 48 01
0x00000000e0500050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000000e0500060: 00 03 f4 41 00 00 20 37 00 64 80 2a 00 01 00 10
0x00000000e0500070: 00 00 00 00 00 00 00 00 00 00 00 00 10 41 00 00
0x00000000e0500080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000000e0500090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000000e05000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000000e05000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000000e05000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000000e05000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000000e05000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000000e05000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I'll go over this with my hardware engineer once I figure out what it
is. :-) I assume it is the configuration space for the PCI nexus
device? I can't figure out what "-d bdf=5.0.0,config -b 0x100" is.
So my hardware engineer says that the chipset is in the D0 state.
Parsing the above output, the Power Management Register Block resides at
0xe0500040-0xe0500047. The Power State field is the lower two bits at
0xe0500044 -- which is set to D0 (b'00).
The hardware engineer claims that if my device wasn't set to D0, that
the card wouldn't respond to register accesses at all. The fact that we
see valid register accesses on my PCI Bus Analyzer means that D0 is set
correctly.
-Adam
_______________________________________________
driver-discuss mailing list
driver-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/driver-discuss