From: Kjetil Oftedal oftedal@gmail.com Date: Mon, 23 Sep 2013 21:06:11 +0200
That looks quite strange. I guess the kernel should map the ROM at the address OpenBoot/OF assigned to it. ( 10020000 ).
The address you see is a raw physical I/O address, which is a concatenation of the I/O window physical address for that PCI controller and the PCI bus assigned address.
This is what we store in the resource values.
The pci_assign_resource() path must have some bug that causes the resource values to be set incorrectly or similar.
Meelis, what is the value of pci_resource_start(pdev, PCI_ROM_RESOURCE) before the pci_map_rom() call?