Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp332534pxu; Thu, 7 Jan 2021 06:18:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzriv8bH3RUIdp0zlgXbt8qA6r97pBLJaJg1/U1bssUtXNF3RsRquS6tp27L09ACcPqyJDD X-Received: by 2002:a05:6402:129a:: with SMTP id w26mr1879415edv.355.1610029079974; Thu, 07 Jan 2021 06:17:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610029079; cv=none; d=google.com; s=arc-20160816; b=vrv383bLVoQwnXzrzobp+mUIq9L+/d5SaD+hqfvI6l6xv86++pj6YOlONy0ZlkGOKK +XCXIgH+2j/9E/rC9Y5F6oihc/+weFyEuns6nsMRFQx8zdbgYvai3I22xBMvbuVTjRtT DRA15vRiqH1v+dZA2PwH3K9CfSulrwq3+kbbpt6z1KADCGCMLMTsskiYrSuGRU60QcSf PjGlPoWaQYyPnSgz+k17UNkab1As4UCMrf0n95kSHa2CKbShKg429hZLC+IaOObzKC1J WYRWl/tIBF74dAZ3cZKYc14FpF319dlClMyZL2FWQLF70wCJutJ1CylX8EdAn/8w3gP3 qzYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5EKjm5VT/QdJn/B1BYcuiBIUG9oQpN1/AMx3O8ZLC64=; b=qSwcIzJipjt0NMopiXTVIzBsYZJLg+rWt4Lm78E6Mk5Y72LqSldwple5pyVXwv6seP F+P7Ji/b2lsC+qd7xN4dldMdQriCin2LiMBG+XzcIv8+eRPa+AxxJul+SRqoBN4LF4j9 hkauPmlGLdaAypQGGQxxw1OxkBu71mFZxGoRkWrFm/AhEDULhOSj2PvKWQaS6wztX9dx 7DAGVl9Tl+xMOe49vHFQ1Eo8nA1YhZCwd3IFqVhyYgYmWANBYFL6ndTu5RgbPcFxiMsW /LvPy3xZ1F0K55DuMuNmaP+3nLtuwsBf9G4UUKrO94PiCXHLhomsTXpp4X3tC4PS6P9Z uvvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LF4UpleR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si2154190ejr.754.2021.01.07.06.17.36; Thu, 07 Jan 2021 06:17:59 -0800 (PST) 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=pass header.i=@chromium.org header.s=google header.b=LF4UpleR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728350AbhAGOPC (ORCPT + 99 others); Thu, 7 Jan 2021 09:15:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728145AbhAGOPB (ORCPT ); Thu, 7 Jan 2021 09:15:01 -0500 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D69C9C0612F6 for ; Thu, 7 Jan 2021 06:14:21 -0800 (PST) Received: by mail-il1-x12c.google.com with SMTP id q5so6800590ilc.10 for ; Thu, 07 Jan 2021 06:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5EKjm5VT/QdJn/B1BYcuiBIUG9oQpN1/AMx3O8ZLC64=; b=LF4UpleR6FsIZbyEpjiLbQPE887zOCnrGlHR7ccv+cu7FlMU1Yo0SbefHfeSAgdlMR Ldk5bvNrxJgg/hf9f0gZ+xMoDsCQ22tTW1nM1jLgelWwGVg4lSQdm+o+adk3MQZrjP26 oyA4A0yU9yq7NCGzqcSM5ysirka/OI141IFrs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5EKjm5VT/QdJn/B1BYcuiBIUG9oQpN1/AMx3O8ZLC64=; b=gjhkoUuIAj5jB0SjxGVhEO9lo8xPgzpKE7SBYF+oKEwl/AR2wtpBWxnvWVKBzASbN9 m09aLY6ZvgYxycL6mynGP09tTbBvgif6Nx2Sr3etkIklVcJxNnw9IbWTCCj0+S3yAER9 bOsLDnRu8egdLPKUHe5JXcVz9v9W7KiTtaS/WvsKOxYktf3+6r0peOAuY1TSY4xdqu5w +K29gvBbiA+fl27cPKRJvwjyaw80os0mXTFitiX4wZfDAsh1VFN2mHtiX+dVp9LxA5tp ToJGHfUMr+nsnqBV4rodsfATViAGdWjsGVRyVUUjhA/bu/9SPpdvsp7/9f92vnVot4GU VICw== X-Gm-Message-State: AOAM531rGTRUBDmmOAeyG78J2FJDxcMJA0Xr8D8rQ3BWf9lss9gLzuJu NnIJehFbsApZ7IKYaj9p1TlQ901QDNxeFw== X-Received: by 2002:a92:d350:: with SMTP id a16mr7329026ilh.262.1610028860878; Thu, 07 Jan 2021 06:14:20 -0800 (PST) Received: from mail-io1-f50.google.com (mail-io1-f50.google.com. [209.85.166.50]) by smtp.gmail.com with ESMTPSA id 14sm4659188ilz.7.2021.01.07.06.14.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Jan 2021 06:14:19 -0800 (PST) Received: by mail-io1-f50.google.com with SMTP id m23so6295072ioy.2 for ; Thu, 07 Jan 2021 06:14:19 -0800 (PST) X-Received: by 2002:a6b:cd02:: with SMTP id d2mr1461830iog.4.1610028858785; Thu, 07 Jan 2021 06:14:18 -0800 (PST) MIME-Version: 1.0 References: <20201125221917.150463-1-ribalda@chromium.org> <20201130083410.GD32234@lst.de> <20201201033658.GE3723071@google.com> <20201201144916.GA14682@lst.de> <20201208071320.GA1667627@google.com> <20201209111639.GB22806@lst.de> In-Reply-To: <20201209111639.GB22806@lst.de> From: Ricardo Ribalda Date: Thu, 7 Jan 2021 15:14:08 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 5/6] media: uvcvideo: Use dma_alloc_noncontiguos API To: ". Christoph Hellwig" Cc: Sergey Senozhatsky , Tomasz Figa , Marek Szyprowski , Robin Murphy , Mauro Carvalho Chehab , IOMMU DRIVERS , Joerg Roedel , Linux Doc Mailing List , Linux Kernel Mailing List , Linux Media Mailing List , Sergey Senozhatsky Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph Happy new year! On Wed, Dec 9, 2020 at 12:16 PM . Christoph Hellwig wrote: > > On Tue, Dec 08, 2020 at 04:13:20PM +0900, Sergey Senozhatsky wrote: > > On (20/12/08 13:54), Tomasz Figa wrote: > > > > > > In any case, Sergey is going to share a preliminary patch on how the > > > current API would be used in the V4L2 videobuf2 framework. That should > > > give us more input on how such a helper could look. > > > > HUGE apologies for the previous screw up! I replied in the > > gmail web-interface and that did not work out as expected > > (at all, big times). > > Actually the previous mail was a mime multipart one, and the plain text > version displayed just fine here. My the gmail engineers finally learned > something after all. > > > Another thing to notice is that the new API requires us to have two execution branches > > in allocators - one for the current API; and one for the new API (if it's supported and > > if user-space requested non-coherent allocation). > > So I think we do want these branches for coherent vs non-coherent as they > have very different semantics and I do not think that hiding them under > the same API helps people to understand those vastly different semantics. > > OTOH we should look into a fallback for DMA API instances that do not > support the discontigous allocations. > > I think between your comments and those from Ricardo I have a good idea > for a somewhat updated API. I'll try to post something in the next days. Did you have time to look into this? No hurry, I just want to make sure that I didn't miss anything ;) Best regards! -- Ricardo Ribalda