• Z
    iommu: set the default iommu-dma mode as non-strict · 08b9edc9
    Zhen Lei 提交于
    hulk inclusion
    category: bugfix
    bugzilla: NA
    CVE: NA
    
    The non-strict smmu mode has significant performance gains and can
    resolve the nvme soft lockup problem. We enable it by default.
    
    -----------------------------------------------------
    
    Currently, many peripherals are faster than before. For example, the top
    speed of the older netcard is 10Gb/s, and now it's more than 25Gb/s. But
    when iommu page-table mapping enabled, it's hard to reach the top speed
    in strict mode, because of frequently map and unmap operations. In order
    to keep abreast of the times, I think it's better to set non-strict as
    default.
    
    Below it's our iperf performance data of 25Gb netcard:
    strict mode: 18-20 Gb/s
    non-strict mode: 23.5 Gb/s
    Signed-off-by: NZhen Lei <thunder.leizhen@huawei.com>
    Signed-off-by: NXie XiuQi <xiexiuqi@huawei.com>
    Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
    Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
    08b9edc9
iommu.c 51.1 KB