Re: [PATCH v17 11/19] PCI/CXL: Cache endpoint HDM state during PCI enumeration

From: Srirangan Madhavan

Date: Sat Dec 05 2026 - 03:17:10 EST


On 11/10/26 7:54 PM, Li Ming wrote:
Is this lock needed? “pdev->hdm->dvsec_ctrl” could be modified
concurrently? Seems like it is called during the endpoint port probing.

I realize that we may need this lock while I was reviewing patch #13.
The CXL reset operation could be triggered during the endpoint port probing.

Would you mind moving the code of holding cxl_rwsem.dpa to patch #13? I
think this could make it easier to review.

Done in v18. Patch 11 no longer takes cxl_rwsem.dpa; the locking
comes in with the reset readers in patch 13. Patch 11 also frees the
cache directly on release and uses your simplified
__cxl_pci_hdm_read_info().

https://lore.kernel.org/linux-cxl/20261205041453.3946529-1-smadhavan@xxxxxxxxxx/

--
Regards,
Srirangan