From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 20 10:17:09 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 D395C16A418; Mon, 20 Aug 2007 10:17:09 +0000 (UTC) (envelope-from piso@southcross.wired.org) Received: from mail.oltrelinux.com (krisma.oltrelinux.com [194.242.226.43]) by mx1.freebsd.org (Postfix) with ESMTP id 6122313C442; Mon, 20 Aug 2007 10:17:09 +0000 (UTC) (envelope-from piso@southcross.wired.org) Received: from southcross.wired.org (host-84-221-232-126.cust-adsl.tiscali.it [84.221.232.126]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.oltrelinux.com (Postfix) with ESMTP id 90A7C11AE43; Mon, 20 Aug 2007 11:51:00 +0200 (CEST) Received: from southcross.wired.org (localhost [127.0.0.1]) by southcross.wired.org (8.14.1/8.14.1) with ESMTP id l7K9pBBt063846; Mon, 20 Aug 2007 11:51:12 +0200 (CEST) (envelope-from piso@southcross.wired.org) Received: (from piso@localhost) by southcross.wired.org (8.14.1/8.14.1/Submit) id l7K9pAHo063845; Mon, 20 Aug 2007 11:51:10 +0200 (CEST) (envelope-from piso) Date: Mon, 20 Aug 2007 11:51:09 +0200 From: Paolo Pisati To: freebsd-scsi@freebsd.org Message-ID: <20070820095109.GA63694@tin.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at krisma.oltrelinux.com Cc: freebsd-current@freebsd.org Subject: FreeBSD 6.x/7.x & mpt => "panic: Bad link elm 0xc406d450 next->prev != elm" 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, 20 Aug 2007 10:17:09 -0000 Hi, i filled a PR (http://www.freebsd.org/cgi/query-pr.cgi?pr=115606) regarding some problems i have with FreeBSD 6.x/7.x and the mpt controller. Basically, any i/o activity on a disk attached to that controller brings a panic. mpt0: mpt_cam_event: 0xc0 mpt0: Unhandled Event Notify Frame. Event 0xc0afa2c0 (ACK not required). mpt0: completing timedout/aborted req 0xc406d450:5896 panic: Bad link elm 0xc406d450 next->prev != elm cpuid = 0 KDB: enter: panic Dumping 1023 MB (2 chunks) chunk 0: 1MB (157 pages) ... ok chunk 1: 1023MB (261868 pages) 1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 511 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:195 195 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump () at pcpu.h:195 H") at /usr/src/sys/ddb/db_command.c:486 #2 0xc048d095 in db_command_loop () at /usr/src/sys/ddb/db_command.c:401 #3 0xc048e805 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:222 #4 0xc0773066 in kdb_trap (type=3, code=0, tf=0xe43fcb80) at /usr/src/sys/kern/subr_kdb.c:502 #5 0xc09fd15b in trap (frame=0xe43fcb80) at /usr/src/sys/i386/i386/trap.c:621 #6 0xc09e2b7b in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0xc07731e2 in kdb_enter (msg=0xc0a93413 "panic") at cpufunc.h:60 #8 0xc074c3e4 in panic (fmt=0xc0a49d68 "Bad link elm %p next->prev != elm") at /usr/src/sys/kern/kern_shutdown.c:547 #9 0xc06065c5 in mpt_scsi_reply_handler (mpt=0xc4066000, req=0xc406d450, reply_desc=65820, reply_frame=0xe43fcc58) at /usr/src/sys/dev/mpt/mpt_cam.c:2661 #10 0xc06033be in mpt_complete_request_chain (mpt=0xc4066000, chain=0xc40663c4, iocstatus=8) at /usr/src/sys/dev/mpt/mpt.c:849 #11 0xc0606734 in mpt_cam_ioc_reset (mpt=0xc4066000, type=0) at /usr/src/sys/dev/mpt/mpt_cam.c:3041 #12 0xc0604acf in mpt_reset (mpt=0xc4066000, reinit=1) at /usr/src/sys/dev/mpt/mpt.c:1145 #13 0xc0607bf2 in mpt_recovery_thread (arg=0xc4066000) at /usr/src/sys/dev/mpt/mpt_cam.c:4176 #14 0xc072e258 in fork_exit (callout=0xc0607920 , arg=0xc4066000, frame=0xe43fcd38) at /usr/src/sys/kern/kern_fork.c:797 #15 0xc09e2bf0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:205 #1 0xc048cb29 in db_fncall (dummy1=-465581460, dummy2=0, dummy3=524358, dummy4=0xe43fc9d8 " kernel.debug and vmcore are available here: fetch http://people.tomato.it/piso/vmcore.1.gz fetch http://people.tomato.it/piso/kernel.debug.gz On FreeBSD 6.x the panic was different, something like "trap 12: page fault in kernel mode" in softclock thread then i updated the box to 7.x to see if the panic was fixed. The same hw worked flawlessly with FreeBSD 4.x. Hope someone can shed some light. bye, P. From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 20 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 C511516A474 for ; Mon, 20 Aug 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 B1D1E13C45A for ; Mon, 20 Aug 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 l7KB8ZQN087554 for ; Mon, 20 Aug 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 l7KB8YVJ087550 for freebsd-scsi@FreeBSD.org; Mon, 20 Aug 2007 11:08:34 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Aug 2007 11:08:34 GMT Message-Id: <200708201108.l7KB8YVJ087550@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, 20 Aug 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 Wed Aug 22 03:22:57 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 2857516A417 for ; Wed, 22 Aug 2007 03:22:57 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id CB8B213C457 for ; Wed, 22 Aug 2007 03:22:56 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.8/8.13.8) with ESMTP id l7M2kgeL065754; Tue, 21 Aug 2007 20:46:42 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <46CBA38F.4090206@samsco.org> Date: Tue, 21 Aug 2007 20:46:39 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: Paolo Pisati References: <20070820095109.GA63694@tin.it> In-Reply-To: <20070820095109.GA63694@tin.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Tue, 21 Aug 2007 20:46:42 -0600 (MDT) X-Spam-Status: No, score=-1.4 required=5.5 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org Subject: Re: FreeBSD 6.x/7.x & mpt => "panic: Bad link elm 0xc406d450 next->prev != elm" 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: Wed, 22 Aug 2007 03:22:57 -0000 I don't have a plausible explanation for this. Contact me privately and I'll see what I can do. Scott Paolo Pisati wrote: > Hi, > > i filled a PR (http://www.freebsd.org/cgi/query-pr.cgi?pr=115606) regarding > some problems i have with FreeBSD 6.x/7.x and the mpt controller. > > Basically, any i/o activity on a disk attached to that controller brings a > panic. > > mpt0: mpt_cam_event: 0xc0 > mpt0: Unhandled Event Notify Frame. Event 0xc0afa2c0 (ACK not required). > mpt0: completing timedout/aborted req 0xc406d450:5896 > panic: Bad link elm 0xc406d450 next->prev != elm > cpuid = 0 > KDB: enter: panic > Dumping 1023 MB (2 chunks) > chunk 0: 1MB (157 pages) ... ok > chunk 1: 1023MB (261868 pages) 1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 511 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 > > #0 doadump () at pcpu.h:195 > 195 pcpu.h: No such file or directory. > in pcpu.h > (kgdb) bt > #0 doadump () at pcpu.h:195 > H") at /usr/src/sys/ddb/db_command.c:486 > #2 0xc048d095 in db_command_loop () at /usr/src/sys/ddb/db_command.c:401 > #3 0xc048e805 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:222 > #4 0xc0773066 in kdb_trap (type=3, code=0, tf=0xe43fcb80) at /usr/src/sys/kern/subr_kdb.c:502 > #5 0xc09fd15b in trap (frame=0xe43fcb80) at /usr/src/sys/i386/i386/trap.c:621 > #6 0xc09e2b7b in calltrap () at /usr/src/sys/i386/i386/exception.s:139 > #7 0xc07731e2 in kdb_enter (msg=0xc0a93413 "panic") at cpufunc.h:60 > #8 0xc074c3e4 in panic (fmt=0xc0a49d68 "Bad link elm %p next->prev != elm") at /usr/src/sys/kern/kern_shutdown.c:547 > #9 0xc06065c5 in mpt_scsi_reply_handler (mpt=0xc4066000, req=0xc406d450, reply_desc=65820, reply_frame=0xe43fcc58) at /usr/src/sys/dev/mpt/mpt_cam.c:2661 > #10 0xc06033be in mpt_complete_request_chain (mpt=0xc4066000, chain=0xc40663c4, iocstatus=8) at /usr/src/sys/dev/mpt/mpt.c:849 > #11 0xc0606734 in mpt_cam_ioc_reset (mpt=0xc4066000, type=0) at /usr/src/sys/dev/mpt/mpt_cam.c:3041 > #12 0xc0604acf in mpt_reset (mpt=0xc4066000, reinit=1) at /usr/src/sys/dev/mpt/mpt.c:1145 > #13 0xc0607bf2 in mpt_recovery_thread (arg=0xc4066000) at /usr/src/sys/dev/mpt/mpt_cam.c:4176 > #14 0xc072e258 in fork_exit (callout=0xc0607920 , arg=0xc4066000, frame=0xe43fcd38) at /usr/src/sys/kern/kern_fork.c:797 > #15 0xc09e2bf0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:205 > #1 0xc048cb29 in db_fncall (dummy1=-465581460, dummy2=0, dummy3=524358, dummy4=0xe43fc9d8 " > > kernel.debug and vmcore are available here: > > fetch http://people.tomato.it/piso/vmcore.1.gz > fetch http://people.tomato.it/piso/kernel.debug.gz > > On FreeBSD 6.x the panic was different, something like "trap 12: page fault in kernel mode" in softclock thread > then i updated the box to 7.x to see if the panic was fixed. The same hw worked flawlessly with FreeBSD 4.x. > > Hope someone can shed some light. > > bye, > P. > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org"