From patchwork Tue Jul 4 04:00:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsia-Jun Li X-Patchwork-Id: 92919 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1qGXEc-00BcRV-Sn; Tue, 04 Jul 2023 04:01:51 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbjGDEBW (ORCPT + 1 other); Tue, 4 Jul 2023 00:01:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjGDEBV (ORCPT ); Tue, 4 Jul 2023 00:01:21 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2063.outbound.protection.outlook.com [40.107.237.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A10FBD; Mon, 3 Jul 2023 21:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IqCoVCqhXI/mpZrDN94LVkFdy1yuNJBYA2DacL93KtQPGdSZcSfqueJ4HujBEisdUXuusHeF+JMTiv4CFP9Ht03NXWWe8DrTNRy4/XD0yTRHFK4ZKnKcCoCZWj8ySQWoIKMREdAJQBiH9sNnSFe44Igx1YfslUWAzvkJ1QmI7knvx53uEjb4ZFF+6Xv0ZNSVmRHiCqwIkDSh6b+TcXnYgz6+7N8infcNHZmVjJQ8Oj0WKCPLB90vnJAusrB4mYA7iXAhNQAn1W05Yzl4mVfiLvG2acBytdfgXEYeC6KbNRgSraZm05Lw6CXuRLg0n5SlErnndZ2ZBwtoYNDQYMfJJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pj/olEsbQcMMhLjC/sOANcpoOYF3GIuvyudyhrik1f0=; b=jBNETjzro30IQiVujUtXDdk7UlFYH57BTRwFQSYxKgUQX6zr5zJFmAlBmzXKXYKIhFHo/hCLk2fBw+tU96nwGUzmwrLQptFUxxT98RGHG02zEwNuFbBZmHIH5Tu2PqssO8lbgqkWmK2L5BO9LRUQg8mtGuRGkwzjOnhSobaymDerSVNoe70ktdFFd6OvMeiEFiq52kJRuYtp4TQYOWe4fIh8aBnANrPV36CzS0/7n+omfiaVnMk3Qjj7oaEHK9IJbejxi5cPbZlgfJqmNp6jZGdIndY+XdK3G4iXjX1ftbLbDTUphmYUIYXV1BHeWZcFO/fIRcpMj8DVvLRX0rjHiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pj/olEsbQcMMhLjC/sOANcpoOYF3GIuvyudyhrik1f0=; b=YYAQTa4yyWm48/BOBvkHiIhRspLPSeY44U0asnupbEcAGOWLe1UaXL9QEnWUlSSdHxnsMlcm3qpX5V1loY858kFr6re8HKNkISNgbc2QPfdBiPn7ZShKPPV8VUR931JJl+QqgCesKI9zcM0uGssocqGRb3FX0Gc1BaKUddpgWBU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=synaptics.com; Received: from DM6PR03MB5196.namprd03.prod.outlook.com (2603:10b6:5:24a::19) by CH3PR03MB7385.namprd03.prod.outlook.com (2603:10b6:610:19a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 04:01:15 +0000 Received: from DM6PR03MB5196.namprd03.prod.outlook.com ([fe80::6882:b9c1:2b2d:998d]) by DM6PR03MB5196.namprd03.prod.outlook.com ([fe80::6882:b9c1:2b2d:998d%5]) with mapi id 15.20.6544.024; Tue, 4 Jul 2023 04:01:15 +0000 From: Hsia-Jun Li To: 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, hverkuil@xs4all.nl, linux-kernel@vger.kernel.org, nicolas@ndufresne.ca, "Hsia-Jun(Randy) Li" Subject: [PATCH 0/2] Improve V4L2 M2M job scheduler Date: Tue, 4 Jul 2023 12:00:36 +0800 Message-ID: <20230704040044.681850-1-randy.li@synaptics.com> X-Mailer: git-send-email 2.41.0 X-ClientProxiedBy: BYAPR01CA0041.prod.exchangelabs.com (2603:10b6:a03:94::18) To DM6PR03MB5196.namprd03.prod.outlook.com (2603:10b6:5:24a::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR03MB5196:EE_|CH3PR03MB7385:EE_ X-MS-Office365-Filtering-Correlation-Id: 885ec4a1-96b5-4199-09e6-08db7c434bf4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6cXcfrPeNFLnwzXc2hukfougmjOBXVdPKcKT+ir+W8O4heasf+IGP8+GzGS4W0TQfryet1CFtAIJplIeE7pZtUqE9mMa9q0VXZbchkw/3o3Fb1qanmM3hqI0PfHe2tMRy8I3N6xF0Z9Iq26/6XTLWnOZhLQ9PQ596+O3IXqwS+6Z7e3veldmanwK0Bg76WKBo7mgw7pFDx9pSNwhtZeeH1T0acNCaPJKrhhfUzu2Ggf1nkXEq3HJewqFa3cy+cWsq3jjIYC2MIufq/VA4Xcfxgep8wM6SgCgnnnNAtToO0tbzXkBcpeAr9FCkGhZSzF5s3jUP+sO8ndeqHnG63sTsFpDyCo3au7qESXEHfXHXNV+fMcfck+ZRKQU3SVY6XYsHPgFWnAoSfCg7cwO1baz8il+Gme7dO6f18JH1HRPNANncgW4/4BqkphrNOJEmJ74Z5bYcMCR1tfpbjTf1XXdNGFuF3muNnla1dEil9Lbn6ni/viWcg13XE6/0Bfec5c5+q+FfPMHs6TU2Hte2P5eF23MmnsxcbS4tCACwlMKyjRCexL7vT3SSBxGmbGROObGxVq6Sg0pusPFNdNff7SGUFgGI2xmWXrTkqKn4nu+YsUc/wZqdnxwqhSp0TDI0sOu X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR03MB5196.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(346002)(366004)(396003)(376002)(136003)(451199021)(41300700001)(38100700002)(6666004)(38350700002)(52116002)(2616005)(107886003)(83380400001)(6506007)(26005)(186003)(1076003)(6512007)(86362001)(6486002)(478600001)(316002)(2906002)(36756003)(66476007)(4326008)(66556008)(66946007)(8936002)(8676002)(6916009)(7416002)(5660300002)(66899021);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QusyktqzlazVPE+xMKNQ888yEevjygxBfyEtWFvICy7nQf3Inur9iihr1Mi7D/aBXuw0KgZBjsgKjCo2ASngqDc/tq5qdMpE6Bp0Tn/x2SE6837xXrzYaRzTdHrTOw7L19CG7PBQuWFyR4D7bZPTcMErcgzkoXq3PL0vPQE0MDEGRa3y3b7h4h0horG0juy3FS0xfwlRZ5duSny66FKQLifUUMzY3njILvjSiePXYmwySGqqPjNZxdbmaQhqX9Oob812ho9059gfOFa1WO0qMKdCi2ccSwZO69XuaDA1HSjd3r/P2hdcLXWymWI7AcSMkPp9WYWZK26xqxRRtQ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5x1ZhWYPGepDWvwXyn+RsD+jjcI2OUXY2lX7NrHLOREG6rRntiBFEGrKaWkUJbc+44I1QPRdCrx+6QFIVsWrZXyrIEYhHiYFAu8ACnZJa5uKJSg08RtcKYXi+dHop9OZKa04+94RQekCTEF3haE8vEEmbqEdL5k0VPCQdvn6C X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 885ec4a1-96b5-4199-09e6-08db7c434bf4 X-MS-Exchange-CrossTenant-AuthSource: DM6PR03MB5196.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 04:01:15.4391 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hkeuNjL+A5+oLV44XtZ0o15KttgA9W3PZF/hcsd98ITOSL/0mcBH+lBasOhtgUdUM0rEsIaOqjFa+iorcaumKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR03MB7385 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-media@vger.kernel.org X-LSpam-Score: -4.7 (----) X-LSpam-Report: No, score=-4.7 required=5.0 tests=BAYES_00=-1.9,DKIMWL_WL_MED=0.001,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=ham autolearn_force=no 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. 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(-)