lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 02/11] driver core: Set DMA ownership during driver bind/unbind
    On Mon, Nov 15, 2021 at 10:05:43AM +0800, Lu Baolu wrote:
    > @@ -566,6 +567,12 @@ static int really_probe(struct device *dev, struct device_driver *drv)
    > goto done;
    > }
    >
    > + if (!drv->suppress_auto_claim_dma_owner) {
    > + ret = iommu_device_set_dma_owner(dev, DMA_OWNER_KERNEL, NULL);
    > + if (ret)
    > + return ret;
    > + }

    I'd expect this to go into iommu_setup_dma_ops (and its arm and s390
    equivalents), as that is what claims an IOMMU for in-kernel usage

    \
     
     \ /
      Last update: 2021-11-15 14:21    [W:4.132 / U:0.232 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site