Message ID | 20241217045125.58-5-jackson.lee@chipsnmedia.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from PUWP216CU001.outbound.protection.outlook.com (mail-koreasouthazon11020132.outbound.protection.outlook.com [52.101.156.132]) (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 180D715D5B8; Tue, 17 Dec 2024 04:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.156.132 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734411113; cv=fail; b=eUvNoklPc0e02C6R+qoSxm3bqdk6kStBcFNRe2dbIMI0Bm15gzHhjwUByDeH0R0hsvLZYpWqb0qPjzOXZnQCoNllXqMbQ+WW2R4Pu6R+dMPEI8KgSKqEL0vJzDVgsGBadNCrbsSgxfPslMmvKqwFB0lCzDyJrHVsvG6M8iZswZA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734411113; c=relaxed/simple; bh=GwCyJykW/j7mm1IYILfLg3lCqLDdoNYN7BmqDvz2d9E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=TbvRTaKydnY+TQcSw28n1qhI75Qz8Bh/3tM9ZC9sd2TwQ2/OqJpIQC20VGMpM5b53DSISEAZcI9iqvyfU60wrzIlKIgyJEvPN3KAvcgEG3XYiGCK+Z9via1/NEegzihFR0eTncxR3e63KnJ+bzuUukC50I3FWLG3zqiYxzcxPBw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com; spf=fail smtp.mailfrom=chipsnmedia.com; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b=H8bRCOwm; arc=fail smtp.client-ip=52.101.156.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b="H8bRCOwm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aCfw9jtj52h4lXnfa5sOoCH4QJi8tUeqKwqd+fGaPlQ+v/1gkfYdpY7ROQoCruzyJLblo7yGdMJ+EnbzrAjS4jgjgf2tGEbaJgQDl1bfVDki0Vw/wsZ4Df3dFz6Ga119HtWAbz/KfyHLg19a+OYTr0rxBLClWovyQbdPCVSY/twhPHFkgOjf4VOPFOQ2uw1tz7lc6b5tWvS9d1Cr8jGnxU4XeT+IlmrRvY0XIT3iQLcBlU/+2Jkyo+KPwwzkqysFE0XUwrnabk/mqIHUrQcESFsyczSf3XqZiuMo3ufE4u+9AcLRi5DjbGvwhqONhKDZq6kXyQciAfT4OQOK4aahBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=mGOcEZ9ZD7xca8dvy0mYczqK8/P23isIo3fwi5c2Z7k=; b=rKX1YVZvpHJmZJdHfKGPl4KBZJ+Q7CBtLwWDGnJQTR1MHSTY2HHIH9P6bgihkXoig5TYN6zHUepGXDmWiGk2BUGsrEi/TIHzuaZNdK9g3y4GHLTfB6Zqct0BBRLVHKMROpDsgchgO4p/1j8rg8h9unIjbOiW2gLNmn5HrCpG2MttivxolzdTmg1gmX4GmLyr05T6OpvdHaKtrWwXej1PHz5xB5+JycNyMApf6roJeUDqYd8G5tzAqPcZDUtmNfJdtnA7ssG6q+zeDMobbgLYmmlstrEq2jeS3ROg0uGDjcr6o0x1AWwu6LXNE3Iw9n+MFsaPNLUn9gRGj11nn6om0w== 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=mGOcEZ9ZD7xca8dvy0mYczqK8/P23isIo3fwi5c2Z7k=; b=H8bRCOwm6Bl0drTwQJjMb2sbEDi7QNfrlqGFGyeZgFHKUVBfv5mLZFSmM/1PE1m8QlgAQNi8Db1UYHyJrJpcxOtsGQwYDfqphHqqeR3QFjfCqDHY0DjXtDDUM3l6Dvc6My2b15d2vgHn8+6T9R1GlPjxNi1ZrO0GFZhNOAPHtY8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=chipsnmedia.com; Received: from SE1P216MB1303.KORP216.PROD.OUTLOOK.COM (2603:1096:101:15::5) by PU4P216MB1872.KORP216.PROD.OUTLOOK.COM (2603:1096:301:109::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.22; Tue, 17 Dec 2024 04:51:37 +0000 Received: from SE1P216MB1303.KORP216.PROD.OUTLOOK.COM ([fe80::b711:5ab1:b5a4:d01b]) by SE1P216MB1303.KORP216.PROD.OUTLOOK.COM ([fe80::b711:5ab1:b5a4:d01b%3]) with mapi id 15.20.8251.015; Tue, 17 Dec 2024 04:51:37 +0000 From: "Jackson.lee" <jackson.lee@chipsnmedia.com> To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl, sebastian.fricke@collabora.com, nicolas.dufresne@collabora.com, bob.beckett@collabora.com, dafna.hirschfeld@collabora.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, jackson.lee@chipsnmedia.com, lafley.kim@chipsnmedia.com, b-brnich@ti.com, hverkuil@xs4all.nl, nas.chung@chipsnmedia.com Subject: [PATCH v2 4/4] media: chips-media: wave5: Fix timeout while testing 10bit hevc fluster Date: Tue, 17 Dec 2024 13:51:25 +0900 Message-Id: <20241217045125.58-5-jackson.lee@chipsnmedia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241217045125.58-1-jackson.lee@chipsnmedia.com> References: <20241217045125.58-1-jackson.lee@chipsnmedia.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SL2P216CA0103.KORP216.PROD.OUTLOOK.COM (2603:1096:101:3::18) To SE1P216MB1303.KORP216.PROD.OUTLOOK.COM (2603:1096:101:15::5) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SE1P216MB1303:EE_|PU4P216MB1872:EE_ X-MS-Office365-Filtering-Correlation-Id: 5bd88f19-8382-418c-030e-08dd1e567d37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|7416014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: WUb9o6RM+8ZrEq3TXYaXUbuIwUKexsi/mU/wii8iIFM3BvT/AeXLwhvW4DoqF+a45a8LlvgJzE+GC4Kxnafnc3QEE/bPVwMBVFc4u9OtsnNzjK55/tQdu4pTuvLt/TyPxzl5Xv66Q5T/SXb4yfnQD7he1l2zr7eH1+plnuJgDn5QkgfuQA86GiMUr0iEM74GOq0z0TUrIiLfTgadBU4EatM2TQDVz6PHRrtGKuvfAJg+0XaHqyLPfy0ZczbOr3aI1HHCp6zsNN7l9DZOlZTajPwKriufw1LaVMmhLEEYbxPTlHX9VQvLiiJCqzTfRvtpK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f9L40ul+Q3OOMtymyg4cfRO9//4dGCPUu8f1GG8+gdwusSWMrQArzJmNG2aC4HeIMzdzSPHe 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:(13230040)(1800799024)(52116014)(7416014)(376014)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: R9PStP4WTjtswFv56FjkaD/WDxJJGTOaBjhqByE1ZTSjJzMgPS+TtVRWw6qEkdKY1ivXzoKdY64WJjOLr9xJ94v60u9Xq71/52T8FsC4Z1KtF1luTvSBaw+1j3wkFGJ8z7qup2b3QFgpd9UlCbhXytcTZo43lt1G3Z1H8Q1ZmF2u407oI4x8gUghrVaByWACXb0ndeg0gXuvTgPFzegrK5Bqzp+mcvBYJ4ZP3q1YLWPxjVKT2CPGw1bQ62+9By7i/6IqVj/qE76xXfw+eMRo3qxhPhvlcOyvKRHTaL6GqSZT33P0JJP8iVOeMmEKXGjmi9srBGkTmTJvV8c2F6c2YCcCELCT9A65r1iJlTL45Aej4Hi3fejHPfJCCngxPhFNuPFi71eli4DwCPImn33IvpDSQWScIHeuFb+p1Wsyv/p97bBI5W0rO/+LdPjY9YLgTJn9EDPm8UdB5UbdkyaLrrLwnZpt9gL5fe7Ao4R4Ag3ce7+aD9rf0z4uJQCTMuTthD4v9jO99GyFWWkdldesj8CLZZn6C5xQC06zjMaqHWYCh/jRMWelRYlfbTRp98Mvcx7wPo+WdntFbfcaxfOqHj8BalotdNG+5V2VFCm4ODt+591oiLToPhbZMRn26O7rd0tIZCgS96VUfdoRv5tC8RTNntbQoHywALAoWHRCp0GVVv/HeFp2oiGS9PAydslIXzfUPFt4OriW6L3aodP9FeUpa78rES0ffK2rIKK6tRN3UmCEL4GllQBmnoR6pxFU1Q43kwuz88FIaFjBqOvfTWIif464XDsIR9TwdlZIi2RbxxwHoJkFQEOdD0A/lAUrXsYFWWeV8k77p7nFdTpAPuXeKPTaNs4v26+aNs9jSL55IzjpcWBYxeI8bk/XuJlhoGX47B1er+UEXi2lEDHlKnC6MtMWxIyTm7Z1WR1MYRGNqGhsaSYBsRdxfAKgJaI1jmktRqklIlJZo1jzw7GVDrEQGXd9wmGyjk/hPe0qqHcxRJdfpwLFnr+o+OGoZBDmJL5HyOlR5Opq+tYcJsqXW3LXj3tIxLfAJinZByZObXRkY3i1zfgqFKAqMNxxWIY13wLuLTykbsHm1RcGxDQ2zW/+DQxsxe1oSWsxZjSUUpZ65YP21oSABFDLlgdeOAYGiLhGfjMftxwg2M3uqCKjsICVQO4SKf+36haBhHeJWjZUsyKEosqSTjXpMRFoVcFIc28BWRd0m8ymG08BFQjoDnnps9wX39cGoYLdcCliFddHkzkiSIg7gLDGEoT8dmjMF6edUo2vZ9ykCk9tys/7h55mue9am/kYMjoGXTaxztm09aELoXowWQqzErZA8Z30/vuDtgAIBRgzxczfQg+Lu1od88OEAm7S/ycSX9TqYdKQ/QnQFSCVjFBdJqeyRKMaVOjqa6eAkdDHHbLaB3z+u+lKr9w6Nf6uKcxR8+1pUra8T4b3mKwuAQGyvDX4E9bfcC8UxF63K+/a369LDiGnNrMp+LAVOuqqgBKJFvr/62h8fw2BouBKZVMfWhbvZt8JqfM7uXgggyqf+4/qeq05fQPWWTz87ancI7IBwDaDjdQmpozxeTV81LkOC7eRTPQbjdtGk2OF+O4Y1tTOdv8qkQ== X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5bd88f19-8382-418c-030e-08dd1e567d37 X-MS-Exchange-CrossTenant-AuthSource: SE1P216MB1303.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2024 04:51:37.4232 (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: pclAdXDbm1iDYXRRPdaQTzmajh6aT+LyXTL3/HSaDusvKRRBpTI4Ibt7Wclt/ss8ruHcv3Vyqvkcj4H6a6L3m6OE2vXf1zbSjiRBobSLFe8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU4P216MB1872 |
Series |
Fix critical bugs
|
expand
|
diff --git a/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c b/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c index 882d5539630f..fd71f0c43ac3 100644 --- a/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c +++ b/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c @@ -1345,10 +1345,24 @@ static int wave5_vpu_dec_start_streaming(struct vb2_queue *q, unsigned int count if (ret) goto free_bitstream_vbuf; } else if (q->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { + struct dec_initial_info *initial_info = + &inst->codec_info->dec_info.initial_info; + if (inst->state == VPU_INST_STATE_STOP) ret = switch_state(inst, VPU_INST_STATE_INIT_SEQ); if (ret) goto return_buffers; + + if (inst->state == VPU_INST_STATE_INIT_SEQ && + inst->dev->product_code == WAVE521C_CODE) { + if (initial_info->luma_bitdepth != 8) { + dev_info(inst->dev->dev, "%s: no support for %d bit depth", + __func__, initial_info->luma_bitdepth); + ret = -EINVAL; + goto return_buffers; + } + } + } pm_runtime_mark_last_busy(inst->dev->dev); pm_runtime_put_autosuspend(inst->dev->dev);