Received: by 10.223.185.116 with SMTP id b49csp6202242wrg; Thu, 8 Mar 2018 03:38:28 -0800 (PST) X-Google-Smtp-Source: AG47ELtcqbsL+A5WdmvXHy4P/BItGL/I7HHQXw1mif8cdKeUWSgixJRtwOC1/uPn8qcbZldFGp6Z X-Received: by 2002:a17:902:bb06:: with SMTP id l6-v6mr23672479pls.394.1520509108393; Thu, 08 Mar 2018 03:38:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520509108; cv=none; d=google.com; s=arc-20160816; b=0DKgma4rxHTBnC+eHzAXgojQZYKzjXGIF4Sp9B4KhzVR6Py3ka2sxkP2s7q6ZvOFTH BUdkdMSlJLHHed/uxMoc1LM3de15dlwx0wXOldAjZ8pSXOvIm0kLC+8diAMOmocMGddn 954Q1T0ZITsNLItWbLvXPFMUW5H8VYNAPdBEjRnlMciLtikTfx4+Tv6wcKmkRnZ4q00G 4AIYSfgtfKLRX3pyfi8VzYiqjwXyCajNJ9+kztP82aafJ2UhyMZfWG+kvyUMRmnT3F0q 8mJCiR6FwM6908E+OYvrtpQOuUBiFvDAVvQOq2EXB4IgyP//LFK+zsX4TdRLmYwWXN/8 lg/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=EqntCQk9vSe7acReuIkCcw6gzS/5gaYRXqc5TQIju0M=; b=HCHf01d94a2UyXqdG5PkBdoAL7RDCaWCKSCcvSOBhWIKw8C/R1utzhQQ032GDSNhaJ ZLoF3VDg2fjfslHjoJwKLgeHSdwuBMHZFI4SSzjmHKzZytyxfZjv8hK4qeR/J5P3HtOS 25cT+WX/87c2WV35DA3OiVMAnAIHDdP8o1YW/tnhOVWFuWwPL9nX9eFYVUuS7rNtaOkX 4R94ppJdVo4PjsfsgJLPBpu20NupwWxIMVdqx1i65z8XnDukz+UkSjkplcSb2Of/tom8 HxvpCEUQ5nlKABpuyHe7ZLxIxBGYokV6mFZ/fYCtr7k0aqEhQ0xQ8lP6zgOHNzxhCuVy 11Yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si14731861plf.289.2018.03.08.03.38.14; Thu, 08 Mar 2018 03:38:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935821AbeCHLgm (ORCPT + 99 others); Thu, 8 Mar 2018 06:36:42 -0500 Received: from terminus.zytor.com ([198.137.202.136]:57139 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935810AbeCHLgk (ORCPT ); Thu, 8 Mar 2018 06:36:40 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w28BaUXr030267; Thu, 8 Mar 2018 03:36:30 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w28BaTQX030264; Thu, 8 Mar 2018 03:36:29 -0800 Date: Thu, 8 Mar 2018 03:36:29 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Jan Kiszka Message-ID: Cc: linux-kernel@vger.kernel.org, jan.kiszka@siemens.com, bhelgaas@google.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, andy.shevchenko@gmail.com Reply-To: tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, andy.shevchenko@gmail.com, jan.kiszka@siemens.com, bhelgaas@google.com, linux-kernel@vger.kernel.org In-Reply-To: <788bbd5325d1922235e9562c213057425fbc548c.1520408357.git.jan.kiszka@siemens.com> References: <788bbd5325d1922235e9562c213057425fbc548c.1520408357.git.jan.kiszka@siemens.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/platform] x86/jailhouse: Allow to use PCI_MMCONFIG without ACPI Git-Commit-ID: 8364e1f8379c7f9d3e63f127a585f889906b3e10 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8364e1f8379c7f9d3e63f127a585f889906b3e10 Gitweb: https://git.kernel.org/tip/8364e1f8379c7f9d3e63f127a585f889906b3e10 Author: Jan Kiszka AuthorDate: Wed, 7 Mar 2018 08:39:17 +0100 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 12:30:39 +0100 x86/jailhouse: Allow to use PCI_MMCONFIG without ACPI Jailhouse does not use ACPI, but it does support MMCONFIG. Make sure the latter can be built without having to enable ACPI as well. Primarily, its required to make the AMD mmconf-fam10h_64 depend upon MMCONFIG and ACPI, instead of just the former. Saves some bytes in the Jailhouse non-root kernel. Signed-off-by: Jan Kiszka Signed-off-by: Thomas Gleixner Cc: jailhouse-dev@googlegroups.com Cc: linux-pci@vger.kernel.org Cc: virtualization@lists.linux-foundation.org Cc: Andy Shevchenko Cc: Bjorn Helgaas Link: https://lkml.kernel.org/r/788bbd5325d1922235e9562c213057425fbc548c.1520408357.git.jan.kiszka@siemens.com --- arch/x86/Kconfig | 6 +++++- arch/x86/kernel/Makefile | 2 +- arch/x86/kernel/cpu/amd.c | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 573b7c49d9f8..7f00f60a2028 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2642,7 +2642,7 @@ config PCI_DIRECT config PCI_MMCONFIG bool "Support mmconfig PCI config space access" if X86_64 default y - depends on PCI && (ACPI || SFI) + depends on PCI && (ACPI || SFI || JAILHOUSE_GUEST) depends on X86_64 || (PCI_GOANY || PCI_GOMMCONFIG) config PCI_OLPC @@ -2658,6 +2658,10 @@ config PCI_DOMAINS def_bool y depends on PCI +config MMCONF_FAM10H + def_bool y + depends on X86_64 && PCI_MMCONFIG && ACPI + config PCI_CNB20LE_QUIRK bool "Read CNB20LE Host Bridge Windows" if EXPERT depends on PCI diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index 29786c87e864..73ccf80c09a2 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -146,6 +146,6 @@ ifeq ($(CONFIG_X86_64),y) obj-$(CONFIG_GART_IOMMU) += amd_gart_64.o aperture_64.o obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o - obj-$(CONFIG_PCI_MMCONFIG) += mmconf-fam10h_64.o + obj-$(CONFIG_MMCONF_FAM10H) += mmconf-fam10h_64.o obj-y += vsmp_64.o endif diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index f0e6456ca7d3..12bc0a1139da 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -716,7 +716,7 @@ static void init_amd_k8(struct cpuinfo_x86 *c) static void init_amd_gh(struct cpuinfo_x86 *c) { -#ifdef CONFIG_X86_64 +#ifdef CONFIG_MMCONF_FAM10H /* do this for boot cpu */ if (c == &boot_cpu_data) check_enable_amd_mmconf_dmi();