Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3832749pxk; Tue, 22 Sep 2020 03:57:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGMRuLb59oiFJroJi8v+tUwh0/fXF0gdmavjLaoxIdYywz1s/ghkWCf04clLZUzPdk8A7c X-Received: by 2002:a17:906:4951:: with SMTP id f17mr4203649ejt.29.1600772262678; Tue, 22 Sep 2020 03:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600772262; cv=none; d=google.com; s=arc-20160816; b=0ILop+pZfrXtniUwow9jhA7FGovrLrxWLlTWCFrS7mQpmczmw1BuW+UIMPI0andJfU qyUG9OTRqNTUOiBfvwGJuSeSyMLEpiryx88PkRRUBIKuB0zy3Qnzaaz2/BlQJ6MCGv8X nwvv0tkN0XAMfLH+3nYy0PPPtYtcHwymFrkKjY28XNIpVSJTUc7G4mts4KT/pmtCx5pF IW3Y3voZaM3AsJ6gQTEHUjLwLW1HDxsuWJ/1W+Ixn7Czn9ex9cn/jP8FHHghxSoj+ExX cFE4E5Ybg6TO32q+qveVYF7dOU81pPMXBjRV6/PNJhSSLIlsNjqQpJRDE+vXxMv7/y+0 TduA== 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=o+HpYjD9Xdag50JcNDO9cPa3sETgsmOFX/SynSUQLx0=; b=gfcItCtTQmFhbmnfP2gqFtFUdRKLoIlrlMWuJ6Gv9dzSpcqNLUxJwvH8Ryj8HzKxyI kgVXcss+3jst6Sq1pckDsM/CFr1XlGr2W/IOR2YyVr2VODFN9Ri7oVr2PQlgnPwk7rnp 4TqwyYhkE05wKRW/60SGpkmI3fyjZDH1JX8fC0b7Gjo2wDNqj09ySYM+0lvqF92DXpEw Z60QH+dncXzUHPsS+SEz1RsfAC6EjYd3BEHipBRD3Q9jJXZxySOHNWob5UFOArXEgLsm bTYEALXnVV8lGZk4787JGNE9I82gDuw3A2l4KX44emJASPLliPf4t8NP5hIZtQqyzGzh 74DQ== 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 gg23si10308004ejb.327.2020.09.22.03.57.19; Tue, 22 Sep 2020 03:57:42 -0700 (PDT) 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 S1726494AbgIVK4Z (ORCPT + 99 others); Tue, 22 Sep 2020 06:56:25 -0400 Received: from elvis.franken.de ([193.175.24.41]:51115 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbgIVK4V (ORCPT ); Tue, 22 Sep 2020 06:56:21 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kKfxr-000822-02; Tue, 22 Sep 2020 12:56:03 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id A8294C0FFF; Tue, 22 Sep 2020 10:49:57 +0200 (CEST) Date: Tue, 22 Sep 2020 10:49:57 +0200 From: Thomas Bogendoerfer To: Christoph Hellwig Cc: Mauro Carvalho Chehab , "James E.J. Bottomley" , Joonyoung Shim , Seung-Woo Kim , Ben Skeggs , Marek Szyprowski , Tomasz Figa , Matt Porter , iommu@lists.linux-foundation.org, Stefan Richter , linux1394-devel@lists.sourceforge.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, nouveau@lists.freedesktop.org, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, linux-mm@kvack.org, alsa-devel@alsa-project.org Subject: Re: [PATCH 09/18] sgiwd93: convert to dma_alloc_noncoherent Message-ID: <20200922084957.GC8477@alpha.franken.de> References: <20200915155122.1768241-1-hch@lst.de> <20200915155122.1768241-10-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915155122.1768241-10-hch@lst.de> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 05:51:13PM +0200, Christoph Hellwig wrote: > Use the new non-coherent DMA API including proper ownership transfers. > This also means we can allocate the memory as DMA_TO_DEVICE instead > of bidirectional. > > Signed-off-by: Christoph Hellwig > --- > drivers/scsi/sgiwd93.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) Tested-by: Thomas Bogendoerfer -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]