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 DF896A0564; Thu, 11 Mar 2021 21:47:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6480C4014D; Thu, 11 Mar 2021 21:47:53 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 92AA040141 for ; Thu, 11 Mar 2021 21:47:51 +0100 (CET) IronPort-SDR: ZMne2kQb1IgZJrKIKB/ekF3lbzhNun8SYFwl/KsVDJE+Po7yWgNfz9UlSMOqWZ8SqPQ2DrAdNn /snDSpco28UA== X-IronPort-AV: E=McAfee;i="6000,8403,9920"; a="168655388" X-IronPort-AV: E=Sophos;i="5.81,241,1610438400"; d="scan'208";a="168655388" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2021 12:47:50 -0800 IronPort-SDR: iGsOuqL3l7wW7WkQGJEe0a1Xqao9WeqfrtMpm1iLwuu/R59z0vdebLsfRCImvj1hhNAPG0cv2S f+xmvJ1XBJNQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,241,1610438400"; d="scan'208";a="370674104" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga003.jf.intel.com with ESMTP; 11 Mar 2021 12:47:50 -0800 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 11 Mar 2021 12:47:49 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Thu, 11 Mar 2021 12:47:49 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Thu, 11 Mar 2021 12:47:49 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=arsbDm6tGi8/EK38o2rQcC1CXf+ybVcbYurFKHArKyg6YRrB6sF5wxaQRfsGDClyXJfyma1WF/+x86dg7Dzy7/9yXZJ3ow5mSQR91VYXO7qqko6tRj19d/EyEVD53jx73pY1ID9VCr1dwy98GEkqKZ+rnfcEuYWR4gx7TPTgL2/w0c/oJr0wSkMnbqLSfabqayGCOINt3QBesJiCJ7cO9spO0GofLbGanTyOv5MJI+s2qZRJ2sEcmMNI1L0SNSw7BSdSJIWZnbbKTJHCFgpd1bkurUdAuDwnHQj0snE14zgAWi1C/SrzyvcqDrMELv64w+X1tzeqqFgc8uFpKWK3AA== 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-SenderADCheck; bh=7uLn5MCrumu6H2zimVsp8s20jvycTp/ji4+4+9WTxDc=; b=fAJdQO4B/n/tZzoduxUyjZtYFEUUOO5OcAZ9nsH2ULGUlyIrFrqPxza5irLPqSK6YyYQhGzg8cGwfYLTiY6DF1fdJqyLlT56L7LJre7T7GATyndQ/u2viyBhi9ZwHy1nJlRHTYBvaAQYxCnfIACfrwASIhjplRNRBeXYRJEaZp8CyQURPt0XsZNJWu0G7flTXBWmfDci6qRrMYVCyqrY7vcOUvyN2SRU9mKpo6cQrnIuETDljrtJi4vJni0jEplab9qvJUD9e08e9lnO5j+Qb3MKPlph5xgMyxpfdN28ha8uQOKciAwoPoj+I04sxMwwyXsgGsfUKAmBxi5hT7CM2w== 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=7uLn5MCrumu6H2zimVsp8s20jvycTp/ji4+4+9WTxDc=; b=KrSpsvFDyQJZVTqM5rok5qS94EJC/b7J8TaApMT0TLYEai0ikorgU20jJH/pzEFQhh94KIoNHEH84QZ8+nClMTCg9WAzQj0/vHDCgCN2flb+FQptckQW1AyPKNzyWhZKXekS91Bb6IDDm5LTNPBdki1SZXvzFg+ifJrVhxyspiU= Received: from SA2PR11MB5196.namprd11.prod.outlook.com (2603:10b6:806:119::18) by SN6PR11MB2976.namprd11.prod.outlook.com (2603:10b6:805:d5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.26; Thu, 11 Mar 2021 20:47:48 +0000 Received: from SA2PR11MB5196.namprd11.prod.outlook.com ([fe80::e5ae:2c7e:c1b4:c0ae]) by SA2PR11MB5196.namprd11.prod.outlook.com ([fe80::e5ae:2c7e:c1b4:c0ae%7]) with mapi id 15.20.3912.031; Thu, 11 Mar 2021 20:47:48 +0000 From: "Carrillo, Erik G" To: Shijith Thotton CC: Shijith Thotton , Pavan Nikhilesh , Jerin Jacob , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 1/3] eventdev: introduce adapter flags for periodic mode Thread-Index: AQHXFFwNfpZBEmZFzEyZzTHySVF7cKp8E6CAgADfNoCAAlE0sA== Date: Thu, 11 Mar 2021 20:47:48 +0000 Message-ID: References: <20210308204543.2903723-1-sthotton@marvell.com> <20210308204543.2903723-2-sthotton@marvell.com> <20210310091431.GA21@BG-LT7405.marvell.com> In-Reply-To: <20210310091431.GA21@BG-LT7405.marvell.com> Accept-Language: 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.5.1.3 authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [136.49.192.164] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bb475daa-8f3f-4587-8599-08d8e4ceee61 x-ms-traffictypediagnostic: SN6PR11MB2976: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: j6xYByogwEL90q6bckuQJY7sfytFEUZUKzxvsuS+qJzzN+89HUEhRqTc06HuDFNxebiR51A2iz59Y85PF4HsiVQluG+X8YJoKg53ggJin27ykf2TzEOACjLjxgat+ILuE68/z5HjjfiBbl6pxFB7xH0hRlKVRKUtbGOtt25buqShUpfMmtGreyD5/EXdl+oDXcQsbHeKqPFrWXYF3hPLUxmPgc8x6jrzGsUGar9dvYz5qm/vd8QWjYi1eV14AumEEYBUPvVrRBIHRpC0PIVvXScBz3uJvqKo7zrB70oH6YZ9Zs+Il02bKyhDNO5fFQYfal9hvOhtdouexF2dPOvOFGEwf8kstSDxe4fbhYh9OMwocz7NAjXGv9V61hkTYTl82XUKCqPDs9xb/zxu/MsOSxdh57ZKCVaim8sHwRkwkSjsXpNwDsbww4Fv/D5pqMEBt6FObzsYKmckLyUXarvsYLD0u0NBwa/j+GJTZQPVVGeRnEROX1pqAUXnWulslAqvBAwAQXliC0WCidBmdsgc5Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR11MB5196.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(346002)(366004)(136003)(396003)(39860400002)(8676002)(53546011)(26005)(52536014)(6506007)(33656002)(478600001)(76116006)(7696005)(8936002)(4326008)(6916009)(5660300002)(186003)(9686003)(2906002)(55016002)(54906003)(83380400001)(86362001)(66446008)(66556008)(64756008)(316002)(66476007)(66946007)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?gdLmbPeGz8CkplSp53D1QJBrlnXblqPJWAxN8FZpSiuCL9Eb4LvkZ9BY5agV?= =?us-ascii?Q?PUraGFvXAzdr3rAE4R+cR756I2De6daAX5SMjK27xV0nFxkbfNtqM0APqv9c?= =?us-ascii?Q?n4wSgxow7H3M+b/BlJj2NEPjAhFxFAzUzl9/3k73+rdgioYLcJskwvy0zkBB?= =?us-ascii?Q?WhUdUuxjZrM35WNIK6xNlfqjt62SgvuNS/u3zjfwhcAYAcV7WS+XXkGLjzle?= =?us-ascii?Q?ajze2wJHwRAHZB1j1wQxu9EOtmJZbhnsG2pmjdVzCUKyMHBns7It09EP99r6?= =?us-ascii?Q?Vm1vmJB0iMI/jA6qe2BhBEvfPpwwkTtoY5hHV5oKoO7nPbD+MpGq12D6IFeu?= =?us-ascii?Q?ef7+mGYsolbK0V8//s6gG6LBt6YIPbxhz13ajouluHI2ACeWGKv7Ewr+WSBI?= =?us-ascii?Q?z4y8C6NXsDhc1A3Y8guSY7J7izpjqK8z0/lHCfxDRa0eLBUBRvf/MLI2+Wqv?= =?us-ascii?Q?7yB86k7JOgYYq6Xe61qZd7h6jYsKO65jfPv3LwKy2obNvTIVO+NWD+UC/CMT?= =?us-ascii?Q?nGYkf2KHfQjTKFey8+z7oeHywmOao1Jtk3JPzhdZKpQdB0KbS3WUWxN/j1yL?= =?us-ascii?Q?STvPeAP5SWFYIZ9r9EwY62Owc3ZzaMf2cfDWsEYIrkw9oKawAZxQCbK71F0Y?= =?us-ascii?Q?J+/vCcf+NjaCu3h/W/GuTMHBgE2XF+1NInBqFmCrwnL/yh+dYXVufhxGSZtK?= =?us-ascii?Q?Vp61VFNeAhS38f2n+FJM1n2vzYzI3kv3cFWwzmmR35yvDDqRhXSmSuJoSS2E?= =?us-ascii?Q?eO6VgnIlBJ9WCmLefLbhptjI/gOghi9vVKRRN9Ftkh0FY+G4q4IiyjUkKO6c?= =?us-ascii?Q?wwKxP94QaNfCZw/IGxPmw5YaKv+E3Xr63Z2HVvPUSfW9NoUaLLsttcMNNDvk?= =?us-ascii?Q?NW6oyfSayIzL6430+MdqM3cboq3qlgq+RGmpVMQS1+26NdVszXaKDXqEhQIO?= =?us-ascii?Q?bZ+k/THKeEyX7MZDIlGx4bi70fyQu4hduyfXvp4dx6oD2i/UTWZPQEqqy0Zn?= =?us-ascii?Q?UGwvh14Bd0tOZDDn0Ao/nZavurL6ruOxPuxosI5pMFuInCbzgtyXTcJMtaIG?= =?us-ascii?Q?UX/zBFUt8PZBOFEjIHXvDRr7I6h5APhPVnWlcjYswQaQkobJHxvCq48QnsG+?= =?us-ascii?Q?OPFPHyMDBY7K/FvbZj5QUMDrsoDSMI6NrZOYPzMpqbAeuIt6ooAbdsFOGLhe?= =?us-ascii?Q?Uc4XqY+2wnmdclgafUb2sYoKnKZ8M/2zhyeztRvq2a7TorvU8+MlTCR3JUPD?= =?us-ascii?Q?7RhS6e/vqTsz9sNiCFKR1kw7Q0OfjDBlVqrOzx+eH1kL2npka4rRzkicS4ZU?= =?us-ascii?Q?mg1jEmzMxEygkrRgJG6OAj1P?= x-ms-exchange-transport-forked: True 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: SA2PR11MB5196.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb475daa-8f3f-4587-8599-08d8e4ceee61 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2021 20:47:48.5614 (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: YH1eqwzqgoN5geXQS/6N9C0y99iFeKnp+EeAP2qn9fmSme9heu6Wom9LeTC0lzGxfDH5v2QOwJ4spm/o+w3HsqZNdTTh1xNCsUq6E1zD4Sg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2976 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 1/3] eventdev: introduce adapter flags for periodic mode 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 Sender: "dev" Hi Shijith, > -----Original Message----- > From: Shijith Thotton > Sent: Wednesday, March 10, 2021 3:15 AM > To: Carrillo, Erik G > Cc: Shijith Thotton ; Pavan Nikhilesh > ; Jerin Jacob ; > dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/3] eventdev: introduce adapter flags for > periodic mode >=20 > Hi Erik, >=20 > On Tue, Mar 09, 2021 at 08:04:32PM +0000, Carrillo, Erik G wrote: > > > A timer adapter in periodic mode can be used to arm periodic timers. > > > This patch adds flags used to advertise capability and configure > > > timer adapter in periodic mode. Capability flag should be set for > > > adapters which support periodic mode. > > > > > > Below is a programming sequence on the usage: > > > /* check for periodic mode support by reading capability. */ > > > rte_event_timer_adapter_caps_get(...); > > > > > > /* create adapter in periodic mode by setting periodic flag > > > (RTE_EVENT_TIMER_ADAPTER_F_PERIODIC) and resolution. */ > > > rte_event_timer_adapter_create_ext(...); > > > > It looks like periodic support is an operating mode of the adapter > > itself, and that all timers created with a periodic adapter instance > > will be periodic timers. > > > > Is it possible to instead have "periodic/single-shot" be an attribute > > of an event timer itself, such that a single adapter instance could > > support either type of timer? > > >=20 > With single type of timer per adapter, application can decide to create > multiple adapters of required type/mode and use as needed. >=20 > For an adapter to support both type of timers, driver ops implementation = has > to follow different paths based on timer type and new capability flag sho= uld > be introduced to expose this feature. Our HW only supports single type of > timer per adapter. >=20 > Please let me know the approach you are aligned with. Having a single type of timer per adapter is surprising initially, in my op= inion, but I think it does make using periodic timers simple. Unless there are an= y other comments to the contrary, I think we can proceed with this approach. I'll respond in a separate post with comments on the patches. Thanks, Erik >=20 > Thanks, > Shijith