kern/178183: ATAPI CDROM fails to attach correctly with ATA_CAM

Andre Albsmeier Andre.Albsmeier at
Fri Apr 26 16:10:02 UTC 2013

>Number:         178183
>Category:       kern
>Synopsis:       ATAPI CDROM fails to attach correctly with ATA_CAM
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 26 16:10:01 UTC 2013
>Originator:     Andre Albsmeier
>Release:        FreeBSD 9.1-STABLE i386

DVD-Writer GH22LP20
Promise Ultra100 TX2 controller (PDC20268)
ATA_CAM enabled in kernel


The DVD-Writer is connected to the Promise controller.
With ATA_CAM in the kernel, it fails to attach:

(cd2:ata3:0:0:0): got CAM status 0x50
(cd2:ata3:0:0:0): fatal error, failed to attach to device
(cd2:ata3:0:0:0): lost device, 4 refs
(cd2:ata3:0:0:0): removing device entry

It attaches properly with hint.ata.3.mode=PIO4. A harddrive
attached to the Promise controller works as well.

While some Promise controllers are known to have problems
with ATAPI DMA it should be mentioned that the drive

-  attaches with FreeBSD-7.4 (of course without ATA_CAM)
-  attaches with FreeBSD-9.1 without ATA_CAM
-  attaches with FreeBSD-9.1 without ATA_CAM but with atapicam
-  attaches with FreeBSD-9.1 with ATA_CAM when connected to the
   mainboard's onboard PIIX4 controller.

So it seems to be some problem with ATA_CAM and the
controller but no controller-only issue.


See above.


Unknown. If you want me to test something, just drop me note.

More information about the freebsd-bugs mailing list