* Re: [patch 07/16] ide-disk: Fix LBA8 DMA
@ 2005-05-25 9:12 Chuck Ebbert
2005-05-25 13:29 ` Chris Wright
0 siblings, 1 reply; 4+ messages in thread
From: Chuck Ebbert @ 2005-05-25 9:12 UTC (permalink / raw)
To: Chuck Ebbert
Cc: Chris Wright, linux-kernel, linux-stable, Justin Forbes,
Zwane Mwaikambo, Theodore Ts'o, Randy Dunlap, Chuck Wolber,
Linus Torvalds, Andrew Morton, Alan Cox,
Bartlomiej Zolnierkiewicz, Daniel Drake
On Wed, 25 May 2005 at 03:57:14 -0400, Chuck Ebbert wrote:
> On Mon, 23 May 2005 at 16:24:14 -0700, Chris Wright wrote:
>
> > --- linux-2.6.11.10.orig/drivers/ide/ide-disk.c 2005-05-16 10:50:31.000000000 -0700
> > +++ linux-2.6.11.10/drivers/ide/ide-disk.c 2005-05-20 09:36:31.933319224 -0700
> > @@ -133,6 +133,8 @@
> > if (hwif->no_lba48_dma && lba48 && dma) {
> > if (block + rq->nr_sectors > 1ULL << 28)
>
> ^
>
> Maybe I'm an idiot, but shouldn't that be ">="? Either that or it should be
> comparing to (1ULL < 28 - 1)?
Oops, I forgot this was in my outbox and sent it before review. This code
is fine... (block + rq->nr_sectors) is one past the actual end of the read.
> > dma = 0;
> > + else
> > + lba48 = 0;
>
> ^^^^^^^^^^^^^^^^^^^^^^^
>
> Spaces instead of tabs?
But the patch really does seem to be tabdamaged...
--
Chuck
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 07/16] ide-disk: Fix LBA8 DMA
2005-05-25 9:12 [patch 07/16] ide-disk: Fix LBA8 DMA Chuck Ebbert
@ 2005-05-25 13:29 ` Chris Wright
0 siblings, 0 replies; 4+ messages in thread
From: Chris Wright @ 2005-05-25 13:29 UTC (permalink / raw)
To: Chuck Ebbert
Cc: Chris Wright, linux-kernel, linux-stable, Justin Forbes,
Zwane Mwaikambo, Theodore Ts'o, Randy Dunlap, Chuck Wolber,
Linus Torvalds, Andrew Morton, Alan Cox,
Bartlomiej Zolnierkiewicz, Daniel Drake
* Chuck Ebbert (76306.1226@compuserve.com) wrote:
> > > + else
> > > + lba48 = 0;
> >
> > ^^^^^^^^^^^^^^^^^^^^^^^
> >
> > Spaces instead of tabs?
>
> But the patch really does seem to be tabdamaged...
>
Yes, I'll refresh, thanks.
-chris
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 07/16] ide-disk: Fix LBA8 DMA
@ 2005-05-25 7:57 Chuck Ebbert
0 siblings, 0 replies; 4+ messages in thread
From: Chuck Ebbert @ 2005-05-25 7:57 UTC (permalink / raw)
To: Chris Wright
Cc: linux-kernel, linux-stable, Justin Forbes, Zwane Mwaikambo,
Theodore Ts'o, Randy Dunlap, Chuck Wolber, Linus Torvalds,
Andrew Morton, Alan Cox, Bartlomiej Zolnierkiewicz, Daniel Drake
On Mon, 23 May 2005 at 16:24:14 -0700, Chris Wright wrote:
> --- linux-2.6.11.10.orig/drivers/ide/ide-disk.c 2005-05-16 10:50:31.000000000 -0700
> +++ linux-2.6.11.10/drivers/ide/ide-disk.c 2005-05-20 09:36:31.933319224 -0700
> @@ -133,6 +133,8 @@
> if (hwif->no_lba48_dma && lba48 && dma) {
> if (block + rq->nr_sectors > 1ULL << 28)
^
Maybe I'm an idiot, but shouldn't that be ">="? Either that or it should be
comparing to (1ULL < 28 - 1)?
> dma = 0;
> + else
> + lba48 = 0;
^^^^^^^^^^^^^^^^^^^^^^^
Spaces instead of tabs?
> }
>
> if (!dma) {
--
Chuck
^ permalink raw reply [flat|nested] 4+ messages in thread
* [patch 07/16] ide-disk: Fix LBA8 DMA
2005-05-23 23:15 [00/16] -stable review Chris Wright
@ 2005-05-23 23:24 ` Chris Wright
0 siblings, 0 replies; 4+ messages in thread
From: Chris Wright @ 2005-05-23 23:24 UTC (permalink / raw)
To: linux-kernel, stable
Cc: Justin Forbes, Zwane Mwaikambo, Theodore Ts'o, Randy Dunlap,
Chuck Wolber, torvalds, akpm, alan, bzolnier, dsd
From: Daniel Drake <dsd@gentoo.org>
This is from Gentoo's 2.6.11 patchset. A problem was introduced in 2.6.10
where some users could not enable DMA on their disks (particularly ALi15x3
users). This was a small mistake with the no_lba48_dma flag.
I can't find the exact commit but this is definately included in 2.6.12-rc4.
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/ide/ide-disk.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
--- linux-2.6.11.10.orig/drivers/ide/ide-disk.c 2005-05-16 10:50:31.000000000 -0700
+++ linux-2.6.11.10/drivers/ide/ide-disk.c 2005-05-20 09:36:31.933319224 -0700
@@ -133,6 +133,8 @@
if (hwif->no_lba48_dma && lba48 && dma) {
if (block + rq->nr_sectors > 1ULL << 28)
dma = 0;
+ else
+ lba48 = 0;
}
if (!dma) {
@@ -146,7 +148,7 @@
/* FIXME: SELECT_MASK(drive, 0) ? */
if (drive->select.b.lba) {
- if (drive->addressing == 1) {
+ if (lba48) {
task_ioreg_t tasklets[10];
pr_debug("%s: LBA=0x%012llx\n", drive->name, block);
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-25 13:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-25 9:12 [patch 07/16] ide-disk: Fix LBA8 DMA Chuck Ebbert
2005-05-25 13:29 ` Chris Wright
-- strict thread matches above, loose matches on Subject: below --
2005-05-25 7:57 Chuck Ebbert
2005-05-23 23:15 [00/16] -stable review Chris Wright
2005-05-23 23:24 ` [patch 07/16] ide-disk: Fix LBA8 DMA Chris Wright
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®