lkml.org 
[lkml]   [2018]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2 05/13] iommu/rockchip: Fix error handling in init
    From
    Date
    On 17/01/18 05:26, Tomasz Figa wrote:
    > On Tue, Jan 16, 2018 at 10:25 PM, Jeffy Chen <jeffy.chen@rock-chips.com> wrote:
    >> It's hard to undo bus_set_iommu() in the error path, so move it to the
    >> end of rk_iommu_probe().
    >
    > Does this work fine now? I remember we used to need this called in an
    > early initcall for all the ARM/ARM64 DMA stuff to work.

    It will do once we get to patch #11 (where the IOMMU_OF_DECLARE ensures
    that masters defer until iommu_register() has set ops with a non-NULL
    .of_xlate callback); in the meantime you might end up depending on DT
    probe order as to whether the master uses the IOMMU or not. I'd say it's
    up to you guys whether you consider that a bisection-breaker or not.

    Robin.

    \
     
     \ /
      Last update: 2018-01-18 00:20    [W:4.376 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site