Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6648795yba; Wed, 1 May 2019 17:10:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyV9AKYeH7mSgT1egAzOo6XC4Ow90vUTIgc9N7Lz3KNFhTBsMQaflrgztEfR4f6VHt5BSRk X-Received: by 2002:aa7:99c7:: with SMTP id v7mr799609pfi.103.1556755827385; Wed, 01 May 2019 17:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556755827; cv=none; d=google.com; s=arc-20160816; b=uZIM2Rtau3v4wzQpGBqqTlAsOxl9bQOe4CG5M2i1iD/Qdfi7htlPVlyONq6NOth8ZF JLJ7FXNX/D01lWP0YfNkes2CNrc9/aVh7wOTHsefMoZzjdLOiqdNKub90c+DISK0eNGz YrUAWBDULX+PRLGnoZENghv7x8Lb5txmYMFYX6mSDZIjLE7SuJvBMX0lHLbGIS1gYi7Y 8djVgnLjcoumYTVSA0kfs9FUkhZmulJixQW7bQBdkwE1qBXy7t23LLtwSBGfvy2BjQwH /KBBZ3LE8FUQdvxCP4EBO7uOYzybl+cxTLLwlnSj5ERq+aeDvIUUO+KkGEOT2KFPaZXG XVjQ== 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-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=uLSfH8x/RaKbCYJMKJuh0gz6DmjqQInRzKBgH/uBHBM=; b=j89zeLUy8Rkohr0iH1yaRG56YA6eKpXdiFToRvd+oC5TS6rJ97PzHg8oVKkgssKqGO Owgl74ErXLbK1SqLvl+c5C7leYZt9SeTk3lvfluSvEg+vApestkJq1qq5d/hntSl84iI HPiL5IxXjQIJ2Zs9K2QeOZe1T49EUXq4cS8VvjUQ5OE4NnVXW7NDRJWiPA+1y59xLCJi T1caIAY44oIVKb8+JlVKojd0+do7XO9i13tJN8mZSv7KcrAAuu/kGY7scVmIuq95lkNV A4L1J35Y1aWfoQREktqfF6MnGOGdr3LvGdKgWmTGwEw4icVgz+LdfETXnRyAAJJiFnq8 6jdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=dKxbxnvg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si39761990pgq.219.2019.05.01.17.10.11; Wed, 01 May 2019 17:10:27 -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=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=dKxbxnvg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726285AbfEBAIH (ORCPT + 99 others); Wed, 1 May 2019 20:08:07 -0400 Received: from mail-eopbgr750127.outbound.protection.outlook.com ([40.107.75.127]:19206 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726126AbfEBAIG (ORCPT ); Wed, 1 May 2019 20:08:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uLSfH8x/RaKbCYJMKJuh0gz6DmjqQInRzKBgH/uBHBM=; b=dKxbxnvgBVggLQBhJpQGzKQuZPbPwQw+XbSrH53K9rZv90frfbyOh1N4mUrIthgE2J7RoTELnrmhD7SlumAM/XguoU3ZXBrVG0lvasOQPlb6tmsx8++ZO7FQJbdhiy4Fq4kf9lNc5TaiRnzuYIjOXGGAa5k1aK+r1E94VzPuC2E= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.174.162.17) by MWHPR2201MB1375.namprd22.prod.outlook.com (10.174.160.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.14; Thu, 2 May 2019 00:08:01 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765%7]) with mapi id 15.20.1835.018; Thu, 2 May 2019 00:08:01 +0000 From: Paul Burton To: Christoph Hellwig CC: Ralf Baechle , James Hogan , Ley Foon Tan , Michal Simek , Bartlomiej Zolnierkiewicz , "linux-mips@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linux-fbdev@vger.kernel.org" Subject: Re: [PATCH 4/7] dma-direct: provide generic support for uncached kernel segments Thread-Topic: [PATCH 4/7] dma-direct: provide generic support for uncached kernel segments Thread-Index: AQHU/0QKKKiJlPSrw0CLkNp0FmAaxqZWhWOAgAAC3QCAAAMrgIAAAmOAgABp3gA= Date: Thu, 2 May 2019 00:08:01 +0000 Message-ID: <20190502000759.4ii2wuogc6fuc3jh@pburton-laptop> References: <20190430110032.25301-1-hch@lst.de> <20190430110032.25301-5-hch@lst.de> <20190501171857.chfxqntvm6r4xrr4@pburton-laptop> <20190501172912.GA19375@lst.de> <20190501174033.6rj5aiopdeo4uqpw@pburton-laptop> <20190501174905.GA20458@lst.de> In-Reply-To: <20190501174905.GA20458@lst.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR08CA0051.namprd08.prod.outlook.com (2603:10b6:a03:117::28) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:24::17) user-agent: NeoMutt/20180716 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [12.94.197.246] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b504cc96-7aff-4810-be5c-08d6ce923d64 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:MWHPR2201MB1375; x-ms-traffictypediagnostic: MWHPR2201MB1375: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0025434D2D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(979002)(7916004)(39840400004)(136003)(346002)(366004)(376002)(396003)(199004)(189003)(52116002)(53936002)(478600001)(8936002)(486006)(3846002)(229853002)(66066001)(256004)(66446008)(6116002)(305945005)(4744005)(44832011)(6512007)(6486002)(9686003)(1076003)(7416002)(58126008)(6436002)(446003)(11346002)(25786009)(66556008)(6916009)(42882007)(6246003)(66946007)(476003)(7736002)(73956011)(4326008)(64756008)(81156014)(81166006)(386003)(71200400001)(71190400001)(5660300002)(8676002)(102836004)(6506007)(76176011)(316002)(66476007)(99286004)(33716001)(14454004)(186003)(68736007)(26005)(54906003)(2906002)(41533002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1375;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 7e9f1kF25wdsNQ9/CuQt2ehBF+d6+QmjUTC33TqugsnTLOsifqJZxCUlWe/KCplZvVZzfFYohCwtBrLFRSzcUNU0VLhQrUOIRdaFZZn1wc9/aqqNKkCreOBjVfcSxOjtKbyuyTMkSXyTiK4SHi9Cu/MFUXSaOlr8WRe7mNzLz94gBbhRhE1E8gudNcz0ZmlqQfoJfMN1uohm3M4WTCXrdTIyD1OM7Hj7DgWykgr1A8+6pC1aePwkXlNPO90hTBO7li9iOrEqlzC50Idd/2Ce/S4q3h+K5/Ww0HrD2Eop/ody3xmLCgTLY8llzw1KwU+TIGoStj5Mdp7bQqEbiQqr1ng08Jtp31vngBwXojmtmMpRIo1nKn11/xOeG/NsTZ0dodjUqDBimH3M24kXXMQsJ9xu45cMTIHg3hm7Iu9mIJY= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: b504cc96-7aff-4810-be5c-08d6ce923d64 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 May 2019 00:08:01.3216 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1375 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Wed, May 01, 2019 at 07:49:05PM +0200, Christoph Hellwig wrote: > On Wed, May 01, 2019 at 05:40:34PM +0000, Paul Burton wrote: > > > > If it is necessary then as-is this code will clear the allocated me= mory > > > > using uncached writes which will be pretty slow. It would be much m= ore > > > > efficient to perform the memset before arch_dma_prep_coherent() & b= efore > > > > converting ret to an uncached address. > > >=20 > > > Yes, we could do that. > >=20 > > Great; using cached writes would match the existing MIPS behavior. >=20 > Can you test the stack with the two updated patches and ack them if > they are fine? That would allow getting at least the infrastructure > and mips in for this merge window. Did you send a v2 of this patch? If so it hasn't showed up in my inbox, nor on the linux-mips archive on lore.kernel.org. Thanks, Paul