]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.4.14/scsi-add-qemu-cd-rom-to-vpd-inquiry-blacklist.patch
drop queue-4.14/mips-make-sure-dt-memory-regions-are-valid.patch
[thirdparty/kernel/stable-queue.git] / releases / 4.4.14 / scsi-add-qemu-cd-rom-to-vpd-inquiry-blacklist.patch
CommitLineData
6ddd5702
GKH
1From fbd83006e3e536fcb103228d2422ea63129ccb03 Mon Sep 17 00:00:00 2001
2From: "Ewan D. Milne" <emilne@redhat.com>
3Date: Tue, 31 May 2016 09:42:29 -0400
4Subject: scsi: Add QEMU CD-ROM to VPD Inquiry Blacklist
5
6From: Ewan D. Milne <emilne@redhat.com>
7
8commit fbd83006e3e536fcb103228d2422ea63129ccb03 upstream.
9
10Linux fails to boot as a guest with a QEMU CD-ROM:
11
12[ 4.439488] ata2.00: ATAPI: QEMU CD-ROM, 0.8.2, max UDMA/100
13[ 4.443649] ata2.00: configured for MWDMA2
14[ 4.450267] scsi 1:0:0:0: CD-ROM QEMU QEMU CD-ROM 0.8. PQ: 0 ANSI: 5
15[ 4.464317] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
16[ 4.464319] ata2.00: BMDMA stat 0x5
17[ 4.464339] ata2.00: cmd a0/01:00:00:00:01/00:00:00:00:00/a0 tag 0 dma 16640 in
18[ 4.464339] Inquiry 12 01 00 00 ff 00res 48/20:02:00:24:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation)
19[ 4.464341] ata2.00: status: { DRDY DRQ }
20[ 4.465864] ata2: soft resetting link
21[ 4.625971] ata2.00: configured for MWDMA2
22[ 4.628290] ata2: EH complete
23[ 4.646670] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
24[ 4.646671] ata2.00: BMDMA stat 0x5
25[ 4.646683] ata2.00: cmd a0/01:00:00:00:01/00:00:00:00:00/a0 tag 0 dma 16640 in
26[ 4.646683] Inquiry 12 01 00 00 ff 00res 48/20:02:00:24:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation)
27[ 4.646685] ata2.00: status: { DRDY DRQ }
28[ 4.648193] ata2: soft resetting link
29
30...
31
32Fix this by suppressing VPD inquiry for this device.
33
34Signed-off-by: Ewan D. Milne <emilne@redhat.com>
35Reported-by: Jan Stancek <jstancek@redhat.com>
36Tested-by: Jan Stancek <jstancek@redhat.com>
37Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
38Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
39Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
40
41---
42 drivers/scsi/scsi_devinfo.c | 1 +
43 1 file changed, 1 insertion(+)
44
45--- a/drivers/scsi/scsi_devinfo.c
46+++ b/drivers/scsi/scsi_devinfo.c
47@@ -227,6 +227,7 @@ static struct {
48 {"PIONEER", "CD-ROM DRM-624X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
49 {"Promise", "VTrak E610f", NULL, BLIST_SPARSELUN | BLIST_NO_RSOC},
50 {"Promise", "", NULL, BLIST_SPARSELUN},
51+ {"QEMU", "QEMU CD-ROM", NULL, BLIST_SKIP_VPD_PAGES},
52 {"QNAP", "iSCSI Storage", NULL, BLIST_MAX_1024},
53 {"SYNOLOGY", "iSCSI Storage", NULL, BLIST_MAX_1024},
54 {"QUANTUM", "XP34301", "1071", BLIST_NOTQ},