lkml.org 
[lkml]   [2009]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 2.6.29-rc7 1/2] x86: fix iommu=nodac parameter handling
    nodac should forbid dac not instead of enabling it.  Fix it.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    ---
    arch/x86/kernel/pci-dma.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c
    index b254285..69c7a8d 100644
    --- a/arch/x86/kernel/pci-dma.c
    +++ b/arch/x86/kernel/pci-dma.c
    @@ -197,7 +197,7 @@ static __init int iommu_setup(char *p)
    if (!strncmp(p, "allowdac", 8))
    forbid_dac = 0;
    if (!strncmp(p, "nodac", 5))
    - forbid_dac = -1;
    + forbid_dac = 1;
    if (!strncmp(p, "usedac", 6)) {
    forbid_dac = -1;
    return 1;

    \
     
     \ /
      Last update: 2009-03-04 03:35    [W:0.027 / U:31.252 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site