From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: petkovbb@gmail.com
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
valerio.p@libero.it, linux-ide@vger.kernel.org
Subject: Re: http://bugzilla.kernel.org/show_bug.cgi?id=11742
Date: Sat, 25 Oct 2008 14:58:45 +0200 [thread overview]
Message-ID: <200810251458.46140.bzolnier@gmail.com> (raw)
In-Reply-To: <20081024065043.GA4762@gollum.tnic>
On Friday 24 October 2008, Borislav Petkov wrote:
> Hi,
>
> > Is the culprit REQ_TYPE_BLOCK_PC request or REQ_TYPE_ATA_PC one?
>
> Well, from what I see from the latest traces Valerio sent me, it is always a
> REQ_TYPE_BLOCK_PC with sizes for rq->data_len which fail in the alignment test:
>
> rq->data_len: 0xc,
> rq->data_len: 0xf810,
[...]
> Those are, according to Valerio, taken during burning which looks like something
> aroung 64K requests which fail the rq->data_len & alignment test where alignment
> is 0x1f. The would've passed the old test rq->data_len & 0xf.
OK, I see it now after your mail & looking at the original commit:
@@ -1205,7 +1210,8 @@ static ide_startstop_t cdrom_do_block_pc(ide_drive_t *drive, struct request *rq)
* NOTE! The "len" and "addr" checks should possibly have
* separate masks.
*/
- if ((rq->data_len & 15) || (addr & mask))
+ alignment = queue_dma_alignment(q) | q->dma_pad_mask;
+ if (addr & alignment || rq->data_len & alignment)
info->dma = 0;
if (!((addr & stack_mask) ^
Please note the comment about separate masks... This chunk of commit
needs to be reverted as it clearly wasn't an intended change.
> /me researching DMA alignment requirements...
It is a combination of host and device requirements.
For 'rq->data_len' it should be 16 bytes because some devices fail otherwise.
For 'addr' we may try to use 4 bytes instead of the current 32 ones but lets
fix the regression first.
Thanks,
Bart
next prev parent reply other threads:[~2008-10-25 13:01 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-18 18:07 http://bugzilla.kernel.org/show_bug.cgi?id=11742 Borislav Petkov
2008-10-20 2:20 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 FUJITA Tomonori
2008-10-20 6:07 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Borislav Petkov
2008-10-21 23:57 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 FUJITA Tomonori
2008-10-22 6:12 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Borislav Petkov
2008-10-22 6:50 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 FUJITA Tomonori
2008-10-22 11:27 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Boris Petkov
2008-10-22 13:30 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Valerio Passini
2008-10-22 14:45 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Valerio Passini
2008-10-22 15:57 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Boris Petkov
2008-10-22 22:20 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Valerio Passini
2008-10-23 6:09 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Borislav Petkov
2008-10-23 13:53 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Valerio Passini
2008-10-22 20:15 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Bartlomiej Zolnierkiewicz
2008-10-24 6:50 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Borislav Petkov
2008-10-25 12:58 ` Bartlomiej Zolnierkiewicz [this message]
2008-10-25 13:42 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Sergei Shtylyov
2008-10-25 17:47 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Borislav Petkov
2008-10-25 18:21 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Sergei Shtylyov
2008-10-25 18:27 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Sergei Shtylyov
2008-10-25 18:43 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Borislav Petkov
2008-10-25 18:12 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Borislav Petkov
2008-10-26 8:38 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Valerio Passini
2008-10-26 14:58 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Borislav Petkov
2008-10-26 20:01 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Valerio Passini
2008-10-27 6:15 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Borislav Petkov
2008-10-27 10:14 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Valerio Passini
2008-10-27 10:47 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Sergei Shtylyov
2008-10-27 10:55 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Boris Petkov
2008-10-27 11:15 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Sergei Shtylyov
2008-10-27 19:46 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 Bartlomiej Zolnierkiewicz
2008-10-27 5:46 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 FUJITA Tomonori
2008-10-27 8:37 ` http://bugzilla.kernel.org/show_bug.cgi?id=11742 FUJITA Tomonori
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=200810251458.46140.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=linux-ide@vger.kernel.org \
--cc=petkovbb@gmail.com \
--cc=valerio.p@libero.it \
/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).