From 00070396b06392fadcee0e19d499a43b81c63c45 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Fri, 22 May 2009 09:57:32 -0500 Subject: [PATCH] bios: Use the correct mask to size the PCI option ROM BAR Bit 0 is the enable bit, which we not only don't want to set, but it will stick and make us think it's an I/O port resource. Signed-off-by: Alex Williamson Signed-off-by: Anthony Liguori --- ...rect-mask-to-size-pci-option-rom-bar.patch | 33 ++++++++++++++++++ pc-bios/bios-pq/series | 1 + pc-bios/bios.bin | Bin 131072 -> 131072 bytes 3 files changed, 34 insertions(+) create mode 100644 pc-bios/bios-pq/0016-use-correct-mask-to-size-pci-option-rom-bar.patch diff --git a/pc-bios/bios-pq/0016-use-correct-mask-to-size-pci-option-rom-bar.patch b/pc-bios/bios-pq/0016-use-correct-mask-to-size-pci-option-rom-bar.patch new file mode 100644 index 0000000000..556a0bda79 --- /dev/null +++ b/pc-bios/bios-pq/0016-use-correct-mask-to-size-pci-option-rom-bar.patch @@ -0,0 +1,33 @@ +Subject: [PATCH] bios: Use the correct mask to size the PCI option ROM BAR +From: Alex Williamson + +Bit 0 is the enable bit, which we not only don't want to set, but +it will stick and make us think it's an I/O port resource. + +Signed-off-by: Alex Williamson +Signed-off-by: Anthony Liguori +--- + +diff --git a/bios/rombios32.c b/bios/rombios32.c +index d7e18e9..f861f81 100644 +--- a/bios/rombios32.c ++++ b/bios/rombios32.c +@@ -985,11 +985,13 @@ static void pci_bios_init_device(PCIDevice *d) + int ofs; + uint32_t val, size ; + +- if (i == PCI_ROM_SLOT) ++ if (i == PCI_ROM_SLOT) { + ofs = 0x30; +- else ++ pci_config_writel(d, ofs, 0xfffffffe); ++ } else { + ofs = 0x10 + i * 4; +- pci_config_writel(d, ofs, 0xffffffff); ++ pci_config_writel(d, ofs, 0xffffffff); ++ } + val = pci_config_readl(d, ofs); + if (val != 0) { + size = (~(val & ~0xf)) + 1; + + diff --git a/pc-bios/bios-pq/series b/pc-bios/bios-pq/series index aa5a3753ed..c7c7f67e0d 100644 --- a/pc-bios/bios-pq/series +++ b/pc-bios/bios-pq/series @@ -13,3 +13,4 @@ 0013_fix-non-acpi-timer-interrupt-routing.patch 0014_add-srat-acpi-table-support.patch 0015_enable-power-button-even-generation.patch +0016-use-correct-mask-to-size-pci-option-rom-bar.patch diff --git a/pc-bios/bios.bin b/pc-bios/bios.bin index 8aa5b713caa5e76bb3b6a101afa1996ffbfb2149..6c8bc9f6ce04633b5dabff292c07d15c2fb527e7 100644 GIT binary patch delta 1955 zcmZ8idrXs86u%cr{Rov7Y$HQ?w>(QrK{pZc0hG-tn?_L=WsGI($aIdGqEmykD;Pez zPO`I@=&~6$v*@BTqXYpL1Vk&-e`Jfw#uS*3uRdt!#zbL!JC{;e)}*KRcka2r^Srkf z3um!#8bimq*ja?M)}u&y`scUp5z9l#Il@#DpX!)<)At%(AbkVY2Mz^<8|UY;`IPFMEweXCX%>Vjl_5EJqVkcwsHrUpGL$Ns4uwh! zT>>uUI#nKHE2MZbe{vOos{+ugBBBcsyCiA}Aw&rNM-&acj;2HeMBe-nSqN{d4$?B` zh-xH&n&3f19^DGM=dROQkVdA^Cdi1?(vP7eGKN+-t0K!NJpi}n-L4*88cO&AwZc!# zkBFkRYJdbHZB2Io%7eq`0#%d};&)i{7=gW*Gl+I0=Q4T~XkrhyS4jBcezzTgqZtLU z7xnYrwow@&odaCwpdz@_ZuDAvaL1wfhZXAD9+hNY-yKF;V z{@Rn9$Emz#46PfMV?WO_;aDwYj^nQK&-f7G9@YX8hC{RL#J)qq8~bf8YBPEzHgT5u zeVZti*X}?cc4I&PhcBE#u5$pxv2N}dYbX@5~VB@G`b;bmL!($r^Y#f(2TW4bvhmm8yg%I;X zTlb>Pua}mbuXmUeiIs&AxKq*a63deb_b96B8wwa^!YwdttrF&ZKuBd5?2cYm{n>p{ zbOqJnE(SvUge-$eAC*yPuBc$CJi~niVR+WD6Y+h-7`CCe)r&`kRpXOoZ2b#c-^RFv z>?utJqBa}_A|y>|%*+PAM5tDw%KZ(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