From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8A1E4105A58D for ; Thu, 12 Mar 2026 11:41:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E7A2310E9C3; Thu, 12 Mar 2026 11:41:28 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=imgtec.com header.i=@imgtec.com header.b="pqRGCUF5"; dkim-atps=neutral Received: from mx08-00376f01.pphosted.com (mx08-00376f01.pphosted.com [91.207.212.86]) by gabe.freedesktop.org (Postfix) with ESMTPS id DCF8410E9D8 for ; Thu, 12 Mar 2026 11:41:27 +0000 (UTC) Received: from pps.filterd (m0168888.ppops.net [127.0.0.1]) by mx08-00376f01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62C60Ugn3768895; Thu, 12 Mar 2026 11:41:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imgtec.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=dk201812; bh=TnWbvAqXptr8PMCVZH7R+m/ n9WpB5snPP2U9J1EvmP0=; b=pqRGCUF5EKIZsUeqAjSUFwmSWq20mCgEfRNJG0X HMeeuhYV3W/P2Rha1txzkmjTNdmDoWFKSrJeSpSOjCaYasKjRhfcqlykzGoGe2zl G1UIfcHrI3ogL0XUHbtjOj9XprBKNxNktT7R6vprt75gYYkGycvFtqf1JadDRmyq MNdtHuSsebSGAIHbPo0nhhLCVl9B63ZDnZfMJ6hKJ2+FhmpTc1l9QRInajfVc4+s z4IO6MVFNlx4T4jUFHA4bvNMjAvr/tEHyV8MhstMMy6x2spe+olufyFvK1I18/hT A/8tNWimVGr6E85vLVj+AK2uX+QXIHTw/D4c4+lOxOedHLg== Received: from hhmail01.hh.imgtec.org (83-244-153-141.cust-83.exponential-e.net [83.244.153.141]) by mx08-00376f01.pphosted.com (PPS) with ESMTPS id 4ctxvy1c15-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Mar 2026 11:41:13 +0000 (GMT) Received: from [127.0.1.1] (172.25.10.37) by HHMAIL01.hh.imgtec.org (10.100.10.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.37; Thu, 12 Mar 2026 11:41:12 +0000 From: Alexandru Dadu Subject: [PATCH v2 0/3] drm/imagination: Firmware handling of context reset notification Date: Thu, 12 Mar 2026 13:40:52 +0200 Message-ID: <20260312-b4-firmware-context-reset-notification-handling-v2-0-aec5a64cb06f@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAEWmsmkC/52OTQ6CMBCFr0Jm7RhaoUFX3sOwKGUKk0hr2gYxp He3cgRXL99L3s8OkQJThFu1Q6CVI3tXQJ4qMLN2EyGPhUHWUtWXusWhQctheetAaLxLtCUMFCm h84ktG51KBZbs+GQ3obo2WgwtqaEzUFpfgSxvx+KjLzxzTD58jgOr+Ln/b60CBTaKpKFuLGrvv EyJzNn4Bfqc8xfV7l1b7wAAAA== To: Frank Binns , Matt Coster , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter CC: , , "Alessio Belle" , Brajesh Gupta , Alexandru Dadu , Sarah Walker X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773315672; l=1626; i=alexandru.dadu@imgtec.com; s=20260304; h=from:subject:message-id; bh=BnwgW+rCt8ZYB93cqDZQXikd00UhQuOvaSfi9MHMhgE=; b=wV2pKe4FAzS8OjfO/+rk4iSGSNEk/x0N8y2iwTtk84C69gSK4ofogzIRUPcINXTLyDGKj8cbQ 2qB8cXatzVNB+br8comlnA0EDy7V8uJE4jn0rsHP52+Iw5WYH9TbVXd X-Developer-Key: i=alexandru.dadu@imgtec.com; a=ed25519; pk=FU07SyNrYGwhahqSxbWEuzyXlUh47xBXvLvOR7UA6+U= X-Originating-IP: [172.25.10.37] X-Proofpoint-GUID: FbvgoligF46jwxpQ3r7W2GddeXTRCkMX X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzEyMDA5MiBTYWx0ZWRfX1i1R8sx3Pmaw Ro2a2wsrYQRQFW0U58oAevTCLbukRTUMszyqt1/TDncsqy4c2Vhxr24XU85RruetDG2/IHAoWqS KaG3pgFasJhpGvts1FAGr8Jzrste0fZZxjt/1IcxnK2ZIYwRTHLIFF95adOZ3s+v4nmWtSzixgg lvBO3rpPqu1aZadqaJAjX9DoDHNlnmU2D6mya9R+/u1G/Zmq564e4w4+PAhQYKleYFXovlzEEdc uvZlYwBqCWW9Oz80OjRm5VMxPBPatk59Kdg/2YAyOxn8SjHvoGioUYpmDa0hhnwtGLkiceQhPPo rslMxFVlu3rlmtrMDvqHapzvkfZ26SIwD+BMjZRIFgtYlIfUP3NmyM6I8TcHqOetltHIDln1iCc 20K/TKUjxxXI+/rT/ScyACK5hiQSbfmNFO1OHR+W4OPfsvUkyB6aqT9t5QpdrwU+SkJrh9aHSAu xgTwMMdD3xQBbdMI8lQ== X-Authority-Analysis: v=2.4 cv=NuzcssdJ c=1 sm=1 tr=0 ts=69b2a659 cx=c_pps a=AKOq//PuzOIrVTIF9yBwbA==:117 a=AKOq//PuzOIrVTIF9yBwbA==:17 a=7IANbbwssFwA:10 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=kQ-hrUj2-E3RCbRHssb7:22 a=qZQ2PDNLMSdLoqI-hfl9:22 a=VwQbUJbxAAAA:8 a=r_1tXGB3AAAA:8 a=X7ODqez2nMEkfPg2YWkA:9 a=QEXdDO2ut3YA:10 a=t8nPyN_e6usw4ciXM-Pk:22 X-Proofpoint-ORIG-GUID: FbvgoligF46jwxpQ3r7W2GddeXTRCkMX X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" - patch 1: Adds missing context reset reasons. - patch 2: Fixes the reset_reason from enum to u32 in the fwif. - patch 3: Adds the implementation of the context reset notification. Signed-off-by: Alexandru Dadu --- Changes in v2: - enum rogue_context_reset_reason update moved to a separate commit; - pvr_context_reset_notification() renamed to pvr_dump_context_reset_notification(); - added handling for PVR_FWIF_DM_TDM; - update include order in pvr_dump.c; - fixed enum type ambiguilty in fwif headers for the reset_reason struct field; - small QOL and nits fixed. - Link to v1: https://lore.kernel.org/r/20260305-b4-firmware-context-reset-notification-handling-v1-1-46e2ce8d46ef@imgtec.com --- Alexandru Dadu (3): drm/imagination: Add missing rogue context reset reasons drm/imagination: Switch reset_reason fields from enum to u32 drm/imagination: Implement handling of context reset notification drivers/gpu/drm/imagination/Makefile | 1 + drivers/gpu/drm/imagination/pvr_ccb.c | 5 + drivers/gpu/drm/imagination/pvr_dump.c | 113 +++++++++++++++++++++ drivers/gpu/drm/imagination/pvr_dump.h | 17 ++++ drivers/gpu/drm/imagination/pvr_rogue_fwif.h | 8 +- .../gpu/drm/imagination/pvr_rogue_fwif_shared.h | 18 +++- 6 files changed, 159 insertions(+), 3 deletions(-) --- base-commit: d2e20c8951e4bb5f4a828aed39813599980353b6 change-id: 20260305-b4-firmware-context-reset-notification-handling-694a1b5e6b8c Best regards, -- Alexandru Dadu