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 91409A054F; Tue, 2 Mar 2021 06:02:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6337D4014E; Tue, 2 Mar 2021 06:02:48 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 77AF040142 for ; Tue, 2 Mar 2021 06:02:46 +0100 (CET) IronPort-SDR: O0Dngj4p/DbAf5KuP6m6X2gEjL4YgkiudQgL2QYBcJbzuRxZ+lWz4EGSa+mM3J/e3EgwbawnZw W/nFZue34oWQ== X-IronPort-AV: E=McAfee;i="6000,8403,9910"; a="271692201" X-IronPort-AV: E=Sophos;i="5.81,216,1610438400"; d="scan'208";a="271692201" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2021 21:02:44 -0800 IronPort-SDR: fpv+Doyet7Vv/kAPWLuR+kd+Y3U7Lp/LKW8nnvUbbelDaBCblyp4zHcRJF8klG7A2L3yRHruMK +OSHWsFxio/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,216,1610438400"; d="scan'208";a="506192636" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga001.fm.intel.com with ESMTP; 01 Mar 2021 21:02:44 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 1 Mar 2021 21:02:43 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 2 Mar 2021 13:02:41 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2106.002; Tue, 2 Mar 2021 13:02:41 +0800 From: "Tu, Lijuan" To: "Sun, QinX" , "dts@dpdk.org" CC: "Peng, Yuan" , "Sun, QinX" Thread-Topic: [dts] [PATCH V1] tests/cvl_limit_value_test: adapt to cvl island platform Thread-Index: AQHXDnK19X5ukG6mnECGzqdGbbcQ86pwJVxA Date: Tue, 2 Mar 2021 05:02:41 +0000 Message-ID: <1b0539469bad45cc9e927495f8c702b7@intel.com> References: <20210301163954.29103-1-qinx.sun@intel.com> In-Reply-To: <20210301163954.29103-1-qinx.sun@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/cvl_limit_value_test: adapt to cvl island platform 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" > + def is_cvl_island(self, port_id=3D0): > + """ > + Judge whether it is a CVL Island card according to the value of = fd_fltr_guar > + """ > + pf_pci =3D self.dut.ports_info[port_id]['pci'] > + self.dut.send_expect('usertools/dpdk-devbind.py --force --bind= =3Dvfio-pci > {}'.format(pf_pci), '#') > + out =3D PmdOutput(self.dut).start_testpmd('default', eal_param= =3D'-a %s --log- > level=3Dice,7' % pf_pci) > + self.dut.kill_all() > + self.logger.info(f'outinfo:{out}') > + res =3D re.search(r"fd_fltr_guar\s+=3D\s+(\d+)", out) > + self.verify(res, "'fd_fltr_guar' not found'") > + if int(res.group(1)) =3D=3D 2048: > + return True > + return False It's really a bad approach.