linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Kyle McMartin <kyle@parisc-linux.org>
Cc: linux-ide@vger.kernel.org, parisc-linux@lists.parisc-linux.org,
	Jens Axboe <axboe@suse.de>
Subject: Re: Why toggle_bounce only for disks?
Date: Fri, 19 Aug 2005 12:07:44 +0200	[thread overview]
Message-ID: <58cb370e05081903073d9a2b73@mail.gmail.com> (raw)
In-Reply-To: <20050806235615.GK3505@roadwarrior.mcmartin.ca>

Hi,

http://www.ussg.iu.edu/hypermail/linux/kernel/0209.1/1074.html

Jens, is this still true??

Bartlomiej

On 8/7/05, Kyle McMartin <kyle@parisc-linux.org> wrote:
> Ahoi,
> 
> The following patch fixes a crash caused by attempting to bounce buffer
> when an IDE CD-ROM is used on a machine with an IO-MMU. [At least, this
> patch fixes things so I can use my IDE CD-ROM behind an ns87415 on a
> HP PA-RISC workstation.]
> 
> Why was this only allowed for disks?
> 
> --- a/drivers/ide/ide-lib.c   18 Jul 2005 18:46:30 -0000
> +++ b/drivers/ide/ide-lib.c   6 Aug 2005 20:28:04 -0000
> @@ -410,7 +410,7 @@ void ide_toggle_bounce(ide_drive_t *driv
>  {
>         u64 addr = BLK_BOUNCE_HIGH;     /* dma64_addr_t */
> 
> -       if (on && drive->media == ide_disk) {
> +       if (on) {
>                 if (!PCI_DMA_BUS_IS_PHYS)
>                         addr = BLK_BOUNCE_ANY;
>                 else if (HWIF(drive)->pci_dev)
> 
> Cheers,
> --
> Kyle McMartin

  reply	other threads:[~2005-08-19 10:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-06 23:56 Why toggle_bounce only for disks? Kyle McMartin
2005-08-19 10:07 ` Bartlomiej Zolnierkiewicz [this message]
2005-08-19 10:21   ` Jens Axboe
2005-08-19 13:32     ` [parisc-linux] " James Bottomley
2005-08-19 14:03       ` Jens Axboe

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=58cb370e05081903073d9a2b73@mail.gmail.com \
    --to=bzolnier@gmail.com \
    --cc=axboe@suse.de \
    --cc=kyle@parisc-linux.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=parisc-linux@lists.parisc-linux.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;
as well as URLs for NNTP newsgroup(s).