Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp962328imd; Thu, 1 Nov 2018 08:13:06 -0700 (PDT) X-Google-Smtp-Source: AJdET5dsYgNKupjc5q55TplmFXk/yrMh9ZZAJG0ytkSMfZStldie3ar3lwzQx+rhqp0oFUHm3Hvl X-Received: by 2002:a62:5e02:: with SMTP id s2-v6mr8399698pfb.146.1541085186091; Thu, 01 Nov 2018 08:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541085186; cv=none; d=google.com; s=arc-20160816; b=tpcFQmIFUnEB6g+LtvVgHXBgM/oVG0h5Y65l74ttQFGqf0Ced2iOdezIGZc5pRdjn5 5Ye7XcP3qN+FKERU59nTyVBj4AuZdB1LNniWk17SHcdiKzJLoSTwIXUdTM8IpOIrYuQ6 Alg4yfn9eAS+6hbkG3TaoI7eQXAVPBNWMN7VSnPxmqqsqXgwcDxOUZTJ4hl0mQlHJh7u VcHAZue9slSXIeUE9b2iY98D/qkpwMY/KTD0CpqHYdyiOUvR35wnxNN8dtDaARLMolm7 B+0ecR2bw08Gbes0KZKwjr/O/OYrsqUDWZm/eOHVZWY4WiOCnQ6wRkg42kFjWBm8mfNZ gYMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=+MhBaODlSTPVJ+bCfFoo8pxk5JHrFwQJg2hR8eY+daI=; b=z5IAuj2gv8QRz7mb3iAmBfPKVV+tJCUPAMRQ/tnm+hQpXKbHCrAK+b0jh+Djq9Abxw 1ygQ07fXU1tpaIXeGUFjTIYCAp0lKRQZ/cSYYj1Lc4OOPCaYB9TT0ztEaPYdDqT7/+ty CLjwFvCumNROPG8uAUFU0cSKbHsdyrhfRcDuHKcp1N6AJlnQS/SGrpC8yzDaRw9r7CwO urY8C5OPlS5LzbH32+Qtb99whRxvN1doiZO15uQpz1l8TQtnuqkJpIIAwbPl0WSH6fe7 RWatYtf/csOMeuxjTCaW0bKuwBgwCAEZEsnkFI1YDhED23W5gwWEhsIT4osRvVPEBGo8 gSYA== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si21076460pgw.352.2018.11.01.08.12.51; Thu, 01 Nov 2018 08:13:06 -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; 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 S1728431AbeKAXfS (ORCPT + 99 others); Thu, 1 Nov 2018 19:35:18 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:40306 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728122AbeKAXfS (ORCPT ); Thu, 1 Nov 2018 19:35:18 -0400 Received: (from localhost user: 'macro', uid#1010) by eddie.linux-mips.org with ESMTP id S23991034AbeKAOae1ajmS (ORCPT + 1 other); Thu, 1 Nov 2018 15:30:34 +0100 Date: Thu, 1 Nov 2018 14:30:34 +0000 (GMT) From: "Maciej W. Rozycki" To: Christoph Hellwig cc: Paul Burton , iommu@lists.linux-foundation.org, Marek Szyprowski , Robin Murphy , Greg Kroah-Hartman , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] MIPS: Fix `dma_alloc_coherent' returning a non-coherent allocation In-Reply-To: <20181101083346.GA7136@lst.de> Message-ID: References: <20180914095808.22202-1-hch@lst.de> <20180914095808.22202-5-hch@lst.de> <20181031203206.GA28337@lst.de> <20181101051359.GA4164@lst.de> <20181101083346.GA7136@lst.de> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Nov 2018, Christoph Hellwig wrote: > Oops, yes this looks good: BTW, for anyone missing hardware suitable for serious DMA testing I can recommend getting a pair of DEFPA cards, the ubiquitous PCI version of this board, cheaply available, which is the same except for a different host bus bridge ASIC, developed later. They can be wired back to back similarly to Ethernet adapters (or in a loop if you have 2 or more dual attachment versions), no other hardware is required save for patch cords. Version 3 (DEFPA-xC) boards support universal PCI signalling, older ones are 5V-only. These devices are a stellar example of fine engineering[1]. Our `defxx' driver, which I believe has been adapted from the DEC OSF/1 one referred in the said document, has some latency and other issues that I plan to address sometime, once I have sorted higher-priority issues, however hardware itself is excellent. References: [1] Chran-Ham Chang et al., "High-performance TCP/IP and UDP/IP Networking in DEC OSF/1 for Alpha AXP", Digital Technical Journal, vol. 5, no. 1 (Winter 1993), "Network Adapter Characteristics", p. 7 Maciej