From hsu@hsu.bbnetworks.net  Sun Jan  4 21:25:47 2009
Return-Path: <hsu@hsu.bbnetworks.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E9F9710656CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 Jan 2009 21:25:47 +0000 (UTC)
	(envelope-from hsu@hsu.bbnetworks.net)
Received: from hsu.bbnetworks.net (hsu.bbnetworks.net [212.16.96.38])
	by mx1.freebsd.org (Postfix) with ESMTP id 777B38FC0C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 Jan 2009 21:25:47 +0000 (UTC)
	(envelope-from hsu@hsu.bbnetworks.net)
Received: from hsu.bbnetworks.net (localhost [127.0.0.1])
	by hsu.bbnetworks.net (8.14.3/8.14.3) with ESMTP id n04KmC41043995
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 4 Jan 2009 22:48:12 +0200 (EET)
	(envelope-from hsu@hsu.bbnetworks.net)
Received: (from root@localhost)
	by hsu.bbnetworks.net (8.14.3/8.14.3/Submit) id n04KmBT2043994;
	Sun, 4 Jan 2009 22:48:11 +0200 (EET)
	(envelope-from hsu)
Message-Id: <200901042048.n04KmBT2043994@hsu.bbnetworks.net>
Date: Sun, 4 Jan 2009 22:48:11 +0200 (EET)
From: Heikki Suonsivu <hsu@bbnetworks.net>
Reply-To: Heikki Suonsivu <hsu@bbnetworks.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: UDMA CF cards do not work with FreeBSD
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         130171
>Category:       kern
>Synopsis:       [ata] UDMA CF cards do not work with FreeBSD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 04 21:30:01 UTC 2009
>Closed-Date:    
>Last-Modified:  Sat Feb 28 04:11:05 UTC 2009
>Originator:     Heikki Suonsivu
>Release:        FreeBSD 7.1-RELEASE (and earlier)
>Organization:
bbnetworks.net
>Environment:

	i386 7.1R out of box, and previous versions
	DMP eBOX (all versions tried, all VIA cpu and chipset)

	CF card either in the CF slot in the computer or using CF to
	PATA adapter from pcengines.ch.
	
>Description:

	When using CF card capable of UDMA, such as Pretec 32G or
	Transcend 32G card, access to CF card results in "DMA
	timeout".  I have not found any UDMA capable cards which would
	work, though there are fewer of those available in large sizes
	we use.
	
	With Linux, the UDMA CF cards seem to work properly, and Linux
	seems to set it in UDMA mode (it says so, and they definitely
	are using DMA as CPU is not loaded).

	Older WDMA2 cards work with FreeBSD, such as Sandisk Exterme
	III.

	Apparently there is something in UDMA capable CF cards which
	confuse FreeBSD ata drivers, while Windows and Linux work fine
	(or they have a workaround somewhere).
	
>How-To-Repeat:

	Use CF card in IDE mode, through adapter or in a device with a
	slot connected to PATA controller.

	I can provide hardware for someone in Helsinki area in
	Finland, if there is interest.
	
>Fix:

	
	

	

	


>Release-Note:
>Audit-Trail:

From: linimon@lonesome.com (Mark Linimon)
To: Heikki Suonsivu <hsu@bbnetworks.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/130171: UDMA CF cards do not work with FreeBSD
Date: Thu, 8 Jan 2009 02:29:16 -0600

 You'll need to give us the log of exactly what happens when you
 plug this card in and try to access it.
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sun Feb 1 01:32:54 UTC 2009 
State-Changed-Why:  
Note that submitter was asked for feedback. 

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

From: Heikki Suonsivu <hsu@bbnetworks.net>
To: Mark Linimon <linimon@lonesome.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/130171: UDMA CF cards do not work with FreeBSD
Date: Wed, 04 Feb 2009 18:46:17 +0200

 This is a multi-part message in MIME format.
 --------------050806000606060704030607
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Mark Linimon wrote:
 > You'll need to give us the log of exactly what happens when you
 > plug this card in and try to access it.
 
 When booting from CD to install FreeBSD, this happens when kernel comes 
 to detection of ide drives:
 
 ad3: 30592 MB <CF 20070831> at ata1-slave UDMA33
 ad3: FAILURE_READ_DMA timed out LBA=62652415
 ad3: FAILURE_READ_DMA timed out LBA=62652399
 ad3: FAILURE_READ_DMA timed out LBA=62652412
 ad3: FAILURE_READ_DMA timed out LBA=62652413
 ... other messages about cd drive
 retrying (1 retry left) LBA=62652415
 retrying (0 retries left) LBA=62652415
 ... this will keep repeating
 
 Copied from screen by hand, typos are mine.
 
 It would not seem to be able to actually get anything read or written.
 
 Disabling DMA apparently works but access becomes slow and loads cpu.
 
 I tested latest Sandisk Extreme III 16G card, and it works even though 
 it is UDMA card.  Older Extreme III cards were recognized as WDMA2 
 cards.  This would indicate that it is card specific, not UDMA specific.
 
 The symptoms are the same on Transcend 32G card.  I do not know if the 
 cards are any different, Transcend usually ships 
 random-whoever-made-best-offer cards.  I thought that Pretec might have 
 had something of their own in the past, but do not really know how they 
 do it these days, maybe it is the same controller chip in both...
 
 I did not notice that Linux would have complained about anything, and 
 was showing it as UDMA disk.
 
 
 
 --------------050806000606060704030607--
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Sat Feb 28 04:10:28 UTC 2009 
State-Changed-Why:  
feedback received. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130171 
>Unformatted:
