Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6140898imd; Wed, 31 Oct 2018 07:25:35 -0700 (PDT) X-Google-Smtp-Source: AJdET5clavZJo0CyXI9gkSlnT54QulEVJFjtMCkep+86gmN48pBOJuYbCKhvKDJJKNcuEDUI/oOJ X-Received: by 2002:a17:902:16a4:: with SMTP id h33-v6mr3602980plh.141.1540995935182; Wed, 31 Oct 2018 07:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540995935; cv=none; d=google.com; s=arc-20160816; b=Kb4fLb0KyJJWHe5bdAH/R6cO72QB93rM6dCLbGA70MqFtKAPztpLBy38cPUZnT7lJe WlSkmtLW/H6sar/crtMEww1BuQHzCMb2e/G7vSDRsSxDI+exNIWAnY+BDzvWwG9W4v9T /C+hYK1FzLM2ix/xVO+blYTJVDbMDyu/fnoKUlFiSPDYxxIXpaqX0qHrnEajgk4MujKZ L+JEQQdHAaMcVTlm5crjoL1EyhenlfPh+CWxxFDc/GoQ2KkJBsQtk2jqkHOp7VOuxhFA oc7bxEwjNnN0u6mZy9Zlb0Hpu/zWmE49nZhEBsXdfE0qjEjGL8gSR+f3zE0hAbcitqtB uImQ== 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=cG0LFL8K3G8PXp0/lU4nTNXh5a4oX4clx82B0VjBQE8=; b=pgldbrwvKQ5ercD2b0H30VkvrtOhPlwk1MnU5/lzAsNZz4V9i9LcHYSzLhOGZHBtnD v/YCA3qr03yi9BcGpjymUvjL3H/JHSOxN2IgweYzs4ArvxM7z4HX9sNlKyUbjnzj1qRE VN3d07sSfw42PoozmIk/VLF32nnpKPn6ZWeuGGVjDKJV8y57iywIjW7vbUOazGHAgdxM 6wQv6zeBcMXSPSdHZcbCh9h2rL5d0XwQTACtFnwKuwIGaiE1hCXICWt7Pho6iJTvm0CX YDWHKVMieU79vyKicsFWOl8SnKLi2I3FSKBqXgmDZgK7qpNNfIxZmVEkuNrPxc5un7SQ /JuA== 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 o13-v6si7606275pll.126.2018.10.31.07.25.07; Wed, 31 Oct 2018 07:25:35 -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 S1729557AbeJaXWa (ORCPT + 99 others); Wed, 31 Oct 2018 19:22:30 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:60582 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729497AbeJaXWa (ORCPT ); Wed, 31 Oct 2018 19:22:30 -0400 Received: (from localhost user: 'macro', uid#1010) by eddie.linux-mips.org with ESMTP id S23991025AbeJaOYNSQVxt (ORCPT ); Wed, 31 Oct 2018 15:24:13 +0100 Date: Wed, 31 Oct 2018 14:24:13 +0000 (GMT) From: "Maciej W. Rozycki" To: Christoph Hellwig cc: iommu@lists.linux-foundation.org, Marek Szyprowski , Robin Murphy , Paul Burton , Greg Kroah-Hartman , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] dma-mapping: merge direct and noncoherent ops In-Reply-To: <20180914095808.22202-5-hch@lst.de> Message-ID: References: <20180914095808.22202-1-hch@lst.de> <20180914095808.22202-5-hch@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 Hi Christoph, On Fri, 14 Sep 2018, Christoph Hellwig wrote: > All the cache maintainance is already stubbed out when not enabled, > but merging the two allows us to nicely handle the case where > cache maintainance is required for some devices, but not others. FYI, you commit bc3ec75de545 ("dma-mapping: merge direct and noncoherent ops") has caused: fddi0: DMA command request failed! fddi0: Adapter open failed! with the `defxx' driver on my R4400SC TURBOchannel DECstation (but not the R3400 one) and consequently the interface does not work anymore. Both are non-coherent cache systems, however the R3400 implements the write-through policy while the policy of the R4400SC is write-back (it also has 1MiB of secondary cache), which I suspect is the reason of the difference. I'll be experimenting with this commit to figure out what the real cause is, but it'll take a while as my resources are limited, so I'm sending this early heads-up in case you or someone else has an idea what might be going wrong here. Maciej