Re: [PATCH v3 16/18] cxl/region: Add a dev_err() on missing target list entries

From: Jonathan Cameron
Date: Fri Feb 14 2025 - 11:38:14 EST


On Tue, 11 Feb 2025 10:53:46 +0100
Robert Richter <rrichter@xxxxxxx> wrote:

> Broken target lists are hard to discover as the driver fails at a
> later initialization stage. Add an error message for this.
>
> Example log messages:
>
> cxl_mem mem1: failed to find endpoint6:0000:e0:01.3 in target list of decoder1.1
> cxl_port endpoint6: failed to register decoder6.0: -6
> cxl_port endpoint6: probe: 0
>
> Signed-off-by: Robert Richter <rrichter@xxxxxxx>
> Reviewed-by: Gregory Price <gourry@xxxxxxxxxx>
> Tested-by: Gregory Price <gourry@xxxxxxxxxx>
Seems reasonable to me as I've also run into fun problems with these
due to setup script bugs...
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>