Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2851762ybz; Mon, 27 Apr 2020 05:50:34 -0700 (PDT) X-Google-Smtp-Source: APiQypJSv/os308N8nricbSsUrs/aWlXIoL1bFNBk0aQM6Gohvdz3+CHro6YOVGA+KvQA8/wxcN3 X-Received: by 2002:a17:906:7e5a:: with SMTP id z26mr20201168ejr.168.1587991834086; Mon, 27 Apr 2020 05:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587991834; cv=none; d=google.com; s=arc-20160816; b=F2tzaKbJKX7Vqy3zWwB0xm8K1aaR6gNcWpCymz1vgXrDbj/B2Vv5iE+HH8Ypd4xfFq ItVPzDTpzY6zeYsLGoLgENnu5PyH+mPSXFG6315VrAV3hroD2+WUNhcju2wfiCI1bFl2 kp0YVT84WNmToL1L7vQXcEamitZoOFolUwq53PsIxW22a7BOgxbHlNrnQYA2iF9b1jWe mPh9lPN0lAUMj3FUOwrs3yIzq2gmTa+5qPnex3q4+rIbFpu5afsOIabOcCh50T/Ia69X qBBJkI/slPZZfJDjelSngvFMCpt+FRxnQ4JkULX4XwUhQduzBe2aodvP4SOqXaU3D1/7 Wlmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BKTNTPqPREcmXGT5PW5iYYT+ca/npyb86/7EpHWqKOI=; b=WapCZbu5HfjYnSjdBzRLd3KMBgUVimDaJyelrxM9GbOXQedMLU3nGeC5Ju6uCejxrG BoPykBWtOM+vauFof0lcVvq+gCGJ0Kh9xpas7gMlupFy0UBWqFJzVOrR9flOQEqPTFWd hCojaEYIjWNcuf6RVt5jdOl3Mn5ziwBv/jLoYBlxnMv3rkWpuoZN8fiE9P/QR24QkKSo ZAZQtvqsC4L5QkJOvo1sj/EKA2z0rrxJFPFzzqOMNwFgR2yAo8A2G5U8I1eQBQEU36yq /j5iZtq7Y5fwzlfXM1XrcVeMWMwx5COgS2Y6NmxS3kuf1Ww3+8sRlVE/zQwXWlAfgaEF 2FYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HjDhTg1L; 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 cz11si8230189edb.383.2020.04.27.05.50.10; Mon, 27 Apr 2020 05:50:34 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HjDhTg1L; 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 S1727089AbgD0Msp (ORCPT + 99 others); Mon, 27 Apr 2020 08:48:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726728AbgD0Mso (ORCPT ); Mon, 27 Apr 2020 08:48:44 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D00FEC0610D5; Mon, 27 Apr 2020 05:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=BKTNTPqPREcmXGT5PW5iYYT+ca/npyb86/7EpHWqKOI=; b=HjDhTg1L1OtdVen2udkp2y9E+U aKGOIau3zpYJQaUzLVXoerYxehlPLp4vqyeHkHqrzwBI/fz0Z91RgJUB8OCGAAA+xC4PTaEj5UL8+ M2EXA8P5hmIeeZZE1pZyfl/xpIIBwe2ygUV2Jc9ymVDb5tpEVyeISjqQEAHcP5VByue/xqLR8oX6B PS/SnPaB72CwbGUlsRdtkKs+QUaoavtKt/nvFAkqSGzj4ke6Quc1ao+DfXwrtFebUt/vyBVofuvpr JCbBdHCxyx6FP7XIMfq4Z1jZ+lkFTUwoGK515dhxpjoXVW5YyoPxYtdW2jFF5K4sxM1037q6YodDG DwSwAlGg==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jT3Bg-0008CA-Ju; Mon, 27 Apr 2020 12:48:40 +0000 Date: Mon, 27 Apr 2020 05:48:40 -0700 From: Christoph Hellwig To: Tomasz Figa Cc: Christoph Hellwig , Catalin Marinas , Will Deacon , Nicolas Boichat , Shik Chen , Linux Media Mailing List , notify@kernel.org, Keiichi Watanabe , Ricky Liang , Mauro Carvalho Chehab , Laurent Pinchart , lkml , Kieran Bingham , Vlastimil Babka , Christoph Lameter , Sergey Senozhatsky Subject: Re: [PATCH] media: uvcvideo: Use streaming DMA APIs to transfer buffers Message-ID: <20200427124840.GA30327@infradead.org> References: <20190802131226.123800-1-shik@chromium.org> <20190930082310.GA1750@infradead.org> <20191001063744.GA10402@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2020 at 01:21:15PM +0200, Tomasz Figa wrote: > On Thu, Feb 27, 2020 at 7:28 AM Tomasz Figa wrote: > > > > +Sergey Senozhatsky who's going to be looking into this. > > > > Hi Christoph, > > > > That said, I noticed that you also put a lot of effort into making the > > NONCONSISTENT attribute more usable. Perhaps that's the way to go here > > then? Of course we would need to make sure that the attribute is > > handled properly on ARM and ARM64, which are the most affected > > platforms. Right now neither handles them. The former doesn't use the > > generic DMA mapping ops, while the latter does, but doesn't enable a > > Kconfig option needed to allow generic inconsistent allocations. > > > > Any hints would be appreciated. > > Hi Christoph, would you have some time to check the above? > > Hi Catalin, Will, do you know why CONFIG_DMA_NONCOHERENT_CACHE_SYNC is > not enabled on arm64? NONCONSISTENT is still a mess, mostly because dma_cache_sync is such a horrible API. I've been wanting to switch to the normal sync_for_device / sync_for_cpu primitives instead. Let me see if I can expedite that.