mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Tejun Heo <tj@kernel.org>, Joerg Roedel <joerg.roedel@amd.com>,
	Jesse Barnes <jbarnes@virtuousgeek.org>,
	David Woodhouse <dwmw2@infradead.org>,
	FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: the arch/x86 maintainers <x86@kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	athena@fftw.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: fix iommu=nodac parameter handling
Date: Wed, 4 Nov 2009 13:28:27 +0100	[thread overview]
Message-ID: <20091104122827.GB11968@elte.hu> (raw)
In-Reply-To: <4AE5B52A.4050408@kernel.org>


* Tejun Heo <tj@kernel.org> wrote:

> nodac should forbid dac instead of enabling it.  Fix it.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: Matteo Frigo <athena@fftw.org>
> Cc: stable@kernel.org
> ---
> 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

  reply	other threads:[~2009-11-04 12:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-26 14:41 Tejun Heo
2009-11-04 12:28 ` Ingo Molnar [this message]
2009-11-05  4:44   ` FUJITA Tomonori
2009-11-08 13:07 ` [tip:core/iommu] x86: Fix " tip-bot for Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091104122827.GB11968@elte.hu \
    --to=mingo@elte.hu \
    --cc=athena@fftw.org \
    --cc=dwmw2@infradead.org \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=hpa@zytor.com \
    --cc=jbarnes@virtuousgeek.org \
    --cc=joerg.roedel@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=tj@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®