Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp536198pxb; Tue, 9 Feb 2021 06:41:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2SOD/K+0+5q62AilCqOe4syXFUXjRzH6z07sj8Hg9im+qz3t+awtoEr9DAnDkKA5EArjh X-Received: by 2002:a17:906:b09a:: with SMTP id x26mr22962423ejy.199.1612881698984; Tue, 09 Feb 2021 06:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612881698; cv=none; d=google.com; s=arc-20160816; b=jcwmqxR/B4Iy72wMgiTanlyfvxXcZktTU7Ez/wauyofmAlmHlJW6vC4hEZanyt75zv QhjQIlbTdT74rxtvQm2jxlZCfQ6d0btBVOkPFBv+M6LE9l5m4R+FI18Ph09gUNiMXwqX G8EbQnbW+JZ8AYz2s7dFuKZFyMM+dcCDd9a3IBk1+/5gJTrPee8aof3SVt1C6tUc5G2V I7lHqSp7TfDa0X1Tz+0TWE6LJo3ojf8PENjo39fRKhZtY4FQScE7l9NCqdMy+PkcQB5q erbn+VsurwfvLi+ekyQrNPAjXyf4wcX+ezFkD8LZ6802WkYIAi9TXFrIuqz22WxkdsFq VGlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=lZa1gL5UO1QVOwd/KPeOZtTkGeuyxn69fTmhbjihUsk=; b=pIA/HN9UDJg7hkYkn1AIUs7wkiHCUBxTM0NJN1SgZu4BtOV1PTg25gldyZNu+gl9S8 MDdxlGu6JimUYguJqUjgIGXUW9wHssVcmsUFqfwaXcKPlGjjcqv3JDRb8Kyyz9TFKmUb Ij2JupTXm28OoTuPDhF280nl3iafKp3uiIwfPElKpZKmmMLQULq47gU8nOc+6SLQv9gc 7DwbQxuJlaUjcV/4RUbzdxVX1VrELVLM0+nwdmi2zzpV6tnyCq7rL0JjFvl3eoAFaVNu 5oSfLG+p14CxwMeR9VoPvDZ84ZnYAXQfw+g1kXi4h9rJ0lHYROCOi/FlaZudzkc1m7vh RWCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si16456243ejj.472.2021.02.09.06.41.15; Tue, 09 Feb 2021 06:41:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232174AbhBIOgt (ORCPT + 99 others); Tue, 9 Feb 2021 09:36:49 -0500 Received: from mail-ot1-f44.google.com ([209.85.210.44]:36454 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232118AbhBIOgI (ORCPT ); Tue, 9 Feb 2021 09:36:08 -0500 Received: by mail-ot1-f44.google.com with SMTP id 100so10941782otg.3; Tue, 09 Feb 2021 06:35:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lZa1gL5UO1QVOwd/KPeOZtTkGeuyxn69fTmhbjihUsk=; b=ikgYG46rDBP07t7hmhV+CogzkVikOmeupgztfCNUGxXbkdELTaA9a1Gd2E5HRL6KHX QxyGvh1oOdEpBHMy2X+3HIOezphMsVSHwPLUDxUBUefqmSjjqI9WOXJv7mmAXZu6i+eM 3m1BIRENkLN2zfKd1vcQi75IXj79ghhbw5NQD9Uud1RX1vxm+Oi29rsw6EJDC1GnLaAo IsSlD8TgAkTWRiUUIAgul1ZVVSf9ZEWm7GVb9pcpbIQkwpXcWI1oHHFlhOGcLCBZYKir 8K3u/F2M5S5GT8z8mbFNttMTf/yWm86vMReuGFoM9N9wGvJjPbFYbnweYmV7xdfAFaqO 4X4w== X-Gm-Message-State: AOAM532aDHCC9S4LG+EjCPcaZ26uLCdrbTR7q9T3plIQ8B1F8bBWWT3f FHorO8L1eqUm9c+Z19EAJcvU2d84iKtnWSjkyn4= X-Received: by 2002:a9d:a2d:: with SMTP id 42mr14909782otg.321.1612881327590; Tue, 09 Feb 2021 06:35:27 -0800 (PST) MIME-Version: 1.0 References: <20210209031744.26474-1-weidongcui@gmail.com> In-Reply-To: <20210209031744.26474-1-weidongcui@gmail.com> From: "Rafael J. Wysocki" Date: Tue, 9 Feb 2021 15:35:14 +0100 Message-ID: Subject: Re: [PATCH] Enable ACPI_ADR_SPACE_PCI_CONFIG in acpi_gbl_default_address_spaces only when ACPI_PCI_CONFIGURED is defined To: Weidong Cui Cc: Robert Moore , Erik Kaneda , "Rafael J. Wysocki" , Len Brown , Xinyang Ge , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 9, 2021 at 4:22 AM Weidong Cui wrote: > > Signed-off-by: Weidong Cui > Signed-off-by: Xinyang Ge ACPICA material, left to Erik & Bob, thanks! > --- > drivers/acpi/acpica/evhandler.c | 2 ++ > include/acpi/acconfig.h | 4 ++++ > 2 files changed, 6 insertions(+) > > diff --git a/drivers/acpi/acpica/evhandler.c b/drivers/acpi/acpica/evhandler.c > index 5884eba04..4c25ad433 100644 > --- a/drivers/acpi/acpica/evhandler.c > +++ b/drivers/acpi/acpica/evhandler.c > @@ -26,7 +26,9 @@ acpi_ev_install_handler(acpi_handle obj_handle, > u8 acpi_gbl_default_address_spaces[ACPI_NUM_DEFAULT_SPACES] = { > ACPI_ADR_SPACE_SYSTEM_MEMORY, > ACPI_ADR_SPACE_SYSTEM_IO, > +#ifdef ACPI_PCI_CONFIGURED > ACPI_ADR_SPACE_PCI_CONFIG, > +#endif > ACPI_ADR_SPACE_DATA_TABLE > }; > > diff --git a/include/acpi/acconfig.h b/include/acpi/acconfig.h > index a225eff49..790999028 100644 > --- a/include/acpi/acconfig.h > +++ b/include/acpi/acconfig.h > @@ -162,7 +162,11 @@ > /* Maximum space_ids for Operation Regions */ > > #define ACPI_MAX_ADDRESS_SPACE 255 > +#ifdef ACPI_PCI_CONFIGURED > #define ACPI_NUM_DEFAULT_SPACES 4 > +#else > +#define ACPI_NUM_DEFAULT_SPACES 3 > +#endif > > /* Array sizes. Used for range checking also */ > > -- > 2.24.3 (Apple Git-128) >