Re: [PATCH v6] bus: mhi: host: don't free bhie tables during suspend/hibernation

From: Manivannan Sadhasivam
Date: Fri Jul 18 2025 - 23:25:03 EST


On Tue, Jun 17, 2025 at 12:58:51PM GMT, Manivannan Sadhasivam wrote:
>
> On Fri, 16 May 2025 23:49:31 +0500, Muhammad Usama Anjum wrote:
> > Fix dma_direct_alloc() failure at resume time during bhie_table
> > allocation because of memory pressure. There is a report where at
> > resume time, the memory from the dma doesn't get allocated and MHI
> > fails to re-initialize.
> >
> > To fix it, don't free the memory at power down during suspend /
> > hibernation. Instead, use the same allocated memory again after every
> > resume / hibernation. This patch has been tested with resume and
> > hibernation both.
> >
> > [...]
>
> Applied, thanks!
>
> [1/1] bus: mhi: host: don't free bhie tables during suspend/hibernation
> commit: df75d6d7ce922645e674f5d591c7333f11027cdc
>

Dropped this patch from mhi-next as Greg is opposed to drivers keeping memory
during suspend [1].

Please resubmit once the consensus is reached.

- Mani

[1] https://lore.kernel.org/mhi/2025071722-panther-legwarmer-d2be@gregkh/

--
மணிவண்ணன் சதாசிவம்