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=-4.9 required=3.0 tests=BAYES_50, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,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 648B5C433ED for ; Thu, 29 Apr 2021 14:03:02 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (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 CC37561450 for ; Thu, 29 Apr 2021 14:03:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC37561450 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 6FD0B100EBBCE; Thu, 29 Apr 2021 07:03:01 -0700 (PDT) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2401:3900:2:1::2; helo=ozlabs.org; envelope-from=michael@ozlabs.org; receiver= Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D411B100ED4A4 for ; Thu, 29 Apr 2021 07:02:58 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4FWHJZ0GBWz9tk3; Fri, 30 Apr 2021 00:02:49 +1000 (AEST) From: Michael Ellerman To: Vaibhav Jain , linux-nvdimm@lists.01.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: <20210329113103.476760-1-vaibhav@linux.ibm.com> References: <20210329113103.476760-1-vaibhav@linux.ibm.com> Subject: Re: [PATCH] powerpc/papr_scm: Mark nvdimm as unarmed if needed during probe Message-Id: <161970488717.4033873.11862743130806736936.b4-ty@ellerman.id.au> Date: Fri, 30 Apr 2021 00:01:27 +1000 MIME-Version: 1.0 Message-ID-Hash: M3PXS4DIJUS766N34MMGA6MO5JSVQO75 X-Message-ID-Hash: M3PXS4DIJUS766N34MMGA6MO5JSVQO75 X-MailFrom: michael@ozlabs.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation CC: Michael Ellerman , "Aneesh Kumar K . V" , Shivaprasad G Bhat X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Mon, 29 Mar 2021 17:01:03 +0530, Vaibhav Jain wrote: > In case an nvdimm is found to be unarmed during probe then set its > NDD_UNARMED flag before nvdimm_create(). This would enforce a > read-only access to the ndimm region. Presently even if an nvdimm is > unarmed its not marked as read-only on ppc64 guests. > > The patch updates papr_scm_nvdimm_init() to force query of nvdimm > health via __drc_pmem_query_health() and if nvdimm is found to be > unarmed then set the nvdimm flag ND_UNARMED for nvdimm_create(). Applied to powerpc/next. [1/1] powerpc/papr_scm: Mark nvdimm as unarmed if needed during probe https://git.kernel.org/powerpc/c/adb68c38d8d49a3d60805479c558649bb2182473 cheers _______________________________________________ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-leave@lists.01.org