LED with ncr53c8xx

John Goerzen (jgoerzen@complete.org)
Wed, 25 Nov 1998 12:30:25 -0600


Hello,

First the problem: the LED on my SCSI card has not been working. This
finally got annoying enough that I went in and hacked the source. This is
in kernel 2.0.35. At line 4201 in ncr53c8xx.c, I did the following:

if ((driver_setup.led_pin ||
(nvram && nvram->type == SCSI_NCR_SYMBIOS_NVRAM)) /*&&
!(np->sv_gpcntl & 0x01)*/)
np->features |= FE_LED0;

Commenting out that one test made it work.

Now then, on to the details.

My card is an Intraserver IT-3140U. The chip is the Symbios 53c875. The
card uses the Symbios BIOS and Symbios-format NVRAM. I wouldn't be
surprised if it was a Symbios card, actually, and sold by somebody else.

The machine is a DEC Alpha 21164a with a PC164LX motherboard running kernel
2.0.35 plus appropriate Alpha patches. The driver comments say "4 June
1998, version 2.6n".

More information is below if you need it.

I has tried using "ncr53c8xx=led:1" in the boot string in MILO but this had
no effect (it would be nice if the driver would mention this when it boots).
So I made that one hack and it now works fine. I am not saying that you
should use that hack in your code, but some fix is desirable.

Here is more info about the system should it be necessary. This info comes
after running it with that test commented out:

dmesg output:
cr53c8xx=led:1
Alpha PCI BIOS32 revision 0.03
Probing PCI hardware.
SMC FDC37C93X Ultra I/O Controller found @ 0x370
tga_console_init: TGA not found!!! :-(
Console: 16 point font, 400 scans
Console: colour VGA+ 80x25, 1 virtual console (max 63)
Calibrating delay loop.. ok - 595.59 BogoMIPS
Memory: 256680k available
Swansea University Computer Society NET3.035 for Linux 2.0
NET3: Unix domain sockets 0.13 for Linux NET3.035.
Swansea University Computer Society TCP/IP for NET3.034
IP Protocols: ICMP, UDP, TCP
VFS: Diskquotas version dquot_5.6.0 initialized
Linux version 2.0.35 (root@erwin) (gcc version egcs-2.91.58 19981101 (egcs-1.1.1 pre-release)) #1 Wed Nov 25 12:16:15 CST 1998
Starting kswapd v 1.4.2.2
Serial driver version 4.13 with no serial options enabled
tty00 at 0x03f8 (irq = 4) is a 16550A
tty01 at 0x02f8 (irq = 3) is a 16550A
PS/2 auxiliary pointing device detected -- driver installed.
Real Time Clock Driver v1.09
rtc: ARC console epoch (1980) detected
Ramdisk driver initialized : 16 ramdisks of 4096K size
device_interrupt: unexpected interrupt 3
device_interrupt: unexpected interrupt 4
device_interrupt: unexpected interrupt 14
hda: TOSHIBA CD-ROM XM-6302B, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Floppy drive(s): fd0 is 2.88M
device_interrupt: unexpected interrupt 6
FDC 0 is a post-1991 82077
ncr53c8xx: at PCI bus 0, device 9, function 0
ncr53c8xx: 53c875 detected with Symbios NVRAM
ncr53c875-0: rev=0x04, base=0x9000000, io_port=0x8800, irq=19
ncr53c875-0: Symbios format NVRAM, ID 7, Fast-20, Parity Checking
ncr53c875-0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 05/46/a0/00/00/24
ncr53c875-0: final SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 05/46/a0/00/08/24
ncr53c875-0: on-chip RAM at 0x9001000
ncr53c875-0: requesting shared irq 19 (dev_id=0xfffffc00000080c0)
ncr53c875-0: resetting, command processing suspended for 2 seconds
ncr53c875-0: restart (scsi reset).
ncr53c875-0: enabling clock multiplier
ncr53c875-0: copying script fragments into the on-chip RAM ...
scsi0 : ncr53c8xx - revision 2.6n
scsi : 1 host.
ncr53c875-0: command processing resumed
Vendor: EXABYTE Model: EXB-8505 Rev: 0051
Type: Sequential-Access ANSI SCSI revision: 02
Vendor: IBM Model: DDRS-39130D Rev: DC1B
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 6, lun 0
scsi : detected 1 SCSI disk total.
ncr53c875-0-<6,0>: WIDE SCSI (16 bit) enabled.
ncr53c875-0-<6,0>: using tagged command queueing, up to 4 cmds/lun
ncr53c875-0-<6,0>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15)
SCSI device sda: hdwr sector= 512 bytes. Sectors= 17850000 [8715 MB] [8.7 GB]
tulip.c:v0.89H 5/23/98 becker@cesdis.gsfc.nasa.gov
eth0: Digital DS21140 Tulip at 0x9000, 00 c0 f0 32 05 61, IRQ 17.
eth0: EEPROM default media type Autosense.
eth0: Index #0 - Media MII (#11) described by a 21140 MII PHY (1) block.
eth0: MII transceiver found at MDIO address 1, config 3000 status 782d.
eth0: Advertising 01e1 on PHY 1, previously advertising 01e1.
Partition check:
sda: sda1 sda2 sda3 < sda5 sda6 sda7 sda8 > sda4
VFS: Mounted root (ext2 filesystem) readonly.
Adding Swap: 131048k swap-space (priority -1)
lp0 at 0x03bc, (polling)
eth0: Advertising 01e1 on PHY 0 (1).

/proc/scsi/ncr53c8xx/0 reports:
General information:
Chip NCR53C875, device id 0xf, revision id 0x4
IO port address 0x8800, IRQ number 19
Synchronous period factor 12, max commands per lun 4

/proc/cpuinfo reports:
cpu : Alpha
cpu model : EV56
cpu variation : 0
cpu revision : 0
cpu serial number : Linux_is_Great!
system type : EB164
system variation : LX164
system revision : 0
system serial number : MILO-0000
cycle frequency [Hz] : 599806440
timer frequency [Hz] : 1024.00
page size [bytes] : 8192
phys. address bits : 40
max. addr. space # : 127
BogoMIPS : 595.59
kernel unaligned acc : 0 (pc=0,va=0)
user unaligned acc : 1442553 (pc=1203d1944,va=12068d482)
platform string : N/A

Let me know if you need any more information.

Thanks,
John

-- 
John Goerzen   Linux, Unix consulting & programming   jgoerzen@complete.org |
Developer, Debian GNU/Linux (Free powerful OS upgrade)       www.debian.org |
----------------------------------------------------------------------------+
Visit the Air Capital Linux Users Group on the web at http://www.aclug.org

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/