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=-9.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,USER_AGENT_GIT 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 87EC7C43381 for ; Fri, 15 Mar 2019 02:08:11 +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 50FAD2186A for ; Fri, 15 Mar 2019 02:08:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="i+xBUKzi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 50FAD2186A 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Kp9QiS9Dx0fae/BlTi81D05ZHP/vR+y6xLrm4Y3xhAY=; b=i+xBUKzimvWcRU CzNGa2bIpykvbvWBJ4k2iLnX8Pg3mWexsO5xVESYBHMoU3XTDiINQdWJ1gsD4H4cM1BdfD+hK/FB1 VLEKQPhZDYs9iPICZJh/6y5G0PdS8FqexkR4+dfuZwnMCSbtA+JtAKQ/wMruSe49kpuXcESOR7zSt FVwKgEv8nmka9BQNxoFbecSePG2z0aZDrwMDJm5dRRl598oJZopBSpkq5hbcL0BfIcNegunHH3rff Nuz0tOWJTgiY0og5kYl8imUKBx3V2+EyZGfL+cjfSbuyEa55f6qmSOVVgoe7d0bhoWSS012ZuV7ov H1g1HtHtKCqh9rIRz5aQ==; 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 1h4cGT-00054z-Kx; Fri, 15 Mar 2019 02:08:05 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4cFw-0004c1-J1 for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2019 02:07:34 +0000 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5E8C5AD3B160247E11B7; Fri, 15 Mar 2019 10:07:28 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.408.0; Fri, 15 Mar 2019 10:07:18 +0800 From: Kefeng Wang To: Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , , , Subject: [PATCH 2/2] ACPI: NUMA: show match info about PXM ID and offline/online node Date: Fri, 15 Mar 2019 10:19:40 +0800 Message-ID: <20190315021940.86905-3-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190315021940.86905-1-wangkefeng.wang@huawei.com> References: <20190315021940.86905-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190314_190732_799921_F5FFB71C X-CRM114-Status: UNSURE ( 7.98 ) X-CRM114-Notice: Please train this message. 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: , Cc: Kefeng Wang 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 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); return min_node; } -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel