NetBSD Problem Report #40440

From gson@gson.org  Tue Jan 20 13:44:30 2009
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 22B9463B8BA
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 20 Jan 2009 13:44:30 +0000 (UTC)
Message-Id: <20090120134421.CB66975F38@guava.gson.org>
Date: Tue, 20 Jan 2009 15:44:21 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@gnats.NetBSD.org
Subject: cd0(piixide0:1:0): illegal request
X-Send-Pr-Version: 3.95

>Number:         40440
>Category:       kern
>Synopsis:       cd0(piixide0:1:0): illegal request
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 20 13:45:00 +0000 2009
>Last-Modified:  Thu Jul 09 08:10:02 +0000 2009
>Originator:     Andreas Gustafsson
>Release:        NetBSD 5.99.5 (source date 2008.12.30.19.38.36)
>Organization:
>Environment:
System: NetBSD/i386 on qemu or Compaq Deskpro EN SFF PC
Architecture: i386
Machine: i386
>Description:

When installing a NetBSD-current snapshot, the error
"cd0(piixide0:1:0): illegal request" is reported.

If I boot a qemu virtual machine from install floppy images and then
attempt to install the sets from a CD image, the error occurs at the
time when sysinst mounts the CD, causing the following output:

  Status: Running
  Command: /sbin/mount -rt cd9660 /dev/cd0a /mnt2
  cd0(piixide0:1:0): illegal request, data = 00 00 00 00 20 00 00 00 00 00

If I boot a physical i386 machine from an install CD, a similar error
is reported but at an earlier stage, when the kernel mounts the CD as
the root file system.

As far as I can tell, there are no ill effects from the error apart
from the error message itself, but it should be investigated and if
deemed harmless, suppressed to avoid needlessly alarming or confusing
users.

Using an automated binary search, I have narrowed down the time when
the error appeared to the commits identified by

  cvs rdiff -D 2008.12.30.19.37.49 -D 2008.12.30.19.38.36

involving the files

  src/sys/dev/scsipi/cd.c
  src/sys/kern/subr_disk_mbr.c
  src/sys/sys/disklabel.h

>How-To-Repeat:

Build a NetBSD-current install CD and attempt to install from it.

>Fix:

>Audit-Trail:
From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@NetBSD.org
Cc: Reinoud Zandijk <reinoud@13thmonkey.org>
Subject: Re: kern/40440: cd0(piixide0:1:0): illegal request
Date: Thu, 9 Jul 2009 11:05:59 +0300

 Installing today's current (CVS date 2009.07.09.02.15.48) in qemu
 0.9.1 (i386) I am still seeing problems that appear to be related to
 this bug, although the error messages are somewhat different from when
 I originally reported it.

 When sysinst mounts the virtual CD-ROM, it spews error messages on the
 screen, and the mount command, which used to be instantaneous, takes
 about 2 minutes and 30 seconds (!) to complete.

 Here is an ASCII screenshot of the sysinst output:

        Status: Running
       Command: /sbin/mount -rt cd9660 /dev/cd0a /mnt2

   --------------------------------------------------------------------------------
   wdc_atapi_intr: warning: reading only 0 of 8 bytes
   piixide0:1:0: lost interrupt
   type: atapi tc_bcount: 0 tc_skip: 8
   wdc_atapi_intr: warning: reading only 0 of 8 bytes
   piixide0:1:0: lost interrupt
   type: atapi tc_bcount: 0 tc_skip: 8
   wdc_atapi_intr: warning: reading only 0 of 8 bytes
   piixide0:1:0: lost interrupt
   type: atapi tc_bcount: 0 tc_skip: 8
   wdc_atapi_intr: warning: reading only 0 of 8 bytes
   piixide0:1:0: lost interrupt
   type: atapi tc_bcount: 0 tc_skip: 8
   wdc_atapi_intr: warning: reading only 0 of 8 bytes

 After the two-and-a-half-minute delay, the mount will finally
 complete and sysinst will continue.

 If I run "dmesg" after the install completes, its output contains
 no relevant error messages; the only lines concerning the CD-ROM
 drive are:

   atapibus0 at atabus1: 2 targets
   cd0 at atapibus0 drive 0: <QEMU CD-ROM, QM00003, 0.9.1> cdrom removable
   cd0: 32-bit data port
   cd0(piixide0:1:0): using PIO mode 3

 -- 
 Andreas Gustafsson, gson@gson.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.