Re: IDE Driver Problems

T Taneli Vahakangas (vahakang@cs.Helsinki.FI)
Sat, 11 Jul 1998 10:37:23 +0300 (EEST)


[Mark, this is sent to you too, since I found where in the kernel it tries
to set multmode (to 0).]

On Thu, 9 Jul 1998, Paul G. Fitzgerald wrote:

> Hello,
>
> I just purchased a brand new Seagate Medalist 6531 (Model ST36531A) to be
> used as the primary hard drive of my new Linux server.
>
> I noticed some strange errors:
>
> Jul 1 15:01:57 dt060n76 kernel: Partition check:
> Jul 1 15:01:57 dt060n76 kernel: hda:hda: set_multmode: status=0x51
> DriveReady SeekComplete Error }
> Jul 1 15:01:57 dt060n76 kernel: hda: set_multmode: error=0x04
> DriveStatusError }
> Jul 1 15:01:57 dt060n76 kernel: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 >
>
> I don't know enough about ide device driver programming to understand
> everything going on in ide.c.
>
> I can change #define FANCY_STATUS_DUMPS from 1 to 0 in ide.h to keep these
> messages from showing up, but that really doesn't fix my problem.
>
> Has anybody run into this before?

I see it too, with my ST34321A. The following patch makes the boot-up
error messages go away (it is against 2.1.108)

diff -ur linux/drivers/block/ide-disk.c linux.../drivers/block/ide-disk.c
--- linux/drivers/block/ide-disk.c Sat Jul 11 03:02:00 1998
+++ linux.../drivers/block/ide-disk.c Sat Jul 11 02:55:04 1998
@@ -735,7 +735,7 @@
drive->mult_req = INITIAL_MULT_COUNT;
if (drive->mult_req > id->max_multsect)
drive->mult_req = id->max_multsect;
- if (drive->mult_req || ((id->multsect_valid & 1) && id->multsect))
+ if (drive->mult_req && (id->multsect_valid & 1))
drive->special.b.set_multmode = 1;
}
}

Sorry, I don't understand what the old code was trying to do. Now it just
doesn't do that anymore :) Yes, I actually tried this and at least on my
machine the error messages went away. The story: it tried to set multcount
on your drive to 0. The drive can't do that (although it claims it can,
since multsect_valid is 1!)

Mark, if you're reading this, could you please comment?

> All help is appreciated,
>
> Paul Fitzgerald
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
>

Taneli <vahakang@cs.helsinki.fi>

-
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.altern.org/andrebalsa/doc/lkml-faq.html