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 BF0D8A0C54; Fri, 3 Sep 2021 18:08:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A9C8241100; Fri, 3 Sep 2021 18:08:17 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id CE90C40E78 for ; Fri, 3 Sep 2021 18:08:15 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10096"; a="241741470" X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="241741470" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 09:07:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="578742418" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga004.jf.intel.com with ESMTP; 03 Sep 2021 09:07:51 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 3 Sep 2021 09:07:50 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Fri, 3 Sep 2021 09:07:50 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.177) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Fri, 3 Sep 2021 09:07:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gq8cQ47d+KhAVZ1KRzA3ogEKO1e2SttjHMRhweD0W38nqgj0h6Bk6xWoWzLfNbGg4aFgX02zsmb3eYTKwC1ote0ZGoI92IZ0a+CVfkWVx8FLPavyiz3s2TKPHFi2SBkPq1yxh//KcHWzQE+tWcCGm0tXE01wq0u6rQJWkrzWhRgCPxBjzBCd73gFdHCpp4uy5DBvl2sigPEN+wZmJ8t/c9XVM0/PvEOGjzcYBG3ltm6PiHj+4aPxLz2jEzi+BNW0Sq2ub141cHcjKTZ1FxwcmK90KZe+x1ByzoaiR/LRw0D5tG50d0Z7wXOAIuZ1bATf9Qfng81geML3K9xffKfpwg== 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; bh=6aAjZdoRK6kxuBRh02eZCdkoA7U1IHbyV6k7tXAEhhk=; b=GvWK1u1/5p84Cs82nX6+/23RV8VplhS42ZfVgB+2LsmfVe1k4lojgdLDgstPwE84MsVycPcyMCSqv8tkuxDYG63C6VV88fqH6SJ9hs9ITOErVyupiVyOHv0M2MdcdqNoYHmR91KVUuB9FqYnUrgPG2Rsjyqc6IAn8GAK8ccp2ChW97/VQJou9nXOtg/DUrkk6nUcnqeFRycWCAaa39OBR6GQF4s9vv/KpsFAVA6AwDcZqYb+GkEo6j5NEXUGUqIHIZghSqbAU6x2xxMgICzvf/ic5KGqLabGYbtN3kuKqCWGaLegwEU6t+YuquIettpoMqi/ohLZkG3sc0jE8mSSdQ== 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=6aAjZdoRK6kxuBRh02eZCdkoA7U1IHbyV6k7tXAEhhk=; b=n4Casil3ULRMBHpY0Pg0E0xGMlYldQITiARwTRBX7bj7rqJWSAnywBf29ZQR3eQYIXm0lDPQAmXOX+tlIgWfGs/xyEnr3fs5wAzVPMFgvMJtb5d/WHmWeFNfPHPryI1oEzeCC4U1z1ecC2/+8of6cd+6UVNgpvzlwkpUmElbwZA= Authentication-Results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5207.namprd11.prod.outlook.com (2603:10b6:510:32::15) by PH0PR11MB5093.namprd11.prod.outlook.com (2603:10b6:510:3e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.20; Fri, 3 Sep 2021 16:07:47 +0000 Received: from PH0PR11MB5207.namprd11.prod.outlook.com ([fe80::c42e:f6ab:d4d6:dc8a]) by PH0PR11MB5207.namprd11.prod.outlook.com ([fe80::c42e:f6ab:d4d6:dc8a%6]) with mapi id 15.20.4478.023; Fri, 3 Sep 2021 16:07:47 +0000 To: Bruce Richardson , CC: , , References: <20210826183301.333442-1-bruce.richardson@intel.com> <20210901163216.120087-1-bruce.richardson@intel.com> <20210901163216.120087-4-bruce.richardson@intel.com> From: Conor Walsh Message-ID: Date: Fri, 3 Sep 2021 17:07:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 In-Reply-To: <20210901163216.120087-4-bruce.richardson@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ClientProxiedBy: DB6P193CA0005.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::15) To PH0PR11MB5207.namprd11.prod.outlook.com (2603:10b6:510:32::15) MIME-Version: 1.0 Received: from [192.168.1.20] (109.79.134.22) by DB6P193CA0005.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.17 via Frontend Transport; Fri, 3 Sep 2021 16:07:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a3bd8402-8a6f-4e20-ea98-08d96ef4f8e0 X-MS-TrafficTypeDiagnostic: PH0PR11MB5093: X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S3c0V0gphpxarfKFBYpBSe/od/9HgkQov0wvSzwAmm5jClsyoufWt0bsxU9gWm/WCPUw2k5GTx3OCMtENbtjdniT5iy1TnUu8R5FqwIYelBSFqHc7SHWxWE6gyQbAMgdWSzsTAXcoaoxyo1ODyabyLWEsksGZRZQR2uWJy2IZp7C8eG6hLAYtj/HQS7AjU1jcVPcJVRGuBoCzCxameW/S5A2EkUHsapiHYaIMd79b9M1PFAPPLyqRHi2szjXi/ChGSUhdN5qO9W5OtcjVD/JSD5mnMJcH+fY4tP+zDd0UkD5YM7etR0HDClwLMG9L6iqydRPua899Vgs0MS/cPwk95ZvhiN4wQBIrKxCEMEor/EolgCHByLsxepILzt0qSBeXCl+uwoo0tLA3I836KnqUam7KvcwtpdaO5OO+31BwdNY1rgBeyTjxWxYVSwcfBCn/kDvWHB+N9QfAMTtzmCdncI2cHMT75EOPOGGxZPa6RJpwStc0foIiCrmSQc0V9xeMvwN+p3eS60u95Ldebn4WZhLOun78mRWOHsP9i9PsnKI/szm1k2gd998ykCzpGJPkN4L4P4tKffuKiCYNK4l9+I3pc+ohuI9eAy+bBUNELyHU9q1Ydl9Qx8kHgkxeM0xXLl6851vDewbBGBv4b7r1g3VNr4pWOe7vrW121oqti/92qIube+6Ss9pu/WBSmwHAc1a5ns7w+wxaIgURcGDhGBx0qCFYXKrInq4iM+mySM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5207.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(2616005)(2906002)(956004)(6666004)(4744005)(8936002)(31686004)(8676002)(4326008)(66556008)(83380400001)(36756003)(16576012)(6486002)(316002)(508600001)(5660300002)(26005)(66476007)(66946007)(186003)(44832011)(31696002)(38100700002)(86362001)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SDBCU1RieTBHKzBnd1kzaTNFNVVYZGJjM3RRVGdsMU5DVVgvdTlCdWNad1hN?= =?utf-8?B?dEtkYXFNQ0d1WG9ucUpRMXhYZGEyZ0ZNL3kyVmxlMm5TbFRieWFrUENGTk9P?= =?utf-8?B?V2J4TFNDdk9BMGd2aEsyS0hVdGJZNjFCRmo1UitsL1Q2aTRUK1doMEdxV2Vt?= =?utf-8?B?LzluT1RkNG1Bb2RrdHY5MDk2OVdiQnJYMGdJSTVEakgwS1VkRmJISlNWM3Jz?= =?utf-8?B?cTM0UEZYdFR3TjVVR0RMR0hMNkIxY1FVMlplU0F6aW1UOGpLRy9JVUVHeTVi?= =?utf-8?B?azNBQnZVL0RTTDNVM0l6YjJlYXRoUnJmZU5zS09HV0pyS2NPNVB6YWtkZEtv?= =?utf-8?B?azhORzFnQndUWWtSNHR6YjJ6d2dlSnE3YWZNT0JLbnloMGVmVmpxeitYN0Nu?= =?utf-8?B?UVZSMjR4UDRoWmU4c25CNDl1TmIxd3ZydHA5bTRweG1yUEhyVkYvd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yL2c5TTcxUzlhN3RXVVR0c0Zj?= =?utf-8?B?RjlER094OGxGQWJIeFo3NlhUSEpWMm1pMm43WFhMV1M0anVvb0JGVHdDd0pk?= =?utf-8?B?b3ZYc1p4TThuNzZwWDZKYVpQZU8ydGdRQUo3VEF3aEtDbXNmYzFHemNZbkY3?= =?utf-8?B?ajZBTXMxalVnQlVjbjdMVnErTnFsQkJubTFDNk04SG9uYytvcllTbWx3ZXJ6?= =?utf-8?B?b3ZYNUxLVkNaVUZod2x5UGJyeVpTYUNURDhVbUhIMnQ1YkhwNjhtTi9raHJQ?= =?utf-8?B?aHo3UkhSQlJHaVNqNkRGSFRza1JPM21aUFpWdjlmbVJ5NnZocjFyT3hGaTg4?= =?utf-8?B?Y3dyamVaVXJ2U2lCZzN3UHluWjgzb1YwdU96ZU9hbmJ3a3ZLSkFiYU1LU1lX?= =?utf-8?Q?a1lpBnlqzLSDDy2zWFv2lEWXQZzZxqY8iV/y2ZF?= X-MS-Exchange-CrossTenant-Network-Message-Id: a3bd8402-8a6f-4e20-ea98-08d96ef4f8e0 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5207.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2021 16:07:47.7107 (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: wqG5Qrxd44pe+AwM55eZLKwI/D84E9GfVl8L6zuIzflO7rcKqB4eggMpFtuVuGCKTsR1wXTRvCCXjWfxzfDw9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5093 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 3/6] app/test: add basic dmadev copy tests 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" > For each dmadev instance, perform some basic copy tests to validate that > functionality. > > Signed-off-by: Bruce Richardson > --- > +static inline void > +await_hw(int dev_id, uint16_t vchan) > +{ > + int idle = rte_dmadev_vchan_idle(dev_id, vchan); > + if (idle < 0) { > + /* for drivers that don't support this op, just sleep for 25 microseconds */ > + usleep(25); > + return; > + } > + > + /* for those that do, *max* end time is one second from now, but all should be faster */ > + const uint64_t end_cycles = rte_get_timer_cycles() + rte_get_timer_hz(); > + while (!idle && rte_get_timer_cycles() < end_cycles) { > + rte_pause(); > + idle = rte_dmadev_vchan_idle(dev_id, vchan); > + } > +} The new DMA IOAT driver works fine with this function and will not be affected by an increase in timeout time as suggested by Jerin. Reviewed-by: Conor Walsh