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 293B8A0032; Thu, 17 Feb 2022 18:49:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0979840150; Thu, 17 Feb 2022 18:49:00 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 7471840042; Thu, 17 Feb 2022 18:48:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645120138; x=1676656138; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=cFa9FmUloHITp7tzoeY/r/7yXvF9tZXo3gQpy4kVBBw=; b=UY+LmPgsNOA6aQ+Mltcy0sHxEvKwt5x7quiyr+mPKRhzLAFb/jUFe6qP B0fqFNMn4EpNC6k+uwR0nexGFzX0mEjuZ0pFSsKABeDEkrhHIZlhTVk+N G7j+9wTkWpT8iqschHg7evjP84XZEn0azV3jstNTVhbdIhz3u/PBd85MJ u3bBe8De+m7H4PefWg8C+1jBr0W59Qc4gIQGiJOs1lwcS0jVoHVdITgy/ E3NQ/NzIRQ9H9sPYL3olBTHRCcxX3EojBIXTGWnO1NdW6LL7HYofAHfDo PHayMuZDrBxokRnhDaZn1LHuMjAJQ7HrLsCq0gDryWVXBfvoPSZTh5ir4 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10261"; a="234463337" X-IronPort-AV: E=Sophos;i="5.88,376,1635231600"; d="scan'208";a="234463337" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 09:48:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,376,1635231600"; d="scan'208";a="605092700" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga004.fm.intel.com with ESMTP; 17 Feb 2022 09:48:57 -0800 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 17 Feb 2022 09:48:56 -0800 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 17 Feb 2022 09:48:56 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Thu, 17 Feb 2022 09:48:56 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.173) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Thu, 17 Feb 2022 09:48:56 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nvLtXpOpqKmS87jBZxjeNPnJ/mfhugD5JcmroI79Gkq1GmMyzBkXmNbn9e1UJogJ6wL61Pnp5t4cpkU4pPri6G3PZh13ZFf6JULbza4lGlKkA7PLUrpLdlDOTqVzwTPawmyrm0XbTu2M7Uf9XBXOaWpiOR9MHis9kLEul/NsWT7lSqjXAWGEL03MfnldmBgr36HGeyri6Ukg4MDKT3/SJauStrEIs4W7+AC3tK1cLIdR9V7QgaeUFynET6RHzpsllmaXu2q5mvSgU7iFD0TbrmdJa44ONkZ9lTzlQAwfbV1uuXfC10vvlUE4hwPqAjXhJSzpnn67TDV0aqQVTD3kyA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9F9R/vdPzGlae+8ncJyCPTrv11QUZD+F3fUlFdHMcDM=; b=kmOhQISywAWFN5ffNBbv9a+fg9wwXC52paGqBUoGnbS4wxScS/xccHUeyYRa22WIV9su6oGIn1f2rqPoMhutB1LzLG6KS8H8kn6q3W1NluY+RmKNwELY21JQqL373ttC5Zu9LyHIpbymjTtiYSoRwfYX2hiyESLxkOKXVcjAK96oF2Kb3Y3nRC+SfqNLv7parE1KZs+vNJ9G4mb/rRsD6KCeuevh9Bhn+DiRt/8dcQANKLwzK7qtmi4/gQTE+SBfuAjAUpg27vVmtDruJJfnV+YxpzrN5gzDLBefBwZuV79dV8hu3tQV9bT8Wwml5ffD0MAliWaWwLng4YsFF3wd7A== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by DM6PR11MB4265.namprd11.prod.outlook.com (2603:10b6:5:1de::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.17; Thu, 17 Feb 2022 17:48:53 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::21db:e2fd:b9a3:9292]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::21db:e2fd:b9a3:9292%5]) with mapi id 15.20.4995.014; Thu, 17 Feb 2022 17:48:53 +0000 Message-ID: <467517c1-805d-589d-a9ea-8c2d548187df@intel.com> Date: Thu, 17 Feb 2022 17:48:47 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH 1/3] app/test: fix missing checks for DMA device capacity To: Bruce Richardson , CC: , Chengwen Feng , Conor Walsh References: <20220216160610.475242-1-bruce.richardson@intel.com> <20220216160610.475242-2-bruce.richardson@intel.com> From: Kevin Laatz In-Reply-To: <20220216160610.475242-2-bruce.richardson@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0393.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18f::20) To MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8bdb77c9-ab02-42c1-46ba-08d9f23dc34a X-MS-TrafficTypeDiagnostic: DM6PR11MB4265:EE_ X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PmO07NC47Q3W8E2yLCRGvBn1HdM78hptyRPPHbL8Mo857JN9OW46hwKeALmsHlRtSizeSSkmR/U9/FkfFdqHdElQkGA4UKy4nWBUS5ayQWbUmXk/KsV+xBy8t33eZ0Qe6ROjQfpjs+/qsFF4hS/+vwuZBO4sWmKcgGc0dnI1JcxykiBa2TBr91bNHqa3jlG4m9++6VuU25vPWGr4a0SNKqT1VwgCr2xOLASo8e2bvcS+L0Ak25vuYe4vTU7x7CzHNBh8O6EVm/Q6Ra9AtT4sQ7An9N9MeMDuDzdpWuYjm0wTCzCiYh6PXW0wm8Upcdc9IYAxDWH7RKENniLxX1/olsiLv3BO9mZ5ZIiU2dCpUoF2dSQla1BIdKf8itnM40Qd3lxPl1q7u38tOvlWJkfW7k+e7ziXzbYgghUOSAnORjiCfU7JylfuWO/5j1HbP8lL75osFCr0Ko4AYSQ5aeJ8WkFD3+hKZhe3ytWayy6Y/N6ageYgjGs0xnLpjcf2Dk2jjjFvtdf+brDO4PumtDk+CnTCMf/hZtXiLdghtZF8evq2tYyOnM3m/XYZqbmOkTZ9T2sIYbO3eu9FO7TQvtVwepjEuY5SxPnGFjlqsQDaOZrNiqSmikTv0OPXb2ZfjmkhAOjwdfCb8E/0yVdE5pyZyDoKs0Cqd8ZYM4wYHOPeJkjr8Ya40lYYo0Fs3jlJbWV9qAJh2CbbyO2TBIK7HFjw+4ZjSIO7ccY8wcKUstQl+fE= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5872.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(31686004)(36756003)(186003)(316002)(82960400001)(508600001)(38100700002)(26005)(54906003)(2906002)(6486002)(86362001)(31696002)(107886003)(8676002)(66476007)(66946007)(5660300002)(83380400001)(66556008)(6506007)(53546011)(2616005)(4326008)(4744005)(44832011)(6666004)(8936002)(6512007)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TFNQRS9DTzN2TERRZlZKbm9ERGdwNWhkRE9RL2UwNXlKZ3dmaE1IdTNpcDlT?= =?utf-8?B?TmdKbG4zOFpiNXpwYnlYNEZRaHh5ZEdYVktETTc5VWx2UlUzRlh0TVNnTEZx?= =?utf-8?B?ZjNLLzkvZUQwN0Vzc0tvK1U0STFhK2h6ZjFHbGdOKzBOejJacjhpb0tsaDI5?= =?utf-8?B?bjV2b0Q1QVQ5V3NyY0xTUXlycTBXQUUrMDBkdG5Y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Ibk5udnBFWkdRZXFGeHJEYkhObUtBSHN0?= =?utf-8?B?dVJYUFc3b3R2YWhSYjdRNmRCV1doaEQ4alYrUCtIaTFXbityVDhIcDJlVXhQ?= =?utf-8?B?RlB0NENOUzl4VlF1WmFlSFpqaXN4eWsyUGVJUXU2TnN1NlNoa1p0VHA5cDZ3?= =?utf-8?Q?t20JPif32jZ0hewqMlFLTTk=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 8bdb77c9-ab02-42c1-46ba-08d9f23dc34a X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2022 17:48:53.6736 (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: qLMeBa7oGCuUniILLyW4OjCByknQGoIEuvUxV+oXBGcKvXGA83gkpoY7j+uqInv+815iQiFTvRGYl+72LTx/Bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4265 X-OriginatorOrg: intel.com 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 On 16/02/2022 16:06, Bruce Richardson wrote: > For some DMA HW devices, e.g. those using the idxd driver, the maximum > burst size is configurable, which can lead to test failures if the value > is set too small. Add explicit check for this to give reasonable error > messages for devices which need their config adjusted. > > Fixes: 1b86a66a30c2 ("test/dma: add more comprehensive copy tests") > Fixes: 8fa5d2683940 ("test/dma: add burst capacity test") > Cc: kevin.laatz@intel.com > Cc: stable@dpdk.org > > Signed-off-by: Bruce Richardson > --- > app/test/test_dmadev.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > Reviewed-by: Kevin Laatz