From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AE52C49361 for ; Thu, 17 Jun 2021 10:07:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4FC65611CE for ; Thu, 17 Jun 2021 10:07:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231168AbhFQKJH (ORCPT ); Thu, 17 Jun 2021 06:09:07 -0400 Received: from verein.lst.de ([213.95.11.211]:58078 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbhFQKJG (ORCPT ); Thu, 17 Jun 2021 06:09:06 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 01E6E68C4E; Thu, 17 Jun 2021 12:06:57 +0200 (CEST) Date: Thu, 17 Jun 2021 12:06:56 +0200 From: Christoph Hellwig To: Tomasz Figa Cc: Christoph Hellwig , Sergey Senozhatsky , Hans Verkuil , Ricardo Ribalda , Mauro Carvalho Chehab , Linux Media Mailing List , Linux Kernel Mailing List Subject: Re: [PATCHv2 8/8] videobuf2: handle non-contiguous DMA allocations Message-ID: <20210617100656.GA11107@lst.de> References: <20210427131344.139443-1-senozhatsky@chromium.org> <20210427131344.139443-9-senozhatsky@chromium.org> <10a0903a-e295-5cba-683a-1eb89a0804ed@xs4all.nl> <20210617080107.GA1422@lst.de> <20210617085233.GA4702@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 Thu, Jun 17, 2021 at 06:40:58PM +0900, Tomasz Figa wrote: > Sorry, I meant dma_alloc_attrs() and yes, it's indeed a misnomer. Our > use case basically has no need for the additional coherent mapping, so > creation of it can be skipped to save some vmalloc space. (Yes, it > probably only matters for 32-bit architectures.) Yes, that is the normal use case, and it is solved by using dma_alloc_noncoherent or dma_alloc_noncontigous without the vmap step.