]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/v3d: fix client obtained from axi_ids on V3D 4.1
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>
Fri, 25 Apr 2025 12:25:07 +0000 (14:25 +0200)
committerMaíra Canal <mcanal@igalia.com>
Sun, 27 Apr 2025 17:38:02 +0000 (14:38 -0300)
commitd0e4c6537005dd106b101d4434a0c3dafd936d05
tree3b505d34fce6c8f2351e8c6ed832445d8be5e559
parent0e7db503c5355ff9a7471d0a450bde8c069ef803
drm/v3d: fix client obtained from axi_ids on V3D 4.1

In the case of MMU errors caused by the TFU unit, the
client that causes the MMU error is expected to be reported.
But in the case of MMU TFU errors, a non existing client was
being reported. This happened because the client calculation
was taking into account more than the bits 0-7 from the
axi_id that were representing the client.

[   27.845132] v3d fec00000.v3d: MMU error from client ? (13) at 0x3bb1000, pte invalid

Masking the bits and using the correct axi_id ranges fixes the
calculation to report the real guilty client on V3D 4.1 and 4.2.

Make the MMU error print axi_id with hexadecimal as used in the
ranges.

Fixes: 38c2c7917adc ("drm/v3d: Fix and extend MMU error handling.")
Signed-off-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Link: https://lore.kernel.org/r/20250425122522.18425-1-jmcasanova@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
drivers/gpu/drm/v3d/v3d_irq.c