Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp470102ybx; Wed, 6 Nov 2019 03:35:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzCCPGO4neASxIlnqsL3zm2Iw9ozkS/PyeAj+VJjbTAq0gnAhuGjjVhz7nf4OUjudXPipVx X-Received: by 2002:aa7:d552:: with SMTP id u18mr2103325edr.86.1573040155087; Wed, 06 Nov 2019 03:35:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573040155; cv=pass; d=google.com; s=arc-20160816; b=nJv+BtO8jvolQMal3+Wt7EogEyJu2T8Fs66pXE4bwvaoDEOaP1f3r6Q0FSjpbvsDKB y6YRMXylhGl1H+2/jiRtUSDztU1AEZrV5ZT64mmkoSZi45YyiV+cw5og/ZVq8jjNz+X9 d1OxEstHLbIBz1AGIVhWReXxyZIgKvgI5iLDT4PhH+B4dleiuz63zO86pPY/vl2W7uz2 pf6qCJz3UmDIgJdHfu11ykCsWoXg3UZV1j/jEjGMniDImjHiKXeTlcrXxdEI1CUosf67 PSquNemZOVKQ2k6s76OQgFahC0xwBPA3NlRKJTYLMFZZ1nWPspOwkjDB41/bPlZLWHy4 GLNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=2FMJ/oYXUTyTyw2kmfZn7qyGtJ0ZwuRrMRJUq28mMnA=; b=r6eKqQfYitmU1dPodO1SUJblkG3gONIZFuJaehAATmoAO5eHRp2HvwX6rTLY/Frfl3 /0I82ZugHf+/uTxsbYFnFUfSak4r8pfafUdTQPza2M8hod+aTWp0lmbLNVmLyTYkVoyI shtjbxLPWdtZfsjsrX4CEsC7rwRLvKPjGoPN/oiG4dRnHOhhRKYWpErWpr1zWXKFFSfH MDsiDuPLSwLk6grZ0r1cIoap4PwvN/ZZGYareZofC/m6Ap8NgxacvFp79CVTRCDr7QLm RigrnM53/UfapqeRJok6/xyMqnvoKr3N0eI8pKObNmrEnBxKEr7KQt0ZgQY/Rgokojze 0oxw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=BhzJia0X; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oq2si2687084ejb.402.2019.11.06.03.35.30; Wed, 06 Nov 2019 03:35:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=BhzJia0X; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731343AbfKFLcq (ORCPT + 99 others); Wed, 6 Nov 2019 06:32:46 -0500 Received: from mail-eopbgr60040.outbound.protection.outlook.com ([40.107.6.40]:59677 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725856AbfKFLcq (ORCPT ); Wed, 6 Nov 2019 06:32:46 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dtE2KSrBokquhIHN+inpZKi9H3GmRtA+8ZPPjZpd5WR2VUnzi6eV64gG6thcJbLf0hI0DmiSVBSxIHTm5XNJ/Ywag38oRvjJ4Jq/HmkrqZnWe4mfnnUOPqody9Ohqf9rPcoI91m5vVKgAvlCMf0LBLMV1BM5iBRRTRo5GYUh+VZXzlDMn3+XhymYQx41YBWJofe7fc6Ewm/I5p/l12pMzR3TBf6gCG0JcUkltBLqm0jkns8WWzjioKS9r3tdH3Hm7qRdTpblDVHFv+AeE87kGEByMbI5AfI+IDEsnRAE0rgcJ3CN4K3HZI1DRrmdb+EThZddpBQgWfAToNg7dCPLBw== 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=2FMJ/oYXUTyTyw2kmfZn7qyGtJ0ZwuRrMRJUq28mMnA=; b=YtFm4MlFQ2sff7/N3FSdpIDSBUGdL1LnC3Wsi9JvUpOWIbm5wZVMy/qUvYhwgGOhKRu6/pHnEgjysTjABXILyIRrGxce5sPpZdF+/Uiyjb88+LWsOfI/NPghvHNZdQIUPcv/l6BgEvR7OyWl+srFuD5tdPjM/RXehuQs/Wt3HKktX7d5Ubyxn6JIWDXB5uhW3smbEmUjPD/k4xQOH8kGZah5LPn07F5EkIYSDMAkl+9UK6RhEjhpYUJpJvk5Pv1xFNtTz2PyDsWOwSY7yCNBsEXT9cJxV13NX/LHkPa3A+MPrOvv0KFBsQPNx3JTB9Hz/hvgQ9jKKksafia+8IkYpw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2FMJ/oYXUTyTyw2kmfZn7qyGtJ0ZwuRrMRJUq28mMnA=; b=BhzJia0XwMzPzVMX9dvesZl1zJo7Q4rgcZNCmQMCla81qbPZ7VYqtRYe/PpBCR7mroCj3NbNEkxo7a7s4WgC0A1LcmPju2h1zwfbNFyD/lPtEo96L/czEPMb1ZfEUV3h/1zhmsRvZ9O+v1Kfu+LqZVY3JeCYtHODVBmyyu1JcWY= Received: from VI1PR04MB5134.eurprd04.prod.outlook.com (20.177.51.208) by VI1PR04MB5536.eurprd04.prod.outlook.com (20.178.122.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20; Wed, 6 Nov 2019 11:32:40 +0000 Received: from VI1PR04MB5134.eurprd04.prod.outlook.com ([fe80::10f0:af2c:76ac:dfb]) by VI1PR04MB5134.eurprd04.prod.outlook.com ([fe80::10f0:af2c:76ac:dfb%7]) with mapi id 15.20.2408.024; Wed, 6 Nov 2019 11:32:40 +0000 From: Laurentiu Tudor To: Robin Murphy , "hch@lst.de" , "joro@8bytes.org" , Ioana Ciocoi Radulescu , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "netdev@vger.kernel.org" , Ioana Ciornei CC: Leo Li , Diana Madalina Craciun , "davem@davemloft.net" , Madalin Bucur Subject: Re: [PATCH v2 1/3] dma-mapping: introduce new dma unmap and sync api variants Thread-Topic: [PATCH v2 1/3] dma-mapping: introduce new dma unmap and sync api variants Thread-Index: AQHVimhiysgNu4P7eUCr9wwTZY4WUadwFlSAgA4ApYA= Date: Wed, 6 Nov 2019 11:32:40 +0000 Message-ID: <058efe1b-a4d6-9681-6417-8eecfcc00c28@nxp.com> References: <20191024124130.16871-1-laurentiu.tudor@nxp.com> <20191024124130.16871-2-laurentiu.tudor@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=laurentiu.tudor@nxp.com; x-originating-ip: [89.37.124.34] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 5b633427-12b6-4825-5ff1-08d762ad088b x-ms-traffictypediagnostic: VI1PR04MB5536:|VI1PR04MB5536: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 02135EB356 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(346002)(376002)(396003)(39860400002)(136003)(366004)(199004)(189003)(43544003)(91956017)(110136005)(36756003)(2616005)(476003)(316002)(11346002)(54906003)(446003)(486006)(71200400001)(6512007)(305945005)(2906002)(6636002)(8936002)(6246003)(4326008)(44832011)(2201001)(229853002)(186003)(6436002)(71190400001)(86362001)(102836004)(26005)(31696002)(66066001)(99286004)(6486002)(6506007)(53546011)(2501003)(76176011)(256004)(14444005)(14454004)(66946007)(66476007)(66556008)(64756008)(66446008)(25786009)(76116006)(3846002)(478600001)(6116002)(8676002)(81166006)(81156014)(7736002)(31686004)(5660300002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5536;H:VI1PR04MB5134.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9C2L7HRgUdPg1HcxIydh92W+sPPsLb1L9ep8xKfoSw1qsvl/klucF8xIQFakPKDwTyNFdvxBGVHcFaNLQ2UD1JAFqMyCib9d3nNQRNWqxR6ptRroZ2M0O/ogGg9cpxTM5DqTwpSCfIgSPQss28LPMrPQvgO8kk/vi6o816KTnNcDL9RCT07i/886azoEzEy8LD9j1frVuImpVP00vBGrnAY3DKuFCKODAoE7s/T52bJ0KjqbxEuH8SBpWkxe7CZdcfmMcCYMoPPiCzh5MKw2C8/sAQnYtxQKe1VnDSFsBAe7Noc1eVTjS0nIPfBflFhqvnGWr08wBXSXvk4iFx8O9VKsv6tMEB4vnsdlea0Yjs5A1leufjItd7mBFObvTx7ysl+7GDR1le1u43eGN8DGBOwAOmEWSWXKKkzOHqdkaS7E1ufnPIFyazBCFC7zsLYt Content-Type: text/plain; charset="utf-8" Content-ID: <0F3C04310C1380499709892D28C4BDCA@eurprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b633427-12b6-4825-5ff1-08d762ad088b X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Nov 2019 11:32:40.7331 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uuqCwPJRCTNkGv3CXzlCrlLiu50Gw0qTXg0pCHsYWV46F2323EokTTwHyTfl9FmFF+48SQxiTaVHtoGNv6aeVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5536 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQpPbiAyOC4xMC4yMDE5IDE1OjQyLCBSb2JpbiBNdXJwaHkgd3JvdGU6DQo+IE9uIDI0LzEwLzIw MTkgMTM6NDEsIExhdXJlbnRpdSBUdWRvciB3cm90ZToNCj4+IEZyb206IExhdXJlbnRpdSBUdWRv ciA8bGF1cmVudGl1LnR1ZG9yQG54cC5jb20+DQo+Pg0KPj4gSW50cm9kdWNlIGEgZmV3IG5ldyBk bWEgdW5tYXAgYW5kIHN5bmMgdmFyaWFudHMgdGhhdCwgb24gdG9wIG9mIHRoZQ0KPj4gb3JpZ2lu YWwgdmFyaWFudHMsIHJldHVybiB0aGUgdmlydHVhbCBhZGRyZXNzIGNvcnJlc3BvbmRpbmcgdG8g dGhlDQo+PiB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