From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DC5EFA0353; Thu, 24 Feb 2022 11:34:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF24841155; Thu, 24 Feb 2022 11:34:36 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id B4C1C41155 for ; Thu, 24 Feb 2022 11:34:34 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21O69O7u024517; Thu, 24 Feb 2022 02:34:34 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Ae+sycPXoWM4qga5cJFAHQvfTgIfqGWhKwh2Yrt6W8M=; b=bVe0eBvmTmITOQyEs3IOD7EBUeexgcPF0ikJiaQN1bBvBXDb8DTa1jY1/jTVP1KiOJRL CQWp1RaZbzO6CDeKc+b9DEfnD5Fe3B4Nm5lk4Kuieny6NC+LYLRh0rApsHsFeWZ+7Byc P20dpo6Gj6+uM5uu7GgMlGjNmJYb0bGPrz2Av35dB4ilHv8ME5OlNHDYwgEMT7G0lyIz lZcgDRgXtisZyeotdu2wOgnQs5hLoksDofyAW1KzDSWJfc6CDNcxBgXxSkSY6TKaUU9/ s0rN0+TAfPBNdIzdwxpG4OW6pbkxjmPT6mycBN0xzIr4XzwO9IYelB8pNPysLUCFZlud jw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3edjerp2jn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 24 Feb 2022 02:34:33 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 24 Feb 2022 02:34:32 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 24 Feb 2022 02:34:32 -0800 Received: from localhost.localdomain (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id 4E4DD3F7066; Thu, 24 Feb 2022 02:34:29 -0800 (PST) From: Tomasz Duszynski To: , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , , Tomasz Duszynski , Jakub Palider Subject: [PATCH] common/cnxk: show more detailed info on model mismatch Date: Thu, 24 Feb 2022 11:34:22 +0100 Message-ID: <20220224103422.1425044-1-tduszynski@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: Z0XSAj5AySnp6BH4w32ehFW8bhL---2Y X-Proofpoint-GUID: Z0XSAj5AySnp6BH4w32ehFW8bhL---2Y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-02-24_01,2022-02-24_01,2022-02-23_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 Kollanukkaran --- 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.25.1