From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2CDC4A3295 for ; Wed, 23 Oct 2019 11:51:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 19BD11BFF8; Wed, 23 Oct 2019 11:51:55 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 3F7A11BFF5 for ; Wed, 23 Oct 2019 11:51:53 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2019 02:51:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,220,1569308400"; d="scan'208";a="397990215" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga005.fm.intel.com with ESMTP; 23 Oct 2019 02:51:52 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 23 Oct 2019 02:51:52 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) 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.1713.5; Wed, 23 Oct 2019 02:51:52 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 23 Oct 2019 02:51:51 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by shsmsx102.ccr.corp.intel.com ([169.254.2.176]) with mapi id 14.03.0439.000; Wed, 23 Oct 2019 17:51:50 +0800 From: "Tu, Lijuan" To: "pvukkisala@marvell.com" , "dts@dpdk.org" CC: "avijay@marvell.com" , "fmasood@marvell.com" Thread-Topic: [dts] [PATCH] ptpclient: don't use software time stamping for cavm devices Thread-Index: AQHVhpVsdNBJsAXf6UOISXrl6DoKWadoActg Date: Wed, 23 Oct 2019 09:51:49 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB45A34@SHSMSX101.ccr.corp.intel.com> References: <1571500408-29095-1-git-send-email-pvukkisala@marvell.com> In-Reply-To: <1571500408-29095-1-git-send-email-pvukkisala@marvell.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjQxMTYwMzAtM2QxNi00MzJiLTliOTYtMzdiYWY3MTE1ZjUxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiWHRrUlg5N2FRdDBsTlVRdVJocllnUFp0bEoxNU9nRHFoeFJHN1wvcWVva01wQzZtVEdDcXlQbWZCK1wvTDVGeklyIn0= x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] ptpclient: don't use software time stamping for cavm devices X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of > pvukkisala@marvell.com > Sent: Saturday, October 19, 2019 11:53 PM > To: dts@dpdk.org > Cc: avijay@marvell.com; fmasood@marvell.com; Phanendra Vukkisala > > Subject: [dts] [PATCH] ptpclient: don't use software time stamping for ca= vm > devices >=20 > From: Phanendra Vukkisala >=20 > Aslo fix random failure occurs due to timing > Signed-off-by: Phanendra Vukkisala > --- > tests/TestSuite_ptpclient.py | 14 ++++++++++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_ptpclient.py b/tests/TestSuite_ptpclient.py = index > 23590e4..461abf1 100644 > --- a/tests/TestSuite_ptpclient.py > +++ b/tests/TestSuite_ptpclient.py > @@ -98,7 +98,10 @@ class TestPtpClient(TestCase): > ptp client test case. > """ > # use the first port on that self.nic > - self.tester.send_expect("ptp4l -i %s -2 -m -S &" % self.itf0, "p= tp4l") > + if self.nic in ["cavium_a063", "cavium_a064"]: > + self.tester.send_expect("ptp4l -i %s -2 -m &" % self.itf0, "= ptp4l") > + else: > + self.tester.send_expect("ptp4l -i %s -2 -m -S &" % > + self.itf0, "ptp4l") >=20 > # run ptpclient on the background > self.dut.send_expect("./examples/ptpclient/build/ptpclient -c f = -n 3 -- -T > 0 -p 0x1 " + "&", "Delta between master and slave", 60) @@ -125,7 +128,10 > @@ class TestPtpClient(TestCase): > d_time =3D self.dut.send_expect("date '+%Y-%m-%d %H:%M'","# ") > self.verify(d_time =3D=3D '2000-01-01 00:00', "set the time erro= r") >=20 > - self.tester.send_expect("ptp4l -i %s -2 -m -S &" % self.itf0, "p= tp4l") > + if self.nic in ["cavium_a063", "cavium_a064"]: > + self.tester.send_expect("ptp4l -i %s -2 -m &" % self.itf0, "= ptp4l") > + else: > + self.tester.send_expect("ptp4l -i %s -2 -m -S &" % > + self.itf0, "ptp4l") >=20 > # run ptpclient on the background > self.dut.send_expect("./examples/ptpclient/build/ptpclient -c f = -n 3 -- -T > 1 -p 0x1" + "&", "Delta between master and slave", 60) @@ -152,6 +158,10 > @@ class TestPtpClient(TestCase): > # the output will include kill process info, at that time need g= et system > time again. > if len(dut_out) !=3D len(tester_out): > dut_out =3D self.dut.send_expect("date -u '+%Y-%m-%d %H:%M'"= , "# ") > + ## In rare cases minute may change while getting time. So get ti= me > again > + if dut_out !=3D tester_out: > + tester_out =3D self.tester.send_expect("date -u '+%Y-%m-%d %= H:%M'", > "# ") > + dut_out =3D self.dut.send_expect("date -u '+%Y-%m-%d %H:%M'"= , > + "# ") >=20 > self.verify(tester_out =3D=3D dut_out, "the DUT time synchronous= error") >=20 > -- > 1.7.9.5