Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp81099imp; Wed, 20 Feb 2019 14:46:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IaJa3DNtYB8Ph/IOSZQnuvstiS+NdkyGlcJRvoROjSHrf6iXrBgeUCq7T8R8K3syKJulszK X-Received: by 2002:a17:902:7586:: with SMTP id j6mr23129602pll.259.1550702775099; Wed, 20 Feb 2019 14:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550702775; cv=none; d=google.com; s=arc-20160816; b=u0YtdMO7KS/oqZJVAcvabrNqW4hZCXcx70469iPQkPzXPt2MCvyyEMPSwyjB7F5dFm ZdYvd4Lwh5NUrYlTfRzIDo78E0SQt6O47YoP+ZeQ7uaZpslql4zPUgW8hJhvZOWIRkan hlYXMfhx0/aHckvVbqmZHr2MGRipj4kVJ0UpLvIQ2YDi+YOmgd2f8hm2REtp1kF2ZQ3n 0vRRWIAhFR7GVvgU/QuNZD7A2qUzZ9bx434Q+V2vP+zDuAbwjDBqGChGii9CwgpD4CBZ xM1zRDPGxd15DvXp6bh8WWvjYcFh7SjB9os4Bw/nkGwGXC+xWEpevSCh4h9DtkhS+bK8 EwCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ADSnTAmMBLbb+CaaBT5R+wPVABqgRHBEqnFu1otGO/0=; b=cxA5Iz3LMYGGnz8/G6HaIYcFhv4iOiS/m2dKHDsELSmrnzlP9o7Rmvgte2TPh2S6jz m3m5Bmfxb2sy/qw1VU5p3zH+qcyD1ESMQy+8j/U1aAO77uYIW/+g3c6fAZjBjdQx3YUq A3y4sOBa8cVieVljzDk8Zl/yKkPJCI3AN4csFH4DHv0PloCTu+TQ8v/WqIulQtFpKLeP vVKVOcon+UhZjhoMbgnJ6uGWDnZgYRB6V51RqJH9k6W9ms1GIW80iPTC6j9L8ljHRXA1 JaywpkH7kDsWUBfm3PJ+DUNLRcpKM/dWslRwF5c32f5kwxJtS77/j5Y1X2+9yI0xtcfz dlag== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d37si21234137plb.140.2019.02.20.14.45.58; Wed, 20 Feb 2019 14:46:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726250AbfBTWoV (ORCPT + 99 others); Wed, 20 Feb 2019 17:44:21 -0500 Received: from mga03.intel.com ([134.134.136.65]:17956 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbfBTWoV (ORCPT ); Wed, 20 Feb 2019 17:44:21 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2019 14:44:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,392,1544515200"; d="scan'208";a="145942736" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by fmsmga004.fm.intel.com with ESMTP; 20 Feb 2019 14:44:20 -0800 Date: Wed, 20 Feb 2019 15:44:19 -0700 From: Keith Busch To: "Rafael J. Wysocki" Cc: Dave Hansen , Linux Kernel Mailing List , ACPI Devel Maling List , Linux Memory Management List , Linux API , Greg Kroah-Hartman , Dan Williams Subject: Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory Message-ID: <20190220224419.GC5478@localhost.localdomain> References: <20190214171017.9362-1-keith.busch@intel.com> <20190214171017.9362-8-keith.busch@intel.com> <9ab5d6ba-4cb6-a6f1-894d-d79b77c8bc21@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 20, 2019 at 11:21:45PM +0100, Rafael J. Wysocki wrote: > On Wed, Feb 20, 2019 at 11:11 PM Dave Hansen wrote: > > On 2/20/19 2:02 PM, Rafael J. Wysocki wrote: > > >> diff --git a/drivers/acpi/hmat/Kconfig b/drivers/acpi/hmat/Kconfig > > >> index c9637e2e7514..08e972ead159 100644 > > >> --- a/drivers/acpi/hmat/Kconfig > > >> +++ b/drivers/acpi/hmat/Kconfig > > >> @@ -2,6 +2,7 @@ > > >> config ACPI_HMAT > > >> bool "ACPI Heterogeneous Memory Attribute Table Support" > > >> depends on ACPI_NUMA > > >> + select HMEM_REPORTING > > > If you want to do this here, I'm not sure that defining HMEM_REPORTING > > > as a user-selectable option is a good idea. In particular, I don't > > > really think that setting ACPI_HMAT without it makes a lot of sense. > > > Apart from this, the patch looks reasonable to me. > > > > I guess the question is whether we would want to allow folks to consume > > the HMAT inside the kernel while not reporting it out via > > HMEM_REPORTING. We have some in-kernel users of the HMAT lined up like > > mitigations for memory-side caches. > > > > It's certainly possible that folks would want to consume those > > mitigations without anything in sysfs. They might not even want or need > > NUMA support itself, for instance. > > > > So, what should we do? > > > > config HMEM_REPORTING > > bool # no user-visible prompt > > default y if ACPI_HMAT > > > > So folks can override in their .config, but they don't see a prompt? > > Maybe it would be better to make HMEM_REPORTING do "select ACPI_HMAT if ACPI". > > The mitigations could then do that too if they depend on HMAT and > ACPI_HMAT need not be user-visible at all. That sounds okay, though it would create unreachable code if !ACPI since that's the only user for the new reporting interfaces.