lkml.org 
[lkml]   [2019]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: MT76x2U crashes XHCI driver on AMD Ryzen system
    On Tue, Feb 26, 2019 at 11:34:51AM +0100, Stanislaw Gruszka wrote:
    > On Tue, Feb 26, 2019 at 11:05:36AM +0100, Joerg Roedel wrote:
    > If sg->offset > PAGE_SIZE is fine then most likely we have problem with
    > alignment.

    The map_sg implementation in the AMD IOMMU driver uses sg_phys() which
    handles the sg->page + sg->offset calculation fine.

    > Note hat issue is with dma_map_sg(), switching to dma_map_single()
    > by using urb->transfer_buffer instead of urb->sg make things work
    > on AMD IOMMU.

    On the other hand this points to a bug in the driver, I'll look further
    if I can spot something there.

    Regards,

    Joerg

    \
     
     \ /
      Last update: 2019-02-26 11:45    [W:4.147 / U:0.784 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site