Re: [PATCH 1/4] cxl: Add function to count regblocks of a given type.

From: Davidlohr Bueso
Date: Mon Mar 06 2023 - 22:04:57 EST


On Fri, 03 Mar 2023, Jonathan Cameron wrote:

Until the recently release CXL 3.0 specification, there
was only ever one instance of any given register block pointed
to by the Register Block Locator DVSEC. Now, the specification allows
for multiple CXL PMU instances, each with their own register block.

To enable this add an index parameter to cxl_find_regblock()
and use that to implement cxl_count_regblock().

Reviewed-by: Dave Jiang <dave.jiang@xxxxxxxxx>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>

Reviewed-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>