From Andre.Albsmeier@siemens.com  Fri Apr 26 16:06:14 2013
Return-Path: <Andre.Albsmeier@siemens.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 72C45E74
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Apr 2013 16:06:14 +0000 (UTC)
	(envelope-from Andre.Albsmeier@siemens.com)
Received: from goliath.siemens.de (goliath.siemens.de [192.35.17.28])
	by mx1.freebsd.org (Postfix) with ESMTP id DEFD710A3
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Apr 2013 16:06:13 +0000 (UTC)
Received: from mail3.siemens.de (localhost [127.0.0.1])
	by goliath.siemens.de (8.13.6/8.13.6) with ESMTP id r3QG67sK000421
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Apr 2013 18:06:07 +0200
Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130])
	by mail3.siemens.de (8.13.6/8.13.6) with ESMTP id r3QG67kM021006
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Apr 2013 18:06:07 +0200
Received: (from localhost)
	by curry.mchp.siemens.de (8.14.6/8.14.6) id r3QG67mG039467
	for FreeBSD-gnats-submit@freebsd.org; Fri, 26 Apr 2013 18:06:07 +0200 (CEST)
Message-Id: <201304261606.r3QG6771094791@curry.mchp.siemens.de>
Date: Fri, 26 Apr 2013 18:06:07 +0200 (CEST)
From: Andre Albsmeier <Andre.Albsmeier@siemens.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ATAPI CDROM fails to attach correctly with ATA_CAM 
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         178183
>Category:       kern
>Synopsis:       [ata] ATAPI CDROM fails to attach correctly with ATA_CAM
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 26 16:10:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat May 04 21:22:30 UTC 2013
>Originator:     Andre Albsmeier
>Release:        FreeBSD 9.1-STABLE i386
>Organization:
>Environment:

FreeBSD 9.1-STABLE
ASUS CUBX-L
DVD-Writer GH22LP20
Promise Ultra100 TX2 controller (PDC20268)
ATA_CAM enabled in kernel

>Description:

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.

>How-To-Repeat:

See above.

>Fix:

Unknown. If you want me to test something, just drop me note.
>Release-Note:
>Audit-Trail:
>Unformatted:
