Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3269511yba; Tue, 16 Apr 2019 08:02:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzS365dm9iUtKILxY4lSAeuUpkcAK4sPaG6hHRD11Pmj0Zv24J7QNTy51Y6gdWfw1c9vRON X-Received: by 2002:a63:f218:: with SMTP id v24mr78510595pgh.326.1555426964518; Tue, 16 Apr 2019 08:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555426964; cv=none; d=google.com; s=arc-20160816; b=RpkUd9xkz4hH6uQjAn8bnEd0VazHOr7UolmqP2tKTKyFkIgRQFv99d/cAo1B+2qpny iafwNu97tEd9EiyIQBnHaqM5zhN23perUTEvH0B2nz8+pY8c5S1plERkBZv8RtjEog81 DA6OgVfsTQpTs8oyHNOD+fzlfrrwdeDXax3Z63R0YrPM4j7JaVhv8f8LVkTVXjXnB29y oKpv9c4UPArahXBFNFc6yip9cHYMIvijkOo+wwB1hgtmBPSaGD55V4GyJ3sB1cezALre iuOLb39ekI1f5rJWp7lIaOQonv3In4KRMkyDL6iOWWSpXyrgGbeHyCrn/dlz02vNH/1V T9zA== 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=/KJ0+vd5hoLIvd8y6AOiUsx1FZBpW5JYfxG7/qiyou4=; b=qQUaQzZnfvBa+Waay2YICCMCScNfuUenwmFUxJ90Xxn5RTELKO36LHLRqBhmlo/yEO DoNcw5wbZxzAhypkYB8dy4RXlpBsmg7bR9p/kllFA6Db9cNy/kFTkvPp+8RUWTcE7tDu dcNOxqqf9Y/q+mYpqRV/51qWfbo78EtPXxRBB4GxCOLh7O6BRwQhrO3j+7vsx62vY8nm rnc9rxolNrqya/84zBq55EjD38O5oO/GW/p/4p1gREbewEkTSdaMxyES94DQ2aT1BOMr M7Zvc8Mj4ncqmmvzHee6fC3Lw2S3FfqWcJRRJXwNevhIpcj1uG9y7/BCqUOHF3BaNPHs 05ig== 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 v3si23942998plp.361.2019.04.16.08.02.27; Tue, 16 Apr 2019 08:02:44 -0700 (PDT) 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 S1729846AbfDPO7j (ORCPT + 99 others); Tue, 16 Apr 2019 10:59:39 -0400 Received: from mga17.intel.com ([192.55.52.151]:21870 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbfDPO7i (ORCPT ); Tue, 16 Apr 2019 10:59:38 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Apr 2019 07:59:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,358,1549958400"; d="scan'208";a="143410589" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by fmsmga007.fm.intel.com with ESMTP; 16 Apr 2019 07:59:37 -0700 Date: Tue, 16 Apr 2019 09:01:30 -0600 From: Keith Busch To: Brice Goglin Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, Rafael Wysocki , Dave Hansen , Dan Williams Subject: Re: [PATCHv2 2/2] hmat: Register attributes for memory hot add Message-ID: <20190416150130.GA20546@localhost.localdomain> References: <20190415151654.15913-1-keith.busch@intel.com> <20190415151654.15913-3-keith.busch@intel.com> <9f130b73-e5ae-0529-69a1-28bd2ca29581@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9f130b73-e5ae-0529-69a1-28bd2ca29581@inria.fr> 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 Tue, Apr 16, 2019 at 04:55:21PM +0200, Brice Goglin wrote: > Hello Keith > > Several issues: > > * We always get a memory_side_cache, even if nothing was found in ACPI. > You should at least ignore the cache if size==0? > > * Your code seems to only work with a single level of cache, since > there's a single cache_attrs entry in each target structure. > > * I was getting a section mismatch warning and a crash on PMEM node > hotplug until I applied the patch below. > > WARNING: vmlinux.o(.text+0x47d3f7): Section mismatch in reference from the function hmat_callback() to the function .init.text:hmat_register_target() > The function hmat_callback() references > the function __init hmat_register_target(). > This is often because hmat_callback lacks a __init > annotation or the annotation of hmat_register_target is wrong. > > Thanks > > Brice Oh, thanks for the notice. I'll add multi-level and no-caches into my test, as I had it fixed to one. Will need to respin this series.