[PATCH v2 0/2] drm/imagination: GPU_ID-related cleanups

From: Matt Coster

Date: Fri Mar 20 2026 - 11:24:40 EST


Just a couple quick QoL improvements around GPU_IDs.

The first patch touches the UAPI, but is not intended to introduce any
functional changes; it simply codifies the existing documented layout of
packed BVNC fields as a series of GENMASKed macros.

Signed-off-by: Matt Coster <matt.coster@xxxxxxxxxx>
---
Changes in v2:
- Add _CONST variant of PVR_PACKED_BVNC() for use in case statements.
This fixes the build issue reported by the test bot[1][2] (P1)
- Simplify the change made to pvr_fw_validate() (P2)
- Link to v1: https://patch.msgid.link/20260206-bvnc-cleanup-v1-0-f3c818541fbe@xxxxxxxxxx

[1]: https://lore.kernel.org/r/202602070204.PjaKNSpZ-lkp@xxxxxxxxx/
[2]: https://lore.kernel.org/r/202602070500.zo0DrH6U-lkp@xxxxxxxxx/

---
Matt Coster (2):
drm/imagination: Define packed BVNCs in the uapi
drm/imagination: Add PVR_GPU_ID_FMT to format pvr_gpu_id

drivers/gpu/drm/imagination/pvr_device.c | 10 +++----
drivers/gpu/drm/imagination/pvr_device.h | 49 +++++++++++++++-----------------
drivers/gpu/drm/imagination/pvr_fw.c | 9 ++----
include/uapi/drm/pvr_drm.h | 14 ++++-----
4 files changed, 38 insertions(+), 44 deletions(-)
---
base-commit: fbef867cf6614178bc6afd15ee15f85cddf19eab
change-id: 20260206-bvnc-cleanup-446e70666747