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 AA750456FF; Wed, 31 Jul 2024 08:13:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7805842D72; Wed, 31 Jul 2024 08:13:38 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 0DC96402C8 for ; Wed, 31 Jul 2024 08:06:56 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46V3DUxI001897 for ; Tue, 30 Jul 2024 23:06:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=dYgBub+WJS6oENTSQFRcPtk Czx519DyDulhYhSS75z0=; b=ggftqDn89e32H02K/9xMZOp+yaHc+0CMq/fYicD HNsR4PUCAIhDcG4IXabEdHHwPFQMbH9fXeegZ83TH5p0htxGvrb7EUlkpyhMJrKO 0A1O04FBYgiQBgVcfA8oZbNvuIzF1GGtOwdjcYivwr1ZjZVSTPSYswm2hzxEWvKf jEITEqth9Ipki7GOBKXekvNRawbhDiinIA4YMpG1Nue+20K7SgCNMwjvKiztJr68 aTgFPw9yqb9hm/V8hk/iT60gzUxKsztpluGNaoRkkgKFT3+MUDNjFc0Tu1yhhI4I T8CRD/8mJ1RARsU+DhKvuroIih7sS0DKeP3GZFxKipVZiPw== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 40qd64rhww-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 30 Jul 2024 23:06:55 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 30 Jul 2024 23:06:55 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Tue, 30 Jul 2024 23:06:55 -0700 Received: from ml-host-33.sclab.marvell.com. (unknown [10.110.143.233]) by maili.marvell.com (Postfix) with ESMTP id C6A755C68E1; Tue, 30 Jul 2024 23:06:54 -0700 (PDT) From: Srikanth Yalavarthi To: Srikanth Yalavarthi CC: , , , Subject: [PATCH 1/1] ml/cnxk: enable data caching for all MRVL layers Date: Tue, 30 Jul 2024 23:06:52 -0700 Message-ID: <20240731060652.7937-1-syalavarthi@marvell.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: VaJCBJurNUEoEBwIdjzQnM8uV5rTICHR X-Proofpoint-GUID: VaJCBJurNUEoEBwIdjzQnM8uV5rTICHR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-31_03,2024-07-30_01,2024-05-17_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 From: Anup Prabhu Enabled data caching for all MRVL layers in TVM models Signed-off-by: Anup Prabhu --- drivers/ml/cnxk/cn10k_ml_ops.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/ml/cnxk/cn10k_ml_ops.c b/drivers/ml/cnxk/cn10k_ml_ops.c index 834e55e88e9..f6b2baa0df0 100644 --- a/drivers/ml/cnxk/cn10k_ml_ops.c +++ b/drivers/ml/cnxk/cn10k_ml_ops.c @@ -996,13 +996,8 @@ cn10k_ml_layer_start(void *device, uint16_t model_id, const char *layer_name) if (ret < 0) { cn10k_ml_layer_stop(device, model_id, layer_name); } else { - if (cn10k_mldev->cache_model_data) { - if ((model->type == ML_CNXK_MODEL_TYPE_GLOW && - model->subtype == ML_CNXK_MODEL_SUBTYPE_GLOW_MRVL) || - (model->type == ML_CNXK_MODEL_TYPE_TVM && - model->subtype == ML_CNXK_MODEL_SUBTYPE_TVM_MRVL)) - ret = cn10k_ml_cache_model_data(cnxk_mldev, layer); - } + if (cn10k_mldev->cache_model_data) + ret = cn10k_ml_cache_model_data(cnxk_mldev, layer); } return ret; -- 2.45.1