lkml.org 
[lkml]   [2009]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[12/18] x86: Fix iommu=nodac parameter handling
    2.6.27-stable review patch.  If anyone has any objections, please let us know.

    ------------------
    From: Tejun Heo <tj@kernel.org>
    commit 2ae8bb75db1f3de422eb5898f2a063c46c36dba8 upstream.

    iommu=nodac should forbid dac instead of enabling it. Fix it.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
    Cc: Matteo Frigo <athena@fftw.org>
    LKML-Reference: <4AE5B52A.4050408@kernel.org>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    arch/x86/kernel/pci-dma.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)
    --- a/arch/x86/kernel/pci-dma.c
    +++ b/arch/x86/kernel/pci-dma.c
    @@ -175,7 +175,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-12-17 01:59    [from the cache]
    ©2003-2011 Jasper Spaans