Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp426182imu; Wed, 16 Jan 2019 01:12:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN6JxN0FMbQ/gnKuPexevIXRB09nMrdTjM+BmRchmhqdQgc8AGJrzSNqvy9fe406cx1ZMDsM X-Received: by 2002:a63:d104:: with SMTP id k4mr7711863pgg.227.1547629937120; Wed, 16 Jan 2019 01:12:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547629937; cv=none; d=google.com; s=arc-20160816; b=bsbhCFyOGMHXJmebz1I4NCpMKJryWYLF3VVcplIfJ5WmnRFDJZFhzgCq3Auqy9olv8 fDrcIJ33/4iu2UaKHxvpIN4YDWgoGCmkK8XWDAg/Q2xA+KCUBnzI6mytjeC4a/pk5HF6 QiggSXcFVrWiFAZ2V84JYeaDGE+S4MZ5U4K2YktgvsIjRw7HxoI+ltaWeuoev4aO3SHu 96WRl9jhcj124kQHUrmLehrsoGJwEfe5YnWELBlOwCTj7BHD+plGOfKZPchwFwgnKAU9 dLVqOSDQrkkNkFv8JP8KUFzxzc4JwhjFY3GygK9V6VM+u+s2Eg2UFbPWFL9S+LRN7x4W In5Q== 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=6whWxQj1PvY5/IZ0ONf2GRXd2Bc5qbpQtwcWDSqd98E=; b=s3EG65re8lklTUih5MPQT+ufyp3OGeKQ1og7hLskGmT1TOklwBIXH0vTwVw1EGp+Pi hKP7TuP/siZ4etkCExcQmnO7bayPFdteVKDZmmmzjeVGEe30tp8Z0ful19Md/kfNYP+J 0OQNNLldu/2fXlyPsqsoaEAhQf3Sv/n8lAN/VOEd8p0Z7OLxZaVntrwpguso9L6fX+Js 45omVU7T1ZqZwpjfS8FxpigViKxRJIXKG5DtHsMyt0+hVGt7Sv5bpyWlUP3jfm5kDDnN UrJCS4mTc8e3C519ElxtPL0DX1Uv5epYlFxFkWr7wRtNjyNi3OUtDeayewgfwG7aOmZo zFhw== 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 93si5635224plc.2.2019.01.16.01.11.56; Wed, 16 Jan 2019 01:12:17 -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 S2388206AbfAOSgQ (ORCPT + 99 others); Tue, 15 Jan 2019 13:36:16 -0500 Received: from mail-ot1-f43.google.com ([209.85.210.43]:45655 "EHLO mail-ot1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727452AbfAOSgP (ORCPT ); Tue, 15 Jan 2019 13:36:15 -0500 Received: by mail-ot1-f43.google.com with SMTP id 32so3395448ota.12; Tue, 15 Jan 2019 10:36: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=6whWxQj1PvY5/IZ0ONf2GRXd2Bc5qbpQtwcWDSqd98E=; b=EIXwDf5UTGX7jyY2Wr2zdwt7a9lpojl9zIrDHxnezGDigdL+drfftIrVogLlYzek1L d0hs+Pq2fzZKjupQUoDdGwsZbB8oseja2k7F/Xl6fIN6EWDvJIIc+CdYSzkx1GX+rfpi u5P/X9WtG75oDRf077Hv0GuoXdRaX9YHTH55FEWVF6ZPAwKv2zClYPIoBiPXm+ey50PG FhFTRCqb3xzWCruB2gjUIHZMMJOQowTsnGphX0uRVJ1mYjFxpaMLu8HxLtSbWXUdg4R2 fYUCJZE+2mKHSI0aColmJmmfoOS/07d1XFLlXwweK2tixBO7LDSYDFM6OsTOXUYraJK2 poEg== X-Gm-Message-State: AJcUukeyiyZwBubdfHEiKh7OPP2rj63yhLTEBoveXFVEyRuYkCYKR7p2 Tyx6iaaePsf0XcMJkJjhoWvqHxhwXX7Hd7GYPGk= X-Received: by 2002:a9d:7f0d:: with SMTP id j13mr2996913otq.119.1547577374860; Tue, 15 Jan 2019 10:36:14 -0800 (PST) MIME-Version: 1.0 References: <20190109174341.19818-1-keith.busch@intel.com> <20190109174341.19818-4-keith.busch@intel.com> <20190115170741.GB27730@localhost.localdomain> In-Reply-To: <20190115170741.GB27730@localhost.localdomain> From: "Rafael J. Wysocki" Date: Tue, 15 Jan 2019 19:36:03 +0100 Message-ID: Subject: Re: [PATCHv3 03/13] acpi/hmat: Parse and report heterogeneous memory To: Keith Busch Cc: "Rafael J. Wysocki" , Linux Kernel Mailing List , ACPI Devel Maling List , Linux Memory Management List , Greg Kroah-Hartman , "Hansen, Dave" , "Williams, Dan J" 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 Tue, Jan 15, 2019 at 6:09 PM Keith Busch wrote: > > On Thu, Jan 10, 2019 at 07:42:46AM -0800, Rafael J. Wysocki wrote: > > On Wed, Jan 9, 2019 at 6:47 PM Keith Busch wrote: > > > > > > Systems may provide different memory types and export this information > > > in the ACPI Heterogeneous Memory Attribute Table (HMAT). Parse these > > > tables provided by the platform and report the memory access and caching > > > attributes. > > > > > > Signed-off-by: Keith Busch > > > > While this is generally fine by me, it's another piece of code going > > under drivers/acpi/ just because it happens to use ACPI to extract > > some information from the platform firmware. > > > > Isn't there any better place for it? > > I've tried to abstract the user visible parts outside any particular > firmware implementation, but HMAT parsing is an ACPI specific feature, > so I thought ACPI was a good home for this part. I'm open to suggestions > if there's a better place. Either under in another existing subsystem, > or create a new one under drivers/hmat/? Well, there is drivers/acpi/nfit for the NVDIMM-related things, so maybe there could be drivers/acpi/mm/ containing nfit/ and hmat.c (and maybe some other mm-related things)?