From nobody@FreeBSD.org  Thu Mar 13 20:36:27 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9E6471065671
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Mar 2008 20:36:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6D6DE8FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Mar 2008 20:36:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2DKX8UI098644
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Mar 2008 20:33:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2DKX8rv098643;
	Thu, 13 Mar 2008 20:33:08 GMT
	(envelope-from nobody)
Message-Id: <200803132033.m2DKX8rv098643@www.freebsd.org>
Date: Thu, 13 Mar 2008 20:33:08 GMT
From: Martin Devon <martin.devon@heleigh.org.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: incorrect fallback to udma33 with CF memory
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121675
>Category:       i386
>Synopsis:       [ata] incorrect fallback to udma33 with CF memory instead of hard drive
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    mav
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 13 20:40:01 UTC 2008
>Closed-Date:    
>Last-Modified:  Wed Jul 14 12:40:06 UTC 2010
>Originator:     Martin Devon
>Release:        6.3
>Organization:
>Environment:
6.3-RELEASE-p1 #0 Wed Feb 13 02:40:56 UTC 2008 root@i386builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Running of VIA mini-ITX with 4GB compact flash storage (no HDD) plugged
direct into IDE socket. No cable at all.

FreeBSD presumably fails to find 80 core cable - therefore falls back
incorrectly and unnecessarily to udma33. 
>How-To-Repeat:
Appears in the boot messages each time
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Wed Jul 14 09:31:48 UTC 2010 
State-Changed-Why:  
Hello Martin, is this still a problem? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121675 
State-Changed-From-To: feedback->open 
State-Changed-By: remko 
State-Changed-When: Wed Jul 14 11:23:24 UTC 2010 
State-Changed-Why:  
Feedback received from Martin: 

Hello Remko 
Yes it is still unsolved. I've updated to FreeBSD 8.0 but it still 
falls back to UDMA33. 
The CF drive plugs in directly to the motherboard socket so there is no 
cable at all 


Responsible-Changed-From-To: freebsd-i386->mav 
Responsible-Changed-By: remko 
Responsible-Changed-When: Wed Jul 14 11:23:24 UTC 2010 
Responsible-Changed-Why:  
Assign to Mav: would it be possible that you have a look at this please? You might know most about the surrounding ATA code... Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121675 

From: Alexander Motin <mav@FreeBSD.org>
To: bug-followup@FreeBSD.org, martin.devon@heleigh.org.uk
Cc:  
Subject: Re: i386/121675: [ata] incorrect fallback to udma33 with CF memory
 instead of hard drive
Date: Wed, 14 Jul 2010 15:23:36 +0300

 Our VIA drivers have no controller-side cable detection and your CF card
  also seems not reporting 80-pin cable. As workaround you may set
 hw.ata.ata_dma_check_80pin tunable to 0.
 
 -- 
 Alexander Motin
>Unformatted:
