Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3832880pxk; Tue, 22 Sep 2020 03:57:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy3e3iU7EVMtUMn7/Es8tHqCqWmLd4bVDv6z7u8cnf1zBUOuql8Z4xmoJY1U1CPnbPfgGp X-Received: by 2002:a17:906:31d4:: with SMTP id f20mr1928472ejf.38.1600772278994; Tue, 22 Sep 2020 03:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600772278; cv=none; d=google.com; s=arc-20160816; b=DhMvsFRCAoRjY2KIlxEAilcoS2/xymWWUa+Xk3wW7pcjoXkwnKmy0mlU3CZSDxkx3h 8GwGmjuGGN+xFCEB2kaWS/K6WtZBESb2n4RT7+MMrP0vqJUNa6RcQKHlq+yesAEcWog7 4KXUE0BpGyeOvypQR7x9RxU5I/+nu3Yl79r/r0z86fmcbp7O0/A7ilIlH7R47mrpRJuj xYPNfe+707sex561ik+dtOEYQ3zxGeQfndLj26zTFWzovUWn7xEDbm+ItXTENbu6tlCa mj4218v8eIJnW6OqMeJpOEzovG+iReG3xfzLU28K+xBmZd/AFqoTDNLAAHokxP3KpBkm 71yA== 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=zCza/Vqreu8DLPQrjnUr5U3t4jH8sYKp4EVHkj5KHI4=; b=dVmkzkQrn/t+vGVT0xt1rKbseICC0hwTPeJYHzrdutZj2D0QOdod4vkkqXBzdV5AGC +0TSU0UsefL6A6ytdHmFFs7ZDqTT3QAbWqQ50mXKHpB4wxvU7cpD/oODI1q9yFfYI0tL /PDAMaA9ZIFY8W5s5w3TyUWlKS+biriWk3v59nmzmR37xRa5LakgRErdzSbbrskVcCHI LnqgO7Kd2XsTzEQNIfx/yOZVBbzqzbs/QnWEILzsyCPJRNjh4Zs0h30iivCOUMmA91ie Y+FJJKvAImPUAK0x3dQthXWqPok/HCRe7a38Q9/rNSzHgc2lYWj7KZHql8K+v+ErM/yo 4b9w== 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 p23si10816602eju.83.2020.09.22.03.57.35; Tue, 22 Sep 2020 03:57:58 -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 S1726579AbgIVK4V (ORCPT + 99 others); Tue, 22 Sep 2020 06:56:21 -0400 Received: from elvis.franken.de ([193.175.24.41]:51118 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbgIVK4V (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-03; Tue, 22 Sep 2020 12:56:03 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 2E7F0C0FFF; Tue, 22 Sep 2020 10:50:14 +0200 (CEST) Date: Tue, 22 Sep 2020 10:50:14 +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 10/18] hal2: convert to dma_alloc_noncoherent Message-ID: <20200922085014.GD8477@alpha.franken.de> References: <20200915155122.1768241-1-hch@lst.de> <20200915155122.1768241-11-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915155122.1768241-11-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:14PM +0200, Christoph Hellwig wrote: > Use the new non-coherent DMA API including proper ownership transfers. > This also means we can allocate the buffer memory with the proper > direction instead of bidirectional. > > Signed-off-by: Christoph Hellwig > --- > sound/mips/hal2.c | 58 ++++++++++++++++++++++------------------------- > 1 file changed, 27 insertions(+), 31 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 ]