lkml.org 
[lkml]   [2017]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 11/16] iommu/vt-d: use threaded irq for dmar_fault
    Date
    Currently, dmar fault IRQ handler does nothing more than rate
    limited printk, no critical hardware handling need to be done
    in IRQ context.
    Convert it to threaded IRQ would allow fault processing that
    requires process context. e.g. find out offending device based
    on source ID in the fault rasons.

    Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
    ---
    drivers/iommu/dmar.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
    index 2fbff8b..ae33d61 100644
    --- a/drivers/iommu/dmar.c
    +++ b/drivers/iommu/dmar.c
    @@ -1748,7 +1748,8 @@ int dmar_set_interrupt(struct intel_iommu *iommu)
    return -EINVAL;
    }

    - ret = request_irq(irq, dmar_fault, IRQF_NO_THREAD, iommu->name, iommu);
    + ret = request_threaded_irq(irq, NULL, dmar_fault,
    + IRQF_ONESHOT, iommu->name, iommu);
    if (ret)
    pr_err("Can't request irq\n");
    return ret;
    --
    2.7.4
    \
     
     \ /
      Last update: 2017-10-06 01:03    [W:4.052 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site