Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2661672lqp; Mon, 25 Mar 2024 06:04:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXu5j0MkHMv+Xphe1gzxm+uhsRajarxboh4d1MAddnPDsG+Waf+O9TxHCArcP6bd2vNESwjpiNS5qJ1mKUwB4GWpvIi4OWuG2CSK2ff5w== X-Google-Smtp-Source: AGHT+IGZe/NgahzKD8WAloTpycLugiCjUSP4X0Bnkp0WMpE4s9QT+KXGz9/smjeNVjfSjA+bBIQP X-Received: by 2002:a67:cd08:0:b0:476:da3a:4f47 with SMTP id u8-20020a67cd08000000b00476da3a4f47mr4465426vsl.31.1711371840037; Mon, 25 Mar 2024 06:04:00 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i6-20020a0561020a4600b00477a21b3a97si97656vss.106.2024.03.25.06.03.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 06:04:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chipsnmedia.com header.s=selector1 header.b=DWuoj5QN; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-116571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116571-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B0CE41C37696 for ; Mon, 25 Mar 2024 13:03:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F369013C9D6; Mon, 25 Mar 2024 08:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b="DWuoj5QN" Received: from SE2P216CU007.outbound.protection.outlook.com (mail-koreacentralazon11020003.outbound.protection.outlook.com [52.101.154.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A292155396; Mon, 25 Mar 2024 06:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.154.3 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711347563; cv=fail; b=cUmjdCL5Pew3T4e2iD5kPDGzfQfW0AsZHK8hXZZugioUbEJzqdjS8mBbR6TO0ms1QAgnMKKnCxQmXcmmcAtvr9FkcPuk+GXPrIgOP4ESTPlfYY9Ii0coZMrSfS2jyfQcy7+NskvzcP2vYqBCHYrjwqe7RR0lautQJdvBc5wkHrQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711347563; c=relaxed/simple; bh=bkqgjZmX4jzqLsEqpBccsDAz6Vv2dw25yxIgKbxD/sg=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=Tdp9EZQPDYN49yHM5Ku9S+4186KO+BUqzWjMOmF9C4NKxKVToYt1Ft0/i4GuC38T5AiviMhQPcIOeXpdLmuJ+f0zqRswJ7ieAbnvsjJj1voteh9UcZayJkbxAqf2gLMobYa5SsqaN0uJltmLXRs4i1ocMJXDD5cgop+oD+d/G2A= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com; spf=pass smtp.mailfrom=chipsnmedia.com; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b=DWuoj5QN; arc=fail smtp.client-ip=52.101.154.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chipsnmedia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GDq+sSx2l0rgRHKFyIQk9hVOQMrfUDelY3AnCrKPwJPgILspxA7CRrm93lnscaUF2MddjeDtuyYAMd0/KxlCi/BoyRC95lzxY8HJOBCKaLyQHbsexz9nFQybUPzFBbfHFLXyFY4A8wMamj2lgheMJHlF2wE/Mta2F2CPcSIRYLyBsfdfDdegke9/hRbaHT6i7ri39qiVuzWqupmwunGWh+Aiwx0w0pArYhJkxzfT3g65qcS28punbETovd3obD1LonSJclMEztpJ8RLn9VDy9VgwbZHnusPi5iZK1IiJjpfU3xApyrRqfSykjGwuDjBv7GpBr5aSipGZye3Gn6ifCQ== 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=WP8sfWb7ZAvLUC8yjQ2pDACFzVBEdN8EA0+5GchMlqw=; b=LXh4AHkPH38QA9z/gZ3v7hIUynnO3lMU5Sv+Plz95AJlNFnaU4dw7e7qYKggRAdxqIoZreBSxIaH8tAmB22czOlXqdxYOJrkI31w4XXtZ1rb3eWWHg/8roelpZOVIwH9JBqGxISohzIVFtHbZmHUPjefH147TxOViIzDAamNQw03bQkx0zTwd8KYtIGQTGrbCD9HqbD0MAxAB+lv7CXba3JXSXVAVcn9Pu8UCrJG0MiI1xE6qYdHmOHOcl7WkZZlqhr0BQU6oqkc50A7IYpJnFQJQi/arurzXmFrzvo+Ecn41y5fhG71Ebe1JLonr5r410GimhaiM6rDseJQCPMbtg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=chipsnmedia.com; dmarc=pass action=none header.from=chipsnmedia.com; dkim=pass header.d=chipsnmedia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chipsnmedia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WP8sfWb7ZAvLUC8yjQ2pDACFzVBEdN8EA0+5GchMlqw=; b=DWuoj5QNwIy+TGEaxZrYL7ThJHcEmhF7OuZAtieU0N39ynGZaFnP0ouKt6q9XcOl6PJeTIEeW4h9WiCzcMy8TgnJITiv3zjT7znxOErS9wQ68+FaP3jR5QIdEfa7+q7S/kw/4Cog7Yj+H94ZeCgdhJAJGhEH42jDg1/VuivDdZI= Received: from SE1P216MB1303.KORP216.PROD.OUTLOOK.COM (2603:1096:101:15::5) by SE1P216MB1671.KORP216.PROD.OUTLOOK.COM (2603:1096:101:f6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 06:19:14 +0000 Received: from SE1P216MB1303.KORP216.PROD.OUTLOOK.COM ([fe80::ebb8:2043:fd53:303a]) by SE1P216MB1303.KORP216.PROD.OUTLOOK.COM ([fe80::ebb8:2043:fd53:303a%3]) with mapi id 15.20.7409.028; Mon, 25 Mar 2024 06:19:14 +0000 From: jackson.lee To: "mchehab@kernel.org" , "nicolas@ndufresne.ca" , "sebastian.fricke@collabora.com" , "hverkuil@xs4all.nl" CC: "linux-media@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "hverkuil@xs4all.nl" , Nas Chung , lafley.kim , "b-brnich@ti.com" Subject: RE: [RESEND PATCH v2 0/4] Add auto suspend/resume,YUV422 format,SPS/PPS generation for each IDR Thread-Topic: [RESEND PATCH v2 0/4] Add auto suspend/resume,YUV422 format,SPS/PPS generation for each IDR Thread-Index: AQHac6LGzHawQ158fESNuZ0k+bm+6bFIEONw Date: Mon, 25 Mar 2024 06:19:14 +0000 Message-ID: References: <20240311105623.20406-1-jackson.lee@chipsnmedia.com> In-Reply-To: <20240311105623.20406-1-jackson.lee@chipsnmedia.com> Accept-Language: ko-KR, en-US Content-Language: ko-KR X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=chipsnmedia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SE1P216MB1303:EE_|SE1P216MB1671:EE_ x-ms-office365-filtering-correlation-id: 4fba020d-43e3-47d8-3b57-08dc4c937e43 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mYrPEwSH6QCMEh+RiZ4qZaIhsFQj5k+t///XWYyiLJKCGGIz7YvGpuqGtbwRR7ZjM7FDmj2JjhBYy2td1Escz07GPAgAB7Wr0oVs+S1yBF90CX1QieHW3m2flzVEeQ5j6FwDRHsXzz/727d7N4bw3f/V8AGoXoHS4ovIQ9TMU3NDHDkFUnDmILLTFRCE23kWh4dXMcAIWhEWWwGJQKwoeKGcBG2+kTSMkYzAFMFaQKkbtopBLMWp7CfloiHrwR1P8tXPS6CaAcGukBlTdqAyjVBIaj3rudAObwAe6RDKOA1oXcSZfzL/A5EE3bKXjzccZjkRD8Fi3IVVan7f7pI+PJySh2ampV+1kMn26V5rIMDCCWL/JKD3Js5+4BfNHl2UE59bJ3id4H/zgheO+K45qDHZRg+mE7TaUI2yFPm4by490Dm6M02XskbwuYWqNv+/PfAWEU+Ql7d7I4LTEd56CZ4pum2gUIXS9LYVNN++P4UydbjjZJYRJ0kWcZJn3pE1Cx2bp5KnVoR9LiZ7ozFQ8N9vAGEgLZO2apW8v+cq309tn8kKTQbx4LgYGOfUQSrxYpJVf3zamU12xe148zDfOeRCGxWUn6Av+cESBz3gAIIz82QBl7y3MSrBA3z2wPqwYLQqWrkNEnj5Ff6pKyMzqSd7cJ0Uj+snp+ZohnMe3ww= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SE1P216MB1303.KORP216.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+5eirhN20hwFOS7TL0OK08UmUJUihGm6K+fZJ51lHnCzuyBiA5ncehhN6hcK?= =?us-ascii?Q?2l1G3KPcgm7qwvX+t8qHiWZXuyZ1epDasJzYVqRbn4ST10s9NtZmDvjyy+kL?= =?us-ascii?Q?vkUV/6aKTNDBJC/P5Efo+22nlp9xikyLl6N6y1YsSTDjk/pENhnnA8hc08Jg?= =?us-ascii?Q?QAHXvGqe4B8+sXgPKvNXdVd40grwMKw+gkv/3len/38D0PbWf5ig6ic801Yg?= =?us-ascii?Q?2/ualpEKr/o2UULF/lXhu++GNcaszSVwlB8theyWXBKu6syBj9bcHSiNa+D7?= =?us-ascii?Q?73VITn6n4ncS6qcdorG10by79IOcz3IAa3HnnysKI2WOdvA4+gcI3X8/9j+R?= =?us-ascii?Q?zC1yWR1nCKJaNIdzjX3a/97K2NRFtzCi2Axo+y6q/Kxx9BKx2htn1W1niOKm?= =?us-ascii?Q?myQlvLcB3vobZhE41GFE2cdr9CmpOZ+x/dOyuiqU4OZBZDNNwwqM1IZHZ5T5?= =?us-ascii?Q?oNCc7fm9fIQjGQHW/BJs0noRotcR+C9Wc82TS6jLhFRuw34fdfYNjdmU6YsG?= =?us-ascii?Q?NNWcuN+cYmKE1SMYUN4glvmq7MnIEBQTbH47tN0nu73tyDlfnBRk5NlKN8XA?= =?us-ascii?Q?mjhSB7m5kiOQ84g7OEE3mJ0iUIDM8dDFh7uP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awLVTc8DhsO7Y0595s6vXelmkPnBk16gzIWy8y6PeXN3Q8ex?= =?us-ascii?Q?JCfwufUH6z6MX+IVIlrFYjECwiL8E5IfiYZrIYY1xHQbTDzP199FBgCkG/DT?= =?us-ascii?Q?vA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SE1P216MB1303.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 4fba020d-43e3-47d8-3b57-08dc4c937e43 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2024 06:19:14.1805 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4d70c8e9-142b-4389-b7f2-fa8a3c68c467 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: j74cYmR+ylDYmbbKHtVNbGld+oSHsd9U0JMM/PwCU9caLNIa7caIUvgH/eaHBSYJhxg+rQiFc/g26JylrVYWlr5g/H/fMfV8qiyWSGSHMkA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE1P216MB1671 Hello Sebastian, Hans and Nicolas Could you please review the below patch series ? https://patchwork.linuxtv.org/project/linux-media/list/?series=3D12404 thanks Jackson > -----Original Message----- > From: jackson.lee > Sent: Monday, March 11, 2024 7:56 PM > To: mchehab@kernel.org; nicolas@ndufresne.ca; > sebastian.fricke@collabora.com > Cc: linux-media@vger.kernel.org; linux-kernel@vger.kernel.org; > hverkuil@xs4all.nl; Nas Chung ; lafley.kim > ; b-brnich@ti.com; jackson.lee > > Subject: [RESEND PATCH v2 0/4] Add auto suspend/resume,YUV422 > format,SPS/PPS generation for each IDR >=20 > From: "Jackson.lee" >=20 > The wave5 codec driver is a stateful encoder/decoder. > The following patches is for supporting yuv422 inpuy format, supporting > runtime suspend/resume feature and extra things. >=20 > v4l2-compliance results: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > v4l2-compliance 1.24.1, 64 bits, 64-bit time_t >=20 > Buffer ioctls: > warn: v4l2-test-buffers.cpp(693): VIDIOC_CREATE_BUFS not > supported > warn: v4l2-test-buffers.cpp(693): VIDIOC_CREATE_BUFS not > supported > test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK > test VIDIOC_EXPBUF: OK > test Requests: OK (Not Supported) >=20 > Total for wave5-dec device /dev/video0: 45, Succeeded: 45, Failed: 0, > Warnings: 2 Total for wave5-enc device /dev/video1: 45, Succeeded: 45, > Failed: 0, Warnings: 0 >=20 > Fluster test results: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Running test suite JCT-VC-HEVC_V1 with decoder GStreamer-H.265-V4L2-Gst1.= 0 > Using 1 parallel job(s) > Ran 132/147 tests successfully in 94.782 secs >=20 > (1 test fails because of not supporting to parse multi frames, 1 test > fails because of a missing frame and slight corruption, 2 tests fail > because of sizes which are incompatible with the IP, 11 tests fail becaus= e > of unsupported 10 bit format) >=20 > Running test suite JVT-AVC_V1 with decoder GStreamer-H.264-V4L2-Gst1.0 > Using 1 parallel job(s) > Ran 77/135 tests successfully in 37.364 secs >=20 > (58 fail because the hardware is unable to decode MBAFF / FMO / Field / > Extended profile streams.) >=20 >=20 > Chnage since v1: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > * For [PATCH v2 0/4] media: chips-media: wave5: Support SPS/PPS generatio= n > for each IDR > - define a macro for register addresses >=20 > * For [PATCH v2 1/4] media: chips-media: wave5: Support runtime > suspend/resume > - add auto suspend/resume >=20 > * For [PATCH v2 2/4] media: chips-media: wave5: Use helpers to calculate > bytesperline and sizeimage > - use helper functions to calculate bytesperline and sizeimage >=20 > * For [PATCH v2 3/4] media: chips-media: wave5: Support YUV422 raw pixel- > formats on the encoder > - remove unnecessary codes >=20 > Change since v0: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > The DEFAULT_SRC_SIZE macro was defined using multiple lines, To make a > simple define, tab and multiple lines has been removed, The macro is > defined using one line. >=20 > Jackson.lee (4): > media: chips-media: wave5: Support SPS/PPS generation for each IDR > media: chips-media: wave5: Support runtime suspend/resume > media: chips-media: wave5: Use helpers to calculate bytesperline and > sizeimage. > media: chips-media: wave5: Support YUV422 raw pixel-formats on the > encoder. >=20 > .../platform/chips-media/wave5/wave5-helper.c | 24 ++ > .../platform/chips-media/wave5/wave5-helper.h | 4 + > .../platform/chips-media/wave5/wave5-hw.c | 23 +- > .../chips-media/wave5/wave5-vpu-dec.c | 261 +++++------------- > .../chips-media/wave5/wave5-vpu-enc.c | 260 +++++++++-------- > .../platform/chips-media/wave5/wave5-vpu.c | 43 +++ > .../platform/chips-media/wave5/wave5-vpu.h | 4 - > .../platform/chips-media/wave5/wave5-vpuapi.c | 14 +- > .../platform/chips-media/wave5/wave5-vpuapi.h | 1 + > .../chips-media/wave5/wave5-vpuconfig.h | 25 +- > .../media/platform/chips-media/wave5/wave5.h | 3 + > 11 files changed, 329 insertions(+), 333 deletions(-) >=20 > -- > 2.43.0