Re: [PATCH v2 1/1] cxl/hdm: Add support for 32 switch decoders

From: Alison Schofield

Date: Sun Mar 22 2026 - 22:41:23 EST


On Sat, Mar 21, 2026 at 02:14:59PM +0800, Li Ming wrote:
> Per CXL r4.0 section 8.2.4.20.1. CXL host bridge and switch ports can
> support 32 HDM decoders. Current implementation misses some decoders on
> CXL host bridge and switch in the case that the value of Decoder Count
> field in CXL HDM decoder Capability Register is greater than or equal to
> 9.
>
> Update calculation implementation to ensure the decoder count calculation
> is correct for CXL host bridge/switch ports.

Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>