Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

[PATCH] x86: fix iommu=nodac parameter handling

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


tj at kernel

Oct 26, 2009, 7:41 AM

Post #1 of 3 (56 views)
Permalink
[PATCH] x86: fix iommu=nodac parameter handling

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

Signed-off-by: Tejun Heo <tj [at] kernel>
Cc: Matteo Frigo <athena [at] fftw>
Cc: stable [at] kernel
---
This was posted several months ago in a two patch series. The second
one was rejected by Alan and with that the first one got lost too
although it's an apparent bug fix. Matteo hit this bug recently and
reminded me about this patch. So, regenerated and reposting.

Thanks.

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 d20009b..8cf3996 100644
--- a/arch/x86/kernel/pci-dma.c
+++ b/arch/x86/kernel/pci-dma.c
@@ -216,7 +216,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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


mingo at elte

Nov 4, 2009, 4:28 AM

Post #2 of 3 (44 views)
Permalink
Re: [PATCH] x86: fix iommu=nodac parameter handling [In reply to]

* Tejun Heo <tj [at] kernel> wrote:

> nodac should forbid dac instead of enabling it. Fix it.
>
> Signed-off-by: Tejun Heo <tj [at] kernel>
> Cc: Matteo Frigo <athena [at] fftw>
> Cc: stable [at] kernel
> ---
> This was posted several months ago in a two patch series. The second
> one was rejected by Alan and with that the first one got lost too
> although it's an apparent bug fix. Matteo hit this bug recently and
> reminded me about this patch. So, regenerated and reposting.
>
> Thanks.
>
> 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 d20009b..8cf3996 100644
> --- a/arch/x86/kernel/pci-dma.c
> +++ b/arch/x86/kernel/pci-dma.c
> @@ -216,7 +216,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;

(Cc:-ed more interested parties.)

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


fujita.tomonori at lab

Nov 4, 2009, 8:44 PM

Post #3 of 3 (46 views)
Permalink
Re: [PATCH] x86: fix iommu=nodac parameter handling [In reply to]

On Wed, 4 Nov 2009 13:28:27 +0100
Ingo Molnar <mingo [at] elte> wrote:

>
> * Tejun Heo <tj [at] kernel> wrote:
>
> > nodac should forbid dac instead of enabling it. Fix it.
> >
> > Signed-off-by: Tejun Heo <tj [at] kernel>
> > Cc: Matteo Frigo <athena [at] fftw>
> > Cc: stable [at] kernel
> > ---
> > This was posted several months ago in a two patch series. The second
> > one was rejected by Alan and with that the first one got lost too
> > although it's an apparent bug fix. Matteo hit this bug recently and
> > reminded me about this patch. So, regenerated and reposting.
> >
> > Thanks.
> >
> > 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 d20009b..8cf3996 100644
> > --- a/arch/x86/kernel/pci-dma.c
> > +++ b/arch/x86/kernel/pci-dma.c
> > @@ -216,7 +216,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;
>
> (Cc:-ed more interested parties.)

Looks fine to me.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.