Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/adreno: Change chip_id format

The "ipv4-style" %u.%u.%u.%u used to make sense when the chip_id was
simply encoding gen.major.minor.patch. But this hasn't been true for
at least a couple years.

Switch to %08x, which is still easy enough to read for older devices,
and much easier to read with the new scheme.

Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/712222/
Message-ID: <20260316183436.671482-2-robin.clark@oss.qualcomm.com>

Rob Clark cc53487e cb9af17e

+2 -6
+2 -6
drivers/gpu/drm/msm/adreno/adreno_gpu.h
··· 67 67 /* Helper for formating the chip_id in the way that userspace tools like 68 68 * crashdec expect. 69 69 */ 70 - #define ADRENO_CHIPID_FMT "u.%u.%u.%u" 71 - #define ADRENO_CHIPID_ARGS(_c) \ 72 - (((_c) >> 24) & 0xff), \ 73 - (((_c) >> 16) & 0xff), \ 74 - (((_c) >> 8) & 0xff), \ 75 - ((_c) & 0xff) 70 + #define ADRENO_CHIPID_FMT "08x" 71 + #define ADRENO_CHIPID_ARGS(_c) (_c) 76 72 77 73 struct adreno_gpu; 78 74