Re: ide-tape/ide-card broken in 2.2pre3 and greater

Andre M. Hedrick (hedrick@Astro.Dyer.Vanderbilt.Edu)
Sat, 9 Jan 1999 10:44:24 -0600 (CST)


Gadi,

I looked at what you did with ide-floppy and repeated with

/*
* Some tape drives require a long irq timeout
*/
#if 0
#define IDETAPE_WAIT_CMD 60
#else
#define IDETAPE_WAIT_CMD (5 * WAIT_CMD)
#endif

and I have two tapes under SMP streaming, opps, maybe one now.

What is the preferred wait timeout?

On Fri, 8 Jan 1999, Gadi Oxman wrote:

> Hi,
>
> Thanks for the report. By mistake my latest patch decreased the
> ide-tape irq timeout to 0.6 seconds instead of increasing it
> to 60 seconds.. The following patch will fix this.
>
> Gadi
>
> --- linux/drivers/block/ide-tape.c~ Wed Dec 30 23:27:40 1998
> +++ linux/drivers/block/ide-tape.c Fri Jan 8 08:30:58 1999
> @@ -483,7 +483,7 @@
> /*
> * Some tape drives require a long irq timeout
> */
> -#define IDETAPE_WAIT_CMD 60
> +#define IDETAPE_WAIT_CMD (60 * HZ)
>
> /*
> * DSC timings.
>
> On Wed, 6 Jan 1999, Matthew T Kohner wrote:
>
> > Seagate TR-4 (CONNER CTT8000-A) hooked up to a Acculogic sIDE-2/CD
> > isa card.
> > under 2.2.0pre1 and earlier, works fine.
> > didn't try pre2
> > under 2.2.0pre[3,4,5] tar gives the errors
> >
> > [root@x39-22 /root]# tar -cvf /dev/ht0 mail/
> > ide-tape: ht0: I/O error, pc = 34, key = 2, asc = 4, ascq = 1
> > mail/
> > mail/sent-mail
> > mail/saved-messages
> > ide-tape: ht0: I/O error, pc = a, key = 2, asc = 4, ascq = 1
> > tar: Cannot write to /dev/ht0: Input/output error
> > tar: Error is not recoverable: exiting now
> > ide-tape: ht0: I/O error, pc = 1, key = 2, asc = 4, ascq = 1
> >
> > and other errors like
> > Jan 6 21:04:23 x39-22 kernel: hdh: irq timeout: status=0xd0 { Busy }
> > Jan 6 21:04:23 x39-22 kernel: ide3: unexpected interrupt, status=0xff,
> > count=2
> > Jan 6 21:04:23 x39-22 kernel: hdh: ATAPI reset complete
> > Jan 6 21:04:24 x39-22 kernel: ide-tape: ht0: I/O error, pc = a, key =
> > 2, asc
> > = 4, ascq = 1
> > Jan 6 21:04:25 x39-22 last message repeated 100 times
> > Jan 6 21:04:25 x39-22 kernel: ide-tape: ht0: I/O error, pc = 10, key =
> > 2, asc
> > = 4, ascq = 1
> > Jan 6 21:04:25 x39-22 kernel: ide-tape: Couldn't write a filemark
> > Jan 6 21:04:25 x39-22 kernel: ide-tape: ht0: I/O error, pc = 1, key =
> > 2, asc
> > = 4, ascq = 1
> >
> >
> >
> > I'm not a kernel hacker maybe so someone else has some idea what's
> > happening here. If there's any revelant info I've forgotting, just ask
> > tia
> > -Matt
> > ------------------------------------------------
> > Matt Kohner kohn0035@tc.umn.edu
> > Comp Sci major at U of Minnesota
> > ------------------------------------------------
> >
> >
> >
> >
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.rutgers.edu
> > Please read the FAQ at http://www.tux.org/lkml/
> >
> >
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

Cheers,
Andre Hedrick
The (NEW) Linux IDE guy
The APC UPS Specialist for Linux

http://www.dyer.vanderbilt.edu/server/udma/
http://www.dyer.vanderbilt.edu/server/apcupsd/apcupsd-3.5.2.bin.tar.gz

You just need a bigger hammer, or learn how to swing the one you have better.
(C) me.....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/