Re: MT76x2U crashes XHCI driver on AMD Ryzen system

From: Joerg Roedel
Date: Thu Feb 28 2019 - 08:40:34 EST


On Thu, Feb 28, 2019 at 01:19:48PM +0100, Stanislaw Gruszka wrote:
> Nevermind, the patch is wrong, s->dma_address is initalized in sg_num_pages().

Yes, it is. In sg_num_pages() the offset into the IOMMU mapping is
stored in s->dma_address, taking also the segment boundary mask into
account. map_sg() later only adds the base-address to that.

Regards,

Joerg