Received: by 10.223.185.116 with SMTP id b49csp7638823wrg; Thu, 1 Mar 2018 08:37:28 -0800 (PST) X-Google-Smtp-Source: AG47ELut5NaPy9l0BK7+JHgjp+xoff/LNlTQOzeFm3kGvxChRloRILcw+zqBEnOwIJk8QkwCVxb/ X-Received: by 2002:a17:902:536a:: with SMTP id b97-v6mr2443429pli.421.1519922248799; Thu, 01 Mar 2018 08:37:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519922248; cv=none; d=google.com; s=arc-20160816; b=U9x0yTnnNKXOwTH02Be2dLtGgLpPvxh3zSywvL/llZJ2CRtbpmNFXWOI4l0PpJeDxr dO6NGH5oFz07GXKP0LVQh+TXgKwlRGgxsaONNWGoRSx/RMdHlt+o++D4iL/QlkKi6drr SFT9st0qS7jw3pJpHFZXRQfWmodpGE/ycNvPeSsDlFmndd1H/lvi0WreQ0K6MlYWovE0 qDrba28B5PibAOHkH+xCdU7ch+vFMQ/V1j7f881FVwZdDJpoCTRNfWdd2jxkBBpnuQGA s2MoDVKY3LfS54VvjiyxccpwWtPKVXGnGDvu8c359zj6zlQsKi9EbGzK78LgSVMo0EDE j62g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=2GrG9cZKZ0WA+3yuOJDM4rZ8lk0TWHMoz0IHmVulgN8=; b=t1rLRcRHTkIBiPlwkbkGoAJofeW1DnmlIw1aqnh+A/Mae2jxw76pFHsp4ACfG3941M Kw8xPoDFkSWxS5Rg5PXEtHIE0OvJdlHf/4xeHkq/mQm3zta4CkENUr30/4ycQFsWmkLH llf8bTqLlqvm9AUCSY4QBpP+k+FsSaqbPDui28l/9/mjCiGxBoq2tK+Yw49RszhoH42I KLVrO7w8bi3OJLgbvzMezvFb9zqwsscfYY3EoN3Mhn7QrhatiCHXQ/NbaSMb/nvSVtNA rPKIRsONuInUK+nz1Ztayeh5d9ZBYhvauxdLi+84tIlbQe0xPtKbabhlFF+6SE9W38K0 DzYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=op2yHIs9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si3250798plb.441.2018.03.01.08.37.13; Thu, 01 Mar 2018 08:37: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=op2yHIs9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032990AbeCAQfx (ORCPT + 99 others); Thu, 1 Mar 2018 11:35:53 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:37979 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032742AbeCAQfv (ORCPT ); Thu, 1 Mar 2018 11:35:51 -0500 Received: by mail-qt0-f193.google.com with SMTP id n12so8287030qtl.5; Thu, 01 Mar 2018 08:35:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2GrG9cZKZ0WA+3yuOJDM4rZ8lk0TWHMoz0IHmVulgN8=; b=op2yHIs9DzU3uQNNyWNuuqBo4IKUlxDuyxKDPamq2376pTfj1L5rYg+IGVu7DLCIcA LMoh22zMf7PydW1Jl2/KFsaMjEwIFBtTD3o+ONhyYWYa/ed0SgrfU1XDjILMPb+hudQK vCyGmoSaV87coWfQ7OJL0ZiFWxlloS0ACWOShMCzX9dUIMkwyyx4gniY9Jea+b1ZhSx1 jX6u76+5DNC9mMkyamtLsiRySMRYvdO5e0KAF4iU31vRL2vdMGFxTv3VjSG6HmEJWdSN AUBfPSQwglwTZAaDSEjpVpwlIPsP9Y3N4yJdPgAs7hk8z7g3UzboDdnp6lm7o/VocUY1 khHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2GrG9cZKZ0WA+3yuOJDM4rZ8lk0TWHMoz0IHmVulgN8=; b=KEjSxrdHk/mu3pPHHlyYfngtQQ6vh7NryiXOU8j8fJuvK2CTov5kEzwAcu6zX7qP/5 TD0MHQJpWcLdjDLSqLoiJmrfu+FlJn+8TpTDaY3VFGLj93UwwhuFGLVYT6IRdLF5O+Pa 0BPIBhGWRQs79QcwNFaN/5icaoCkfUJ5ZVgxqhNgFKwSKTtpQLyTv2udGLpVyIpEpxiJ vVQWvpVMfNKD90rCwS8rmDSLd752PTEhR0+/y3eZJaGZuffZJPrQ9BWLuHVSO/KgesPt jMohTMOGSIOncFrybBKsPP7HTANlX/hEA0nrggwKns1EJpGHy/DIemes4aBfqyFq3xYz kPzg== X-Gm-Message-State: AElRT7HRVJtXGaidz5yCRx5dDG/pqw8xV4l/+dUGtO7wV6vJJru5wz1K VSA1Lhkweom5HB5qWRrh7ABw+9RJkIrOTDQNCV8= X-Received: by 10.200.54.213 with SMTP id b21mr3938738qtc.187.1519922150835; Thu, 01 Mar 2018 08:35:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.195.80 with HTTP; Thu, 1 Mar 2018 08:35:50 -0800 (PST) In-Reply-To: <20180301151359.GC13722@bhelgaas-glaptop.roam.corp.google.com> References: <8527c92b2e2920b8cd9096ddcbbb6d0f4004eb69.1519882849.git.jan.kiszka@siemens.com> <20180301151359.GC13722@bhelgaas-glaptop.roam.corp.google.com> From: Andy Shevchenko Date: Thu, 1 Mar 2018 18:35:50 +0200 Message-ID: Subject: Re: [PATCH v3 4/6] x86: Consolidate PCI_MMCONFIG configs To: Bjorn Helgaas Cc: Jan Kiszka , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Bjorn Helgaas , x86@kernel.org, Linux Kernel Mailing List , jailhouse-dev@googlegroups.com, linux-pci@vger.kernel.org, virtualization@lists.linux-foundation.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 1, 2018 at 5:13 PM, Bjorn Helgaas wrote: > On Thu, Mar 01, 2018 at 06:40:47AM +0100, Jan Kiszka wrote: >> From: Jan Kiszka >> >> Since e279b6c1d329 ("x86: start unification of arch/x86/Kconfig.*"), we >> have two PCI_MMCONFIG entries, one from the original i386 and another >> from x86_64. This consolidates both entries into a single one. >> >> The logic for x86_32, where this option was not under user control, >> remains identical. On x86_64, PCI_MMCONFIG becomes additionally >> configurable for SFI systems even if ACPI was disabled. This just >> simplifies the logic without restricting the configurability in any way. > > Thanks for mentioning this difference. It's probably trivial, but if > you have any other reason to respin this series, I would split this > into two patches: > > - allow PCI_MMCONFIG on x86_64 with SFI > - consolidate PCI_MMCONFIG with no logical change at all > >> Signed-off-by: Jan Kiszka > > But either way, > > Acked-by: Bjorn Helgaas > If you going to respin I would suggest one more trivia Split long depends on to two lines, like - depends on PCI && (X86_64 || (PCI_GODIRECT || PCI_GOANY || PCI_GOOLPC || PCI_GOMMCONFIG)) + depends on PCI + depends on X86_64 || (PCI_GODIRECT || PCI_GOANY || PCI_GOOLPC || PCI_GOMMCONFIG) ... depends on PCI && (ACPI || SFI) && (X86_64 || (PCI_GOANY || PCI_GOMMCONFIG)) + depends on PCI && (ACPI || SFI) + depends on X86_64 || (PCI_GOANY || PCI_GOMMCONFIG) (perhaps in a separate change) >> --- >> arch/x86/Kconfig | 9 +++------ >> 1 file changed, 3 insertions(+), 6 deletions(-) >> >> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >> index eb7f43f23521..aef9d67ac186 100644 >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -2641,8 +2641,9 @@ config PCI_DIRECT >> depends on PCI && (X86_64 || (PCI_GODIRECT || PCI_GOANY || PCI_GOOLPC || PCI_GOMMCONFIG)) >> >> config PCI_MMCONFIG >> - def_bool y >> - depends on X86_32 && PCI && (ACPI || SFI) && (PCI_GOMMCONFIG || PCI_GOANY) >> + bool "Support mmconfig PCI config space access" if X86_64 >> + default y >> + depends on PCI && (ACPI || SFI) && (X86_64 || (PCI_GOANY || PCI_GOMMCONFIG)) >> >> config PCI_OLPC >> def_bool y >> @@ -2657,10 +2658,6 @@ config PCI_DOMAINS >> def_bool y >> depends on PCI >> >> -config PCI_MMCONFIG >> - bool "Support mmconfig PCI config space access" >> - depends on X86_64 && PCI && ACPI >> - >> config PCI_CNB20LE_QUIRK >> bool "Read CNB20LE Host Bridge Windows" if EXPERT >> depends on PCI >> -- >> 2.13.6 >> -- With Best Regards, Andy Shevchenko