linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: sebek64@post.cz (Marcel Sebek)
To: Jens Axboe <axboe@suse.de>
Cc: Hikaru1@verizon.net, linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: ide-cd in 2.6.8-2.6.10 and 2.4.26-2.4.28 high cpu use with dma
Date: Sun, 9 Jan 2005 21:47:29 +0100	[thread overview]
Message-ID: <20050109204729.GA3899@penguin.localdomain> (raw)
In-Reply-To: <20050109153212.GA28417@suse.de>

[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]

On Sun, Jan 09, 2005 at 04:32:16PM +0100, Jens Axboe wrote:
> On Sun, Jan 09 2005, Hikaru1@verizon.net wrote:
> > A minor mistake. I forgot to state explicitly that the problem only appears
> > with writing audio cds. Writing data cds does not cause problems.
> 
> The change isn't safe, it was made for a reason since some drives
> timeout if the alignment/length isn't correct. It probably is a little
> pessimistic right now, can you see if this just works for you?
> 
> ===== drivers/ide/ide-cd.c 1.105 vs edited =====
> --- 1.105/drivers/ide/ide-cd.c	2005-01-08 06:43:53 +01:00
> +++ edited/drivers/ide/ide-cd.c	2005-01-09 16:31:53 +01:00
> @@ -1915,7 +1915,7 @@
>  		/*
>  		 * check if dma is safe
>  		 */
> -		if ((rq->data_len & mask) || (addr & mask))
> +		if ((rq->data_len & 3) || (addr & mask))
>  			info->dma = 0;
>  	}
> 

I saw the same bug on my computer and this patch fixed it. Now I can
burn audio CDs at 40x speed instead of 24x.


-- 
Marcel Sebek
jabber: sebek@jabber.cz                     ICQ: 279852819
linux user number: 307850                 GPG ID: 5F88735E
GPG FP: 0F01 BAB8 3148 94DB B95D  1FCA 8B63 CA06 5F88 735E


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-01-09 20:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-09 10:52 PROBLEM: ide-cd in 2.6.8-2.6.10 and 2.4.26-2.4.28 high cpu use with dma Hikaru1
2005-01-09 10:54 ` Hikaru1
2005-01-09 12:30   ` Hikaru1
2005-01-09 15:32     ` Jens Axboe
2005-01-09 20:47       ` Marcel Sebek [this message]
2005-01-10  9:10       ` Hikaru1
2005-01-11  8:25         ` Jens Axboe
2005-01-09 23:01     ` Alan Cox
2005-01-10  8:45       ` 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=20050109204729.GA3899@penguin.localdomain \
    --to=sebek64@post.cz \
    --cc=Hikaru1@verizon.net \
    --cc=axboe@suse.de \
    --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;
as well as URLs for NNTP newsgroup(s).