From patchwork Fri May 27 06:59:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shaohua Li X-Patchwork-Id: 823102 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4R6xm5U031551 for ; Fri, 27 May 2011 06:59:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758313Ab1E0G7m (ORCPT ); Fri, 27 May 2011 02:59:42 -0400 Received: from mga01.intel.com ([192.55.52.88]:33736 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758227Ab1E0G7k (ORCPT ); Fri, 27 May 2011 02:59:40 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 26 May 2011 23:59:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,279,1304319600"; d="scan'208";a="9798328" Received: from sli10-conroe.sh.intel.com (HELO [10.239.36.123]) ([10.239.36.123]) by fmsmga001.fm.intel.com with ESMTP; 26 May 2011 23:59:39 -0700 Subject: [PATCH]x86 pci: select direct access mode for mmconfig option From: Shaohua Li To: Jesse Barnes Cc: linux-pci Date: Fri, 27 May 2011 14:59:39 +0800 Message-ID: <1306479579.15392.40.camel@sli10-conroe> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 27 May 2011 06:59:49 +0000 (UTC) direct access is needed in mmconf mode too. There are two reasons: 1. we need it to access first 256 bytes. We have bug before that using mmconf to access pci config space hangs system (when resizing BARs) 2. when doing mmconfg bar checking, we need access ACPI _CRS, which might access PCI config space. Signed-off-by: Shaohua Li --- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 880fcb6..90e50d9 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1907,7 +1907,7 @@ config PCI_BIOS # x86-64 doesn't support PCI BIOS access from long mode so always go direct. config PCI_DIRECT def_bool y - depends on PCI && (X86_64 || (PCI_GODIRECT || PCI_GOANY || PCI_GOOLPC)) + depends on PCI && (X86_64 || (PCI_GODIRECT || PCI_GOANY || PCI_GOOLPC || PCI_GOMMCONFIG)) config PCI_MMCONFIG def_bool y