From kenson@sentor.se  Tue May 29 14:47:59 2001
Return-Path: <kenson@sentor.se>
Received: from deliverator.sentor.se (deliverator.sentor.se [212.112.177.100])
	by hub.freebsd.org (Postfix) with ESMTP id 2F75437B42C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 May 2001 14:47:58 -0700 (PDT)
	(envelope-from kenson@sentor.se)
Received: from localhost (localhost [127.0.0.1])
	by viruswall.sentor.se (Postfix) with ESMTP id 00B35354863
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 May 2001 23:47:46 +0200 (CEST)
Received: by deliverator.sentor.se (Postfix, from userid 1001)
	id 6B5C6354864; Tue, 29 May 2001 23:47:44 +0200 (CEST)
Message-Id: <20010529214744.6B5C6354864@deliverator.sentor.se>
Date: Tue, 29 May 2001 23:47:44 +0200 (CEST)
From: kenson@sentor.se
Reply-To: kenson@sentor.se
To: FreeBSD-gnats-submit@freebsd.org
Subject: CompactFlash Media reader broken with FreeBSD 4.2 and later ATA-driver
X-Send-Pr-Version: 3.2

>Number:         27753
>Category:       kern
>Synopsis:       ATA driver in FreeBSD 4.2 and later no longer recognizes CompactFlash Media reader
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 29 14:50:01 PDT 2001
>Closed-Date:    Thu Sep 6 05:48:56 PDT 2001
>Last-Modified:  Thu Sep 06 05:49:33 PDT 2001
>Originator:     Kenny Jansson
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Sentor AB
>Environment:
Intel based machine with Celeron processor. The the Cardport-ide
is loaded with  a Compactflash SDCFB-64 from SanDisk.

>Description:
below is verbose bootlog from the failing kernel (4.2)

atapci0: <Intel ICH ATA66 controller> port 0xf000-0xf00f at device 31.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xf000
ata0: mask=03 status0=50 status1=05
ata0: mask=03 ostat0=00 ostat2=05
ata0-master: ATAPI probe a=00 b=00
ata0-slave: ATAPI probe a=05 b=05
ata0: mask=03 status0=50 status1=05
ata0-slave: ATA probe a=05 b=05
ata0: devices=00
ata0: at 0x1f0 irq 14 on atapci0
ata0: unwanted interrupt 1 status = 05

below is verbose bootlog from the working kernel (4.1.1-RELEASE)
(same hardware is used ofcourse)

atapci0: <Intel ICH ATA66 controller> port 0xf000-0xf00f at device 31.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xf000
ata0: mask=03 status0=50 status1=05
ata0: mask=03 status0=50 status1=05
ata0: devices = 0x1
ata0: at 0x1f0 irq 14 on atapci0
ata0-master: success setting PIO1 on generic chip
ad0: <Hitachi CVM1.1.1/Rev 1.01> ATA-0 disk at ata0 as master

>How-To-Repeat:
make one 4.2 kernel with ATA support and one 4.1.1 kernel
stick them both on same CompactFlash card and try booting thm

>Fix:
No idea. But it probably involves changing the list of valid 
status-codes returned by ATA-devices so the code returned by 
this particular device is recognized as a valid value
 
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: ru 
Responsible-Changed-When: Mon Jun 4 11:30:11 PDT 2001 
Responsible-Changed-Why:  
Misfiled. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27753 
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 12 17:03:31 PDT 2001 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27753 
State-Changed-From-To: open->feedback 
State-Changed-By: sos 
State-Changed-When: Thu Sep 6 02:25:38 PDT 2001 
State-Changed-Why:  
Does this still fail on 4.4 ? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27753 
State-Changed-From-To: feedback->closed 
State-Changed-By: sos 
State-Changed-When: Thu Sep 6 05:48:56 PDT 2001 
State-Changed-Why:  
Shame, anyhow I dont have any other complaints about this, so  
close this PR for now. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27753 
>Unformatted:
