From owner-freebsd-current Wed Jul 11 17:11:56 2001 Delivered-To: freebsd-current@freebsd.org Received: from reason.levels.unisa.edu.au (reason.levels.unisa.edu.au [130.220.33.11]) by hub.freebsd.org (Postfix) with ESMTP id 55B8037B403 for ; Wed, 11 Jul 2001 17:11:50 -0700 (PDT) (envelope-from cisbjc@reason.levels.unisa.edu.au) Received: from reason.levels.unisa.edu.au (cis202068.levels.unisa.edu.au [130.220.37.202]) by reason.levels.unisa.edu.au (8.9.3/8.9.3) with ESMTP id JAA03572 for ; Thu, 12 Jul 2001 09:41:44 +0930 (CST) Message-ID: <3B4CEB1C.37285B20@reason.levels.unisa.edu.au> Date: Thu, 12 Jul 2001 09:41:08 +0930 From: Benjamin Close X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Diagnosing a ata detection problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi All, FreeBSD -current hasn't correctly detected the CDROM drive in my laptop for some time now. I've traced the problem down to the drive returning an invalid ATAPI_LSB_MAGIC and ATAPI_MSB_MAGIC which is checked at line 704 in dev/ata/ata-all.c It returns d0 d0, which I believe is an overflow indication. My work around for this currently is comment out the if statement (as shown in the attached patch). Whilst, it's not elegant, it works. Could someone suggest what steps I should take to find a correct solution, I'm a newbie in the kernel world, but one willing to play, break and fix things. Cheers, Benjamin --- dev/ata/ata-all.c Thu Jul 12 09:23:54 2001 +++ dev/ata/ata-all.c.new Thu Jul 12 09:22:04 2001 @@ -701,7 +701,7 @@ if (bootverbose) ata_printf(scp, ATA_SLAVE, "ATAPI probe %02x %02x\n", lsb, msb); - if (lsb == ATAPI_MAGIC_LSB && msb == * ATAPI_MAGIC_MSB) + /*if (lsb == ATAPI_MAGIC_LSB && msb == * ATAPI_MAGIC_MSB)*/ scp->devices |= ATA_ATAPI_SLAVE; } } -- 3D Research Assistant +61 8 8302 3669 School of Computer and Information Science Room D1-07, Levels Campus University of South Australia Mawson Lakes Blvd. Benjamin.Close@cs.unisa.edu.au South Australia, 5095 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message