NetBSD Problem Report #53932

From martin@aprisoft.de  Fri Feb  1 16:14:27 2019
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 437C67A0AE
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  1 Feb 2019 16:14:27 +0000 (UTC)
Message-Id: <20190201161416.676B25CC84E@emmas.aprisoft.de>
Date: Fri,  1 Feb 2019 17:14:16 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: aceride dma errors are fatal
X-Send-Pr-Version: 3.95

>Number:         53932
>Category:       kern
>Synopsis:       aceride dma errors are fatal
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 01 16:15:00 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.33
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD whoever-brings-the-night.aprisoft.de 8.99.33 NetBSD 8.99.33 (WHOEVER) #248: Fri Feb 1 16:31:20 CET 2019 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/sparc64/compile/WHOEVER sparc64
Architecture: sparc64
Machine: sparc64
>Description:

I have a little ATA <-> SD card adapter that I use to boot this machine
from (OF does not know about my SATA card where the root SSD is connected
to).

This adapter does something wrong with DMA, and it used to always downgrade
to slower DMA modes on writes. This last worked a few weeks ago.

Now when I try to write to the SD card, the downgrade does not happen.
Instead the buf stays busy and I get an endless loop of error messages.

From memory the aceride error status printout was status 0xD0 and error 0.

dmesg sniplet (with flags forcing this disk to avoid Ultra DMA):

aceride0 at pci2 dev 13 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc4)
aceride0: bus-master DMA support present
aceride0: using PIO transfers above 137GB as workaround for 48bit DMA access bug, expect reduced performance
aceride0: primary channel configured to native-PCI mode
aceride0: using ivec 1f98 for native-PCI interrupt
atabus4 at aceride0 channel 0
aceride0: secondary channel configured to native-PCI mode
atabus5 at aceride0 channel 1
[..]
wd1 at atabus4 drive 0
wd1: <SINTECHI HighSpeed SD to CF Adapter V1.0>
wd1: drive supports 1-sector PIO transfers, LBA addressing
wd1: 3796 MB, 7712 cyl, 16 head, 63 sec, 512 bytes/sect x 7774208 sectors
dk2 at wd1: "sb2.5kboot/a", 7774208 blocks at 0, type: ffs
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(aceride0:0:0): using PIO mode 4, DMA mode 2 (using DMA)


I can run controlled tests on demand and capture console output.

>How-To-Repeat:

s/a

>Fix:

n/a

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.