lkml.org 
[lkml]   [2019]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 3/4] iommu/dma-iommu: Use the dev->coherent_dma_mask
    On Tue, Apr 30, 2019 at 12:27:02PM +0100, Robin Murphy wrote:
    > > Hmm, I don't think we need the DMA mask for the MSI mapping, this
    > > should probably always use a 64-bit mask.
    >
    > If that were true then we wouldn't need DMA masks for regular mappings
    > either. If we have to map the MSI doorbell at all, then we certainly have to
    > place it at an IOVA that the relevant device is actually capable of
    > addressing.

    Well, as shown by the patch below we don't even look at the DMA mask
    for the MSI page - we just allocate from bottom to top.

    \
     
     \ /
      Last update: 2019-04-30 13:33    [W:4.000 / U:0.524 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site