Forgot the version info:

OpenBSD 4.6
setpci version 3.1.2

Is there a tool like strace or truss here?

On Mon, 23 Nov 2009 18:55:25 -0800
rhubbell wrote:

> Can't sort out what the problem is here.
> setpci reads fine but is unable to write.
> 
> /dev/pci is a link to /dev/pci0
> 
> pci0 is rw for root
> 
> 
> setpci -vG -s 2:04.0 3c.b
> 
> Trying method 8......using /dev/pci...OK
> Decided to use obsd-device
> Scanning bus 00 for devices...
> Scanning bus 02 for devices...
> Scanning bus 00 for devices...
> pcilib: Bus 00 seen twice (firmware bug). Ignored.
> Scanning bus 00 for devices...
> pcilib: Bus 00 seen twice (firmware bug). Ignored.
> Scanning bus 01 for devices...
> 0000:02:04.0 @3c = 0b
> 
> setpci -vG -s 2:04.0 3c.b=0xf
> 
> Trying method 8......using /dev/pci...OK
> Decided to use obsd-device
> Scanning bus 00 for devices...
> Scanning bus 02 for devices...
> Scanning bus 00 for devices...
> pcilib: Bus 00 seen twice (firmware bug). Ignored.
> Scanning bus 00 for devices...
> pcilib: Bus 00 seen twice (firmware bug). Ignored.
> Scanning bus 01 for devices...
> setpci: obsd_write: ioctl(PCIOCWRITE) failed
> 0000:02:04.0 @3c 0f
> 
> setpci -vG -s 2:04.0 3c.b
> Trying method 8......using /dev/pci...OK
> Decided to use obsd-device
> Scanning bus 00 for devices...
> Scanning bus 02 for devices...
> Scanning bus 00 for devices...
> pcilib: Bus 00 seen twice (firmware bug). Ignored.
> Scanning bus 00 for devices...
> pcilib: Bus 00 seen twice (firmware bug). Ignored.
> Scanning bus 01 for devices...
> 0000:02:04.0 @3c = 0b

Reply via email to