Received: by 10.223.185.116 with SMTP id b49csp6336396wrg; Wed, 28 Feb 2018 07:47:18 -0800 (PST) X-Google-Smtp-Source: AH8x227dlLHAJkYzc9P/OQcBZScCIL2T+VR8EWm31zhapejOaO6yjiFPivcFyYwMcU6vC/j7eEaz X-Received: by 10.98.205.140 with SMTP id o134mr18210648pfg.34.1519832838689; Wed, 28 Feb 2018 07:47:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519832838; cv=none; d=google.com; s=arc-20160816; b=P0mg0y4Np5+q1l0A9r5+4n2P6RBmNYC0vvNzKOwLbSk+B5m9hHz+IP2n0yWC+UKhtf gL2X4pweX9icpG8ZdvEiyExQ3he9GQGEGId43sLmHo9/3QuJl8sjv0tubU2qU6blZqOe RyqnUcGG973dm0cQRTEwI97vr9hjJ+Wowtnu5kB7j5fxl122R+Ce5Zt6jGztN8n8f93u gTlaGSSAG82pGqgZWXxYzR/3tk5r1IAJ7oD9wNwH1yryXpwJHjq/xFil3rtsx/XUahlx L5YQKntmfJKE3O8xqcVykJAJX1/SbVPgZCdi6tD6ddZwBWcR7C8jJKg3YYgGFbA5n4bV J/1w== 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=WvsYMYGT3AuRpruF/qDQe8Dap4xqd92KAN1fNxTQzv4=; b=nVeqjXt2vs37q/gj/MkghBi39eeplWmpZxURVppV2yF3gWi1UizwXJLvJ+vOgia92a IJqUZZu3lizdnON8IDJrsNYQPL8HwGfWkImZiuj87biKMpWJa0Uq/kfINc1fzq2TUUiN 2mJEpf6fp540N7Sr4wNRHVXKgnuB/1iFfVR/81Z4QmvrGwtZa53vcSVtC74BzX6pLCTP fSZNfq1infKjwDZjM1Conj8mM6HoYd+cLBgL5aGyHVwuOQWEsF4/ozxwNCpFHfguIULE YnvwezjXzo0J1P19LbQI0NuOUEAgA+zGWOBEF86WsM0VfJMeaf0cuj5Mwj+31hh5nMGJ Lu7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A+xEE67i; 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 l4si1147332pgc.586.2018.02.28.07.47.04; Wed, 28 Feb 2018 07:47:18 -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=A+xEE67i; 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 S933405AbeB1Ppm (ORCPT + 99 others); Wed, 28 Feb 2018 10:45:42 -0500 Received: from mail-qt0-f194.google.com ([209.85.216.194]:43105 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932642AbeB1Ppj (ORCPT ); Wed, 28 Feb 2018 10:45:39 -0500 Received: by mail-qt0-f194.google.com with SMTP id d26so3479444qtk.10; Wed, 28 Feb 2018 07:45:38 -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=WvsYMYGT3AuRpruF/qDQe8Dap4xqd92KAN1fNxTQzv4=; b=A+xEE67i5sXKujSV4kqhsINVRGlHQjPbay2uLPCHtKVUhrj6EUgJbsHG4spZKPa7DO BNcLZC2mvkHqemG4dz0Ss2zzyEctarfVmrDwxCQlsCYDdej4XmC6d/7QZasXqu0DCExm T4ltSYU4DZsByVYUCV24t/sYJPBWA4/KkxU8MkABJGI7otB+aOf2E3nO8CqWAPNii9wD 70UbiDUy3ZJcne5yXIMclRPFZw5nGvpkj2szUItJ6ejCWGsG24ou+ha4n0HRxfi1BVPD sHlV9OIFIrSr5KzJPNlzQnDYqc+CNH4tgi+96+txOxGZrwexs2eKwjxR1/bRLf924sqx yP5g== 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=WvsYMYGT3AuRpruF/qDQe8Dap4xqd92KAN1fNxTQzv4=; b=OEUatGjnEqe65iQlQE/W5dAnEhgsVYDthiAa9QMtnot4SNcxssNWnJ8EAA2Caz/BUZ KLdcJqgAbIstFgYcBQMYqLARtRWGQT5S5z6VV05FFqPE3Tx/tGiJSJiav929xf8m5GpN p0xXP9kpd8DGYwsmxjGGHVK9oTPlJsAy5DLW22XXuF0RPRd/DAk//YtZIWtQQCjFck/6 wET5pnH0V1Yf8OCpO3b8WMu5yP8vGpsoWdcK1xNfK6cJbICkfK2M68qPqlJWD2U94JOR PVXsmPPVWrKxuM13B+irIlPZ+wdbd7e9o0OOpv6aNLwMTIbXBgtyD+ZA266Ji8AVQ+gj Daug== X-Gm-Message-State: APf1xPBmCyoEq8PwXUU8mrnLVU5kL4AyOi+w9zy1FFVCW3sTD+hB0Khm YET6sfhfPkvuS9PRxdW8QN55Utdgjb4OlEK+v80= X-Received: by 10.237.59.232 with SMTP id s37mr29268668qte.83.1519832738561; Wed, 28 Feb 2018 07:45:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.195.80 with HTTP; Wed, 28 Feb 2018 07:45:37 -0800 (PST) In-Reply-To: <76a05abd818c89032161585ba130511a5bd673f0.1519799691.git.jan.kiszka@siemens.com> References: <76a05abd818c89032161585ba130511a5bd673f0.1519799691.git.jan.kiszka@siemens.com> From: Andy Shevchenko Date: Wed, 28 Feb 2018 17:45:37 +0200 Message-ID: Subject: Re: [PATCH v2 4/6] x86: Consolidate PCI_MMCONFIG configs To: Jan Kiszka Cc: 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 Wed, Feb 28, 2018 at 8:34 AM, Jan Kiszka wrote: > From: Jan Kiszka > > Not sure if those two worked by design or just by chance so far. In any > case, it's at least cleaner and clearer to express this in a single > config statement. I would add a reference to the commit which brought that in the first place. > > Signed-off-by: Jan Kiszka > --- > arch/x86/Kconfig | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index eb7f43f23521..63e85e7da12e 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) && (PCI_GOMMCONFIG || PCI_GOANY || X86_64) Looking to the above context I would rather put it like depends on PCI && (ACPI || SFI) && (X86_64 || (PCI_GOANY || PCI_GOMMCONFIG)) -- With Best Regards, Andy Shevchenko