Skip to content

Conversation

@mairacanal
Copy link
Contributor

Currently, downstream carries a commit that suppresses all but the first MMU error. While this avoids excessive logging, MMU error messages are often valuable for developers during debugging. At the moment, getting this information requires rebuilding the kernel with that commit reverted.

This PR proposes adding a new module parameter (downstream-only) to allow MMU error logging to be enabled on demand, avoiding the need to recompile the kernel.

As an alternative, we could simply revert the commit “drm/v3d: Suppress all but the first MMU error”, since MMU errors are no longer as frequent as they once were.

I'd appreciate to hear your thoughts about the preferred approach.

@pelwell
Copy link
Contributor

pelwell commented Jan 9, 2026

I'm happy with a module parameter to enable the error logging, but not at the expense of losing even the first error if the parameter is disabled. I would lose the reversion, and make the logging condition !logged_error || debug_mmu.

@mairacanal mairacanal force-pushed the v3d/downstream/mmu-debug branch from e7e7b98 to 338154d Compare January 9, 2026 15:48
@mairacanal
Copy link
Contributor Author

I'm happy with a module parameter to enable the error logging, but not at the expense of losing even the first error if the parameter is disabled. I would lose the reversion, and make the logging condition !logged_error || debug_mmu.

I updated the branch with your suggestion. Thanks!

@mairacanal
Copy link
Contributor Author

Hey, gentle ping. It would be great to have this patch in the RPi kernel release to help debugging issues in Mesa CI.

@pelwell
Copy link
Contributor

pelwell commented Jan 19, 2026

It looks OK now apart from the initialisation to false, which checkpatch complains about. With that fixed, I would be happy to merge.

Any other concerns?

MMU error messages are useful to help developers quickly identify
issues in userspace graphics drivers, but always printing them can
swamp the kernel log.

Add a module parameter, ``debug_mmu``, to gate MMU error logging.
Logging is disabled by default and can be enabled when needed with
``v3d.debug_mmu=1``.

Signed-off-by: Maíra Canal <mairacanal@riseup.net>
@mairacanal mairacanal force-pushed the v3d/downstream/mmu-debug branch from 338154d to 35f27c3 Compare January 20, 2026 11:11
@mairacanal
Copy link
Contributor Author

It looks OK now apart from the initialisation to false, which checkpatch complains about. With that fixed, I would be happy to merge.

Any other concerns?

I just fixed the checkpatch issues. Thanks a lot!

@pelwell pelwell merged commit 8b22b5c into raspberrypi:rpi-6.12.y Jan 20, 2026
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jan 23, 2026
kernel: drm/v3d: Add module parameter to enable MMU error logging
See: raspberrypi/linux#7193
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jan 23, 2026
kernel: drm/v3d: Add module parameter to enable MMU error logging
See: raspberrypi/linux#7193
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants