NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52614: qemu virtual CD-ROM report read errors since recent wdc changes



The following reply was made to PR kern/52614; it has been noted by GNATS.

From: Andreas Gustafsson <gson%gson.org@localhost>
To: gnats-bugs%NetBSD.org@localhost, jaromir.dolecek%gmail.com@localhost
Cc: 
Subject: Re: kern/52614: qemu virtual CD-ROM report read errors since recent wdc changes
Date: Fri, 22 Jun 2018 17:10:06 +0300

 In private email, Jaromir suggested I try a qemu configuration with
 ahcisata instead of wdc.
 
 I tried this by adding "-machine q35" to the qemu command line, which
 should cause qemu to emulate a more modern PC.  The hard disk and
 CD-ROM(s) were now detected as SATA devices:
 
 [   1.0205182] ahcisata0 at pci0 dev 31 function 2: vendor 8086 product 2922 (rev. 0x02)
 [   1.0205182] ahcisata0: interrupting at ioapic0 pin 16
 [   1.0205182] ahcisata0: AHCI revision 1.0, 6 ports, 32 slots, CAP 0xc0141f05<SAM,ISS=0x1=Gen1,SNCQ,S64A>
 [   1.0205182] atabus0 at ahcisata0 channel 0
 [   1.0205182] atabus1 at ahcisata0 channel 1
 [   1.0205182] atabus2 at ahcisata0 channel 2
 [   1.0205182] atabus3 at ahcisata0 channel 3
 [   1.0205182] atabus4 at ahcisata0 channel 4
 [   1.0205182] atabus5 at ahcisata0 channel 5
 (...)
 [   1.3749109] ahcisata0 port 0: device present, speed: 1.5Gb/s
 [   1.3749109] ahcisata0 port 1: device present, speed: 1.5Gb/s
 [   1.3749109] ahcisata0 port 2: device present, speed: 1.5Gb/s
 [   4.3760485] wd0 at atabus0 drive 0
 [   4.3810162] wd0: <QEMU HARDDISK>
 [   4.3810162] wd0: 1536 MB, 3120 cyl, 16 head, 63 sec, 512 bytes/sect x 3145728 sectors
 [   4.4214675] atapibus0 at atabus1: 1 targets
 [   4.4340258] cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 2.5+> cdrom removable
 [   4.4340258] atapibus1 at atabus2: 1 targets
 [   4.4463895] cd1 at atapibus1 drive 0: <QEMU DVD-ROM, QM00005, 2.5+> cdrom removable
 [   4.4711559] WARNING: 2 errors while detecting hardware; check system log.
 
 but when sysinst tried to mount the CD, it failed with the following errors:
 
 [  39.5120853] cd0(ahcisata0:1:0): request sense for a request sense ?
 [  39.5120853] cd0(ahcisata0:1:0): request sense failed with error 22
 [  39.5120853] cd0(ahcisata0:1:0): generic HBA error
 [  39.5120853] cd0: secperunit and ncylinders are zero
 [  39.5211147] cd0(ahcisata0:1:0): request sense for a request sense ?
 [  39.5211147] cd0(ahcisata0:1:0): request sense failed with error 22
 [  39.5211147] cd0(ahcisata0:1:0): generic HBA error
 [  39.5211147] WARNING: cd0: total sector size in disklabel (536870911) != the size of cd0 (0)
 [  39.5211147] WARNING: cd0: end of partition `a' exceeds the size of cd0 (0)
 [  39.5211147] WARNING: cd0: end of partition `d' exceeds the size of cd0 (0)
 [  39.5286895] cd0(ahcisata0:1:0): request sense for a request sense ?
 [  39.5286895] cd0(ahcisata0:1:0): request sense failed with error 22
 [  39.5286895] cd0(ahcisata0:1:0): generic HBA error
 [  39.5286895] cd1(ahcisata0:2:0): request sense for a request sense ?
 [  39.5286895] cd1(ahcisata0:2:0): request sense failed with error 22
 [  39.5286895] cd1(ahcisata0:2:0): generic HBA error
 [  39.5286895] cd1(ahcisata0:2:0): request sense for a request sense ?
 [  39.5286895] cd1(ahcisata0:2:0): request sense failed with error 22
 [  39.5286895] cd1(ahcisata0:2:0): generic HBA error
 [  39.5286895] cd1: secperunit and ncylinders are zero
 [  39.5286895] cd1(ahcisata0:2:0): request sense for a request sense ?
 [  39.5286895] cd1(ahcisata0:2:0): request sense failed with error 22
 [  39.5286895] cd1(ahcisata0:2:0): generic HBA error
 [  39.5286895] WARNING: cd1: total sector size in disklabel (536870911) != the size of cd1 (0)
 [  39.5286895] WARNING: cd1: end of partition `a' exceeds the size of cd1 (0)
 [  39.5494644] WARNING: cd1: end of partition `d' exceeds the size of cd1 (0)
 [  39.5494644] cd1(ahcisata0:2:0): request sense for a request sense ?
 [  39.5494644] cd1(ahcisata0:2:0): request sense failed with error 22
 [  39.5494644] cd1(ahcisata0:2:0): generic HBA error
 
 This is with qemu 2.12.0. The full console log from the install
 attempt, including qemu command line, is available at
 
   http://www.gson.org/netbsd/bugs/build/i386/2018/2018.06.22.10.17.04/install.log
 
 -- 
 Andreas Gustafsson, gson%gson.org@localhost
 


Home | Main Index | Thread Index | Old Index