Lamb Liu 写道: > Got it. > > Here is how to hack the pcie-pci bridge:
I don't know whether 'pcitool' is available (check with ls /usr/bin/pcitool), if so, you can do like this: #rem_drv wpi #pcitool /[EMAIL PROTECTED],0 -d bdf=0.1c.1,config -o 0x20 -s 4 -w 0xd210d210 #pcitool /[EMAIL PROTECTED],0 -d bdf=0.1c.1,config -o 4 -s 1 -w 0x46 #pcitool /[EMAIL PROTECTED],0 -d bdf=3.0.0,config -o 0x10 -s 4 -w 0xd2100000 #add_drv -i '"pciex8086,4222"' wpi #ifconfig wpi0 plumb If pcitool is not available, then it is a bit complex, you can use kmdb with command line login as an alternative, #mdb -KF >20::wrpcicfg 0 1c 1 d210d210 >4::rdpcicfg 0 1c 1 100044 -----the output here may be this value >4::wrpcicfg 0 1c 1 100046 ---make sure the last byte is 46, leaving other bytes as is. >10::wrpcicfg 3 0 0 d2100000 >:c --Brian > Lamb. > > > Brian Xu - Sun Microsystems - Beijing China 写道: > >> Lamb Liu 写道: >> >> >>> Brian, Thanks, >>> I read that email, and now need your help to hack the PCI-PCI bridge >>> See attachment for more information. >>> >>> >>> >> The output of 'prtconf -v', instead of 'scanpci -v' is needed. >> >> >>> BTW, I wonder if my Marvell NIC is also caused by this issue. >>> >>> >> I think so. >> >> >>> And do you >>> know how to solve this bug? If necessary , I can recompile the code. >>> >>> >>> >> Solaris initializes the pci devices according to the information >> provided by bios, so if bios doesn't initialize the pci devices >> correctly, such as the pcie-pci device in your laptop, then all the pci >> devices under those bridge can not work. >> >> To solve this bug, solaris need initialize the whole pci device tree >> during boot. >> >> You can have a look at usr/src/uts/intel/io/pci/pci_boot.c and if you >> have enough knowledge on pci and pci-pci bridge, you can try to modify >> and recompile the code. >> >> --Brian >> >> >>> Lamb >>> >>> >>> >>> >>> >>> >> >> > > _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
