All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian-Ken Rueegsegger <ken@codelabs.ch>
To: linux-pci@vger.kernel.org
Cc: ken@codelabs.ch
Subject: [RFC PATCH] x86/PCI: Refine PCI support check in pcibios_init()
Date: Wed, 23 Mar 2016 11:34:29 +0100	[thread overview]
Message-ID: <1458729269-9440-2-git-send-email-ken@codelabs.ch> (raw)
In-Reply-To: <1458729269-9440-1-git-send-email-ken@codelabs.ch>

Also consider raw_pci_ext_ops when validating if a system has PCI
support. This leads to proper resource allocation via
pcibios_resource_survey() in the case where PCI config space is
exclusively accessed through MMCONFIG.

Signed-off-by: Adrian-Ken Rueegsegger <ken@codelabs.ch>
---
 arch/x86/pci/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
index 8fd6f44..50b123d 100644
--- a/arch/x86/pci/common.c
+++ b/arch/x86/pci/common.c
@@ -517,7 +517,7 @@ void __init pcibios_set_cache_line_size(void)
 
 int __init pcibios_init(void)
 {
-	if (!raw_pci_ops) {
+	if (!raw_pci_ops && !raw_pci_ext_ops) {
 		printk(KERN_WARNING "PCI: System does not support PCI\n");
 		return 0;
 	}
-- 
2.1.4


  reply	other threads:[~2016-03-23 10:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-23 10:34 PCI support check in pcibios_init() Adrian-Ken Rueegsegger
2016-03-23 10:34 ` Adrian-Ken Rueegsegger [this message]
2016-04-12  4:47   ` [RFC PATCH] x86/PCI: Refine " Bjorn Helgaas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1458729269-9440-2-git-send-email-ken@codelabs.ch \
    --to=ken@codelabs.ch \
    --cc=linux-pci@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.