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 EE7FDA0C4E; Tue, 2 Nov 2021 12:26:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C71BC40689; Tue, 2 Nov 2021 12:26:36 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 09EFA4003F for ; Tue, 2 Nov 2021 12:26:34 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10155"; a="231092347" X-IronPort-AV: E=Sophos;i="5.87,202,1631602800"; d="scan'208";a="231092347" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 04:26:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,202,1631602800"; d="scan'208";a="489074600" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga007.jf.intel.com with ESMTP; 02 Nov 2021 04:26:34 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 2 Nov 2021 04:26:33 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 2 Nov 2021 04:26:33 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 2 Nov 2021 04:26:33 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Tue, 2 Nov 2021 04:26:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f4FemVumirL5DgTmUzlw33JB+CS4T1TrT9euNSP/vQWSWMNgL9okNNAi7kPP3VNreOvSPgMD9Rv8LsiraEp5s37nQH6MyCtiqG02izDwsfgVH8PE1oHJ6ZjKef8Eb6tGhqYdOxIi3oX5HAENs+yK9PvW3BJos5xf7Wpj8bIIjR9lo7AWMZDfowK7HeQYEI64H5/8r3uOC0IXv8/PUsgzq5n7maYanSTVv3Xs515dNaPMstRbIuXrqn04urGDlFw3KOfD5V528uwRGId2gvRBAmm0QKU2zlClKQB6UFvFdsa90bZ54JjkYW1Yi41SeMVKVGIdhoUCYg1Mr4PDQq3zfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kBB1D0CCEIBTC2b7ZIqRpGuGWVwt4dwQ3yz0fPzA/+0=; b=I5hkLVoJtokeh1nwVAllI/yz8ExDhudRtmRFe0eV0i8DDrKiIwqrcQV/FjpP1Wfhrg6lLLsNydY/3vyQAU4DHjVYhBfof0j16nNvVWAowfWAXpkfSPKdNTfNrKDEyyH8EnnsElp6+zsDlKeLWF2AUlDYUwilrA6qRv+UDTudRukUxgdcOsQ4qGx1FRpI+B+3+nvTo+ZtIOJXxkJG4nb3M3UX8KlKAPSzY8NxyePOSfrml/78ykcZjLvx8/TNR9PcfTpWmhSWQCY0s7xYWaV3NAtsc1Ojy0L2yQc876EEhp1dENk5yNujCIqMFQjLdy85tesIMo+bwgtnhfCsUeoabg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kBB1D0CCEIBTC2b7ZIqRpGuGWVwt4dwQ3yz0fPzA/+0=; b=TOjF1QhcDf79zqR/ONaJhx7SuKQf/yl3yWw/Rc53PMth6m4TpysLSBQtPO8f8CCLZX5R8VaQbwS9QNufT0XMSi3p1lBP0RUJQsnspddQQBvOn01WuXoMchwqYq5PA1LeXEVGJd7eZiyXTFJslwO9Nwo4U2l8EwKD3jzP2lxtDg8= Received: from DM6PR11MB4491.namprd11.prod.outlook.com (2603:10b6:5:204::19) by DM5PR11MB1387.namprd11.prod.outlook.com (2603:10b6:3:7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Tue, 2 Nov 2021 11:26:32 +0000 Received: from DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::2c0c:5383:f814:3b4e]) by DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::2c0c:5383:f814:3b4e%6]) with mapi id 15.20.4649.019; Tue, 2 Nov 2021 11:26:32 +0000 From: "Ananyev, Konstantin" To: "Huang, ZhiminX" , "dts@dpdk.org" CC: "An, XiangX" Thread-Topic: [dts] [PATCH V1 4/4] tests/unit_tests_eal: modify code to adapt avx512 Thread-Index: AQHXz7UPTbRcnffHcUGptd0XJAt2wqvwDRnggAAJnYCAAAHwsA== Date: Tue, 2 Nov 2021 11:26:32 +0000 Message-ID: References: <1635835398-70543-1-git-send-email-xiangx.an@intel.com> <1635835398-70543-4-git-send-email-xiangx.an@intel.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2b51a56b-2ba8-4397-8b4a-08d99df39f29 x-ms-traffictypediagnostic: DM5PR11MB1387: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6AI1L/CUVP28YkiVEDN0YscPXLGohuG7pqAO+7jBj/Xab5SHjUeDoJMOnBtZJ4a6DOuZSGgN904MhO/slOkKq2q6EE63PaeUzQ12q11/VFDL4k+zlfpRV26zlaMVcwwWi29v1xmoUOWBseyFZ+1jipCLhiOVQrannPmemHsn6WGYdkNs20E4Y777IRV12kAuVKnijINF+qCqQdaouD/1Z/qcVFKbCyVC5PGc1LojlKovg18/S6fka17HmcGC5VGuA000i+5cuVU1zf0K48ZScEQlpn/g23b7rGz0j0cIE9FytLo2xsmoi3zXV13jZEVYEfPW5S/HRzBZoHR2tlyQf9Xz22rgLNn0lMeBi62hPGukHfwHvxfvd1cfS/cFQvVgsbhxS7DU+kQbvddGuzdpV9Cm1FywVmVJodPPyWsANg5Qaa7TFyBNA2Pv5HUP8ovf5H0Gyrf+0P0pPd4/VT71rutpc4MHlH0qPmBouMuLZU1gi0DDxgOQHr5VzgW0Id6MWTloANExU1FIBpNOiWRDsVb94W5GdHj10LInA4/XHsAj3f5kREIeFQR/oY7XqbRQSq+TCGMnWquuU0NNgPfBsaHNCpf49SCtBfDpdkGS9fhCZfwlGYHoWvWPbcYRmRBEh7ar6zrCudZXo7yiRF/9r5hLcwpxCzE0MrjcAQ6osPuQDxajU4CXnr0nrBn2GDFqHcvZOt9nVNW9BZZhwxxtuQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4491.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(110136005)(33656002)(508600001)(83380400001)(64756008)(66446008)(66946007)(316002)(5660300002)(66476007)(66556008)(55236004)(52536014)(26005)(8676002)(76116006)(2906002)(6506007)(4326008)(38070700005)(86362001)(55016002)(9686003)(186003)(8936002)(82960400001)(38100700002)(122000001)(107886003)(71200400001)(7696005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1YuD74AAOtchGJ60fxnqDW8MSqdejif0pI3K6fj69Hmes8f6i1kcX+t5pLAT?= =?us-ascii?Q?my4NbtGc+szaZh1JG0QHrU/BEkU2VuENAy9dX8EfI8cjJy+3UcUNZAMXNwxW?= =?us-ascii?Q?quQHJnMpRntw0GZ74MNnacCUIAsL+c5BOYAsTKN9H0+FFZdGNMyeHS5yQbvD?= =?us-ascii?Q?oL3UK5TQ/ag+q7YVGPMh0/H4NMReq8pMsEQXLqPBJ/Uy2c7fLLn6Zw5bzzqE?= =?us-ascii?Q?eRDOJB4H/ReQf4FfzWnnRhyw92JYowJsw+aiGC5+8yxqJGsT39LI4nHBY3GR?= =?us-ascii?Q?4L0++B1b553BbjJqqbUKq4TF+zIkkODBty0H2CzNVVzqXOQc0PpPLH+bwc5Z?= =?us-ascii?Q?MJVMAEbmMmRLfW89dHl9EYRbyTpkzOS9yIyuvLdGolIUNUJ5Sg9PtbwxJ1H0?= =?us-ascii?Q?ddSbY6yoKkEgs4xMwX+KOxVUy9hdPDo0XfhlwU+Xz3o9OADBX9CalTbj27A0?= =?us-ascii?Q?2XfkVkqP9g/7xSsEyF7b8Ak8eIRYPS/hZ1qGuf5fLKzcbGuQi4V3+cNJxr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IpQdzNQzCPow0s04pWLHzEPda5AidVC0?= =?us-ascii?Q?fA8k8aId2vOHoCsNaJ26Pn/HFshAaA+dCEQrra1SSZzWZpd/HYQtl/kxcYqW?= =?us-ascii?Q?G1rR5K1tAfv7fgktuTlvRbDKx9Y+GxuHmWzu8qCsAFGmfWVmNnln0qjPif8D?= =?us-ascii?Q?IMwXEek/FRsli3hOtx1wXoul+nV11Y20XH7H7YyrGZhzVfZbQ1rJRk2Y8Ykk?= =?us-ascii?Q?Sz838YNF1ldFE5EHYnkJMzVTYPdVIRdc01h1Gk8WoQkg0Fj+SrHNTZBwOzJs?= =?us-ascii?Q?n9ze+A=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4491.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b51a56b-2ba8-4397-8b4a-08d99df39f29 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2021 11:26:32.1690 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SrE71KG5t1PDqd2NG5nr1TVwV3ruXT0G0i+Qf7qYR+T9GWHjVgh8Mxhewb2GobUCjttGtkGiYLMTCjcLElBdZckyENfUwtccpXETbria8l8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1387 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V1 4/4] tests/unit_tests_eal: modify code to adapt avx512 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" > > Hi Xiang, > > > > > Modify code to adapt rxmod avx512. > > > > > > Signed-off-by: Xiang An > > > --- > > > tests/TestSuite_unit_tests_eal.py | 5 +++-- > > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > > > diff --git a/tests/TestSuite_unit_tests_eal.py > > b/tests/TestSuite_unit_tests_eal.py > > > index 8096183..b5cb7a2 100644 > > > --- a/tests/TestSuite_unit_tests_eal.py > > > +++ b/tests/TestSuite_unit_tests_eal.py > > > @@ -38,7 +38,7 @@ EAL autotest. > > > > > > import framework.utils as utils > > > from framework.test_case import TestCase > > > - > > > +from framework.settings import load_global_setting, > > DPDK_RXMODE_SETTING > > > # > > > # > > > # Test class. > > > @@ -462,7 +462,8 @@ class TestUnitTestsEal(TestCase): > > > self.test_app_cmdline +=3D "--no-pci" > > > > > > if self.dut.dpdk_version >=3D '20.11.0': > > > - self.test_app_cmdline +=3D " --force-max-simd-bitwidth= =3D0" > > > + if load_global_setting(DPDK_RXMODE_SETTING) =3D=3D 'defa= ult': > > > + self.test_app_cmdline +=3D " > > --force-max-simd-bitwidth=3D0" > > > > Could you probably explain why it is needed here? > > > > > self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>", > > self.start_test_time) > > > out =3D self.dut.send_expect("acl_autotest", "RTE>>", > > self.run_cmd_time) > > > self.dut.send_expect("quit", "# ") > > > -- > > > 1.8.3.1 >=20 > Hi Konstantin, > We have add this case to test avx512 mode, if this judgment is not added,= the cmdline will invalid. >=20 > Take a example: > x86_64-native-linuxapp-gcc/app/test/dpdk-test -l 1,2,3,4 -n 4 --file-pref= ix=3Ddpdk_237965_20211103034106 --force-max-simd-bitwidth=3D512 > --no-pci --force-max-simd-bitwidth=3D0 >=20 So DPDK_RXMODE_SETTING controls whether '--force-max-simd-bitwidth' is set = or not? If so, can we then just override it here for this test-case? I'd like this test-case to always run with '--force-max-simd-bitwidth=3D0'. That way it provides best possible coverage.