Any update on the rpmsg_tty hex dumps and the weston g2d_blitEx messages flooding the journal?

I’m following up on two topics I opened some time ago, both still open:

- [Why rpmsg_tty messages are logged into the journal log]( Why rpmsg_tty messages are logged into the journal log? ) (July 2024)

- [‘g2d_blitEx: Invalid src rect…’ messages in weston logs on TorizonOS 7 + weston-imx8]( 'g2d_blitEx: Invalid src rect....' messages in weston logs on TorizonOS 7 + weston-imx8 ) (March 2025)

**Setup**

- Verdin iMX8M Plus, Torizon OS `7.5.0+build.30` (scarthgap)

- M7 core running our firmware, talking to Linux over `/dev/ttyRPMSG30`

- `torizon/weston-imx8:4.4.0` and `torizon/chromium-imx8:4.4.0` (kiosk)

**What we measured**

We are investigating rare unexpected reboots on a machine in the field, so we made the journal persistent to keep the evidence across a reboot. A minute of journal on an idle machine contains:

| Source | Lines per minute |

|----|----|

| kernel (`imx_rpmsg_tty` hex dumps, one per 16 bytes of every M7 message) | ~43,900 |

| weston container (`g2d_blitEx: Invalid src rect…` + `SRC:` + `DST:` lines, once per frame) | ~4,800 |

| everything else | ~100 |

That is about 850 lines per second, all the time. As a result:

- The default volatile journal holds only a few minutes of history, which is useless for post-mortem analysis.

- A persistent journal writes about 1 GB/day to the eMMC, mostly the weston lines, even after we stopped storing debug-level messages with `MaxLevelStore=info`.

- journald and dockerd spend CPU on it continuously.

**Questions**

1. **rpmsg_tty:** has the `print_hex_dump(KERN_DEBUG, …)` → `print_hex_dump_debug(…)` change in `imx_rpmsg_tty.c` (proposed to NXP in nxp-imx/linux-imx PR #20) been picked up in the Toradex kernel, or is it planned for a 7.x release? If not, is there a supported way to turn this dump off without rebuilding the kernel?

2. **weston g2d:** is there any news from NXP on the `g2d_blitEx: Invalid src rect` message, or a newer `weston-imx8` tag where it no longer appears? If it is really harmless, is there a way to silence it (a g2d or weston option or environment variable) so it doesn’t reach the container log?

3. **Persistent journal:** on Torizon `/var/log` is a RAM disk. We bind-mounted an eMMC folder on `/var/volatile/log/journal` with a systemd mount unit. Is there a recommended or supported way to make the journal persistent on Torizon OS?

4. **Reset reason:** on this board `WDOG1_WRSR` and `WDOG3_WRSR` read `0x10` (power-on reset) after every kind of reset, including a plain `sudo reboot`, and `SRC_SRSR` reads `0x0`. We assume the reset goes through `WDOG_B` to the PMIC, which power-cycles the SoC. Is that right? Is there a way on the Verdin iMX8M Plus to know why the board last restarted? For example, does the PMIC keep a power-on/reset reason register that can be read from Linux?

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


Thank you for the detailed follow-up on these persistent logging issues. I can provide some information based on the available documentation, though I don’t have specific updates on the NXP-related issues you’ve raised.

Available Information from Documentation

Weston Container Updates

The documentation shows that torizon/weston-imx8:4 containers have been released for Torizon OS 7, with some known limitations. According to the release notes, the torizon/weston-imx8 container for Torizon OS 7 does not have:

  • 2D acceleration enabled via NXP’s g2d library on Colibri iMX8X
  • Remote desktop available (VNC or RDP)
  • XWayland support enabled
  • Content display on Verdin iMX8MP native HDMI interface(1)

However, I don’t see specific documentation addressing the g2d_blitEx: Invalid src rect logging issue you’re experiencing.

RPMSG Support

The documentation confirms that the Generic RPMSG TTY driver has been enabled as a module in Torizon OS 6.7.0(2) and that RPMSG support is available on your platform. However, I don’t have information about the specific kernel patch you mentioned or its inclusion status in Toradex kernels.

Recommendations

Since the available documentation doesn’t directly address your specific questions about:

  1. The print_hex_dump kernel patch status
  2. Updates on the g2d_blitEx messages
  3. Officially supported persistent journal configuration on Torizon OS
  4. Reset reason detection on Verdin iMX8M Plus

I recommend continuing the discussion on the Toradex Community forum threads you’ve already opened, or reaching out through GitHub for kernel-specific questions. The engineering team monitoring those channels will have the most current information about NXP driver updates and kernel patches.

Your detailed measurements showing ~850 lines/second of logging and 1GB/day of eMMC writes clearly demonstrate the impact of these issues on production deployments.

Best regards,
Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

Hello @vix,

We do not plan to take this changes on our kernel or yocto layers.
If such improvement is to be done, we will inherit it from the NXP downstream kernel, but not maintain this in our fork.
What can be done now without rebuilding the kernel is to reduce the overall kernel log level via a kernel argument which can be added with TCB.


As these are just warnings with no performance or functionality implications, we don’t plan to look into this.
If removing the messages is essential to you, building a custom Weston container with a patch to disable such warnings should be possible.


Yes, we have this documented on the following page:

I know you are already aware of the eMMC wear topic, but it is worth stating that persistent logging will reduce the lifetime of the device due to additional writes on the eMMC.


Yes, WDOG_B (GPIO1_IO02) is connected to the PMIC IC which triggers the reset.
This causes the reset reason to be a POR (power-on reset).
Therefore, unfortunately there is no straight-forward way to get the actual reset reason.

Best Regards,
Bruno