Message ID | 20211022010027.11866-1-leoyang.li@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [GIT,PULL] soc/fsl drivers changes for fix(v5.15) | expand |
On Fri, Oct 22, 2021 at 3:00 AM Li Yang <leoyang.li@nxp.com> wrote: > ---------------------------------------------------------------- > NXP/FSL SoC driver fixes for v5.15 > - fix qbman alignment error in the virtualization context This patch looks very suspicious to me, I don't think it's generally safe to use memcpy_toio() on a normal pointer, as the __iomem tokens may be in a separate address range, even though this currently works on arm64. Adding the (__iomem void *) cast without a comment that explains why it's added seems similarly wrong, and finally the changeset text does not seem to match what the code does: According to the text, the pointer is to a virtual address mapped as "device memory" (i.e. PROT_DEVICE_nGnRE or PROT_DEVICE_nGnRnE), but the code suggests it's actually write-combining normal (PROT_NORMAL_NC). I don't see any discussion of this patch on the mailing list either, so please resend the pull request without this patch, while we try to figure out what the driver should actually be doing here. Arnd