From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D909BC0650E for ; Wed, 3 Jul 2019 11:10:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9320D21882 for ; Wed, 3 Jul 2019 11:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562152201; bh=VgWZlDZJOg3EKezupcBzmFV+Xcn5Kp3aPu4XgKuNy7I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=TSE7roY0IrS7YLgRtjLBBdZ1jsrJKoVyFPBKhq4xNEVVBPdwR2Q4FcV1REi6k2fpU I+0OAkFI2XMAwfn5U90pAJ8QiHT3VRGjMEWB+bpTJ7Lrg0ItS72H3+e7VwYh/tgtdx Cm9/9NwL1o/xJpOP2UKSCBUgeafXN1OCkrKeGmPI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726544AbfGCLKB (ORCPT ); Wed, 3 Jul 2019 07:10:01 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:38574 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbfGCLKB (ORCPT ); Wed, 3 Jul 2019 07:10:01 -0400 Received: by mail-ot1-f65.google.com with SMTP id d17so1916889oth.5; Wed, 03 Jul 2019 04:10:00 -0700 (PDT) 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=3l/bO62w26zXZAlUZYkV8q6eMPbcBKeEDraPxglT07M=; b=BDF3FlRKBFnsP3IQqg3mCjjdDd2A2k8GS7Wy/bw9syaZf+0ZIKJ5BNsOXw7toJD82y ParWJXt5NJgpievrg/s3QZK7Tv8TYoXxN1fwmar7P3SfZzoDfMkwZ6qONqWBm3JS5vRo 8Ed3pkGb9oRNceApvYzkroKrREUjjaaewXsDc5T8S+FnYlyCoOhqNlvs/H9cxJlJnSt5 Pmt9HcEjjG0pZ9eALu2HmPvukxLoGfWGPnt647Y24juTSnstRzO65SC67QyCctjlATwU ujxPxQ85ORoAdsUhx7a5BA4iQiwnLkzDgOz/PwTmo2Q/zlzN4L/TgEqe4XplHjx7xS8B bqbA== X-Gm-Message-State: APjAAAXs9lXI7vZ/nG6FoGSnfNDfZPt+EbvHcD1+NI0hfhojJ4EHptUU hst+Ai+GpWBdGe4uc6SjVgqwawgq0Z3iswTuslk= X-Google-Smtp-Source: APXvYqyfmS6fsdItQl+DKVh+2Zs4EBjIM/eii732Yz1zcF7I/b7XZW8DBg+y9GBhSz8SDoqgZByKeQAQ9PuDzoY/RgM= X-Received: by 2002:a05:6830:1516:: with SMTP id k22mr8592291otp.189.1562152199626; Wed, 03 Jul 2019 04:09:59 -0700 (PDT) MIME-Version: 1.0 References: <156140036490.2951909.1837804994781523185.stgit@dwillia2-desk3.amr.corp.intel.com> <156140037171.2951909.7432584124511649643.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <156140037171.2951909.7432584124511649643.stgit@dwillia2-desk3.amr.corp.intel.com> From: "Rafael J. Wysocki" Date: Wed, 3 Jul 2019 13:09:48 +0200 Message-ID: Subject: Re: [PATCH v4 01/10] acpi/numa: Establish a new drivers/acpi/numa/ directory To: Dan Williams Cc: "the arch/x86 maintainers" , Len Brown , Keith Busch , "Rafael J. Wysocki" , Dave Hansen , Peter Zijlstra , Vishal Verma , Ard Biesheuvel , Thomas Gleixner , ACPI Devel Maling List , "linux-nvdimm@lists.01.org" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Mon, Jun 24, 2019 at 8:33 PM Dan Williams wrote: > > Currently hmat.c lives under an "hmat" directory which does not enhance > the description of the file. The initial motivation for giving hmat.c > its own directory was to delineate it as mm functionality in contrast to > ACPI device driver functionality. > > As ACPI continues to play an increasing role in conveying > memory location and performance topology information to the OS take the > opportunity to co-locate these NUMA relevant tables in a combined > directory. > > numa.c is renamed to srat.c and moved to drivers/acpi/numa/ along with > hmat.c. > > Cc: Len Brown > Cc: Keith Busch > Cc: "Rafael J. Wysocki" > Reviewed-by: Dave Hansen > Signed-off-by: Dan Williams Acked-by: Rafael J. Wysocki > --- > drivers/acpi/Kconfig | 9 +-------- > drivers/acpi/Makefile | 3 +-- > drivers/acpi/hmat/Makefile | 2 -- > drivers/acpi/numa/Kconfig | 7 ++++++- > drivers/acpi/numa/Makefile | 3 +++ > drivers/acpi/numa/hmat.c | 0 > drivers/acpi/numa/srat.c | 0 > 7 files changed, 11 insertions(+), 13 deletions(-) > delete mode 100644 drivers/acpi/hmat/Makefile > rename drivers/acpi/{hmat/Kconfig => numa/Kconfig} (72%) > create mode 100644 drivers/acpi/numa/Makefile > rename drivers/acpi/{hmat/hmat.c => numa/hmat.c} (100%) > rename drivers/acpi/{numa.c => numa/srat.c} (100%) > > diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig > index 283ee94224c6..82c4a31c8701 100644 > --- a/drivers/acpi/Kconfig > +++ b/drivers/acpi/Kconfig > @@ -321,12 +321,6 @@ config ACPI_THERMAL > To compile this driver as a module, choose M here: > the module will be called thermal. > > -config ACPI_NUMA > - bool "NUMA support" > - depends on NUMA > - depends on (X86 || IA64 || ARM64) > - default y if IA64_GENERIC || IA64_SGI_SN2 || ARM64 > - > config ACPI_CUSTOM_DSDT_FILE > string "Custom DSDT Table file to include" > default "" > @@ -475,8 +469,7 @@ config ACPI_REDUCED_HARDWARE_ONLY > If you are unsure what to do, do not enable this option. > > source "drivers/acpi/nfit/Kconfig" > -source "drivers/acpi/hmat/Kconfig" > - > +source "drivers/acpi/numa/Kconfig" > source "drivers/acpi/apei/Kconfig" > source "drivers/acpi/dptf/Kconfig" > > diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile > index 5d361e4e3405..f08a661274e8 100644 > --- a/drivers/acpi/Makefile > +++ b/drivers/acpi/Makefile > @@ -55,7 +55,6 @@ acpi-$(CONFIG_X86) += acpi_cmos_rtc.o > acpi-$(CONFIG_X86) += x86/apple.o > acpi-$(CONFIG_X86) += x86/utils.o > acpi-$(CONFIG_DEBUG_FS) += debugfs.o > -acpi-$(CONFIG_ACPI_NUMA) += numa.o > acpi-$(CONFIG_ACPI_PROCFS_POWER) += cm_sbs.o > acpi-y += acpi_lpat.o > acpi-$(CONFIG_ACPI_LPIT) += acpi_lpit.o > @@ -80,7 +79,7 @@ obj-$(CONFIG_ACPI_PROCESSOR) += processor.o > obj-$(CONFIG_ACPI) += container.o > obj-$(CONFIG_ACPI_THERMAL) += thermal.o > obj-$(CONFIG_ACPI_NFIT) += nfit/ > -obj-$(CONFIG_ACPI_HMAT) += hmat/ > +obj-$(CONFIG_ACPI_NUMA) += numa/ > obj-$(CONFIG_ACPI) += acpi_memhotplug.o > obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o > obj-$(CONFIG_ACPI_BATTERY) += battery.o > diff --git a/drivers/acpi/hmat/Makefile b/drivers/acpi/hmat/Makefile > deleted file mode 100644 > index 1c20ef36a385..000000000000 > --- a/drivers/acpi/hmat/Makefile > +++ /dev/null > @@ -1,2 +0,0 @@ > -# SPDX-License-Identifier: GPL-2.0-only > -obj-$(CONFIG_ACPI_HMAT) := hmat.o > diff --git a/drivers/acpi/hmat/Kconfig b/drivers/acpi/numa/Kconfig > similarity index 72% > rename from drivers/acpi/hmat/Kconfig > rename to drivers/acpi/numa/Kconfig > index 95a29964dbea..d14582387ed0 100644 > --- a/drivers/acpi/hmat/Kconfig > +++ b/drivers/acpi/numa/Kconfig > @@ -1,4 +1,9 @@ > -# SPDX-License-Identifier: GPL-2.0 > +config ACPI_NUMA > + bool "NUMA support" > + depends on NUMA > + depends on (X86 || IA64 || ARM64) > + default y if IA64_GENERIC || IA64_SGI_SN2 || ARM64 > + > config ACPI_HMAT > bool "ACPI Heterogeneous Memory Attribute Table Support" > depends on ACPI_NUMA > diff --git a/drivers/acpi/numa/Makefile b/drivers/acpi/numa/Makefile > new file mode 100644 > index 000000000000..517a6c689a94 > --- /dev/null > +++ b/drivers/acpi/numa/Makefile > @@ -0,0 +1,3 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +obj-$(CONFIG_ACPI_NUMA) += srat.o > +obj-$(CONFIG_ACPI_HMAT) += hmat.o > diff --git a/drivers/acpi/hmat/hmat.c b/drivers/acpi/numa/hmat.c > similarity index 100% > rename from drivers/acpi/hmat/hmat.c > rename to drivers/acpi/numa/hmat.c > diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa/srat.c > similarity index 100% > rename from drivers/acpi/numa.c > rename to drivers/acpi/numa/srat.c >