Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp311166pxj; Thu, 17 Jun 2021 03:19:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMpEYj7IguqmSUP46Ol9eidCRpPFz40YB2KNh9vZmFoBUW1es1kvlgRlDC9vLtRO8rJGfW X-Received: by 2002:a17:906:4e93:: with SMTP id v19mr4432014eju.335.1623925189682; Thu, 17 Jun 2021 03:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623925189; cv=none; d=google.com; s=arc-20160816; b=gBgvcCxnvI/hycWn9wpjpxtStEwtCArK5ormueylKjsKn8vEoC3nces8xpoqTCC9nM WiDUkeHquyUE1CtvlqA7850lh0FEemQzBwpGyy5Zyv0PFbiBIoxJvjWAAoqTRkMj91HD fqHCF6or2sfVrfzMSlHQlT7ER4bQNhvlLMAAuBjsp+3SQdgKs+V+v3UtoE3z6N9e3eya 9NqO4AZ7tZZlB+1GahzU1Yb9yHZPnsTh9fHzrbQPJcihYen/0IpNGb45nZFXOQvdizHW hX6Hw0AsPdgLx/Pn0Yq9kqtZF2qE0DG0HTLkk+gJ9uBJdZxfStAm1ukLB4JC9ZwzGHjh nrVg== 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=XIA5HFhX4O1nVjPhxJcnoeCyztWVMCU1IRS0wH2s8Xw=; b=v5hZ2MFNgUiZa/As4snIUsWFjQZG7gYB4G4ZGEQOQ2c45TTIVGDYLMVM9yJLCCVEb/ BhBk1TXaA7L8xXrwLGPBP2WpP8r3xGUAAUlga7AW6PXGHx86BUaXko/BSHJuAKwg3jZ5 IAdZ7ZuVgwsHpxDK1hZTXWtwUZE3KHiYPG3lHY6Ir5c2KBodcPvMreWJrVOFu2QU0lbW VEocG6+Iog6d8oXu/qJ0SqX8CCxDbaU+iFL2c5vnRj1cp1Rx1aRuQ/+cWlSpQ/E3RkPD /txpsLZP9CctgdtgJ1s8gNkRWWtfT7wtjqwBKVuCf7YZkfYhtm+g41w0daOKu9K/3g4v iYpQ== 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 l2si1560856edv.432.2021.06.17.03.19.25; Thu, 17 Jun 2021 03:19:49 -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 S231929AbhFQKJH (ORCPT + 99 others); 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.