]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bus: mhi: ep: Do not allocate memory for MHI objects from DMA zone
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 3 Jun 2024 16:43:54 +0000 (22:13 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 20 Jun 2024 07:44:20 +0000 (13:14 +0530)
commitc7d0b2db5bc5e8c0fdc67b3c8f463c3dfec92f77
treecba577dc04079216f6984e768d7410cf34ea7076
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
bus: mhi: ep: Do not allocate memory for MHI objects from DMA zone

MHI endpoint stack accidentally started allocating memory for objects from
DMA zone since commit 62210a26cd4f ("bus: mhi: ep: Use slab allocator
where applicable"). But there is no real need to allocate memory from this
naturally limited DMA zone. This also causes the MHI endpoint stack to run
out of memory while doing high bandwidth transfers.

So let's switch over to normal memory.

Cc: <stable@vger.kernel.org> # 6.8
Fixes: 62210a26cd4f ("bus: mhi: ep: Use slab allocator where applicable")
Reviewed-by: Mayank Rana <quic_mrana@quicinc.com>
Link: https://lore.kernel.org/r/20240603164354.79035-1-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/ep/main.c