Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1410417lqh; Mon, 6 May 2024 07:04:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWcIRVkmdaKDUyFZtIpnNjPZHzx4LtgXQicprtxLyy5yacqU75EvPLUwQ1oBXZgRaoe7xFfoUCJgAKj6QHYSDBJ4YG1imLGZS8iwf5BUg== X-Google-Smtp-Source: AGHT+IG07YgRTRLaLMElUHS/uQvhAAwke0CPQ/MF7ZH4HvjBSCSHl9ss71kP60tCqJHzfdpPv0KC X-Received: by 2002:a50:c342:0:b0:572:9b20:fa with SMTP id q2-20020a50c342000000b005729b2000famr6706472edb.33.1715004288559; Mon, 06 May 2024 07:04:48 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l27-20020a056402345b00b00572a70ad384si5098558edc.635.2024.05.06.07.04.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 07:04:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@cherry.de header.s=selector1 header.b=DznRSwXw; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-169943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cherry.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 172AF1F232C7 for ; Mon, 6 May 2024 14:04:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9F2915A5; Mon, 6 May 2024 14:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b="DznRSwXw" Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2115.outbound.protection.outlook.com [40.107.6.115]) (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 B493878C67 for ; Mon, 6 May 2024 14:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.115 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715004280; cv=fail; b=rkGsghDS8H3u0nTVFlzDgy1+w3Ml0FCKuIViROTcy753dbcG+6kCWM5/2au4/gztYNCM+HJ5OchYG0qO2WtFHDwSFCoJlnRDdLQcIcvX1YFSoIyXvsOciHZF6shwOU9fDD+JJmdNcgT4lP67myT0jwbPgFJYCtVPJKiu5IiAnmY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715004280; c=relaxed/simple; bh=q6MLW9r+2pA0TA3/bEUiITrOniZphEUR+ueShYF9y6w=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=eEiR0Dy6Fm48Yr7eUjhwcHX8W4Sn79HXDMQBrSEhgIfXD+Bhq8Yugvb/zJYobEZ40HNIi8vWYpWe5eaWAgDPovIHnOCmbIM5L04xG+b8ASa0xJ3EKQTc5fqvrCzeYPl3w9BK/s3yLIhpVjREWTNQSEMS4E8xSdPtH1exg80ahhs= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cherry.de; spf=pass smtp.mailfrom=cherry.de; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b=DznRSwXw; arc=fail smtp.client-ip=40.107.6.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cherry.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cherry.de ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PTpwFtLSWqLVtzpjlKr6FfS8pTdAkwFGb3YRSeygUERihoTElOsp5Uh1LwXjKY2geozxL+JVYQQZLUr+p0VhUvKHyjsAq6MJ6znVWXM0AalNpdWiPrEcqpFnA+pR3n/N6loypJOs1oGq54VtHuMy/f7TQc1G6J6AXPGKu2tyJjZ2g9uE1U5nX3yJlbyx8t6f62HZHqDcGx4XPCMZ+OhxGOCcigYkKnd82X+pNRXULoz87KqmBzoaSjnfPpD4gHehBaNSFDSbQUnRA6nVBwu5A89cxJkZWsTUhAaHnNv02PoFJWjAeWS+u4NkaV1Eg/fUwQYE4DlAaUr1BnBkKHqGVw== 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=2Vp7PmNeBSyveAILLavbbyS2qUAFmjRXL5IO/LuI82c=; b=DPb9jbVM4SDU3pgjIHlfZ4+m4QODDevsy6pZV95Lh+v7oCnTMbxn1lOdU33YyPng0idaM33UTYdMuUuF0apgAuzOBhMAM8hnuGl99Ozln6OTJb9TEr5prp3rdhaP3Z8ARNeOL1I3uMrmrk8brjvuBDqq0WU5pUeU7ukogfNyDTCvNrrri0R00QWfT5ixvdC9D5HFivSyQjOJNcjYj4xp/NNP0cvd8GnWvNBLSvMyK/QeJgBA2V09tmX8uwqw/ha4izwDBrytRNcC3KSY0izyKfweM1asRVXD78Xp783aUFQVDfjpaYSiaXwDZgcqZl1PAm7ammvBc3hX8T7pITcw4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cherry.de; dmarc=pass action=none header.from=cherry.de; dkim=pass header.d=cherry.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cherry.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Vp7PmNeBSyveAILLavbbyS2qUAFmjRXL5IO/LuI82c=; b=DznRSwXw1WFTZULYMds+nmKDqfhwXlp842U9KsOVzm0JOCEZ1QPUy3R72VqZB+UXPCxn3toGHfZdrc2/dArqLnigLuUWUXhNGls1ObZfTA5iFGcTRzlVa9M4IYsE26Q6EES03FjWh9KB6n0cktl/weDCcMbWpv1xI+5y8u93g7s= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DB7PR04MB4842.eurprd04.prod.outlook.com (2603:10a6:10:1b::13) by AS8PR04MB7896.eurprd04.prod.outlook.com (2603:10a6:20b:2a2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Mon, 6 May 2024 14:04:33 +0000 Received: from DB7PR04MB4842.eurprd04.prod.outlook.com ([fe80::ac08:df46:97bd:4ae6]) by DB7PR04MB4842.eurprd04.prod.outlook.com ([fe80::ac08:df46:97bd:4ae6%6]) with mapi id 15.20.7544.041; Mon, 6 May 2024 14:04:33 +0000 Message-ID: Date: Mon, 6 May 2024 16:04:30 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [RFT PATCH v2 15/48] drm/panel: ltk050h3146w: Don't call unprepare+disable at shutdown/remove To: Douglas Anderson , dri-devel@lists.freedesktop.org, Maxime Ripard Cc: Linus Walleij , Chris Morgan , Yuran Pereira , Neil Armstrong , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Quentin Schulz , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Sam Ravnborg , Thomas Zimmermann , linux-kernel@vger.kernel.org References: <20240503213441.177109-1-dianders@chromium.org> <20240503143327.RFT.v2.15.Ibeb2e5692e34b136afe4cf55532f0696ab3f5eed@changeid> Content-Language: en-US From: Quentin Schulz In-Reply-To: <20240503143327.RFT.v2.15.Ibeb2e5692e34b136afe4cf55532f0696ab3f5eed@changeid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: WA0P291CA0013.POLP291.PROD.OUTLOOK.COM (2603:10a6:1d0:1::8) To DB7PR04MB4842.eurprd04.prod.outlook.com (2603:10a6:10:1b::13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4842:EE_|AS8PR04MB7896:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e8865b6-0ec4-4b36-166b-08dc6dd574ac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?Q1kwMTRzbkFNMC8rWXdOWDdQY0ZBejdHUld1RDRCQlRKQmVnZDN6NFl3SVhB?= =?utf-8?B?ZUlxZ1pHek0wMDZJZjdNTFUvWnZQQ0ZRVGlUQ0VTVURwck1YdVNUYkpSWUF4?= =?utf-8?B?cG9kUzd6MEtVZUlaTE1SUjI0YzFSZW8vNGRXNnQrVGNJaEQxcWZwd1BtaWJL?= =?utf-8?B?S29xSEk1YUp4RVAvMXVpa3VSV0Jtd0lRTlJ5TWpudEdja21DaEpBZEl2RFht?= =?utf-8?B?bkFoRjg5SG13c1RCQUYzY1ZtUDVZZmF0YlFEd0h2a3doeUtoRjNFRU5VYU5L?= =?utf-8?B?cytzdkczendXZG9iV1RJTzVWUng3TWRFY2ZpeVY2dHB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MRThZUWpWeEI4SzBWYW5H?= =?utf-8?B?WU1zeTl4ZGpGWGc3dmd0QjNLanhEL3M4U3VRWXI4NkkreVZoVWRFNXFZWWNj?= =?utf-8?B?dCtsdGo1aGZqL1Nsc0huWGJ1TUZVUi9mNUdOYzRvUjhHeXRmNjUweFBGNWhl?= =?utf-8?B?TkJYcXJlM2tjUHVnWFR3YzZPcnhrVUY5UTNOMmI3Y2dmUVNNaEtRcXczZzVl?= =?utf-8?B?d1NvNnEvU2w2RWx1QVFVQm1naWVlT2NVSUJkRlZrVjQzZFU1Wll4aFJaQm1D?= =?utf-8?B?VmF5QlBSZk8yT2h3MXZZa05QZ28vWTVvR1FlMUxNakpndzdYL3FwSTZlcHdx?= =?utf-8?B?dDIwUzV1NkNnbjNyVEU3TEtlZVhVTnQyV0s4b0YvVDlydWQ1ZVY0QWpGTnFt?= =?utf-8?Q?NM6VYRQbswYaYl/1snxK0wpPxXINssqcG/oxXsZZVQa4=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB4842.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(1800799015)(376005)(366007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?N0JEeW0vU3dsSExTVkgwNTFoN09Vb3U4eWYvekswbnNETUxZZkpyT0tzUk1V?= =?utf-8?B?RDk5dWFDbG4zUUpneXYyLzlYbWlYYzZuTkd4Ry94c0xxdWVObWxnN2w1MCtu?= =?utf-8?B?U1VSK0hoT0h2QWFzeGNTSHFVVDN2Sk5yaHV2OGNmdkUrTSt5V2IyN2xYckEw?= =?utf-8?B?Wkh1c2orL2FSYnBxdjk1aDR1dXBuWStacVE0MFk2MWNsVVByV2VMMU1JOENB?= =?utf-8?B?UnkxQnBKeC8vN2kyQjBySVFXeXNGL2RpM0tY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?WThqSHNuYmJTMTVBM1dGYXFiYmNnUklCT0NTS0RlUkJBa01JTmdaNGVWanJp?= =?utf-8?B?MmVyZ2FkcVlkZFBzV2diS2xZNTF4ay8yZXBrRE1BRVF0YVIvVmJzS2RMd3Y1?= =?utf-8?B?aGc9PQ==?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 5e8865b6-0ec4-4b36-166b-08dc6dd574ac X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4842.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 14:04:33.4536 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5e0e1b52-21b5-4e7b-83bb-514ec460677e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: flfoVtulJlQyCQzOwc+RjwFepnXPbtUgBOzCIZNiy6mi+h/EriQpZKeXGf3jj9aiWD0B9dZooi9ZoxA5kUW9qMOOPLS7AeYToBUMr4WfwBM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7896 Hi Douglas, On 5/3/24 11:32 PM, Douglas Anderson wrote: > [You don't often get email from dianders@chromium.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] > > It's the responsibility of a correctly written DRM modeset driver to > call drm_atomic_helper_shutdown() at shutdown time and that should be > disabling / unpreparing the panel if needed. Panel drivers shouldn't > be calling these functions themselves. > > A recent effort was made to fix as many DRM modeset drivers as > possible [1] [2] [3] and most drivers are fixed now. > > Unfortunately, grepping mainline for this panel's compatible string > shows no hits, so we can't be 100% sure if the DRM modeset driver used > with this panel has been fixed. If it is found that the DRM modeset > driver hasn't been fixed then this patch could be temporarily reverted > until it is. > > [1] https://lore.kernel.org/r/20230901234015.566018-1-dianders@chromium.org > [2] https://lore.kernel.org/r/20230901234202.566951-1-dianders@chromium.org > [3] https://lore.kernel.org/r/20230921192749.1542462-1-dianders@chromium.org > > Cc: "Heiko Stübner" > Cc: Quentin Schulz > Signed-off-by: Douglas Anderson I get: """ [ 27.239362] ------------[ cut here ]------------ [ 27.244549] refcount_t: addition on 0; use-after-free. [ 27.250308] WARNING: CPU: 4 PID: 1 at lib/refcount.c:25 refcount_warn_saturate+0x120/0x144 [ 27.259556] Modules linked in: snd_soc_simple_card crct10dif_ce snd_soc_simple_card_utils fuse [last unloaded: panel_leadtek_ltk050h3146w] [ 27.273470] CPU: 4 PID: 1 Comm: systemd-shutdow Not tainted 6.9.0-rc7-00002-g4a8eaebfcfde-dirty #63 [ 27.283584] Hardware name: Theobroma Systems RK3399-Q7 SoM on Haikou devkit with Video Demo adapter (DT) [ 27.294180] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 27.301962] pc : refcount_warn_saturate+0x120/0x144 [ 27.307411] lr : refcount_warn_saturate+0x120/0x144 [ 27.312860] sp : ffff800081babb10 [ 27.316559] x29: ffff800081babb10 x28: ffff000000640000 x27: 0000000000000000 [ 27.324539] x26: ffff8000814847f8 x25: 0000000000000001 x24: ffff800081adb028 [ 27.332519] x23: ffff000000e13090 x22: ffff800081b3c280 x21: ffff0000006c8680 [ 27.340489] x20: ffff0000006c8680 x19: ffff00000a6f8000 x18: 0000000000000006 [ 27.348468] x17: 000000040044ffff x16: 00500074b5503510 x15: ffff800081bab580 [ 27.356447] x14: 0000000000000000 x13: ffff8000819944d0 x12: 0000000000000a2f [ 27.364426] x11: 0000000000000365 x10: ffff8000819ec4d0 x9 : ffff8000819944d0 [ 27.372396] x8 : 00000000ffffefff x7 : ffff8000819ec4d0 x6 : 80000000fffff000 [ 27.380375] x5 : 0000000000000366 x4 : 0000000000000000 x3 : 0000000000000000 [ 27.388353] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000000640000 [ 27.396332] Call trace: [ 27.399061] refcount_warn_saturate+0x120/0x144 [ 27.404122] drm_dev_get+0x78/0x7c [ 27.407924] drm_atomic_state_init+0x78/0xd0 [ 27.412695] drm_atomic_state_alloc+0x6c/0x9c [ 27.417563] drm_atomic_helper_disable_all+0x20/0x214 [ 27.423208] drm_atomic_helper_shutdown+0xa4/0x148 [ 27.428560] rockchip_drm_platform_shutdown+0x18/0x28 [ 27.434207] platform_shutdown+0x24/0x34 [ 27.438589] device_shutdown+0x150/0x258 [ 27.442973] kernel_power_off+0x38/0x7c [ 27.447260] __do_sys_reboot+0x204/0x24c [ 27.451643] __arm64_sys_reboot+0x24/0x30 [ 27.456122] invoke_syscall+0x48/0x114 [ 27.460311] el0_svc_common.constprop.0+0x40/0xe0 [ 27.465567] do_el0_svc+0x1c/0x28 [ 27.469269] el0_svc+0x34/0xd8 [ 27.472681] el0t_64_sync_handler+0x120/0x12c [ 27.477548] el0t_64_sync+0x190/0x194 [ 27.481639] ---[ end trace 0000000000000000 ]--- [ 27.486831] ------------[ cut here ]------------ [ 27.491995] refcount_t: underflow; use-after-free. [ 27.497414] WARNING: CPU: 4 PID: 1 at lib/refcount.c:28 refcount_warn_saturate+0xf4/0x144 [ 27.506558] Modules linked in: snd_soc_simple_card crct10dif_ce snd_soc_simple_card_utils fuse [last unloaded: panel_leadtek_ltk050h3146w] [ 27.520468] CPU: 4 PID: 1 Comm: systemd-shutdow Tainted: G W 6.9.0-rc7-00002-g4a8eaebfcfde-dirty #63 [ 27.532230] Hardware name: Theobroma Systems RK3399-Q7 SoM on Haikou devkit with Video Demo adapter (DT) [ 27.542826] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 27.550607] pc : refcount_warn_saturate+0xf4/0x144 [ 27.555958] lr : refcount_warn_saturate+0xf4/0x144 [ 27.561309] sp : ffff800081babb10 [ 27.565008] x29: ffff800081babb10 x28: ffff000000640000 x27: 0000000000000000 [ 27.572988] x26: ffff8000814847f8 x25: 0000000000000001 x24: ffff800081adb028 [ 27.580958] x23: ffff000000e13090 x22: ffff00000a6f82e0 x21: ffff00000a6f8170 [ 27.588928] x20: ffff00000a6f8000 x19: ffff00000a6f8000 x18: 0000000000000006 [ 27.596907] x17: 000000040044ffff x16: 00500074b5503510 x15: 072007200720072e [ 27.604877] x14: 0000000000000000 x13: 0000000000000046 x12: 0000000000000000 [ 27.612847] x11: 0000000000000000 x10: 0000000000000a20 x9 : ffff800081bab980 [ 27.620826] x8 : ffff000000640a80 x7 : ffff0000054e1000 x6 : 00000000ffffffff [ 27.628796] x5 : 00000000410fd080 x4 : 0000000000000002 x3 : 0000000000000000 [ 27.636775] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000000640000 [ 27.644754] Call trace: [ 27.647482] refcount_warn_saturate+0xf4/0x144 [ 27.652445] drm_dev_put.part.0+0xb0/0xc0 [ 27.656925] drm_dev_put+0x14/0x24 [ 27.660722] __drm_atomic_state_free+0xbc/0xd0 [ 27.665687] drm_atomic_helper_disable_all+0x108/0x214 [ 27.671429] drm_atomic_helper_shutdown+0xa4/0x148 [ 27.676781] rockchip_drm_platform_shutdown+0x18/0x28 [ 27.682425] platform_shutdown+0x24/0x34 [ 27.686807] device_shutdown+0x150/0x258 [ 27.691190] kernel_power_off+0x38/0x7c [ 27.695475] __do_sys_reboot+0x204/0x24c [ 27.699858] __arm64_sys_reboot+0x24/0x30 [ 27.704337] invoke_syscall+0x48/0x114 [ 27.708525] el0_svc_common.constprop.0+0x40/0xe0 [ 27.713782] do_el0_svc+0x1c/0x28 [ 27.717484] el0_svc+0x34/0xd8 [ 27.720894] el0t_64_sync_handler+0x120/0x12c [ 27.725762] el0t_64_sync+0x190/0x194 [ 27.729851] ---[ end trace 0000000000000000 ]--- """ when running "poweroff" after doing a modprobe -r of the driver on RK3399 Puma and PX30 Ringneck (the trace comes from RK3399 Puma). It is fine if I still have the device probed, no trace when powering off. BUT, I have the same trace in the 6.9-rc7 already, so I guess: Reviewed-by: Quentin Schulz Tested-by: Quentin Schulz # RK3399 Puma with Haikou Video Demo Tested-by: Quentin Schulz # PX30 Ringneck with Haikou Video Demo I'll let Heiko test this on RK3588 Tiger with Haikou Video Demo to check the whole stack is ready there as well. Thanks! Quentin