From owner-freebsd-scsi@FreeBSD.ORG Mon Jul 30 11:08:35 2007 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43BF516A4A1 for ; Mon, 30 Jul 2007 11:08:35 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 34F5113C4A8 for ; Mon, 30 Jul 2007 11:08:35 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6UB8ZYS040748 for ; Mon, 30 Jul 2007 11:08:35 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6UB8XlQ040744 for freebsd-scsi@FreeBSD.org; Mon, 30 Jul 2007 11:08:33 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Jul 2007 11:08:33 GMT Message-Id: <200707301108.l6UB8XlQ040744@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 11:08:35 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/40895 scsi wierd kernel / device driver bug o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/60598 scsi wire down of scsi devices conflicts with config o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 o kern/81887 scsi [aac] Adaptec SCSI 2130S aac0: GetDeviceProbeInfo comm o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/93128 scsi [sym] FreeBSD 6.1 BETA 1 has problems with Symbios/LSI o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/99954 scsi [ahc] reading from DVD failes on 6.x (regression) o kern/110847 scsi [ahd] Tyan U320 onboard problem with more than 3 disks 15 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/23314 scsi [aic] aic driver fails to detect Adaptec 1520B unless o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce o kern/38828 scsi [feature request] DPT PM2012B/90 doesn't work o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/114597 scsi [sym] System hangs at SCSI bus reset with dual HBAs 6 problems total. From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 3 15:12:19 2007 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C53516A417 for ; Fri, 3 Aug 2007 15:12:19 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) by mx1.freebsd.org (Postfix) with ESMTP id 583E413C45A for ; Fri, 3 Aug 2007 15:12:19 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from localhost (localhost [127.0.0.1]) by people.fsn.hu (Postfix) with ESMTP id D84608442F for ; Fri, 3 Aug 2007 16:53:04 +0200 (CEST) Received: from people.fsn.hu ([127.0.0.1]) by localhost (people.fsn.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 74572-04 for ; Fri, 3 Aug 2007 16:52:57 +0200 (CEST) Received: from [172.27.51.1] (fw.axelero.hu [195.228.243.120]) by people.fsn.hu (Postfix) with ESMTP id 75D1984420 for ; Fri, 3 Aug 2007 16:52:57 +0200 (CEST) Message-ID: <46B3414A.6010900@fsn.hu> Date: Fri, 03 Aug 2007 16:52:58 +0200 From: Attila Nagy User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at fsn.hu Subject: (I think) FC/SCSI/CAM related crash - isp X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Aug 2007 15:12:19 -0000 Hello, Sorry, I don't have a serial console now, so I've taken screenshots: http://picasaweb.google.com/nagy.attila/20070803Fbsdcrash This is on an HP BL25p, two Opteron processors, 64 bit OS, ISP2312 based (isp) FC DP HBA, and an FC switch with four targets. This crash is during boot, sometimes the machine gets through this point... From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 3 18:32:19 2007 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 816D516A417 for ; Fri, 3 Aug 2007 18:32:19 +0000 (UTC) (envelope-from Juergen.Dankoweit@t-online.de) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.de [194.25.134.80]) by mx1.freebsd.org (Postfix) with ESMTP id 2074D13C474 for ; Fri, 3 Aug 2007 18:32:19 +0000 (UTC) (envelope-from Juergen.Dankoweit@t-online.de) Received: from fwd32.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1IH1hv-00039h-03; Fri, 03 Aug 2007 20:17:03 +0200 Received: from mail.juergendankoweit.net (SgHWBgZTgeEEMqpBsACWVDMk7Y3wcNn4TosmQZ2h2lJuzIFT-4Mw4z@[84.150.75.213]) by fwd32.aul.t-online.de with esmtp id 1IH1hm-1GSiDg0; Fri, 3 Aug 2007 20:16:54 +0200 Received: from localhost (localhost.juergendankoweit.net [127.0.0.1]) by mail.juergendankoweit.net (Postfix) with ESMTP id 1079012038 for ; Fri, 3 Aug 2007 20:17:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at juergendankoweit.net Received: from mail.juergendankoweit.net ([127.0.0.1]) by localhost (mail.juergendankoweit.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TFFTVirpmZTY for ; Fri, 3 Aug 2007 20:17:18 +0200 (CEST) Received: from primergy470.juergendankoweit.net (primergy470.juergendankoweit.net [192.168.1.1]) by mail.juergendankoweit.net (Postfix) with ESMTP id E22FE114C2 for ; Fri, 3 Aug 2007 20:17:17 +0200 (CEST) From: Juergen.Dankoweit@t-online.de (Juergen Dankoweit) To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 Organization: FreeBSD-Onkel Date: Fri, 03 Aug 2007 20:17:16 +0200 Message-Id: <1186165036.1613.17.camel@primergy470.juergendankoweit.net> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit X-ID: SgHWBgZTgeEEMqpBsACWVDMk7Y3wcNn4TosmQZ2h2lJuzIFT-4Mw4z X-TOI-MSGID: fb81cd3a-4398-40a1-b4d4-bbabad5552de Subject: Possible solution for LSI chip problems X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Juergen.Dankoweit@FreeBSD-Onkel.de List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Aug 2007 18:32:19 -0000 Hello to the list. As written in PR 114597 (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/114597) and PR 88315 (http://www.freebsd.org/cgi/query-pr.cgi?pr=i386/88315) there are some problems with the LSI SCSI chips on some systems. The third problem is that switching of the LSI chip over the machine setup does not affect FreeBSD because the it scans the PCI bus and finds the LSI device. That isn't a funny situation if you what to use an other HBA like Adaptec or so. My idea is to implement the following lines if (resource_disabled("sym", dev->unit)) return (ENXIO); in the following two functions in the sym_hpd.c code: line 8459: static int sym_pci_probe(device_t dev) { ... }; line 8476: static int sym_pci_attach(device_t dev) {... }; After this it is possible to disable the sym driver in the device.hints: hint.sym.x.disabled="1" (x = 0,1,...) In my opinion this would make it possible to use FreeBSD on systems where it hangs during boot time. Best regards Jürgen Dankoweit PS: My code suggestion: static int sym_pci_probe(device_t dev) { struct sym_pci_chip *chip; /* hint.sym.x.disabled="1" */ if (resource_disabled("sym", dev->unit)) return (ENXIO); chip = sym_find_pci_chip(dev); if (chip && sym_find_firmware(chip)) { device_set_desc(dev, chip->name); return (chip->lp_probe_bit & SYM_SETUP_LP_PROBE_MAP)? BUS_PROBE_LOW_PRIORITY : BUS_PROBE_DEFAULT; } return ENXIO; } /* * Attach a sym53c8xx device. */ static int sym_pci_attach(device_t dev) { struct sym_pci_chip *chip; u_short command; u_char cachelnsz; struct sym_hcb *np = 0; struct sym_nvram nvram; struct sym_fw *fw = 0; int i; bus_dma_tag_t bus_dmat; /* hint.sym.x.disabled="1" */ if (resource_disabled("sym", dev->unit)) return (ENXIO); bus_dmat = bus_get_dma_tag(dev); /* * Only probed devices should be attached. * We just enjoy being paranoid. :) */ chip = sym_find_pci_chip(dev); if (chip == NULL || (fw = sym_find_firmware(chip)) == NULL) return (ENXIO); [ and so on ]