We found that whenever the following message is displayed the driver fails to 
read the mapped memory for the first BAR.
"WARNING: failed to program mem space [0/31/3] b...@0x10 length 0x100"


This warning message is output here:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/intel/io/pci/pci_boot.c#2159

2027 base = (uint_t)memlist_find(io_res, len, len);
2028 if (base != 0) {
2029    memlist_insert(io_res_used, base, len);
2030    /* XXX need to worry about 64-bit? */
2031    pci_putl(bus, dev, func, offset,
2032        base | type);
2033    base = pci_getl(bus, dev, func, offset);
2034    base &= PCI_BASE_IO_ADDR_M;
2035 }
2036 if (base == 0) {
2037    cmn_err(CE_WARN, "failed to program"
2038        " IO space [%d/%d/%d] b...@0x%x"
2039        " length 0x%x",
2040        bus, dev, func, offset, len);

Thanks,
Eitan
-- 
This message posted from opensolaris.org
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to