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 EBA9443382; Wed, 22 Nov 2023 17:36:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B58664028C; Wed, 22 Nov 2023 17:36:49 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 345DA40265 for ; Wed, 22 Nov 2023 17:36:48 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AMBjYpN014314 for ; Wed, 22 Nov 2023 08:36:47 -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=i3ksB2Z/wTZ7Z7nz62Ii/slorYdjFBR0AYAeZo1jsk0=; b=jdBhp55+rTHAug0wfA9Enkqy0nqTvMxRCJ6WP7lObF1NBkIV4JR1SNmJyyno0NjY/Ye1 Z0HqFtZzcd/f+rqSJQwP6UKHNeaDDnUfhw4PRVsdadzv9IdqL4hM4dHFko5RO6bjqY2F v09AL6z4D2AxAeY3JZ7XPM7wS9M7DKKDUd8SCA5uRpr/Y+lBvjdxZ23j6M9kY6mxpHid ztHaSELOOrcrI7RXXQEEgG3vijJJ01oz0WvSs6H9tH3KJCPCkBqzoV7A+kXPBiaAYXuM V3yckJ1BNyCVuOcMXb2PCRRsHAlDKBLelFWQTVFKf83QCI959oR1DekGexnkSOFeBHCO kQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3uh1jbc8a0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 22 Nov 2023 08:36:47 -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.48; Wed, 22 Nov 2023 08:36:45 -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.48 via Frontend Transport; Wed, 22 Nov 2023 08:36:45 -0800 Received: from ml-host-33.caveonetworks.com (unknown [10.110.143.233]) by maili.marvell.com (Postfix) with ESMTP id 696873F703F; Wed, 22 Nov 2023 08:36:45 -0800 (PST) From: Srikanth Yalavarthi To: Srikanth Yalavarthi , Prince Takkar CC: , , , Subject: [PATCH 1/1] ml/cnxk: fix name of TVM model with single layer Date: Wed, 22 Nov 2023 08:36:40 -0800 Message-ID: <20231122163640.615-1-syalavarthi@marvell.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: EfIr2U-BfYV42JTlHkUM5HH8GQ63Gf2o X-Proofpoint-GUID: EfIr2U-BfYV42JTlHkUM5HH8GQ63Gf2o X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-22_12,2023-11-22_01,2023-05-22_02 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 Name field of TVM model with single MRVL layer is currently set to empty string. Update the name with the field from metadata. Fixes: 5cea2c67edfc ("ml/cnxk: update internal TVM model info structure") Signed-off-by: Srikanth Yalavarthi --- drivers/ml/cnxk/mvtvm_ml_model.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/ml/cnxk/mvtvm_ml_model.c b/drivers/ml/cnxk/mvtvm_ml_model.c index 3e06ea658bb..102d30e5f4f 100644 --- a/drivers/ml/cnxk/mvtvm_ml_model.c +++ b/drivers/ml/cnxk/mvtvm_ml_model.c @@ -352,6 +352,10 @@ mvtvm_ml_model_info_set(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *mo tvm_mrvl_model: cn10k_ml_model_info_set(cnxk_mldev, model, &model->mvtvm.info, &model->layer[0].glow.metadata); + + metadata = &model->mvtvm.metadata; + rte_memcpy(info->name, metadata->model.name, TVMDP_NAME_STRLEN); + info->io_layout = RTE_ML_IO_LAYOUT_SPLIT; } -- 2.42.0