public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Q: blk_queue_bounce_limit
Date: Mon, 14 Jan 2002 08:24:35 +0100	[thread overview]
Message-ID: <20020114082435.G13929@suse.de> (raw)
In-Reply-To: <3C415FE2.24CB084B@colorfullife.com>
In-Reply-To: <3C415FE2.24CB084B@colorfullife.com>

On Sun, Jan 13 2002, Manfred Spraul wrote:
> I think the selection of the ISA pool in blk_queue_bounce_limit is
> wrong:
> it switches to the ISA pool if the requested DMA address is equal to
> 16 MB. I think it must switch if the requested bounce limit is smaller
> than max_low_pfn.
> 
> <<<<<<<
> -	if (dma_addr == BLK_BOUNCE_ISA) {
> +	if (bounce_pfn < blk_max_low_pfn) {
> +		BUG_ON(dma_addr < BLK_BOUNCE_ISA);
>                 init_emergency_isa_pool();
>                 q->bounce_gfp = GFP_NOIO | GFP_DMA;
>         } else
>                 q->bounce_gfp = GFP_NOHIGHIO;
> <<<
> 
> Usually both lines are identical, except:
> - If only 16 MB are installed, then bouncing to ISA is never needed.
> - There could be broken devices that only support DMA to < 512 MB.
> For such a device no bounce it needed if less than 512 MB is installed,
> and if more is installed we must bounce to ISA. (since we don't have
> a 512MB zone).
> - Bouncing to less that 16 MB is not supported.

Yes it's a grey area, I'll add your patch.

-- 
Jens Axboe


      reply	other threads:[~2002-01-14  7:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-13 10:22 Q: blk_queue_bounce_limit Manfred Spraul
2002-01-14  7:24 ` Jens Axboe [this message]

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=20020114082435.G13929@suse.de \
    --to=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.com \
    /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