Subject: Re: port-sparc/27322
To: None <port-sparc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Sergey Svishchev <svs+pr@grep.ru>
List: netbsd-bugs
Date: 09/29/2006 18:30:02
The following reply was made to PR port-sparc/27322; it has been noted by GNATS.

From: Sergey Svishchev <svs+pr@grep.ru>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-sparc/27322
Date: Fri, 29 Sep 2006 22:28:53 +0400

 Multiple problems here.
 
 - Did you intend to format a 720KB floppy? man 4 sparc/fd says:
      Bits [0-3] of the minor device number of the special files referring to
      this device encode the floppy density as follows:
            0       3.5'' 1.44MB floppy diskettes.
            1       3.5'' 720KB floppy diskettes.
 
 - eject(1) did not properly support floppy drives -- it normally opens
   special file that corresponds to raw partition of a disk, but again,
   fd(4) uses partition letters differently.  This has been fixed, see
   PR#27066.
 
 - There appears to be a regression in fd(4) -- in 1.6.2-R formatting works,
   in 3.0-R it panics the machine (SPARCstation-5):
 
 # fdformat
 Ready to format /dev/rfd0a with 80 cylinders, 2 tracks, 18 sectors of 512 bytes
 (1440 KB) Yes/no [y]?
 Estray interrupt ipl 0xb pc=0xf015db80 npc=0xf015db84 psr=40005c4<S,PS>
 stray interrupt ipl 0xb pc=0xf015db80 npc=0xf015db84 psr=40005c4<S,PS>
 stray interrupt ipl 0xb pc=0xf015db80 npc=0xf015db84 psr=40005c4<S,PS>
 stray interrupt ipl 0xb pc=0xf015db80 npc=0xf015db84 psr=40005c4<S,PS>
 stray interrupt ipl 0xb pc=0xf015db80 npc=0xf015db84 psr=40005c4<S,PS>
 stray interrupt ipl 0xb pc=0xf015db80 npc=0xf015db84 psr=40005c4<S,PS>
 stray interrupt ipl 0xb pc=0xf015db80 npc=0xf015db84 psr=40005c4<S,PS>
 stray interrupt ipl 0xb pc=0xf015db80 npc=0xf015db84 psr=40005c4<S,PS>
 stray interrupt ipl 0xb pc=0xf015db80 npc=0xf015db84 psr=40005c4<S,PS>
 stray interrupt ipl 0xb pc=0xf015db80 npc=0xf015db84 psr=40005c4<S,PS>
 stray interrupt ipl 0xb pc=0xf00085e0 npc=0xf00085e4 psr=40005c4<S,PS>
 panic: crazy interrupts
 Stopped in pid 13660.1 (fdformat) at    netbsd:cpu_Debugger+0x4:        or              %
 o7, %g0, %g1
 db> tr
 cpu_Debugger(0xf01be150, 0xb, 0x100, 0xf015db84, 0xf01d5b08, 0xf01dec00) at netbsd:strayintr+0x94
 strayintr(0xf01d5bb0, 0xf015e0a8, 0xb00, 0x48000e4, 0x200, 0x24) at netbsd:sparc_interrupt44c+0x14c
 sparc_interrupt44c(0x0, 0x21, 0x21, 0x1c, 0x0, 0x1) at netbsd:fdc_wrfifo+0x50
 fdc_wrfifo(0xf0400900, 0x3, 0xf015dfa4, 0xf0400900, 0x425a, 0xf01fbbb0) at netbsd:fdcstate+0x24c
 fdcstate(0xf0400900, 0xf03db1c8, 0x0, 0x4800, 0xf03adc90, 0xf0437700) at netbsd:fdstrategy+0x204
 fdstrategy(0xf03db1c8, 0xfffffff8, 0x0, 0x48, 0x0, 0x24) at netbsd:fdformat+0x130
 fdformat(0x3600, 0xf0437700, 0xf1f22960, 0x12, 0xf276fc20, 0x12) at netbsd:fdioctl+0x560
 fdioctl(0xc, 0xf01e0bfc, 0xf276fe38, 0x12, 0xf1f22960, 0x2000) at netbsd:spec_ioctl+0x80
 spec_ioctl(0xf276fcf8, 0x3, 0x5, 0xf276ff20, 0xf03e8700, 0xf1f23090) at netbsd:vn_ioctl+0xd8
 vn_ioctl(0xf1f37000, 0x800c6476, 0xf276fe38, 0xf1f22960, 0x1, 0x400) at netbsd:sys_ioctl+0xf8
 sys_ioctl(0x800c6476, 0xf276ff28, 0xf276ff20, 0x0, 0xf1f22960, 0x400) at netbsd:syscall+0xc0
 syscall(0x36, 0xf276ffb0, 0x200dfbb8, 0x22400, 0x0, 0x400) at 0xf0006550
 
 -- 
 Sergey Svishchev