Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp826418rdb; Sun, 20 Aug 2023 04:56:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGG7QYhGBBuTxM1HnmWE8E//5QxyEF94b9vtAckRu1+3YY9dX51hBhUoZV6tq53oEHp/V+a X-Received: by 2002:a17:903:1111:b0:1b9:de75:d5bb with SMTP id n17-20020a170903111100b001b9de75d5bbmr6189365plh.7.1692532576920; Sun, 20 Aug 2023 04:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692532576; cv=none; d=google.com; s=arc-20160816; b=RBYB60VCkF1qjlS/u7RChzYpDuFd67Or/CTTyB+84qfK5jfvB0JJD2g8ky8irPI15H s1aphQqVXXX2PFhM16uliUBpflaQbTyuUt5hG/bs3Z9c2zIzn5U5IsHWA4oe0ryev8gC 0sVfblm3bZR7UQ6ClyTtHNslmfat3bCBCCXzeYGOORm7/Ejl6sLEQvIcH9CmxQfAeszL B5ZRyAhEX5uHbLKJK+1BQqllTRAWmDl7hvS/fbaFx3bStM1Sfs9Iv4WE3Zdc+yt4S90w bxGU53DGYNL/pcGbqbd4nDOLrxB6r3dfBOP7OxUdDUacfeLnpQPDHdAE0K/eLDbM7icI Pg6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=F9Xc5D1XGMJ9OKudI94kie6dFXbEeXd1/9DDu00N6vc=; fh=atqKu6DAuIfudIOgw30lF0pGUMeeUQuR1ZAJgAELk/4=; b=WQvWXJmp4Fr5ZZd82yWbUoP7d7jhxtTe90fIuZbAOaOCOm53xI56CG4uJHx7IAhAEp pAGS7pC4zkTWHRkGfqKWnlo9ddmWAI89OUacfxl7gcrF2lcc+1stMEh4jQ6+i4dNCBKE LbBx+EBNmUKfWDKNFvf6CqIXrrHLfusJeomSztMFedvzBfPhYWyAHzmipufP/7dp01Tf WPKU3T9d0XSq1JIIL3pdW2e4oAKiMJ14nEA/bIRUZFXpc0YVaRfCX2A4ngD0+GUDS3/h 5Vw8Gkd1jVLAjgj+EVYE4DJDwA/ValGW/6afr1PngfMir2IrkicERU+6pRzYoD1yN0qn jySg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q3-20020a170902e30300b001bdc78deb5csi4834418plc.398.2023.08.20.04.56.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 04:56:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD3DF2B9AA2; Sat, 19 Aug 2023 11:48:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352392AbjHROpe (ORCPT + 99 others); Fri, 18 Aug 2023 10:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377911AbjHROpO (ORCPT ); Fri, 18 Aug 2023 10:45:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FAF513D; Fri, 18 Aug 2023 07:45:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 39FED67D6E; Fri, 18 Aug 2023 14:45:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3C4CC433C7; Fri, 18 Aug 2023 14:45:10 +0000 (UTC) Message-ID: Date: Fri, 18 Aug 2023 16:45:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 0/2] Improve V4L2 M2M job scheduler Content-Language: en-US, nl To: Hsia-Jun Li , linux-media@vger.kernel.org Cc: ayaka@soulik.info, hans.verkuil@cisco.com, tfiga@chromium.org, mchehab@kernel.org, laurent.pinchart@ideasonboard.com, hiroh@chromium.org, linux-kernel@vger.kernel.org, nicolas@ndufresne.ca References: <20230704040044.681850-1-randy.li@synaptics.com> From: Hans Verkuil In-Reply-To: <20230704040044.681850-1-randy.li@synaptics.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/07/2023 06:00, Hsia-Jun Li wrote: > From: "Hsia-Jun(Randy) Li" > > The first patch is an old patch, I resend it again. > I want to make the work thats parses the bitstream > to extract the sequence information or video resolution > as a part of V4L2 schedule. Such a work would also > consume the device's resources likes remote CPU > time. > > Although reuse a flag which no current driver may > not be a good idea. I could add a new flag for that > if people like that. > > The second is a patch offering a generic solution > for tracking buffers which have been pushed to > hardware(or firmware). It didn't record which buffer > that hardware(firmware) still holds for future > decoding(likes the reference buffer), while it > has been sent to the user(dequeue). We may need > a flag for this work. I am dropping this series from patchwork: clearly this generated a lot of discussion, and I think that needs to come to a conclusion. BTW, I believe that at minimum the codec-specific parts in v4l2-mem2mem.c should be split off in their own source (v4l2-m2m-codec.c?). I agree with Tomasz that mem2mem.c was originally for simple m2m devices, and adding all sorts of codec specific code to that source doesn't make it easier to follow. Regards, Hans > > Hsia-Jun(Randy) Li (1): > media: v4l2-mem2mem: add a list for buf used by hw > > Randy Li (1): > media: v4l2-mem2mem: allow device run without buf > > drivers/media/v4l2-core/v4l2-mem2mem.c | 30 +++++++++++++++++--------- > include/media/v4l2-mem2mem.h | 10 ++++++++- > 2 files changed, 29 insertions(+), 11 deletions(-) >