From 040f0bda7c5c8794fd1083eb5e73a9e1eb33a01c Mon Sep 17 00:00:00 2001 From: Tomasz Duszynski Date: Thu, 24 Feb 2022 11:34:22 +0100 Subject: [PATCH] common/cnxk: extend log on model mismatch 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 Reviewed-by: Jakub Palider Reviewed-by: Jerin Jacob --- drivers/common/cnxk/roc_model.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_model.c b/drivers/common/cnxk/roc_model.c index 447dc6e8bc..49617c02b7 100644 --- a/drivers/common/cnxk/roc_model.c +++ b/drivers/common/cnxk/roc_model.c @@ -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; -- 2.20.1