From owner-freebsd-alpha Sat Jun 12 11:48:23 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 3099014E63 for ; Sat, 12 Jun 1999 11:46:46 -0700 (PDT) (envelope-from rene@canyon.demon.nl) Received: from [212.238.15.212] (helo=canyon.demon.nl) by post.mail.nl.demon.net with esmtp (Exim 2.02 #1) id 10ssnQ-0005hI-00 for freebsd-alpha@freebsd.org; Sat, 12 Jun 1999 18:46:24 +0000 Received: (from rene@localhost) by canyon.demon.nl (8.9.3/8.9.2) id TAA28335 for freebsd-alpha@freebsd.org; Sat, 12 Jun 1999 19:08:26 +0200 (CEST) (envelope-from rene) From: Rene de Vries Message-Id: <199906121708.TAA28335@canyon.demon.nl> Subject: Problems getting the 'rl' driver to work To: freebsd-alpha@freebsd.org Date: Sat, 12 Jun 1999 19:08:26 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, Due to a hardware failure I had to replace my DE500 card for the ultra-cheap RealTek 8139. I know that the rl driver is slow, but the alpha is only my extra test machine adn does not need to be fast. So I thought, it should be possible to modify the existing rl driver to work on my alpha. I'm having some problems doing this. After some hacking (correctly setting sc->rl_btag for alpha) the driver compiled, but I got the following panic: Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.2-STABLE #12: Sat Jun 12 18:26:49 CEST 1999 root@kings.canyon.demon.nl:/usr/src.local/sys/compile/KINGS DEC AXPpci Alpha PC AXPpci33, 200MHz 8192 byte page size, 1 processor. CPU: LCA Family major=4 minor=2 OSF PAL rev: 0x100090002012d real memory = 31481856 (30744K bytes) avail memory = 25706496 (25104K bytes) Preloaded elf kernel "kernel" at 0xfffffc0000592000. lca0: <21066 PCI adapter> isa0 Probing for devices on PCI bus 0: ncr0: rev 0x01 int a irq 11 on pci0.6.0 chip0: rev 0x03 on pci0.7.0 rl0: rev 0x10 int a irq 5 on pci0.12.0 unexpected machine check: mces = 0x1 vector = 0x670 param = 0xfffffc0000006048 pc = 0xfffffc000048ce84 ra = 0xfffffc000042be74 curproc = 0 panic: machine check With the help of some printf statments I found that the problem must be in calling the 'CSR_WRITE_1(sc, RL_COMMAND, RL_CMD_RESET);' macro, which translates to a 'bus_space_write_1'. I know that there is a problem/feature on alphas keeping them from accessing memory at unaligned adresses, but I assumed that that whould be handled in writeb (called from bus_space_write). Am I missing something? Can somebody help me? Sorry if this is a stupid error, this is the first time I try to hack a device driver. Rene -- Rene de Vries http://www.tcja.nl/~rene; mailto:rene@tcja.nl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message