Re: [PATCH] PCI: endpoint: epf-mhi: Fix the outbound window offset handling

From: Lorenzo Pieralisi
Date: Tue Jun 06 2023 - 04:33:53 EST


On Tue, 06 Jun 2023 13:16:57 +0530, Manivannan Sadhasivam wrote:
> __pci_epf_mhi_alloc_map() allocates and maps the PCI outbound window memory
> to endpoint local memory. For taking care of alignment restrictions, the
> caller needs to specify the address alignment offset. Currently, this
> offset is not added to the allocated physical and virtual addresses before
> returning from the function.
>
> But __pci_epf_mhi_unmap_free() function substracts the offset before
> unmapping and freeing the memory, leading to incorrect unmap and free.
>
> [...]

Squashed it with the commit it was fixing.

Thanks,
Lorenzo