[PATCH 1/2] drm/imagination: Report firmware page faults

From: Ryan Brue

Date: Wed Nov 25 2026 - 18:26:49 EST


The firmware tells the host about a page fault of its own with
ROGUE_FWIF_FWCCB_CMD_CONTEXT_FW_PF_NOTIFICATION. The driver has no case
for it, so it logs "Received unknown FWCCB command (type=112)" and
drops the faulting address.

Log the address as an error.

Signed-off-by: Ryan Brue <ryanbrue.dev@xxxxxxxxx>
---
drivers/gpu/drm/imagination/pvr_ccb.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/imagination/pvr_ccb.c b/drivers/gpu/drm/imagination/pvr_ccb.c
index 7043b491fe54..0a4d338ca47e 100644
--- a/drivers/gpu/drm/imagination/pvr_ccb.c
+++ b/drivers/gpu/drm/imagination/pvr_ccb.c
@@ -167,6 +167,11 @@ process_fwccb_command(struct pvr_device *pvr_dev, struct rogue_fwif_fwccb_cmd *c
&cmd->cmd_data.cmd_context_reset_notification);
break;

+ case ROGUE_FWIF_FWCCB_CMD_CONTEXT_FW_PF_NOTIFICATION:
+ drm_err_ratelimited(drm_dev, "Firmware page fault at address 0x%llx\n",
+ cmd->cmd_data.cmd_fw_pagefault.fw_fault_addr);
+ break;
+
default:
drm_info(drm_dev, "Received unknown FWCCB command (type=%d)\n",
cmd->cmd_type & ~ROGUE_CMD_MAGIC_DWORD_MASK);

--
2.56.1