Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3750360imc; Sun, 24 Feb 2019 12:09:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IbZd2wNsdwkgEdvc99J461kut0J3U700eUqTLf9myXhG5g4Zb+uYVdbSKDHUgahLaIVTCeS X-Received: by 2002:a17:902:784c:: with SMTP id e12mr15884073pln.117.1551038944128; Sun, 24 Feb 2019 12:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551038944; cv=none; d=google.com; s=arc-20160816; b=01jNZgv5Lmd+vmjRvFNTbxpyNSp2FCl6l2xCmcxCiSYbOB6+NP+BspAnn11gixF+XP 1MZxM3qDjE/JVUTrOfUb9A5FyfwQAP6LvXZQfbhkgzpK6DKPtAYG4Jv6h4MEGBl/jcOx 9va0icglfLHckM9zEvvUsS23kAV0Zzs+1CHmRmSC2+oQrwI55nmV4BBPldD91ejM7i/6 rbcpSi4tUgHwJ/R0STBuz9UWg60M57+ns7V1ProMTA4WK9AlkPj8Xd+d7/6hMtjePxUq xGDPsQAdQcm7zRfb7b5lFl24O9Jr2dlDix06ygzOjTKFkvxiVPWCp83B5pAFUasruivW AN2g== 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 :in-reply-to:references:mime-version; bh=Y0IqkcdgngY/YGpOiQL7ywzKAqFIW/9T4EnT6V1cf8g=; b=ysowpWt5xWgFaj+mpXP4CF6JseUVxnO/1lC7CxlJhN0mvoCfcARvPB9zSxyL/gbO9T n7NqafeQdVCITM5onEkbcsL78ZRBE+t9b2Do4ZFwxX96MXEjR91tvX/zNPnFwQzxE5pJ QWf1PtjAP1d1Atzj/QQA4FnmMLvPq5jQ1T27RabXzehqPHMpHoVuDNL0LImAzqWQSBul Lje39O+mZFmGmnbzfcTMyMYFkg9Yr6MDfWbRBDcLmMYe7jc9ky2eAQKYbgZh1GIiyt2D z3c2lJe1P2Es+HBc63PnzVQcRXIDSkLnKjBOP8yfeadQ8GBURRLZpAd2ExrkO9gbFbyU OKNQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 43si7406182plb.299.2019.02.24.12.08.48; Sun, 24 Feb 2019 12:09:04 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728348AbfBXUHQ (ORCPT + 99 others); Sun, 24 Feb 2019 15:07:16 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:36837 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727909AbfBXUHQ (ORCPT ); Sun, 24 Feb 2019 15:07:16 -0500 Received: by mail-ot1-f68.google.com with SMTP id v62so6133503otb.3; Sun, 24 Feb 2019 12:07:15 -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=Y0IqkcdgngY/YGpOiQL7ywzKAqFIW/9T4EnT6V1cf8g=; b=k8AEqHikP9XYIQlWxuqWYsi5cSd3js2ANQZcX114gozLjKjo99yYigKRP5lBfSeN/M QomdhrqkXDHxZeRHDm2ysMgaQ60OghnSov3T7C8//NPr11E8TN1pD+8dOy2ghJNCFn7x Q1zE098C8ouS3VrzNpp3668BunE5k/iODiC3JbcKXk/c1pI3EXO2+UuTrDGPiq7CQtg8 fnRyUzU9qckVwJk9eqPa1NQnFmey/RPpCY77gNp8kmvAIWonkEAvWaedsJhJNLRP5I/z Xo1nTjnFlmBFha1rOMWEXOeHMMPJUMr4ofx9yLyKZjCs2NrILb+7efV3errKzH5Gcj45 sSSA== X-Gm-Message-State: AHQUAuaVR2+JDUVDLOxinL3cQsCHqSaXRPdaqbZJN5CguGV2QBZkB4vS 4QcVMEAC+HmcyLcdIHxUr5MtpkFtLX5yTVGtmaM= X-Received: by 2002:a9d:7cd3:: with SMTP id r19mr9880945otn.139.1551038834827; Sun, 24 Feb 2019 12:07:14 -0800 (PST) MIME-Version: 1.0 References: <20190214171017.9362-1-keith.busch@intel.com> <20190214171017.9362-8-keith.busch@intel.com> <20190222184831.GF10237@localhost.localdomain> In-Reply-To: From: "Rafael J. Wysocki" Date: Sun, 24 Feb 2019 21:07:03 +0100 Message-ID: Subject: Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory To: Dan Williams Cc: Keith Busch , "Rafael J. Wysocki" , Linux Kernel Mailing List , ACPI Devel Maling List , Linux Memory Management List , Linux API , Greg Kroah-Hartman , Dave Hansen 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 Fri, Feb 22, 2019 at 8:21 PM Dan Williams wrote: > > On Fri, Feb 22, 2019 at 10:48 AM Keith Busch wrote: > > > > On Wed, Feb 20, 2019 at 11:02:01PM +0100, Rafael J. Wysocki wrote: > > > On Thu, Feb 14, 2019 at 6:10 PM Keith Busch wrote: > > > > 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'm trying to implement based on the feedback, but I'm a little confused. > > > > As I have it at the moment, HMEM_REPORTING is not user-prompted, so > > another option needs to turn it on. I have ACPI_HMAT do that here. > > > > So when you say it's a bad idea to make HMEM_REPORTING user selectable, > > isn't it already not user selectable? > > > > If I do it the other way around, that's going to make HMEM_REPORTING > > complicated if a non-ACPI implementation wants to report HMEM > > properties. > > Agree. If a platform supports these HMEM properties then they should > be reported. Well, I'm not sure if everybody is in agreement on that. > ACPI_HMAT is that opt-in for ACPI based platforms, and > other archs can do something similar. It's not clear that one would > ever want to opt-in to HMAT support and opt-out of reporting any of it > to userspace. In my view, ACPI_HMAT need not be an opt-in in the first place. The only reason to avoid compiling HMAT parsing it would be if there were no users of it in the kernel IMO.