From wilko@FreeBSD.org  Mon Sep 10 06:52:08 2001
Return-Path: <wilko@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id D4A2E37B403
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Sep 2001 06:52:07 -0700 (PDT)
Received: (from wilko@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f8ADq7483478;
	Mon, 10 Sep 2001 06:52:07 -0700 (PDT)
	(envelope-from wilko)
Message-Id: <200109101352.f8ADq7483478@freefall.freebsd.org>
Date: Mon, 10 Sep 2001 06:52:07 -0700 (PDT)
From: Wilko Bulte <wilko@freebsd.org>
Reply-To: Wilko Bulte <wilko@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: AlphaServer DS10 floppy access is broken
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         30486
>Category:       alpha
>Synopsis:       AlphaServer DS10 floppy access is broken
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-alpha
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 10 07:00:00 PDT 2001
>Closed-Date:    Sat Jul 30 00:41:36 GMT 2005
>Last-Modified:  Sat Jul 30 00:41:36 GMT 2005
>Originator:     Wilko Bulte
>Release:        FreeBSD 4.4-RC4 Alpha
>Organization:
The FreeBSD Project
>Environment:

	Alphaserver DS10 with 4.4RC4

>Description:

	fdformat reports nothing but bad blocks on known-good floppy.
	tar tf on known good tar floppy reports nothing
	tar cf on known good floppy does not produce a readable (on another
	FreeBSD machine) tar archive

>How-To-Repeat:
	
	See above

>Fix:

	?
>Release-Note:
>Audit-Trail:

From: Sten Spans <sten@blinkenlights.nl>
To: bug-followup@FreeBSD.org, wilko@freebsd.org
Cc:  
Subject: Re: alpha/30486: AlphaServer DS10 floppy access is broken
Date: Tue, 24 May 2005 09:18:51 +0200 (CEST)

 On 6-Current accessing a floppy drive in a DS10
 causes a kernel crash. Sadly things seem to have
 deteriorated.
 
 I'll update the pr with a proper backtrace this evening.
 
 Would it make sense to combine this with PR 30487 ?
 I can't imagine there is much differen between ds10
 and ds20 in the floppy drive area.
 
 -- 
 Sten Spans
 
 "There is a crack in everything, that's how the light gets in."
 Leonard Cohen - Anthem

From: Wilko Bulte <wb@freebie.xs4all.nl>
To: Sten Spans <sten@blinkenlights.nl>
Cc: bug-followup@FreeBSD.ORG, wilko@FreeBSD.ORG
Subject: Re: alpha/30486: AlphaServer DS10 floppy access is broken
Date: Tue, 24 May 2005 14:19:32 +0200

 On Tue, May 24, 2005 at 09:18:51AM +0200, Sten Spans wrote..
 > 
 > On 6-Current accessing a floppy drive in a DS10
 > causes a kernel crash. Sadly things seem to have
 > deteriorated.
 > 
 > I'll update the pr with a proper backtrace this evening.
 > 
 > Would it make sense to combine this with PR 30487 ?
 > I can't imagine there is much differen between ds10
 > and ds20 in the floppy drive area.
 
 Probably correct.  And (long shot) ES40 might have the same issue.
 All Tsunami based machines.
 
 -- 
 Wilko Bulte				wilko@FreeBSD.org

From: Sten Spans <sten@blinkenlights.nl>
To: Wilko Bulte <wb@freebie.xs4all.nl>
Cc: bug-followup@FreeBSD.ORG, wilko@FreeBSD.ORG
Subject: Re: alpha/30486: AlphaServer DS10 floppy access is broken
Date: Tue, 24 May 2005 19:11:46 +0200 (CEST)

 On Tue, 24 May 2005, Wilko Bulte wrote:
 
 > On Tue, May 24, 2005 at 09:18:51AM +0200, Sten Spans wrote..
 >>
 >> On 6-Current accessing a floppy drive in a DS10
 >> causes a kernel crash. Sadly things seem to have
 >> deteriorated.
 >>
 >> I'll update the pr with a proper backtrace this evening.
 >>
 
 fatal kernel trap:
 
      trap entry     = 0x2 (memory management fault)
      faulting va    = 0x0
      type           = access violation
      cause          = store instruction
      pc             = 0xfffffc00005e82c0
      ra             = 0xfffffc0000600634
      sp             = 0xfffffe001a5a5b50
      curthread      = 0xfffffc003eae2a80
          pid = 7, comm = fdc0
 
 [thread pid 7 tid 100026 ]
 Stopped at      bus_dmamap_load+0x80:   stq     t0,0(t1) <0x0>  <t0=0x800000,t1=0x0>
 db> trace
 Tracing pid 7 tid 100026 td 0xfffffc003eae2a80
 bus_dmamap_load() at bus_dmamap_load+0x80
 isa_dmastart() at isa_dmastart+0x124
 fdc_worker() at fdc_worker+0xc80
 fdc_thread() at fdc_thread+0x88
 fork_exit() at fork_exit+0xf0
 exception_return() at exception_return
 --- root of call graph ---
 db>
 
 
 -- 
 Sten Spans
 
 "There is a crack in everything, that's how the light gets in."
 Leonard Cohen - Anthem

From: Sten Spans <sten@blinkenlights.nl>
To: bug-followup@FreeBSD.org, wilko@freebsd.org
Cc:  
Subject: Re: alpha/30486: AlphaServer DS10 floppy access is broken
Date: Tue, 24 May 2005 22:19:01 +0200 (CEST)

 disabling dma (FDC_NODMA) recreates the RELENG_4
 behaviour :
 
 deepthought# dd if=/dev/zero of=/dev/fd0 bs=1440k count=1
 dd: /dev/fd0: Input/output error
 1+0 records in
 0+0 records out
 0 bytes transferred in 1.928038 secs (0 bytes/sec)
 deepthought# fdformat /dev/fd0
 Format 1440K floppy `/dev/fd0'? (y/n): y
 Processing fdformat: ioctl(FD_FORM): Input/output error
 
 So it's either kernel crash in isadma or broken pio,
 gotta love free choice :}
 
 -- 
 Sten Spans
 
 "There is a crack in everything, that's how the light gets in."
 Leonard Cohen - Anthem

From: Wilko Bulte <wb@freebie.xs4all.nl>
To: Sten Spans <sten@blinkenlights.nl>
Cc: bug-followup@FreeBSD.ORG, wilko@FreeBSD.ORG
Subject: Re: alpha/30486: AlphaServer DS10 floppy access is broken
Date: Tue, 24 May 2005 22:20:26 +0200

 On Tue, May 24, 2005 at 10:19:01PM +0200, Sten Spans wrote..
 > 
 > disabling dma (FDC_NODMA) recreates the RELENG_4
 > behaviour :
 > 
 > deepthought# dd if=/dev/zero of=/dev/fd0 bs=1440k count=1
 > dd: /dev/fd0: Input/output error
 > 1+0 records in
 > 0+0 records out
 > 0 bytes transferred in 1.928038 secs (0 bytes/sec)
 > deepthought# fdformat /dev/fd0
 > Format 1440K floppy `/dev/fd0'? (y/n): y
 > Processing fdformat: ioctl(FD_FORM): Input/output error
 > 
 > So it's either kernel crash in isadma or broken pio,
 > gotta love free choice :}
 
 A long time ago Andrew Gallatin (gallatin@) and myself tried
 to narrow it down.  ISTR Drew thought it was isadma getting something
 wrong.  
 
 -- 
 Wilko Bulte				wilko@FreeBSD.org
State-Changed-From-To: open->feedback 
State-Changed-By: marcel 
State-Changed-When: Wed May 25 07:27:57 GMT 2005 
State-Changed-Why:  
Please try with rev. 1.51 of src/sys/alpha/alpha/busdma_machdep.c 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30486 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sat Jul 30 00:41:28 GMT 2005 
State-Changed-Why:  
Feedback timeout 

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