[Bug 224250] Sending SCSI command to ATA device makes kernel triple fault.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Dec 13 21:59:42 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224250
--- Comment #18 from Scott Long <scottl at FreeBSD.org> ---
Comment on attachment 188806
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=188806
C snippet
The assertion is here:
VirtualBox-4.3.22/src/VBox/Devices/Storage/DevATA.cpp:5293
if (s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE)
AssertRelease(bm->u8Cmd & BM_CMD_WRITE);
I'm a bit confused, I believe that the ATA driver sets this bit here:
src/sys/dev/ata/ata_all.c
if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN)
request->flags |= ATA_R_READ;
and
src/sys/dev/ata/ata_pci.c
ATA_IDX_OUTB(ch, ATA_BMCMD_PORT,
(ATA_IDX_INB(ch, ATA_BMCMD_PORT) & ~ATA_BMCMD_WRITE_READ) |
((request->flags & ATA_R_READ) ? ATA_BMCMD_WRITE_READ : 0)|
ATA_BMCMD_START_STOP);
Maybe this isn't going through ata_pci_dmastart(), or maybe the flags are
getting cleared/not copied correctly prior? I don't have time to look into it
further today.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-scsi
mailing list