From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0067.outbound.protection.outlook.com [104.47.37.67]) by dpdk.org (Postfix) with ESMTP id E7BEC1B011 for ; Sat, 17 Feb 2018 06:02:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8gN/YoYw4RNpFYfAS7Zd2RzaJhVo4Rg4n/hKXOcKW8Q=; b=QYeupUd+I0askQEtRn5rGA+TCq4GlgnuMmJ0E/dbZb1fOgBzuSGmMyDfOzkMKuN6nM2ddo2HxgJwzu/Ej36xQyDSAA0F2rXNxXVOa/HPq0UmPYiVmO8+5U2rM3L0M4VdUiMF3fsdxU1wIc2RX0OM8D5tZpA67NzNF/W/sJRhok8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.76.101.225) by SN2PR07MB2527.namprd07.prod.outlook.com (2603:10b6:804:6::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Sat, 17 Feb 2018 05:02:00 +0000 Date: Sat, 17 Feb 2018 10:31:41 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: santosh.shukla@caviumnetworks.com, erik.g.carrillo@intel.com, dev@dpdk.org Message-ID: <20180217050140.GC2941@jerin> References: <20180216213700.3415-1-pbhagavatula@caviumnetworks.com> <20180216213700.3415-10-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180216213700.3415-10-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.3 (2018-01-21) X-Originating-IP: [171.76.101.225] X-ClientProxiedBy: BMXPR01CA0042.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::28) To SN2PR07MB2527.namprd07.prod.outlook.com (2603:10b6:804:6::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 84140395-f34e-4b24-5f21-08d575c39567 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:SN2PR07MB2527; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2527; 3:7ZfCwQWa2cXoFkQjV1eYRGLwFNmOqulajJrAhgIQpGJakVDePmmGFfiFBo990hnfGVDQeUOHjty1SBfN6IDxnv9/6kSAbK8Qx/65ebU4zZsIYGxtRvH4PXMoEltDuZQF90mCmwMR9G+m5kbdW3t33VQjSNL29ACqLOJmAzV4KRW2peHbyrMk01damDW/Ri8GrsVkLYAgMwOLnvSeyJotPb47Q6GzqHHAB40UaYL7h3z0akf0XiFVYV2xG/lC+WKA; 25:TDaVzWLMHbOzKJWJX3EHrCQBVXu7lxpHtxBm7gEvw74FnSD1UkDlJFVSmeTxBndVt3Hiu25uIY18Kcv7CfY5mHUlS4Hz095WoCcRNLJXpAak+XIWSxv46kjxDDsE4Dm3/H1eKdtBXDVVa27lgw0nOpg22q4OMipwlZfhfSiyIeOQxpCGCk1N0jT+ZjPyjih2mEvZO6ey236+X19X5eUK72vKsw90o9/MyXfxt7QjJFkQO30JEDOFQ1XgBVE+uipg0e349bEu4WrHpNDeGk3SktV/n1nHehf1niOfKZ6u5Yq/D/CneikU4qNeUSxNNHNiRqpXvhwacvxZVD8uo8ihAg==; 31:koBPvNZ83omF8RQPViSuOGJU0HBAKCtN3T3HstjLd0EBnRhm4epzr3EURH2JKq+OB0lgJ13mYkS13Q8b5VzIH9hTlk6OUpdgM9j/paBcLdGZj4lBFnL4OzTX1sOBaVBhT5elDOOaPkxpEqBhUQuVuzMHrUffalQv1/uAiAiQsHkaaaPMxgMr7W8yypxK/dY/eqGTmCSbxpm01qyEkQX+OaNC+JqALolfqxQ+OsXp/WA= X-MS-TrafficTypeDiagnostic: SN2PR07MB2527: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2527; 20:j/qoO59O5suDsGpvQkYXY3n2u5yv3lFd6PDwd9ncTQQSfuCvJoGU3FR808obtc/Bd9j8DpPiV6Y88mzu9KL7h4KFc0j5d0xIeZMRG/tRkWHfC+PsYkJ4fgZ+PMRaUirDiFdFTUNWgCBZUSK2nVNZlaWZCldX/JcC8uQH4nezOIx1Z6l08uu0dNde72gAlgegOnKvVztw3yKB8vVb8ueQ4v5k8LWd+s8g/6rX2Wec+An7gECy+R8QsQh3/dNayTHj2SlaarO0AuMdGHrq2clD6L9A3TN98tPucK83TenxW/agaKTMQJvVn4z4q/jhW7/QHFgZtV08ReG6xi+VMhaWv0AqJl7HLKn/Uv5Glenja228kz+gcZ4jjLZMpF9YvRvbTF3TU1kgc/SSzTOF4dwO+5PAqkRy88Kyfz0yGCrv9+KsRsayti9lLqB4wto2KgDRzjSIoQTAn1n/hNjOEA/o1sjku+oxO6zHTPayOdc+V9Yt8qRv6W+66VjTMWKpXBtxAgf6d6Y0OWaT17dDt6afOb7eRaeNe2om2MSmK39z9SCkmOFhDe0369xZTPcnNL9LpxVfoKIX1wHWcWC8sclqzEv3abSBF7Nry0xVbqN6GeA=; 4:2IhLhzhXryWbuSGGTJxz1V42KAqlyiRP6k/Qm9BO3A01De9JXZcqJ9GWUwfQaAY6U8Y9xecZvbtJ6UTP+P+0vGNpxZpfH8+P4oAv6OzEV4G00K85Cx9SdB7Gd6MeOs0V7PURD442TRtwp6DB02g0ExWQg29G98ePaJbN2Ktu2c4+bGRoMA0r9pPJWIU1zCfcIfl6xpnJsO4B4aSwPPgPupQRuqyo08zEzB8LKFgcIjA6Ac5U4E9LXCxsjU2FIRL1jPXJE7w4tsd997hyVD9mqZcYkdYXbwkOxeFDZu+yNRf2aqU3Wd2/M96EuHldH03+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3231101)(944501161)(3002001)(6041288)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:SN2PR07MB2527; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB2527; X-Forefront-PRVS: 058637CA05 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(396003)(346002)(39380400002)(366004)(189003)(199004)(13464003)(2906002)(4326008)(72206003)(76176011)(478600001)(81166006)(8936002)(81156014)(33896004)(7736002)(8676002)(229853002)(47776003)(6116002)(3846002)(386003)(2950100002)(16526019)(305945005)(23726003)(25786009)(26005)(1076002)(59450400001)(66066001)(106356001)(97736004)(33716001)(33656002)(6666003)(6246003)(55016002)(42882006)(5660300001)(6636002)(9686003)(53936002)(316002)(52116002)(6496006)(58126008)(68736007)(50466002)(105586002)(6862004)(16586007)(83506002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2527; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2527; 23:ijXSqyeOkzHlsRT48P9xxfXYDz4lAowI/WD6xo7yE?= =?us-ascii?Q?VI7Qr/bEPwGTB/LxAS7tglM3kVfbErRTPlT76VD3BC4HRtblRswLkyFTGxTh?= =?us-ascii?Q?4QBap94G1jYhKTNqtMM35Y8SKhcwm/9KzYO6yO8S/2waAhqpqoyFGzviFSUc?= =?us-ascii?Q?XERJniAVrItqqSkjpvuamUElN3K8KgmLgVUg5T78ds+EQcCU9A18eYoT9U8Q?= =?us-ascii?Q?pXdKHpVBZOcXNSEBDzwcq834rAulSsGbez5yNGiSRzLf0LDS85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0tnPFrhXtRriYFz/CzaxfA57V7Av+oVhqo2ixDDQsNyhCGICHF+DIXo2OXESx3eNU8U/m3miTUjILqFziCQ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2018 05:02:00.4382 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 84140395-f34e-4b24-5f21-08d575c39567 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2527 Subject: Re: [dpdk-dev] [PATCH 09/10] event/octeontx: add timer adapter SW traversal routine X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Feb 2018 05:02:05 -0000 -----Original Message----- > Date: Sat, 17 Feb 2018 03:06:59 +0530 > From: Pavan Nikhilesh > To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, > erik.g.carrillo@intel.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH 09/10] event/octeontx: add timer adapter SW > traversal routine > X-Mailer: git-send-email 2.16.1 > > Signed-off-by: Pavan Nikhilesh > --- > config/common_base | 1 + > drivers/event/octeontx/timvf_worker.h | 105 ++++++++++++++++++++++++++++++++++ > 2 files changed, 106 insertions(+) > > diff --git a/config/common_base b/config/common_base > index 00010de92..2f8c21871 100644 > --- a/config/common_base > +++ b/config/common_base > @@ -563,6 +563,7 @@ CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV=y > # > CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF=y > CONFIG_RTE_PMD_OCTEONTX_TIMVF_USE_FPAVF=n > +CONFIG_RTE_PMD_OCTEONTX_EVENT_TIMER_SW_TRAVERSAL=n Please update the driver details in doc/guides/eventdevs/octeontx.rst and the description of the config option in git commit as well the documentation. > > # > # Compile PMD for OPDL event device > diff --git a/drivers/event/octeontx/timvf_worker.h b/drivers/event/octeontx/timvf_worker.h > index c3f37372a..1d5e27631 100644 > --- a/drivers/event/octeontx/timvf_worker.h > +++ b/drivers/event/octeontx/timvf_worker.h > @@ -7,6 +7,23 @@ > > #include "timvf_evdev.h" > > +#ifdef RTE_PMD_OCTEONTX_EVENT_TIMER_SW_TRAVERSAL > +#if defined(RTE_ARCH_ARM64) > +#define timvf_store_pair(val0, val1, addr) ({ \ > + asm volatile( \ > + "stp %x[x0], %x[x1], [%x[p1]]" \ > + ::[x0]"r"(val0), [x1]"r"(val1), [p1]"r"(addr) \ > + ); }) > +#else > +#define timvf_store_pair(val0, val1, addr) \ > +do { \ > + rte_write64(val0, addr); \ > + rte_write64(val1, (((uint8_t *)addr) + 8)); \ > +} while (0) > +#endif > +#endif How about #define timvf_store_pair ssovf_store_pair > +