From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 25 13:30:05 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E6D0106564A for ; Wed, 25 Feb 2009 13:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F048E8FC14 for ; Wed, 25 Feb 2009 13:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1PDU4wc025685 for ; Wed, 25 Feb 2009 13:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1PDU44e025683; Wed, 25 Feb 2009 13:30:04 GMT (envelope-from gnats) Date: Wed, 25 Feb 2009 13:30:04 GMT Message-Id: <200902251330.n1PDU44e025683@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Patrick Lamaiziere" Cc: Subject: Re: kern/92716: [hifn] [hang] hifn driver hangs after a short while when using GEOM_ELI X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Patrick Lamaiziere List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2009 13:30:05 -0000 The following reply was made to PR kern/92716; it has been noted by GNATS. From: "Patrick Lamaiziere" To: "Oliver Peter" Cc: bug-followup@freebsd.org Subject: Re: kern/92716: [hifn] [hang] hifn driver hangs after a short while when using GEOM_ELI Date: Wed, 25 Feb 2009 14:27:28 +0100 (CET) >> Oliver, please could you try the patch in kern/130286 ? >> http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/130286 >> >> There is a problem in the locking of the sessions in hifn(4), that >> could be the problem (not sure). But I'm not able to reproduce this >> problem with geli on my hardware (a Soekris net5501/i386 - VPN1411) >> >> You can build hifn with the HIFN_DEBUG option, it may help. > > What I did: > - applied your patch to my tree > - switched back to GENERIC (including WITNESS option) > - enabled HIFN_DEBUG in my config > > But no change at all. The dd command still hangs up after > a couple of minutes and the only way out is to reboot. So I don't know, sorry > Also I don't see any debug output from the hifn driver. You have to set the sysctl hw.hifn.debug to 1 There is an OpenBSD PR that could be related, NetBSD also has this change. http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=3739 If hifn misses an interrupt, geli will hang. You can test it In hifn_crypto() at ligne 2053 http://fxr.watson.org/fxr/source/dev/hifn/hifn7751.c#L2053 - if (dma->cmdu > 1) { - sc->sc_dmaier |= HIFN_DMAIER_C_WAIT; - WRITE_REG_1(sc, HIFN_1_DMA_IER, sc->sc_dmaier); - } + sc->sc_dmaier |= HIFN_DMAIER_C_WAIT; + WRITE_REG_1(sc, HIFN_1_DMA_IER, sc->sc_dmaier); Regards.