Re: [PATCH] bus: mhi: host: pci_generic: Disable doorbell burst mode for Quectel RM500Q-AE
From: Steve Meek
Date: Sun Dec 06 2026 - 07:19:20 EST
Hi Muhammad,
If you're up for running it, the test that proved it on the D50 was
ringing the doorbell by hand at the stall, without resetting anything.
If the downlink comes straight back, the device missed or ignored a
doorbell. If it doesn't, the device has stopped on its own side, which
would fit what your debugfs showed.
What I did, on a 128-entry ring build so it actually stalls:
1. Read CHDBOFF from BAR0 + 0x18. On the RM500Q-AE it was 0x300, so
channel 101's doorbell is CHDBOFF + 8 * 101 = 0x628.
2. At the stall, take the channel 101 context wp from
/sys/kernel/debug/mhi/<dev>/channels (the bus address, not the local
pointer).
3. Write 0 to the high word (doorbell + 4) first, then the wp to the
doorbell. I used a small mmio tool on resource0 of the modem's PCI
device.
On the D50 the downlink came back immediately every time.
If that doesn't bring yours back, it might be worth doing the same for
the downlink event ring: ERDBOFF from BAR0 + 0x20, the ring's doorbell
at ERDBOFF + 8 * ring number, written with the event ring wp from the
events file. If that's what brings it back, the device had run out of
room to post completions rather than missing a channel doorbell.
And the 128-entry ring with burst mode off would still be good to run.
If that never stalls either, it points to modem_qcom_v1 wanting the
same change.
Thanks,
Steve