Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1799272imc; Fri, 22 Feb 2019 11:23:52 -0800 (PST) X-Google-Smtp-Source: AHgI3IaDcYFZH+iBWSDNboymbvn3x90TGJAuCdo/p3Y09IzL9jH90OtZYys8QZLOsAd3nsTBb2nj X-Received: by 2002:a63:e84c:: with SMTP id a12mr5421002pgk.241.1550863432118; Fri, 22 Feb 2019 11:23:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550863432; cv=none; d=google.com; s=arc-20160816; b=IG+S1q1CSC95tmidpbhCvZsksL9eFS+9BDAmA69wb9xg/dOwJVY7+9kVm7E+O7vN2m l9g4Zr8heFQXrBQTBd+hVpqbCDgrZCpCF/5voTCsYTKJBlyRgEUOy2W4rdvXjrO82wpO 97dFVVkNGUEQ8NBDOkQDmRz7eez2nRW2R+2cGtaqgHQUNs3fLRaiCHd4SYYR4VL8wdwq V7k6QPJ/daU/9fPaesguwHbZcdGRLjjWPLYow2ffmB4fJQwNVxFPAfSqLFcQNM14OCjQ akvBPSK+UHH8rsB5dEKP1TIjdbBG8a4Pqf270wFkLemdtV9Uo97bZ0SYe9lpEF4RayEP 02Pw== 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:dkim-signature; bh=HEh1PpN8MZdEODahk7HJYfWRejKVe1bP2E3naiVJUf8=; b=SAMNPnSRh9mXSQxz0VI8LMdCT1Si0p0GVp7Ag9GPWd5R1q2QYsFA8iQMiRven5N0Ks ZS0lukmQ9Kr9tNAKgxc1bZU9MoTARyae+vCzLBemxWI+lf3U58C1jGMYZ3+PNg6+lgjx 6r7HS/uSGTKW6lFyrA7/PgEzE7LXdrwgMjVudMK+A22aApoYJUmBxFqEa2x2iZxx5n6u Ovfza2Gg/iuBzITLdJSloRC8fLMSj5Bn7Pi4EJuPCnXvHSRkbBBBZuVAeGpYzdhqaI6Z uIXWO6BVQjl1mtyf7KjWXP4ea6W57TYM5loppSZLPjXYBre21mnTuMiTrKDSF3SksXYd An0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=zXesRFfy; 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 g3si2039175pld.325.2019.02.22.11.23.36; Fri, 22 Feb 2019 11:23:52 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=zXesRFfy; 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 S1726627AbfBVTVu (ORCPT + 99 others); Fri, 22 Feb 2019 14:21:50 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:43065 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbfBVTVu (ORCPT ); Fri, 22 Feb 2019 14:21:50 -0500 Received: by mail-oi1-f194.google.com with SMTP id i8so2569527oib.10 for ; Fri, 22 Feb 2019 11:21:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HEh1PpN8MZdEODahk7HJYfWRejKVe1bP2E3naiVJUf8=; b=zXesRFfyjpqvIH8VP1xf1g80dCuBgVRRUkhCYDPpHLePIzmXKJ7sgzrOgJPsRIfRG6 nJ/mxqOXn2qC/yBY+wf5StldKufB5l4Pt7OLHD3LdnAfMtrBYffP1jllN16rYAndqMpL /0bN/tGDiow85dPXI++3sBxvyiZ/sEZRUqBJb+cNowmwtTA6MWt8DB1zbChG8/2lLdr5 MumJXC6d98+tU0xLk+xrqDwYrhIQuFYD7SChKWRCWIH82Qi/eE4ws3TL05qVCZzWa2cO 4oETD5m1fGNc/AE1KaTFOMgDqajwXGsar3u56lNojHz21SzqbDI16F1VcopdbbwVGpEb Lw+A== 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=HEh1PpN8MZdEODahk7HJYfWRejKVe1bP2E3naiVJUf8=; b=NwQmBqjSMGp5FvqWYO/hSlxJ9dXW+0q1iC4soHwOu7aWsn220T4aBFms8TqhdK+eL2 okvmd7jzlT3Eh6shYetqYR0LFxXzHFvN4iv6P7LEdoM6K2vyZ7zQCYUKnar8wncz5Ba1 lYB78XpslJC6bn92u7PBjUd0H3MEjZd3P0mZpTNJaJhOkrjw4r/sdfCbvFla/e8Xa/lg cW69jsXy2x+P93boE1x16zWCO0TpZiUvrrRVL2nJ3VQxp/iryLCK0UMFAmRxEOganssb 9X49UIj2Qq+B6D0ZdIZ+j9plTRHbn703s8dAjMKy4lPg6AELYToqKCTINqFlKhAl+LAm mbhA== X-Gm-Message-State: AHQUAubrHSUvGQiNbAVYSDqdWq+MkiBODPV2CeGfX2gOnutjGpv5iFz/ Zjh9Tq9rNBs9OfysrSOBMMIEYuakEN+bZ4s9LiPuoQ== X-Received: by 2002:aca:32c3:: with SMTP id y186mr3360644oiy.118.1550863309451; Fri, 22 Feb 2019 11:21:49 -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: <20190222184831.GF10237@localhost.localdomain> From: Dan Williams Date: Fri, 22 Feb 2019 11:21:37 -0800 Message-ID: Subject: Re: [PATCHv6 07/10] acpi/hmat: Register processor domain to its memory To: Keith Busch Cc: "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 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. 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.