All of lore.kernel.org
 help / color / mirror / Atom feed
* PCI support check in pcibios_init()
@ 2016-03-23 10:34 Adrian-Ken Rueegsegger
  2016-03-23 10:34 ` [RFC PATCH] x86/PCI: Refine " Adrian-Ken Rueegsegger
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian-Ken Rueegsegger @ 2016-03-23 10:34 UTC (permalink / raw)
  To: linux-pci; +Cc: ken

Hi,

We are running Linux as a VM on top of the Muen Separation Kernel [1], where
we only allow PCI config space access of pass-through devices via MMCONFIG. In
this use case the PCI support check in pcibios_init() fails as raw_pci_ops is
not set:

int __init pcibios_init(void)
{
    if (!raw_pci_ops) {
        printk(KERN_WARNING "PCI: System does not support PCI\n");
        return 0;
    }
	...
}

As a consequence device resources are not allocated since the following call to
pcibios_resource_survey() is skipped. Extending the check to also consider
raw_pci_ext_ops (see patch) leads to the proper resource allocation in our use
case.

Is the described change the correct solution or is there a particular reason to
only check raw_pci_ops in pcibios_init()?

Regards,
Adrian

[1] - https://muen.codelabs.ch/


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-12  4:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-23 10:34 PCI support check in pcibios_init() Adrian-Ken Rueegsegger
2016-03-23 10:34 ` [RFC PATCH] x86/PCI: Refine " Adrian-Ken Rueegsegger
2016-04-12  4:47   ` Bjorn Helgaas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.