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=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 08E23C433E0 for ; Fri, 10 Jul 2020 14:01:59 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 CA14E207D0 for ; Fri, 10 Jul 2020 14:01:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jPhj/t4y"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel-com.20150623.gappssmtp.com header.i=@intel-com.20150623.gappssmtp.com header.b="xtDwzbDK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CA14E207D0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=A1svZ8VXstbqUhc7m5fzPotKUPoCJo+/ZLzcjUp4Pzo=; b=jPhj/t4yoezjOPpAcZEcPPJpk y/O5Vm1H0lSH+ne6tXuvTnXRW2ehdDZKE2z0pf4rLVDkP52Yxo7gwPpssVyAvKvXoN0BiDa4Qbe16 9fk8e8gL7uYEpWhqPpljVxLhaxlE3qQXFTpPUqIaEBQZdkSmvlrLz/h79pbcFrK1y8k2QOe7ulSNt q6HUnJH48/HhtoHnUKaZXlKXS6rfnfVgPA57RQZMRfjWkik2fh4BD9eQnZ9+EQMriaNBLYuXYozff 5q9/+d4AZa9nLgBf+T/W110bF39CoiDFbAhkofAkV6Q8TBkQq4SXqbVZsArP3qYRz0WbAL4O2/ki2 wOJxJkFOQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jttZo-0004Zi-AB; Fri, 10 Jul 2020 14:00:32 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jttZk-0004Y6-Of for linux-arm-kernel@lists.infradead.org; Fri, 10 Jul 2020 14:00:29 +0000 Received: by mail-qt1-x843.google.com with SMTP id u12so4401193qth.12 for ; Fri, 10 Jul 2020 07:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DeBGSFa6JpLDSEOobydkMfjCm7xXfWYBIoiGgmJvsiY=; b=xtDwzbDKceDPrdb2OHoramfVkpsxDADJ71nfnkU/U11ey7QyoCDreWzdTySdP3Bf95 ko7FnPp1/f2cIaGMh3ZNzsz0Tk0c89dEXFz4xGd5qoKP5aeVtETNGjgveKn8G+bB5ZCU qyeoRvjQsFDUXwssBBeR5gc17mrpKDHaW6DNckwXSdhPayaI4sq6JiGfGAg/1e2NR2+K w6m5jVpJb5U2aiGes5SDDt8L5Ld6vOLLHfwgmQEAIJsjgIr3JCFEvBQidjQjLrOvLaeG nuz08QDD1+u1/1rB2NI5RZsufXulW3Zf9eAmgXzpRcA2d94ETiaosy+RpJuCDqUAnBzH 1skA== 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=DeBGSFa6JpLDSEOobydkMfjCm7xXfWYBIoiGgmJvsiY=; b=F0Ah0D1LquQ+0RJQdKqazYcZ6F5El3z1q7ujvC9Hy1g0TynA+rfJll40e1/BWmSSmN rrx2HazNq9EwqQG6W4MuJ6Di51KA0MEj3lKIRIw9faLCELsIarIgQ+YmqlK3m0F4uRw5 xFa6CFDMwuplOl4EINCy3mO/wCvZoyB0GdBgNW69n0tTqsg+dqkGKUlAHs0IdFmSm34c v9t11Xrc1IGtVFUwyGa4SIAdxHYnW+ttjE1Fu9zFwNmBrWlVGuvv0oz/+mLO9QPInLN0 Oq13kRqvkxHgourWHCuzuF+KxcYAv5FKM6W3Wuc5ndS+leds8ejr1m8jFjWer0FHBwv7 dZMg== X-Gm-Message-State: AOAM531VUbTwWs/anucKCfS19++ajma3lUYSZEitM3g93m19QAaFr35y /WR1eZL4lWVN3d1xPFjcdXjukofU4cAmohBKYw4cgw== X-Google-Smtp-Source: ABdhPJyl6xq9PxhonQS0J3Dx+J5gbm1PIhxGa1brPjByYujkui0S6cvVgDWfdJGYhmVAV084h8/4qpdI7H3iU+5xBUo= X-Received: by 2002:ac8:396c:: with SMTP id t41mr71181576qtb.45.1594389627173; Fri, 10 Jul 2020 07:00:27 -0700 (PDT) MIME-Version: 1.0 References: <20200710031619.18762-1-justin.he@arm.com> In-Reply-To: <20200710031619.18762-1-justin.he@arm.com> From: Dan Williams Date: Fri, 10 Jul 2020 07:00:15 -0700 Message-ID: Subject: Re: [PATCH v4 0/2] Fix and enable pmem as RAM device on arm64 To: Jia He X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200710_100028_910292_E6673E23 X-CRM114-Status: GOOD ( 16.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , linux-ia64@vger.kernel.org, David Hildenbrand , Peter Zijlstra , Catalin Marinas , Dave Hansen , Linux MM , Michal Hocko , "H. Peter Anvin" , Will Deacon , Dave Jiang , Yoshinori Sato , linux-nvdimm , Linux-sh , Vishal Verma , Masahiro Yamada , X86 ML , Mike Rapoport , Kaly Xin , Ingo Molnar , Fenghua Yu , Chuhong Yuan , Borislav Petkov , Andy Lutomirski , Jonathan Cameron , Thomas Gleixner , Linux ARM , Tony Luck , Baoquan He , Linux Kernel Mailing List , Andrew Morton , Logan Gunthorpe Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jul 9, 2020 at 8:17 PM Jia He wrote: > > This fixies a few issues when I tried to enable pmem as RAM device on arm64. > > To use memory_add_physaddr_to_nid as a fallback nid, it would be better > implement a general version (__weak) in mm/memory_hotplug. After that, arm64/ > sh/s390 can simply use the general version, and PowerPC/ia64/x86 will use > arch specific version. > > Tested on ThunderX2 host/qemu "-M virt" guest with a nvdimm device. The > memblocks from the dax pmem device can be either hot-added or hot-removed > on arm64 guest. Also passed the compilation test on x86. > > Changes: > v4: - remove "device-dax: use fallback nid when numa_node is invalid", wait > for Dan Williams' phys_addr_to_target_node() patch FWIW, I put these patches through a 0-day run overnight and will be posting them today. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel