From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7433C43381 for ; Fri, 15 Mar 2019 08:35:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A20BD21872 for ; Fri, 15 Mar 2019 08:35:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LHhmw3Ae" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A20BD21872 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=90/pbZb4ZRVX5Rre2rC27FvBsdhumErE8MFuSxrmKJE=; b=LHhmw3Aekr5ZKgGwrH/9eMj7Mz NxwZrFtk5In/EtWLRmz9TJrapyI8K9992dfyS68rQNqyA8YF2/e3urWpjn+OSd9ITx7uboyMwnj2H kuF/C3ChNj722aNlt4Orq1/PauzXibASo4CvgzFwLtVZT7OXpLjEkCc8UkS7Xx0bTm1p1ItQ4xZ6P RXd1y5sHCP0WclYmOb9Qb0uGcrgOO431MKRpJzYT0Qm14W1zlaMLIul2ofkSmCX9SAJ601w/DKFTC StdvtHaz3T5xSWPn4XsQ4DoEbr3Fm0T/n1xBL8DIq4EcjLPx1U4e8JgDzgKMhqxH41XBi/B7ejxwH uuW7BJug==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4iIr-0002QP-N5; Fri, 15 Mar 2019 08:34:57 +0000 Received: from szxga04-in.huawei.com ([45.249.212.190] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4iIn-0002OF-Pi for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2019 08:34:55 +0000 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 08F7DA12BE3282CCED84; Fri, 15 Mar 2019 16:34:50 +0800 (CST) Received: from [127.0.0.1] (10.177.19.180) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.408.0; Fri, 15 Mar 2019 16:34:48 +0800 Subject: Re: [PATCH 2/2] ACPI: NUMA: show match info about PXM ID and offline/online node To: Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , , , References: <20190315021940.86905-1-wangkefeng.wang@huawei.com> <20190315021940.86905-3-wangkefeng.wang@huawei.com> From: Kefeng Wang Message-ID: <9344679d-8d45-03ce-d525-5be0d14e96d8@huawei.com> Date: Fri, 15 Mar 2019 16:34:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20190315021940.86905-3-wangkefeng.wang@huawei.com> Content-Language: en-US X-Originating-IP: [10.177.19.180] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190315_013454_049797_1E3CC1B0 X-CRM114-Status: GOOD ( 11.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2019/3/15 10:19, Kefeng Wang wrote: > It maybe trigger some issue when the acpi device driver allocs memory > from an offline node, so use alternative acpi_map_pxm_to_online_node() > to find an online node, let's show infomation about proximity ID, mapped > offline node and the nearest online node returned. > > Signed-off-by: Kefeng Wang > --- > drivers/acpi/numa.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c > index 7bbbf8256a41..064c771a7338 100644 > --- a/drivers/acpi/numa.c > +++ b/drivers/acpi/numa.c > @@ -121,6 +121,9 @@ int acpi_map_pxm_to_online_node(int pxm) > } > } > } > + if (min_node != node) > + pr_warn("IORT: PXM %d Mapped to offline node %d, choose nearest online node %d", > + pxm, node, min_node); Should remove IORT prefix, some other table like NFIT, DMAR have PXM filed, waiting for review. > > return min_node; > } _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel