Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4216441pxb; Mon, 8 Feb 2021 10:34:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcvCLhR3NtFdTWpHlMjhaPhr0TqL0x//EkHTaWHLr0VBIFNzRlFvp330XHHotDU8sU1los X-Received: by 2002:a17:906:7191:: with SMTP id h17mr18800163ejk.54.1612809298082; Mon, 08 Feb 2021 10:34:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612809298; cv=none; d=google.com; s=arc-20160816; b=SR/Nqqr6UGJwb70QMsG2p7lkFqrIO6RYUnQUTs0BHLxNCUazYmUb88auTaVEYvtB+r A8mYb7WCDUDWg3HFtq9hpZX+QcGujTfqh/o2Z3SD1Yo6MIEcCJiiM80xB00hVPKKTtTd EMNRwhB6nOykGC24JvUcG/p3Nw3H8fj548XNG/6soV/E3BJvfwLrDhWpkLPgz03vk9UX 630anE0m9IMTDDTxP3DGt36+BlNt3Nr39LhXJj5kA+eQC5qGDpANppSuIGsCHlM4Zy70 oj4erJOOngmvVNQ2Okhruc5vsk+T8vdWTwWOwM633iELXL8CE2ERS8CJDsidu4gtsmeq rkOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=KvMuO6Wa2JQi5mQ5O+7djn8kV+MibsuD8uQZ/+0n1IE=; b=HTSqbgcQ/RFSq2fXuPTWmbmCeWOFXlrmQy/kYM7FUdb0fBuV6f9YfNXQ2kPCSik2SS QqHpeUhq6mORoicTs28T/hWtJVLkr9j5dHDJnrLsRPru9et1Aapd/RhdArkZpnmDgo3U FxCDROYzRi1+joteJhMGfNNN7bbYnRFtZKzpJznjxOcWTPQ10mWK1MXtXMaWEF6D7wv/ W3f5S8a+vdnafzzSZlrQycof5KFvttxFzlNrH8AxZ/ZDKKvMdjTtl/rbpvf9XC2NZ9mc 2g0ZsSyrogLd/5gXO1GkKXhhB2+5FmazbH64zp1yA50TIbmMQQYdBJDpWpUp6/3YtHgS SEGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb11si10948785ejb.0.2021.02.08.10.34.33; Mon, 08 Feb 2021 10:34:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235646AbhBHSbn (ORCPT + 99 others); Mon, 8 Feb 2021 13:31:43 -0500 Received: from verein.lst.de ([213.95.11.211]:42007 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233278AbhBHQLh (ORCPT ); Mon, 8 Feb 2021 11:11:37 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 0A05D67373; Mon, 8 Feb 2021 17:10:44 +0100 (CET) Date: Mon, 8 Feb 2021 17:10:43 +0100 From: Christoph Hellwig To: "Maciej W. Rozycki" Cc: Christoph Hellwig , Thomas Bogendoerfer , Greg Kroah-Hartman , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org Subject: Re: [PATCH 5/6] driver core: lift dma_default_coherent into common code Message-ID: <20210208161043.GA14083@lst.de> References: <20210208145024.3320420-1-hch@lst.de> <20210208145024.3320420-6-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 04:57:33PM +0100, Maciej W. Rozycki wrote: > > diff --git a/arch/mips/mti-malta/malta-setup.c b/arch/mips/mti-malta/malta-setup.c > > index e98cc977a735b2..f8c9663e7faa10 100644 > > --- a/arch/mips/mti-malta/malta-setup.c > > +++ b/arch/mips/mti-malta/malta-setup.c > > @@ -143,7 +143,7 @@ static void __init plat_setup_iocoherency(void) > > pr_crit("IOCU OPERATION DISABLED BY SWITCH - DEFAULTING TO SW IO COHERENCY\n"); > > } > > > > - if (supported) > > + if (supported) { > > if (dma_force_noncoherent) { > > pr_info("Hardware DMA cache coherency disabled\n"); > > return; > > I think this has to go with 1/6; otherwise compilation breaks between > then and now AFAICT. Indeed. > Do you need to have this verified anyhow? I only have a non-coherent 5Kc > Malta though. If you get a chance to test this logic, that would be great.