From nobody Tue Dec 2 02:43:32 2025 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66B612D7801 for ; Wed, 19 Nov 2025 07:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763538801; cv=none; b=u5VqM9LJbIudpbonrSlSYf7QfNOLfxhUlWs47X9l+KH55FbzVjBR1ERVWEzdRPyZ73XrBKHDOqdzSGs8bCU//GOWRmNV+ZbLcZ/fudSOhV8gGfAxFiYLs8cCdI6vZL5WhnMA7o49Q65zITH8d2TFLNXJ0c022LBxpYKFpHDhVT0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763538801; c=relaxed/simple; bh=smiYMCJ3GpxAWMiqb+arblnaWcl4SogFr6+11VFacFA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=Ao8ufZNKxk9pIRSYuiSKsW4X2wfp/PmqVRIxN31OSYn0HrOGJI/KpK0EjVcuW+gme4GXfAofpipYD8YtlUGqzp/3mI0bObdbhdkX3OOnKkXT2V7zFsu2o+VCgGAlRHVrDWnPcoVJrQhsSNBpvexiDWg/SsgymbChnbA995fB8vg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=KlQDvjTt; arc=none smtp.client-ip=203.254.224.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="KlQDvjTt" Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20251119075317epoutp023cb7da7ebc08699de38d7186c81c8cc5~5WTFRHeG82683826838epoutp02D for ; Wed, 19 Nov 2025 07:53:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20251119075317epoutp023cb7da7ebc08699de38d7186c81c8cc5~5WTFRHeG82683826838epoutp02D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1763538797; bh=Kg+JhK8ZnwwhPgJ82TO8KyWjNuZjCa1lJq/zsnBHHVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KlQDvjTt5VEL+w+NpV41Yp7tGzipOuElnPKR6F235YLuZr6BdIEACwzPevl7+oZvX BNE/h2b1lrGn9zRSWsIhldj3L3qHzdl91de+aYJ1HnrSk8iQq1TluqHvFG9fK9wHAZ Ok42tZDDYO0u/6s9vvZe/vJF5mkCGaNqzxsQa/PI= Received: from epsnrtp02.localdomain (unknown [182.195.42.154]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPS id 20251119075317epcas5p4c77b246971ef67641eaf9dddca9a75cc~5WTFCBjny2373623736epcas5p4x; Wed, 19 Nov 2025 07:53:17 +0000 (GMT) Received: from epcas5p1.samsung.com (unknown [182.195.38.91]) by epsnrtp02.localdomain (Postfix) with ESMTP id 4dBDHc1nQNz2SSKp; Wed, 19 Nov 2025 07:53:16 +0000 (GMT) Received: from epsmtip1.samsung.com (unknown [182.195.34.30]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20251119075315epcas5p2be6f51993152492f0dd64366863d70e2~5WTDzEfti1867518675epcas5p2F; Wed, 19 Nov 2025 07:53:15 +0000 (GMT) Received: from test-PowerEdge-R740xd.samsungds.net (unknown [107.99.41.79]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20251119075313epsmtip1ee62d704c02f9eff2695f7ea412c25e8~5WTBnEPqp2565625656epsmtip1U; Wed, 19 Nov 2025 07:53:13 +0000 (GMT) From: Neeraj Kumar To: linux-cxl@vger.kernel.org, nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org, gost.dev@samsung.com Cc: a.manzanares@samsung.com, vishak.g@samsung.com, neeraj.kernel@gmail.com, Neeraj Kumar Subject: [PATCH V4 05/17] nvdimm/label: Skip region label during ns label DPA reservation Date: Wed, 19 Nov 2025 13:22:43 +0530 Message-Id: <20251119075255.2637388-6-s.neeraj@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251119075255.2637388-1-s.neeraj@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CMS-MailID: 20251119075315epcas5p2be6f51993152492f0dd64366863d70e2 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P cpgsPolicy: CPGSC10-542,Y X-CFilter-Loop: Reflected X-CMS-RootMailID: 20251119075315epcas5p2be6f51993152492f0dd64366863d70e2 References: <20251119075255.2637388-1-s.neeraj@samsung.com> If Namespace label is present in LSA during nvdimm_probe() then DPA reservation is required. But this reservation is not required by region label. Therefore if LSA scanning finds any region label, skip it. Signed-off-by: Neeraj Kumar Reviewed-by: Dave Jiang --- drivers/nvdimm/label.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/nvdimm/label.c b/drivers/nvdimm/label.c index 6ccc51552822..e90e48672da3 100644 --- a/drivers/nvdimm/label.c +++ b/drivers/nvdimm/label.c @@ -469,6 +469,10 @@ int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd) lsa_label =3D to_lsa_label(ndd, slot); nd_label =3D &lsa_label->ns_label; =20 + /* Skip region label. DPA reservation is for NS label only */ + if (is_region_label(ndd, lsa_label)) + continue; + if (!slot_valid(ndd, lsa_label, slot)) continue; =20 --=20 2.34.1