Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 1999 15:53:30 +1100
From:      "John Saunders" <john@nlc.net.au>
To:        "FreeBSD current" <freebsd-current@FreeBSD.ORG>
Subject:   Latest kernel quirks
Message-ID:  <04c201bf37ca$2f8bb630$6cb611cb@scitec.com.au>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_04BF_01BF3826.628CA380
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I have just cvsupped and built the latest -current kernel and have noticed
a new quirk plus an old quirk or 2. uname -a output is:

FreeBSD XXXX 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Fri Nov 26 02:06:45 EST
1999     root@pacer.nlc.net.au:/usr/src/sys/compile/PACER  i386

1) CMOS clock problem, dmesg output:

      "Invalid time in real time clock.
      Check and reset the date immediately!"

   The system goes to Jan 27 1999 until ntpdate kicks in and fixes it.
   However each time I boot the time is bad again. This could be a
   hardware glitch although it was perfectly timed to start happening
   just as I booted into a newly built kernel...very suspicious.

2) ISA unexpected tag problem, dmesg output:

      "pci0: unknown card (vendor=0x121a, dev=0x0001) at 11.0"
      "isa0: unexpected tag 14"

    The PCI device is a Diamond Monster 3D (3Dfx Voodoo 1). I don't know
    if there is a relationship or if it is pue chance that they are
    located next to each other. This has been long standing and is not
    a recent gremlin, it doesn't seem to affect anything.

3) The new ATA drivers have a display formatting bug that results in the
   following output if a CDROM doesn't doesn't supply speed info:

      ", 512KB buffer, PIO"

   Patch is attached with MIME to save tabs and formatting. I think I
   sent this to Soren a while ago, although the latest commits from him
   didn't fix the problem. Maybe they got lost, as he was very responsive
   to a previous patch.

4) My Pioneer DVD drive causes the following:

      "atapi: MODE_SENSE_BIG - UNIT ATTENTION skey=6 asc=29 ascq=00 error=00
      acd0: <Pioneer DVD-ROM ATAPIModel DVD-103S 0116/E1.16> CDROM drive at
ata1 as slave"

   Is the MODE_SENSE_BIG a problem report or a diagnostic output.

Thanks.
--            +------------------------------------------------------------+
        .     | John Saunders  - mailto:john@nlc.net.au            (EMail) |
    ,--_|\    |                - http://www.nlc.net.au/              (WWW) |
   /  Oz  \   |                - 02-9489-4932 or 041-822-3814      (Phone) |
   \_,--\_/   | NORTHLINK COMMUNICATIONS P/L - Supplying a professional,   |
         v    | and above all friendly, internet connection service.       |
              +------------------------------------------------------------+


------=_NextPart_000_04BF_01BF3826.628CA380
Content-Type: application/octet-stream;
	name="atapi-cd.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="atapi-cd.patch"

--- atapi-cd.c.orig	Wed Oct 13 23:06:09 1999=0A=
+++ atapi-cd.c	Wed Oct 13 23:11:06 1999=0A=
@@ -259,9 +259,10 @@=0A=
 	   cdp->atp->controller->lun,=0A=
 	   (cdp->atp->unit =3D=3D ATA_MASTER) ? "master" : "slave ");=0A=
 =0A=
+    printf("acd%d:", cdp->lun);=0A=
+    comma =3D 0;=0A=
     if (cdp->cap.cur_read_speed) {=0A=
-	printf("acd%d: ", cdp->lun);=0A=
-	printf("read %dKB/s", cdp->cap.cur_read_speed * 1000 / 1024);=0A=
+	printf(" read %dKB/s", cdp->cap.cur_read_speed * 1000 / 1024);=0A=
 	if (cdp->cap.max_read_speed) =0A=
 	    printf(" (%dKB/s)", cdp->cap.max_read_speed * 1000 / 1024);=0A=
 	if ((cdp->cap.cur_write_speed) &&=0A=
@@ -271,11 +272,13 @@=0A=
 	    if (cdp->cap.max_write_speed)=0A=
 		printf(" (%dKB/s)", cdp->cap.max_write_speed * 1000 / 1024);=0A=
 	}=0A=
+ 	comma =3D 1;=0A=
     }=0A=
-    if (cdp->cap.buf_size)=0A=
-	printf(", %dKB buffer", cdp->cap.buf_size);=0A=
-    printf(", %s\n", ata_mode2str(cdp->atp->controller->mode[=0A=
-				  (cdp->atp->unit =3D=3D ATA_MASTER) ? 0 : 1]));=0A=
+    if (cdp->cap.buf_size) {=0A=
+	printf("%s %dKB buffer", comma ? "," : "", cdp->cap.buf_size); comma =
=3D 1;=0A=
+    }=0A=
+    printf("%s %s\n", comma ? "," : "", =
ata_mode2str(cdp->atp->controller->mode[=0A=
+				  (cdp->atp->unit =3D=3D ATA_MASTER) ? 0 : 1])); comma =3D 1;=0A=
 =0A=
     printf("acd%d: supported read types:", cdp->lun);=0A=
     comma =3D 0;=0A=

------=_NextPart_000_04BF_01BF3826.628CA380--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?04c201bf37ca$2f8bb630$6cb611cb>