lkml.org 
[lkml]   [2009]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 10/12] amd-iommu: disable round-robin allocator for CONFIG_IOMMU_STRESS
    Date
    [ impact: put high load on iommu tlb to find stale entry bugs ]

    Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
    ---
    arch/x86/kernel/amd_iommu.c | 5 +++++
    1 files changed, 5 insertions(+), 0 deletions(-)

    diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
    index 31d56c3..543822b 100644
    --- a/arch/x86/kernel/amd_iommu.c
    +++ b/arch/x86/kernel/amd_iommu.c
    @@ -783,6 +783,11 @@ static unsigned long dma_ops_alloc_addresses(struct device *dev,
    {
    unsigned long address;

    +#ifdef CONFIG_IOMMU_STRESS
    + dom->next_address = 0;
    + dom->need_flush = true;
    +#endif
    +
    address = dma_ops_area_alloc(dev, dom, pages, align_mask,
    dma_mask, dom->next_address);

    --
    1.6.3.1



    \
     
     \ /
      Last update: 2009-05-22 14:27    [W:0.028 / U:0.180 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site