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=-6.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 B4A91C4338F for ; Tue, 17 Aug 2021 10:41:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 86C5D60FA0 for ; Tue, 17 Aug 2021 10:41:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236075AbhHQKlp (ORCPT ); Tue, 17 Aug 2021 06:41:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236034AbhHQKlo (ORCPT ); Tue, 17 Aug 2021 06:41:44 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E505C061764 for ; Tue, 17 Aug 2021 03:41:11 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id u13-20020a17090abb0db0290177e1d9b3f7so4443212pjr.1 for ; Tue, 17 Aug 2021 03:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Vakua7dB9MNN/4+EvWcg/tkA9unAO8MnqooNldYK9is=; b=hmjUn9cvLrKrl5cyT5UaVFMBlY0lf6tv5/vLf2NAvY8wiUtZSvCNhqhM3iVNdSkJHj msroeQrJpKML3icpKyaR4fWnXfqHwPrLF9UpdSdyftHVhpm/69XhUHZ1L4mXWtvHZebD WAlgTWptRnbCFx0sAzOS38GzE9W8pUmm3eKkU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Vakua7dB9MNN/4+EvWcg/tkA9unAO8MnqooNldYK9is=; b=AWkLS+/jB4yAyjg2XMKcPHLvrqJCwjUTb1reL5ZGUBCioTO7DgnsCdpcngC0+rJCjK NEGvfUcYvMFq7A76d8hnrV1HxGmte4GjAv2/Es+yXN1+deZQOs8A3beNn51xQl2w5D23 2imypMkUtlobmnvUNp8YFs71pId0UAyl5C+5aqweSKmJvIMIoQ99EymvsfMBNiVQuj99 vreX9reOjPJbvGhvLgvNYyJSJEbXvnE2SasnIQVe8g8IljBYe1zu8RtR8J9ixQ2dBvF1 Te/Z0BY75WO9OjvFsS2rRvXk6OX7yh/YClocjw2fxoB8+HyIIRYsBZcgb78m3R1wQPJX oUNw== X-Gm-Message-State: AOAM530YEW9C1BmIGKdcjp52f3FyP8cwLZEWx5Wybj14AyNDRqwcjRjq c9nC5K7HhAzMECO7Pf0cZrHtjQ== X-Google-Smtp-Source: ABdhPJyH+sfgV7i5vCz2VdxYloXot1O+JjbDHyjtkdDNLEYbWsQa51i9g2aU06kZkv2Pex3TICmUOA== X-Received: by 2002:a17:903:234e:b0:12d:ad8d:56c6 with SMTP id c14-20020a170903234e00b0012dad8d56c6mr2272743plh.23.1629196871081; Tue, 17 Aug 2021 03:41:11 -0700 (PDT) Received: from google.com ([2409:10:2e40:5100:8aab:cb84:5fe8:99dd]) by smtp.gmail.com with ESMTPSA id q68sm2775955pgq.5.2021.08.17.03.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 03:41:10 -0700 (PDT) Date: Tue, 17 Aug 2021 19:41:04 +0900 From: Sergey Senozhatsky To: Hans Verkuil Cc: Sergey Senozhatsky , Tomasz Figa , Dafna Hirschfeld , Ricardo Ribalda , Christoph Hellwig , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv4 1/8] videobuf2: rework vb2_mem_ops API Message-ID: References: <20210727070517.443167-1-senozhatsky@chromium.org> <20210727070517.443167-2-senozhatsky@chromium.org> <3744c521-ce07-4ca9-5f57-fa42b917d53c@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3744c521-ce07-4ca9-5f57-fa42b917d53c@xs4all.nl> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On (21/08/03 10:08), Hans Verkuil wrote: > On 27/07/2021 09:05, Sergey Senozhatsky wrote: > > Sprinkle a few more 'the's in the text: > > > With new DMA API we need an extension of videobuf2 API. Previously, > > With -> With the > of -> of the > > > videobuf2 core would set non-coherent DMA bit in vb2 queue dma_attr > > videobuf2 -> the videobuf2 > set -> set the > in vb2 queue dma_attr -> in the vb2_queue dma_attr field > > > (if user-space would pass a corresponding memory hint); vb2 core > > vb2 core -> the vb2 core > > > then would pass the vb2 queue dma_attrs to the vb2 allocators. > > vb2 queue -> vb2_queue > > > vb2 allocator would use queue's dma_attr and DMA API would allocate > > vb2 -> The vb2 > queue's -> the queue's > DMA API -> the DMA API > > > either coherent or non-coherent memory. > > > > But we cannot do this anymore, since there is no corresponding DMA > > attr flag and, hence, there is no way for the allocator to become > > aware of what type of allocation user-space has requested. So we > > need to pass more context from videobuf2 core to the allocators. > > > > Fix this by changing call_ptr_memop() macro to pass vb2 pointer to > > changing -> changing the > vb2 pointer to -> the vb2 pointer to the Ack... The Ack.