From: Dave Jiang Date: Fri, 3 Apr 2026 19:15:11 +0000 (-0700) Subject: Merge branch 'for-7.1/cxl-consolidate-endpoint' into cxl-for-next X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fb3bdeb00111519965601389a7b60afb97bafc0;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'for-7.1/cxl-consolidate-endpoint' into cxl-for-next Add code to ensure the endpoint has completed initialization before usage. cxl/pci: Check memdev driver binding status in cxl_reset_done() cxl/pci: Hold memdev lock in cxl_event_trace_record() --- 2fb3bdeb00111519965601389a7b60afb97bafc0 diff --cc drivers/cxl/pci.c index 84cff73b39e59,a5922116db2a8..6e04c8ef19121 --- a/drivers/cxl/pci.c +++ b/drivers/cxl/pci.c @@@ -1056,11 -1043,11 +1056,14 @@@ static void cxl_reset_done(struct pci_d * that no longer exists. */ guard(device)(&cxlmd->dev); + if (!cxlmd->dev.driver) + return; + if (cxlmd->endpoint && cxl_endpoint_decoder_reset_detected(cxlmd->endpoint)) { + device_for_each_child(&cxlmd->endpoint->dev, NULL, + cxl_endpoint_decoder_clear_reset_flags); + dev_crit(dev, "SBR happened without memory regions removal.\n"); dev_crit(dev, "System may be unstable if regions hosted system memory.\n"); add_taint(TAINT_USER, LOCKDEP_STILL_OK);