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 7AFCD4502A; Mon, 9 Mar 2026 14:31:44 +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=1773066708; cv=none; b=usD4//+ODiHH1Iu8SbrkTR0kj936iuTnsYRdQBnwsv4gujIrL+UB8CfHxwDBqBOhugRb9Aaa9ForSWs7q5lkmN1ZsYQt6bfmQ43VBYDExPZcvUmKCKGY4WjlsMGdaDKstMOuT7IaGadaqEWsY32y6rX78QZPdCJ02MUFbcd5l2A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773066708; c=relaxed/simple; bh=A2xnDBZ/7H4/KWMz+g2KWxqXjH1hw8+EU0vRLJ6iDyQ=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gycaCHgfcNGwneHCFVak6PDa6b0vulW/kXyWyn3Kn4ROeec7obgTqWdb/YNfvYmrb/eqb0uelSMp5FFQUgl/izBSTowklk9ha/h7YtbOM5c4lYQQlrPyDI0KtiEOVTkquiTp6K5d3OpM57em1hhCtkKeIyokLBlstg1/Ol1M/xw= 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.150]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4fTzwT3G2NzHnH4q; Mon, 9 Mar 2026 22:31:37 +0800 (CST) Received: from dubpeml500005.china.huawei.com (unknown [7.214.145.207]) by mail.maildlp.com (Postfix) with ESMTPS id 5478B4056B; Mon, 9 Mar 2026 22:31:41 +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, 9 Mar 2026 14:31:39 +0000 Date: Mon, 9 Mar 2026 14:31:38 +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 v6 4/9] dax/cxl, hmem: Initialize hmem early and defer dax_cxl binding Message-ID: <20260309143138.000004c1@huawei.com> In-Reply-To: <20260210064501.157591-5-Smita.KoralahalliChannabasappa@amd.com> References: <20260210064501.157591-1-Smita.KoralahalliChannabasappa@amd.com> <20260210064501.157591-5-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: lhrpeml100012.china.huawei.com (7.191.174.184) To dubpeml500005.china.huawei.com (7.214.145.207) On Tue, 10 Feb 2026 06:44:56 +0000 Smita Koralahalli wrote: > From: Dan Williams > > Move hmem/ earlier in the dax Makefile so that hmem_init() runs before > dax_cxl. > > In addition, defer registration of the dax_cxl driver to a workqueue > instead of using module_cxl_driver(). This ensures that dax_hmem has > an opportunity to initialize and register its deferred callback and make > ownership decisions before dax_cxl begins probing and claiming Soft > Reserved ranges. > > Mark the dax_cxl driver as PROBE_PREFER_ASYNCHRONOUS so its probe runs > out of line from other synchronous probing avoiding ordering > dependencies while coordinating ownership decisions with dax_hmem. > > Signed-off-by: Dan Williams > Signed-off-by: Smita Koralahalli Bit of a hack but I don't have a better idea. Reviewed-by: Jonathan Cameron