[driver-discuss] OpenSOlaris build 110 - problem with ddi_regs_map_setup() on x86
Kerry Shu
Kerry.Shu at Sun.COM
Wed Apr 22 10:22:39 PDT 2009
Could you post the '/usr/X11/bin/scanpci -v' result? And what is your
device ID?
I saw you mentioned:
WARNING: failed to program mem space [0/31/3] BAR at 0x10 length 0x100
While Gireesh mentioned:
WARNING: failed to program mem space [4/0/0] BAR at 0x10 length 0x800000
Are you two talking about same issue or not?
Regards,
Kerry
Eitan Eliahu wrote:
> 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] BAR at 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] BAR at 0x%x"
> 2039 " length 0x%x",
> 2040 bus, dev, func, offset, len);
>
> Thanks,
> Eitan
More information about the driver-discuss
mailing list