From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (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 B5C0E3B0AFC; Mon, 23 Mar 2026 17:59:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774288792; cv=none; b=pIu2dM3lsZ/fDV8wqwPQ/OBOTm/SCdICx//VNvDVsQPIreOF4WpHAMOph26+R/LEIcxWLSdlK+iq0w3PJy9/BHrmnRykVPj+B8nzq00plRTva+TgX33PZTDFab6Hp1i+AKbxekXUF9HXOymvBgOLzEtAJ1kclDp5fU573Ve2ylc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774288792; c=relaxed/simple; bh=vaTbYnBe2xnMuVRZWapz+BwF8yO5bWwNu4d6Ld4MDWo=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fFm3Ru1+P0hRAQuwJEwcwC/ElkRzDl/Nv1OJzFmfJ/qCKJxcLuj69WksGzL09X+U75vOTqCFbjQsg5RS6fc/uZlipj+FbStQ9+5b9P9VQ5h+RqkrW7lhbqIYLpBlcfNBSAg5a2Ft46ZnFv/GxGzsfETWXOL9mvMFVWIWvf2kywg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.224.107]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4ffgsc5tcxzHnGd2; Tue, 24 Mar 2026 01:59:16 +0800 (CST) Received: from dubpeml500005.china.huawei.com (unknown [7.214.145.207]) by mail.maildlp.com (Postfix) with ESMTPS id 9DA7240589; Tue, 24 Mar 2026 01:59:48 +0800 (CST) Received: from localhost (10.203.177.15) by dubpeml500005.china.huawei.com (7.214.145.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 23 Mar 2026 17:59:47 +0000 Date: Mon, 23 Mar 2026 17:59:46 +0000 From: Jonathan Cameron To: Smita Koralahalli CC: , , , , , Ard Biesheuvel , "Alison Schofield" , Vishal Verma , Ira Weiny , Dan Williams , Yazen Ghannam , "Dave Jiang" , Davidlohr Bueso , "Matthew Wilcox" , Jan Kara , "Rafael J . Wysocki" , Len Brown , Pavel Machek , Li Ming , Jeff Johnson , Ying Huang , Yao Xingtao , "Peter Zijlstra" , Greg Kroah-Hartman , Nathan Fontenot , Terry Bowman , Robert Richter , Benjamin Cheatham , Zhijian Li , Borislav Petkov , Tomasz Wolski Subject: Re: [PATCH v8 2/9] dax/hmem: Factor HMEM registration into __hmem_register_device() Message-ID: <20260323175946.00004f1b@huawei.com> In-Reply-To: <20260322195343.206900-3-Smita.KoralahalliChannabasappa@amd.com> References: <20260322195343.206900-1-Smita.KoralahalliChannabasappa@amd.com> <20260322195343.206900-3-Smita.KoralahalliChannabasappa@amd.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100010.china.huawei.com (7.191.174.197) To dubpeml500005.china.huawei.com (7.214.145.207) On Sun, 22 Mar 2026 19:53:35 +0000 Smita Koralahalli wrote: > Separate the CXL overlap check from the HMEM registration path and keep > the platform-device setup in a dedicated __hmem_register_device(). > > This makes hmem_register_device() the policy entry point for deciding > whether a range should be deferred to CXL, while __hmem_register_device() > handles the HMEM registration flow. > > No functional changes. > > Signed-off-by: Smita Koralahalli Reviewed-by: Jonathan Cameron