common/cnxk: extend log on model mismatch
authorTomasz Duszynski <tduszynski@marvell.com>
Thu, 24 Feb 2022 10:34:22 +0000 (11:34 +0100)
committerJerin Jacob <jerinj@marvell.com>
Thu, 24 Feb 2022 20:30:02 +0000 (21:30 +0100)
Model is uniquely identified by 4 numbers. Print them all in case
model being populated is not on a list of known models. This makes
debugging a bit easier.

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Reviewed-by: Jakub Palider <jpalider@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_model.c

index 447dc6e..49617c0 100644 (file)
@@ -132,7 +132,8 @@ populate_model(struct roc_model *model, uint32_t midr)
        if (!found) {
                model->flag = 0;
                strncpy(model->name, "unknown", ROC_MODEL_STR_LEN_MAX - 1);
-               plt_err("Invalid RoC model (impl=0x%x, part=0x%x)", impl, part);
+               plt_err("Invalid RoC model (impl=0x%x, part=0x%x, major=0x%x, minor=0x%x)",
+                       impl, part, major, minor);
        }
 
        return found;