From: Jens Axboe <axboe@suse.de>
To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Testing IDE-TCQ and Taskfile - doesn't work nicely:)
Date: Tue, 24 Jun 2003 10:06:41 +0200 [thread overview]
Message-ID: <20030624080641.GP7383@suse.de> (raw)
In-Reply-To: <Pine.SOL.4.30.0306232315480.8078-200000@mion.elka.pw.edu.pl>
On Mon, Jun 23 2003, Bartlomiej Zolnierkiewicz wrote:
> [ide] TCQ initialization fixes
>
> - do not enable TCQ in ide_init_drive(), its too early
> - enable TCQ in __ide_dma_on() only if CONFIG_BLK_DEV_IDE_TCQ_DEFAULT=y
>
> drivers/ide/ide-dma.c | 8 ++++----
> drivers/ide/ide-probe.c | 5 -----
> include/linux/ide.h | 1 -
> 3 files changed, 4 insertions(+), 10 deletions(-)
>
> diff -puN drivers/ide/ide-probe.c~ide-tcq-init-fixes drivers/ide/ide-probe.c
> --- linux-2.5.73/drivers/ide/ide-probe.c~ide-tcq-init-fixes Mon Jun 23 23:10:11 2003
> +++ linux-2.5.73-root/drivers/ide/ide-probe.c Mon Jun 23 23:10:11 2003
> @@ -983,7 +983,6 @@ static void ide_init_queue(ide_drive_t *
>
> blk_init_queue(q, do_ide_request, &ide_lock);
> q->queuedata = HWGROUP(drive);
> - drive->queue_setup = 1;
> blk_queue_segment_boundary(q, 0xffff);
>
> if (!hwif->rqsize)
> @@ -1005,10 +1004,6 @@ static void ide_init_queue(ide_drive_t *
> static void ide_init_drive(ide_drive_t *drive)
> {
> ide_toggle_bounce(drive, 1);
> -
> -#ifdef CONFIG_BLK_DEV_IDE_TCQ_DEFAULT
> - HWIF(drive)->ide_dma_queued_on(drive);
> -#endif
> }
>
> /*
> diff -puN drivers/ide/ide-dma.c~ide-tcq-init-fixes drivers/ide/ide-dma.c
> --- linux-2.5.73/drivers/ide/ide-dma.c~ide-tcq-init-fixes Mon Jun 23 23:10:11 2003
> +++ linux-2.5.73-root/drivers/ide/ide-dma.c Mon Jun 23 23:10:11 2003
> @@ -523,8 +523,7 @@ int __ide_dma_off_quietly (ide_drive_t *
> if (HWIF(drive)->ide_dma_host_off(drive))
> return 1;
>
> - if (drive->queue_setup)
> - HWIF(drive)->ide_dma_queued_off(drive);
> + HWIF(drive)->ide_dma_queued_off(drive);
>
> return 0;
> }
> @@ -585,8 +584,9 @@ int __ide_dma_on (ide_drive_t *drive)
> if (HWIF(drive)->ide_dma_host_on(drive))
> return 1;
>
> - if (drive->queue_setup)
> - HWIF(drive)->ide_dma_queued_on(drive);
> +#ifdef BLK_DEV_IDE_TCQ_DEFAULT
> + HWIF(drive)->ide_dma_queued_on(drive);
> +#endif
>
> return 0;
> }
> diff -puN include/linux/ide.h~ide-tcq-init-fixes include/linux/ide.h
> --- linux-2.5.73/include/linux/ide.h~ide-tcq-init-fixes Mon Jun 23 23:10:11 2003
> +++ linux-2.5.73-root/include/linux/ide.h Mon Jun 23 23:10:11 2003
> @@ -726,7 +726,6 @@ typedef struct ide_drive_s {
> unsigned ata_flash : 1; /* 1=present, 0=default */
> unsigned blocked : 1; /* 1=powermanagment told us not to do anything, so sleep nicely */
> unsigned vdma : 1; /* 1=doing PIO over DMA 0=doing normal DMA */
> - unsigned queue_setup : 1;
> unsigned addressing; /* : 3;
> * 0=28-bit
> * 1=48-bit
>
> _
Patch is nice and kills the ->queue_setup abomination, great.
--
Jens Axboe
next prev parent reply other threads:[~2003-06-24 7:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-23 19:45 Testing IDE-TCQ and Taskfile - doesn't work nicely:) Jan-Benedict Glaw
2003-06-23 21:18 ` Bartlomiej Zolnierkiewicz
2003-06-23 22:19 ` Jan-Benedict Glaw
2003-06-23 23:50 ` Jan-Benedict Glaw
2003-06-24 0:53 ` Bartlomiej Zolnierkiewicz
2003-06-24 6:31 ` Jan-Benedict Glaw
2003-06-24 13:44 ` Bartlomiej Zolnierkiewicz
2003-06-24 22:40 ` Jan-Benedict Glaw
2003-06-24 23:08 ` Bartlomiej Zolnierkiewicz
2003-06-25 18:22 ` SOLVED - " Jan-Benedict Glaw
2003-06-25 18:44 ` Bartlomiej Zolnierkiewicz
2003-06-25 19:05 ` Jan-Benedict Glaw
2003-06-25 19:30 ` Bartlomiej Zolnierkiewicz
2003-06-26 3:21 ` Zwane Mwaikambo
2003-06-26 5:58 ` Jan-Benedict Glaw
2003-06-24 8:06 ` Jens Axboe [this message]
2003-06-24 14:28 ` Jeff Garzik
2003-06-24 14:47 ` Jens Axboe
2003-06-24 15:39 ` Jeff Garzik
2003-06-29 2:17 ` Andre Hedrick
2003-06-29 8:14 ` Jan-Benedict Glaw
2003-06-29 9:30 ` Andre Hedrick
2003-06-29 10:45 ` Jan-Benedict Glaw
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=20030624080641.GP7383@suse.de \
--to=axboe@suse.de \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--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