From patchwork Fri Mar 15 02:19:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 10853977 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D20D913B5 for ; Fri, 15 Mar 2019 02:07:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB11C2A816 for ; Fri, 15 Mar 2019 02:07:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB5372A817; Fri, 15 Mar 2019 02:07:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 468542A7EF for ; Fri, 15 Mar 2019 02:07:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728154AbfCOCHZ (ORCPT ); Thu, 14 Mar 2019 22:07:25 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5251 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726711AbfCOCHZ (ORCPT ); Thu, 14 Mar 2019 22:07:25 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4C4A0C0FDD7893E69513; Fri, 15 Mar 2019 10:07:23 +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:16 +0800 From: Kefeng Wang To: Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , , , CC: Kefeng Wang Subject: [PATCH 0/2] fix issue when acpi smmuv3 device alloc offline node memory Date: Fri, 15 Mar 2019 10:19:38 +0800 Message-ID: <20190315021940.86905-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP IF acpi smmuv3 device is set to offline node, parsed from proximity domain in SMMUv3 IORT table, it will lead to crash when alloc memory, so fix it by using acpi_map_pxm_to_online_node() to find a online node and set it to smmuv3 device. Meanwhile, show the match info about pxm id, offline node and online node. Kefeng Wang (2): ACPI/IORT: set online numa node for smmuv3 device ACPI: NUMA: show match info about PXM ID and offline/online node drivers/acpi/arm64/iort.c | 8 ++++---- drivers/acpi/numa.c | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-)