Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3512276ybg; Fri, 25 Oct 2019 05:21:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfRvkWBehLHqbF9FQF4DXrCVqmgF1mkNIFYmoX8Ekzogsx3r5O/XVYg/Q+iLjdGVa802vX X-Received: by 2002:a17:906:58d:: with SMTP id 13mr3112633ejn.293.1572006067307; Fri, 25 Oct 2019 05:21:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572006067; cv=pass; d=google.com; s=arc-20160816; b=tAqRhwWoYsX0OEeXKqalV6rGi3XJCICxyAOW5kmAUBHjzLwpuH49ER6SW7sHDWRGG0 SBiIt+nrJYLvXAUCGs/ryx78cKooQ/HM9btorKkXXq8lagM3BaFbWd9rSVUSsXck8q1M L2QIe+ZyxEXaBiHqc9dI3fLl/UWxgdMCzdokSNtiMAfBz6yxCPAa6pmxCcnr4TQB75He prtytrw0VAKOXFM3srXzR7/OZrpgZ9jCC87lzJDxokWUnlkwUPWx1DzOKKaK0hEY5Cq/ hjZkVjWPiaq59AVAVzInRdgWXihht8b/Y760bxzUSsmmpXHjoqX4UPnyrBWEbO/Rzmat PXfg== 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=wy6mqQMWpCSf+Qx/DgIg4DprDSwfcuLGg+XkGZ/6fSU=; b=eoQs1rLXzYAFIOSYi2oco5aH99g27VkX/IqoJtysBe3/WHkVHPN1JVhZ66WAkCv9d8 hbm5jyqUiR8MnW4a6Mwxqc9py7rQwnuZSJdq46fXp3N7UkTEi7g+m3psOqrl4CRVHaYa 3rgKTCMAO4IUYApsVb8bL0VMBQlbxISqFLczyjM8dqXdBl7rF8nDIPyR864Gz78aTfkI ZGWhhswgG64QrDMsI1/scxf6POktBwsknlQ2oS6pcQbFMrbk+A9+S65Mr1DjtapHHyy3 eW57dF/3zPI0brh1+VO8cHwSYT+yxeUIpHQdqRX2uE/vrDwUX9lJ9RZi/4aIx+MSNYSK rYxg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=TaFl3VnW; 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 i16si1093473ede.86.2019.10.25.05.20.43; Fri, 25 Oct 2019 05:21:07 -0700 (PDT) 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=TaFl3VnW; 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 S2438982AbfJXL1X (ORCPT + 99 others); Thu, 24 Oct 2019 07:27:23 -0400 Received: from mail-eopbgr00071.outbound.protection.outlook.com ([40.107.0.71]:56382 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2438971AbfJXL1W (ORCPT ); Thu, 24 Oct 2019 07:27:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RgovGwNcFznDO1U1VVsWleifm5ongGmWazZ6ufdk67WKGyCPZnNOVFppsJr6dwAlzn1v/Rij8s1AMtKwbcAeMd/6bn+AR1v6YOfPxUUUDcSg6QSd5Mpb/HdT/GTS5WTEQZj+uOfQo6dpcnALYgxxlUaq3Z3fb8LiFBdknEsJnB7SpNKe6bOS+S9MHW1H67Qwm2q0vwqCMgf8MzicaSJKP5nd+kRnrbGc9eIwC/+X2wtPhe1lBmTX/NfAQ/7QW0R6911095UsOXPzje+WLtyY3ygGIpBATZLIVBbojvKBjqfxC2X69puU23C+PrmwpaE+OrY4GlM7qnXv0IsMjdoCYQ== 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=wy6mqQMWpCSf+Qx/DgIg4DprDSwfcuLGg+XkGZ/6fSU=; b=DmX3GhzpvoGGXWltgpQPyx3JXNgFNeB3OQgAfEnPgJChcez5EIWRgFpJZKKZn0J3BKMXvujPjetE3bRockwN4flrtrnoTHZkItb2ZtFjFnsvYbqq4oQU0DxHwwWFUjIWgkBw380xGvkpRcrju1sw2XIpKEpEO6XNlAEFnsAo9wHMPNMbFPV/aOMr7oyeqOg/2FHcxrP0Q6rVJQpDdo/s+6r/40sUfJnMpwW02di8B1j1p/cwK/bKXUr/6ImpHApcsC/qDP44AWOOEji37La3BbOJVJ9Jyx9HkTtmT3SCiUZS4jb2cOjY64RUaNhSkg+9f51bQKe2LhpA7xW/UVdZZw== 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=wy6mqQMWpCSf+Qx/DgIg4DprDSwfcuLGg+XkGZ/6fSU=; b=TaFl3VnWiw+aj45NCU+748GChRV6+zl9C6IB5pLQ3+a6lCgxONX/wUij0E4Ryki6Dz3ff2BdBT5jiiPJPOiGlU1sthyYO1weMMIU0PWHUMQYgxyH1LTZHX+162B7p3pOLcjUlSJQdABE0wDPW/WS2EAHJQagI9YNhSAhCYQzSck= Received: from VI1PR04MB5134.eurprd04.prod.outlook.com (20.177.51.208) by VI1PR04MB7069.eurprd04.prod.outlook.com (10.186.157.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2367.24; Thu, 24 Oct 2019 11:27:17 +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.2347.030; Thu, 24 Oct 2019 11:27:17 +0000 From: Laurentiu Tudor To: Robin Murphy , "hch@lst.de" CC: "joro@8bytes.org" , Ioana Ciocoi Radulescu , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "netdev@vger.kernel.org" , Ioana Ciornei , Leo Li , Diana Madalina Craciun , "davem@davemloft.net" , Madalin Bucur Subject: Re: [RFC PATCH 1/3] dma-mapping: introduce a new dma api dma_addr_to_phys_addr() Thread-Topic: [RFC PATCH 1/3] dma-mapping: introduce a new dma api dma_addr_to_phys_addr() Thread-Index: AQHVilrGnKjPt4OKKUmo2Ix2Q0Rbb6dpp0QA Date: Thu, 24 Oct 2019 11:27:17 +0000 Message-ID: References: <20191022125502.12495-1-laurentiu.tudor@nxp.com> <20191022125502.12495-2-laurentiu.tudor@nxp.com> <62561dca-cdd7-fe01-a0c3-7b5971c96e7e@arm.com> <50a42575-02b2-c558-0609-90e2ad3f515b@nxp.com> <20191024020140.GA6057@lst.de> <2b75c349-0ca1-ea7e-6571-28db9f1a8c46@arm.com> In-Reply-To: <2b75c349-0ca1-ea7e-6571-28db9f1a8c46@arm.com> 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: 12b0c47a-ca8a-4a91-e65f-08d7587520a9 x-ms-traffictypediagnostic: VI1PR04MB7069:|VI1PR04MB7069: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0200DDA8BE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(346002)(396003)(39860400002)(376002)(366004)(189003)(199004)(52314003)(31686004)(4326008)(486006)(66476007)(186003)(81166006)(81156014)(26005)(64756008)(11346002)(66446008)(36756003)(2616005)(8676002)(66556008)(91956017)(66946007)(476003)(478600001)(6512007)(14454004)(99286004)(446003)(5660300002)(2906002)(71200400001)(8936002)(66066001)(110136005)(229853002)(6436002)(86362001)(256004)(25786009)(54906003)(561944003)(6486002)(305945005)(71190400001)(76116006)(31696002)(76176011)(7736002)(44832011)(6116002)(14444005)(3846002)(6506007)(53546011)(6246003)(4001150100001)(102836004)(2501003)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB7069;H:VI1PR04MB5134.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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: yBn/ZqLFKmt/iqLBmoPmgGvPIGdvhreTeMx/sH5iLmYrX189czVRvn/+JycX3ctE2/omZ72HM1MxFVWE/YRqrl6/kQ+jMvsAsewA33LGpebclXC2VmN3bphInLaiV/3bZfnz4KW7rxo2mBzfgUPlYPSPtE3ah0LOt/RIeSu/v93U3jr120vKfKgcLCtvv5Txmtg809j02fQ4NVEpwSnxTV4YnxhwU6+7fIgF3aNcgwUI0gpx4yZ165Ms3uraQl7UNRvJQYMjXWZqU4GTj5hfExUJcDavvFP+Qvc/kIgbtIa6y0CeII4fb7UiOTuDzfp21E0miOdUicuNeD41/T2Z7Bi+DZBjnZeP+VhaoUF0hwAA8keV6e2A/zna2i6dXmGJhPkSNcagUK3gAa2FyZu8/6UUwDJOl6KNSflbCUDajso46WW7CFpO2Q4Av/Mm4j74 Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12b0c47a-ca8a-4a91-e65f-08d7587520a9 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2019 11:27:17.7188 (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: KCinWk9DF4ccaoexw3gRwGajFhbAm4icxXhFdsG7r3P21aunyV7yku+UVL2gfEtshcIT9fwKWOE2BPhylqpjdA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB7069 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMjQuMTAuMjAxOSAxNDowNCwgUm9iaW4gTXVycGh5IHdyb3RlOg0KPiBPbiAyMDE5LTEwLTI0 IDg6NDkgYW0sIExhdXJlbnRpdSBUdWRvciB3cm90ZToNCj4+DQo+Pg0KPj4gT24gMjQuMTAuMjAx OSAwNTowMSwgaGNoQGxzdC5kZSB3cm90ZToNCj4+PiBPbiBXZWQsIE9jdCAyMywgMjAxOSBhdCAx MTo1Mzo0MUFNICswMDAwLCBMYXVyZW50aXUgVHVkb3Igd3JvdGU6DQo+Pj4+IFdlI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