hi

As already reported by Martin Bochnig a while back, i too am
having problem with libpciaccess on Sparc.

it seems that when the code in function
src/solx_devfs.c::pci_device_solx_devfs_probe()

is doing
        ...
           (void) di_walk_node(rnode, DI_WALK_CLDFIRST,
                                (void *)&args, find_target_node);
        ...

the callback find_target_node() is recursively called, BUT is not
finding the right node (from device tree) it is looking for. as a
result the MMIO base addresses from "assigned-addresses" are not
found. so it is impossible to find the PCI MMIO base address of a
given device.

i have printed all the nodes that are passed to
find_target_node() and it seems that they are wrongly built. (no
"reg" or "assigned-addresses" properties seen.

so there is a problem between libpciaccess (sparc) and the
libdevinfo library.

prtconf(1) is working fine on sparc and is using libdevinfo. i
have looked at it and i can't see any meaningful differences with
what libpciaccess is doing. (di_init() ,...)

any ideas?

thanks a lot,



Best regards,
_______________________________________
jean-francois simon - themis computer
5, rue irene joliot curie
38320 eybens - france
+33 (0)4 76 14 77 85 - www.themis.com



_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to