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 BF7BA4327C; Fri, 3 Nov 2023 17:40:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC86540263; Fri, 3 Nov 2023 17:40:22 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 4A56F4014F for ; Fri, 3 Nov 2023 17:40:21 +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 3A3BVjE0028141 for ; Fri, 3 Nov 2023 09:40:20 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=wQkwEuMYhYl+PPm3KslkgH4X/tlxL7gsKOIFci1UABg=; b=BwyynkdHkbh3hex/Tym/TwrndquJRMhs2MUqoj2Vnf/u/8NGyyhjixADhkLA37n+jHk3 NMyiz8MCFPU3ZHSmc6BrRIeAnoFyJc3cP0fS/2ktwkMtHonnlA1KoJKz25/73o6VkXQF ZhGASIOUuR5yGyVywO6r4UCUK72pzrHnVFH3AVBMegELOBnZJpIrGiHAZeaHIyRMPsov fuJI9A5zmvS8XSiuAZXGGrVs5PivokrxgRuC3udbGInf+FqtuEzZS+DxaPDfUMtIZTav iBa4lRBEDe5v+5eS2Z17/fE3HnPLzDlijaYaZ21soJO0P4nHXO6e0vLVjOaLZac0KGiT 3Q== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3u4upkhr0u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 03 Nov 2023 09:40:20 -0700 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; Fri, 3 Nov 2023 09:40:18 -0700 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; Fri, 3 Nov 2023 09:40:18 -0700 Received: from ml-host-33.caveonetworks.com (unknown [10.110.143.233]) by maili.marvell.com (Postfix) with ESMTP id 518123F70D2; Fri, 3 Nov 2023 09:40:18 -0700 (PDT) From: Srikanth Yalavarthi To: Srikanth Yalavarthi CC: , , , , Subject: [PATCH v2 1/1] ml/cnxk: fix updating internal I/O info Date: Fri, 3 Nov 2023 09:40:12 -0700 Message-ID: <20231103164013.30020-1-syalavarthi@marvell.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231029132508.21530-1-syalavarthi@marvell.com> References: <20231029132508.21530-1-syalavarthi@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 7iPYP0Vd7E-blWvfitt3myKEv2_iDUiQ X-Proofpoint-GUID: 7iPYP0Vd7E-blWvfitt3myKEv2_iDUiQ 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-03_15,2023-11-02_03,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 Update scale factor in IO info of TVM models from metadata. Fixes: 35c3e790b4a0 ("ml/cnxk: update internal info for TVM model") Signed-off-by: Srikanth Yalavarthi --- v2: - Rebase over latest main v1: - Initial PATCH drivers/ml/cnxk/mvtvm_ml_model.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ml/cnxk/mvtvm_ml_model.c b/drivers/ml/cnxk/mvtvm_ml_model.c index d28bd88a08..cd9461302c 100644 --- a/drivers/ml/cnxk/mvtvm_ml_model.c +++ b/drivers/ml/cnxk/mvtvm_ml_model.c @@ -216,6 +216,7 @@ mvtvm_ml_model_io_info_set(struct cnxk_ml_model *model) model->mvtvm.info.input[i].sz_q = model->mvtvm.info.input[i].nb_elements * rte_ml_io_type_size_get(model->mvtvm.info.input[i].qtype); + model->mvtvm.info.input[i].scale = metadata->input[i].scale; model->mvtvm.info.total_input_sz_d += model->mvtvm.info.input[i].sz_d; model->mvtvm.info.total_input_sz_q += model->mvtvm.info.input[i].sz_q; @@ -256,6 +257,7 @@ mvtvm_ml_model_io_info_set(struct cnxk_ml_model *model) model->mvtvm.info.output[i].sz_q = model->mvtvm.info.output[i].nb_elements * rte_ml_io_type_size_get(model->mvtvm.info.output[i].qtype); + model->mvtvm.info.output[i].scale = metadata->output[i].scale; model->mvtvm.info.total_output_sz_d += model->mvtvm.info.output[i].sz_d; model->mvtvm.info.total_output_sz_q += model->mvtvm.info.output[i].sz_q; -- 2.42.0