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

From: Srirangan Madhavan

Date: Fri Nov 20 2026 - 03:18:19 EST


On 11/17/26 9:29 AM, Alison Schofield wrote:
Cache HDM state in pci_dev->hdm after BAR resource setup and before driver
binding, so reset can restore it without a bound CXL driver.
Does having this cache make the device ready for reset before its CXL
endpoint and region discovery have run?

I understand why restoration needs to work without a bound CXL driver,
but what establishes that the cached state is sufficiently complete
for reset at this point? Some information, such as normalized
addressing in patch 13, is only recorded later during discovery.

-- Alison

The cache only holds the HDM register state read at enumeration, so it
doesn't make the device ready for reset on its own. I answered this in my
reply to the cover letter: https://lore.kernel.org/linux-cxl/20261105185917.2667656-1-smadhavan@xxxxxxxxxx/T/#m82b76ee0215d67d91f67ec6fa72036615f1adb4f

--
Regards,
Srirangan