Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp875751ybi; Fri, 31 May 2019 10:07:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzCaFCS0etADKTGCmP4JHxQZ4YdMxRgR7SY3Nm82Zvf6cglswNSAqn8W4mI/jP2Zzm0map X-Received: by 2002:a17:902:b68c:: with SMTP id c12mr10985100pls.83.1559322479717; Fri, 31 May 2019 10:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559322479; cv=none; d=google.com; s=arc-20160816; b=aKUmKFsFiW40Mf2viJ2hq9LdLw8kisbIUiZKLnu0hyxRIIDXGq46Pe26OARPxZPpHr eZnDkNQT2Qx1Ml5dWR17ytb4/XBhZuIgQm8ob2Phw4VzyewmFreUSG6uxKC7ytoHQIw4 1AY7Shqp7hVdWbO3wBIoF/GKZBLdzNfr+sPm2tg3SBhYUNgsZ0at4ldhgG+fHhntpPGG nzsEZB9Y2FW8FjDhshPIGihVR/QA5sPyUIi3u3Rmzf+A9Uu6Hr1rbCeaVPS6YUpGlKrE zKj792l+e4KigG442vOrn2yAyk4LlYte48ScH2XCTtEfNT0B0naYFoMN5ZqbslF9ke9M dX/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=erj5BXKZmCrs/Bk6whxD2mtwcQ654jPz5QICLT+jH6w=; b=f6XR0AE7c844pvcczGus2XcwhZeLOz5tA6oApBrS1BdrRaHCfO7o7EyT0soqA8sq1q A/K4rqeeY2yHIrIgsqK3wBpSnih95YiF5dhwItA9Fs548YOidcUjlSNhn1gb9050yMfR 62LPJqyW6tjiwqlBTTXIZKMY0sTOX3OCeGk48sP/xwhlMxJue97eaJrKUkV/t4TwXOu9 hnUiGkMzMSccvu2Am9ddfyIlngmB/XF07Lk7ylzeOIfSdZtGeF1LM7lu/aq98Rl0XADx SMAg522WcM9EEYcrMSxIoINbmsB7Bc94jWsFrK/t6MO2NugzOWg/jxI5v7cchHw0dZji yqtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=RRh3soPn; 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 x21si189736pln.204.2019.05.31.10.07.43; Fri, 31 May 2019 10:07:59 -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=RRh3soPn; 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 S1726880AbfEaRGM (ORCPT + 99 others); Fri, 31 May 2019 13:06:12 -0400 Received: from mail-eopbgr30073.outbound.protection.outlook.com ([40.107.3.73]:11438 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726518AbfEaRGL (ORCPT ); Fri, 31 May 2019 13:06:11 -0400 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=erj5BXKZmCrs/Bk6whxD2mtwcQ654jPz5QICLT+jH6w=; b=RRh3soPnpoxrC/onih4rEpm3fHmjTjig5/xZBFSUQYGR/O0sK4c2YWtVA6iZNvF6pAnoT1PAMH2JKRPMJuFaTDGHxZ5BtpbTgctGQKCrkVWz6Wa4ermhlucJcKytcPKfYLHYOtUjqEnj6jX2Z/HO2BUNh/gW3rrSGpG5yMTK/Xw= Received: from VI1PR04MB5134.eurprd04.prod.outlook.com (20.177.50.159) by VI1PR04MB5374.eurprd04.prod.outlook.com (20.178.120.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.17; Fri, 31 May 2019 17:06:07 +0000 Received: from VI1PR04MB5134.eurprd04.prod.outlook.com ([fe80::8d0e:de86:9b49:b40]) by VI1PR04MB5134.eurprd04.prod.outlook.com ([fe80::8d0e:de86:9b49:b40%7]) with mapi id 15.20.1922.024; Fri, 31 May 2019 17:06:07 +0000 From: Laurentiu Tudor To: Christoph Hellwig CC: Greg KH , "stern@rowland.harvard.edu" , "linux-usb@vger.kernel.org" , "marex@denx.de" , Leo Li , "linux-kernel@vger.kernel.org" , "robin.murphy@arm.com" , "noring@nocrew.org" , "JuergenUrban@gmx.de" Subject: RE: [PATCH v7 0/5] prerequisites for device reserved local mem rework Thread-Topic: [PATCH v7 0/5] prerequisites for device reserved local mem rework Thread-Index: AQHVFglQMB1lnLjYnE2Z8bn8+67UAKaB+N+AgAAA+wCAAClrAIADUJmAgAAFjIA= Date: Fri, 31 May 2019 17:06:07 +0000 Message-ID: References: <20190529102843.13174-1-laurentiu.tudor@nxp.com> <20190529113427.GC11952@kroah.com> <20190529113758.GA9399@lst.de> <5b8164b3-74a3-9ba4-8c28-61a14ec57a39@nxp.com> <20190531164327.GB27525@lst.de> In-Reply-To: <20190531164327.GB27525@lst.de> 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: [192.88.166.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0cbb2c60-96c2-4ace-7f67-08d6e5ea45bf x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:VI1PR04MB5374; x-ms-traffictypediagnostic: VI1PR04MB5374: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 00540983E2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(136003)(396003)(39860400002)(346002)(366004)(13464003)(189003)(199004)(48014003)(6916009)(68736007)(66946007)(73956011)(7736002)(316002)(2906002)(74316002)(55016002)(86362001)(66476007)(81166006)(229853002)(81156014)(33656002)(5660300002)(8676002)(8936002)(478600001)(305945005)(14454004)(99286004)(26005)(6436002)(4744005)(6116002)(4326008)(256004)(3846002)(186003)(9686003)(476003)(66556008)(76116006)(64756008)(44832011)(76176011)(7696005)(11346002)(66066001)(446003)(71190400001)(71200400001)(54906003)(25786009)(6246003)(102836004)(53936002)(52536014)(486006)(66446008)(6506007);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5374;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-message-info: o6MvLg5i3RLPCUR4x948Rr7UUYGljhzFSHlQLmM40n/54jaEup+1nzUwbLi4vlfTioAyLHPpkq4O5K6d3QnNrZ0FVgREQ3RL73wjMNi0rZ9bo5buhsJBl0EqslLsVtKgLQbyP7cwpWTKMFBmGYWVObdaCROj+6nhfmIuSPum2i+wT6iX2WPCRqTN37cdeM4Gu+XYA3JOtjJ28H94tEc2gcYaHmvhzTpPkgUrofIZDs0roAmv/g8Zs+jvnCVc8gsfZR+XRPBZkpi7FCsZyBKSwfF2H8Sq/qZolMiBW45G0ck2q2Ta/frhp6X3K1ioFvSS22JnYXBIhTqgaQxYXVyl+wTGf+EiQpr9T1B0WaASCxqWnphPLJg+slghaoldfNS6rEGza6ynj7DyWTCRrk1Xtykaw9sf1Jp0eiYxemVMc5M= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0cbb2c60-96c2-4ace-7f67-08d6e5ea45bf X-MS-Exchange-CrossTenant-originalarrivaltime: 31 May 2019 17:06:07.3820 (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: laurentiu.tudor@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5374 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Christoph Hellwig > Sent: Friday, May 31, 2019 7:43 PM >=20 > On Wed, May 29, 2019 at 02:06:12PM +0000, Laurentiu Tudor wrote: > > Thanks, hope this time everything is fine. >=20 > I've applied it to the dma-mapping tree now. >=20 > > When you get the time, please let me know your ideas on the next steps. >=20 > I think the next step is to move the call to > dma_alloc_from_dev_coherent from dma_alloc_attrs into the ->alloc > instances. The only onces that really need it for now are the > generic and legacy arm dma-direct code, and drivers/iommu/dma-iommu.c > as well as the ARM DMA API code, as those are the ones use for > architectures that declare coherent regions. The other iommus are > not used on OF platforms (at least that's what my analysis said a while > ago, feel free to double check it) Thanks. I'll start looking into it starting next week. Keep in touch. --- Best Regards, Laurentiu