From owner-freebsd-alpha Sun Jul 29 7:40: 9 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E39F737B405 for ; Sun, 29 Jul 2001 07:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6TEe1h94276; Sun, 29 Jul 2001 07:40:01 -0700 (PDT) (envelope-from gnats) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by hub.freebsd.org (Postfix) with ESMTP id F10A537B403 for ; Sun, 29 Jul 2001 07:33:55 -0700 (PDT) (envelope-from Thomas.Pornin@ens.fr) Received: from bolet.ens.fr (bolet.ens.fr [129.199.99.10]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f6TEXrm32474 for ; Sun, 29 Jul 2001 16:33:53 +0200 (CEST) Received: from (pornin@localhost) by bolet.ens.fr (8.11.3/jb-1.1) Message-Id: <200107291433.f6TEXqV00589@bolet.ens.fr> Date: Sun, 29 Jul 2001 16:33:52 +0200 (CEST) From: thomas.pornin@ens.fr Reply-To: thomas.pornin@ens.fr To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: alpha/29299: Tekram DC390 not supported on FreeBSD Alpha 4.3 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29299 >Category: alpha >Synopsis: FreeBSD 4.3 Alpha + Tekram SCSI adapter panics >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-alpha >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 29 07:40:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Thomas Pornin >Release: FreeBSD 4.3-RELEASE alpha >Organization: Ecole Normale Superieure >Environment: System: FreeBSD bolet 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sun Jul 29 15:56:49 CEST 2001 root@bolet:/usr/src/sys/compile/BOLET alpha This is a PWS 500a with: -- 576 MB ram -- Qlogic ISP SCSI adapter -- Tekram DC390 SCSI adapter with external Iomega ZIP drive >Description: The GENERIC kernel does not include support for the Tekram SCSI adapter. I recompiled a kernel with the 'device amd' line. At the end of the SCSI delay (set to 8 seconds in my setup), the kernel enters a fatal trap related to memory management. I tried with a debug kernel, the trap is triggered by the line 455 in alpha/alpha/busdma_machdep.c, function bus_dmamap_load(): if (map->pagesneeded != 0) { apparently, at that point, "map" is equal to NULL, and the memory acces triggers the trap. I tried to replace that line with the following: if (map && map->pagesneeded != 0) { (and something similar for another access to map->pagesneeded line 491), but then the machine crashes later with an "unexpected machine check" (mces = 0x1, vector = 0x660, param = 0xfffffc0000006068). I believe it is not standard behaviour that bus_dmamap_load() is called with a NULL map. The very same kernel, without the 'amd' support, boots and runs fine. The Tekram card and Zip drive are functionnal (they work on the same machine under Linux). >How-To-Repeat: Just try to boot an Alpha machine with a Tekram adapter and support compiled in the kernel. Maybe the fact that there is no disk in the Zip drive is important. >Fix: None included. I guess the amd driver requires some tweekings. I have some spare time for the next three weeks, and am willing to help; but I do not know where to begin. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message