Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3611935imm; Fri, 20 Jul 2018 22:34:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcKmfl6LDzAbWFa6UQcrjFe6iGmtIsFWDtO+0/d/GPhbvULgjVXu9i+WptDqQC/INUBJrPV X-Received: by 2002:a17:902:e201:: with SMTP id ce1-v6mr4610721plb.136.1532151271328; Fri, 20 Jul 2018 22:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532151271; cv=none; d=google.com; s=arc-20160816; b=o9bvvwSGQjilOkK5zC1J8a+CguZZXh4BOK4yie9uKK6RC5e8aqTbCneUzqiCyL6VFk IxhT6Wo0nptS50N5Fv5dBrc1xhMOsyoyftrB1lDnkLwyGyqA+/FGl+ef7fb1h28npM7a T2Xwy+ap7pQ5TfEzhI38hYSJ8qHBdVPv61UdocO74HPiJqiCnwE8ffS62fbuxm+q6EPt Yy4NMIlE6UgmZESFSx63ZBgulZZJpxgDp1TXHYt1dmbWuIkluboh3LiVUVYyAf52Y3JD OWAmrc1VfW8R3RJ/OZWtkMIrtA1tk3wjVwv4o9eg5j4m+FF4rto/XQkVLZSoUXNYpQnw Ynug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=XGkMPjcxkwgIVZ2RJOSKuFlr9CV3BB5/D6NVajfpFlA=; b=WPHANoZUgRNcwL6QMfC7j7oQqvZAcuDtW/ZVEdF6jHoVjUv0/UJi+uuk3oHTUNU5zr erlIuLUXWmvE/t86zAm4ABxv7YrChoUepXwgqhlsvOxmcHSsMx90kgO+hhJKQGvwzXUM ib2QBMHD1xEJt8Wrnk+QMXtDqxCculDgUlDsTjc8RCOmq6NXCpbCNDqVEfWVZGwTdLWf yL84NiV+66GOE0lUMO9TpMqf+YTzWFDVkdnIVaT/C4FBYW5mfIYheZJOF86ALH7Pn2Xu zqK4CJQS5IyaY3uZ4zCLqClHqWnZ5bcSLRD3P28dv3Fjjd2aMN//xa0wFqzeEbQPSl+R KVkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XB0qBbAz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u188-v6si3431871pgu.256.2018.07.20.22.33.48; Fri, 20 Jul 2018 22:34:31 -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=@gmail.com header.s=20161025 header.b=XB0qBbAz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727406AbeGUGXJ (ORCPT + 99 others); Sat, 21 Jul 2018 02:23:09 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34481 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727195AbeGUGXJ (ORCPT ); Sat, 21 Jul 2018 02:23:09 -0400 Received: by mail-pg1-f193.google.com with SMTP id y5-v6so8500068pgv.1 for ; Fri, 20 Jul 2018 22:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XGkMPjcxkwgIVZ2RJOSKuFlr9CV3BB5/D6NVajfpFlA=; b=XB0qBbAz+Znfgl9aBLALjXmIwOlkf0NvGPL1nzKTWxVKzblEns4/y1E4kzp/1XgKqZ sX1cDXNkWvzKyAi8G1p7HbbrIuHAbTD8Vw6NKajgxs1G9WEZRJkoB4xJwx7xLLIvhwE9 4Z6c4RqH6cWIAFA6n6EAS/vJUG1w0K+woUNXBIDBwEYYegH9oxJ3J3qpp6kqlVHShivz pZeJ3Iq9XcIvtkE3ZfFO+XrWsj6BRPY5f5Vp/91i8e40dVUzWnH1YxULVI5HbYNyoTRU BFA+au7nPv74O2fV3nJdM84PWfqYEfU/l0//PlqZW9IdvRrb2+x1hF/1HwwDDBfUw3Ku L4PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XGkMPjcxkwgIVZ2RJOSKuFlr9CV3BB5/D6NVajfpFlA=; b=b88CQfnx0sICw+ryc2RU/SbrHMxfAT23pnIcOcDebQmYuQg0j28tmitJYSLichkOY0 gnWx3FEizgQRUeGc5FMwNkIY5behhiHK8kQtlZWmLhmlaWz96w2qoYLYepqvafsulR3R U5zzRfGEzTgOsiasaMDIvKpIIP0gkG/iRiFs+W47ik4K2tFXLtmiOFF4cFGzj+2QChaP 3V0qkZpbNpuUjxnr5PhxJD4G+5zrgNgQPsROGnSTQkyk+S3PbR+4mhA+FwlEpFp0eAM1 0o+H93gyL7suo0RBdiECOUZnxWcEwq8H6wGO/74dH3049tyiLOLgzY4Cm8kWHL+ddvnG PAaA== X-Gm-Message-State: AOUpUlF3SkU4VnfC9YJleuvJyFZVycYYqO46ypWd6qTPO/RTylLz056z f5f0klYIJ9hOcIGpg3e9VoDVJ6jS X-Received: by 2002:a63:2359:: with SMTP id u25-v6mr4569371pgm.220.1532151105574; Fri, 20 Jul 2018 22:31:45 -0700 (PDT) Received: from localhost (g152.124-44-9.ppp.wakwak.ne.jp. [124.44.9.152]) by smtp.gmail.com with ESMTPSA id b128-v6sm4452035pfa.105.2018.07.20.22.31.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jul 2018 22:31:45 -0700 (PDT) Date: Sat, 21 Jul 2018 14:31:42 +0900 From: Stafford Horne To: Christoph Hellwig Cc: Jonas Bonn , Stefan Kristiansson , openrisc@lists.librecores.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: use the generic dma-noncoherent code for openrisc Message-ID: <20180721053142.GC9742@lianli.shorne-pla.net> References: <20180719130232.1819-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180719130232.1819-1-hch@lst.de> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 19, 2018 at 06:02:28AM -0700, Christoph Hellwig wrote: > Hi Openrisc maintainers, > > can you review these patches to switch openrisc to use the generic > dma-noncoherent code? All the requirements are in mainline already > and we've switched various architectures over to it already. Hi Christoph, Thanks for this, these look good to me. I don't know much about the dma infrastructure in the kernel to tell the truth, but the patches do maintain the original cache flushing and invalidation core logic and I don't see any problems. I have applied these and ran my regular tests, but I don't really have any DMA hardware so the testing doesn't mean much. For upstreaming, do you want me to send these through the openrisc tree, or do you want to send with the dma tree? -Stafford