mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Muli Ben-Yehuda <muli@il.ibm.com>
To: Andi Kleen <ak@suse.de>
Cc: Jon Mason <jdmason@us.ibm.com>,
	linux-kernel@vger.kernel.org, discuss@x86-64.org
Subject: swiotlb=force fix
Date: Thu, 27 Jul 2006 13:15:34 +0300	[thread overview]
Message-ID: <20060727101534.GJ6197@rhun.haifa.ibm.com> (raw)

Hi Andi,

I was looking at your swiotlb=force fix at
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.18-rc2/2.6.18-rc2-mm1/broken-out/x86_64-mm-fix-swiotlb-force.patch.

In general I agree with the patch (and thanks for fixing it).

> -	if (!iommu_detected && !no_iommu &&
> -	    (end_pfn > MAX_DMA32_PFN || force_iommu))
> +	if (!iommu_detected && !no_iommu && end_pfn > MAX_DMA32_PFN)
>  	       swiotlb = 1;

what is the expected outcome if the user specifies 'iommu=force' with
no HW IOMMU in the machine and swiotlb compiled in? we thought the
path of least surprise is to enable swiotlb unconditionally in this
case. You removed the check for force_iommu here so now this set of
command line options will *not* turn on swiotlb unless there's more
than 4G in the machine, which can be surprising.

> +extern int swiotlb_force;
> +
>  #ifdef CONFIG_SWIOTLB
>  extern int swiotlb;
>  #else
>  #define swiotlb 0
>  #endif

Any reason not to move this into the CONFIG_SWIOTLB bit the same way
'extern int swiotlb' is declared?

Cheers,
Muli

                 reply	other threads:[~2006-07-27 10:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20060727101534.GJ6197@rhun.haifa.ibm.com \
    --to=muli@il.ibm.com \
    --cc=ak@suse.de \
    --cc=discuss@x86-64.org \
    --cc=jdmason@us.ibm.com \
    --cc=linux-kernel@vger.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®