Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Mar 2015 00:06:44 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Michael Fuckner <michael@fuckner.net>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Ryan Stone <rysto32@gmail.com>, Steven Hartland <killing@multiplay.co.uk>
Subject:   Re: Server with 3TB Crashing at boot
Message-ID:  <20150317220644.GQ2379@kib.kiev.ua>
In-Reply-To: <5507E525.4000209@fuckner.net>
References:  <20150316091758.GY2379@kib.kiev.ua> <5506ADA4.8020207@fuckner.net> <20150316103140.GA2379@kib.kiev.ua> <5506B23F.20400@fuckner.net> <20150316105301.GB2379@kib.kiev.ua> <5506E8D6.30703@fuckner.net> <20150316154022.GD2379@kib.kiev.ua> <55072195.40609@fuckner.net> <20150316185602.GJ2379@kib.kiev.ua> <5507E525.4000209@fuckner.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 17, 2015 at 09:26:13AM +0100, Michael Fuckner wrote:
> >>
> >> At least I figured out how to remove the empty Lines (Ctrl-a, shift-A).
> >> Don't run minicom inside a screen ;-)
> > I do not quite understand why such programs as minicom are needed at all.
> > Isn't tip (AKA cu) good enough ?
> OK, I'll test cu+tee for logging. Basicially I like cu, but logging with 
> minicom is quite easy
> 
> 
> > Please add the following patch to the kernel.
> >
> > diff --git a/sys/x86/iommu/intel_gas.c b/sys/x86/iommu/intel_gas.c
> <snip>
> it looks like this with the gas patch.
> 
> 
> http://dedi3.fuckner.net/~molli123/temp/head-ixgbe-gas.txt
So machine booted, right ?

Do network and non-nvme HBAs function correctly ?

> 
> but when I do nvmecontrol devlist, I get a panic again
> http://dedi3.fuckner.net/~molli123/temp/nvme.log

I committed the hardening of some assert that supposedly could catch
the situation earlier.  Also I committed the boundary fix.

Please update the head to at least r280196.  Since there were conflicting
changes to ixgbe, below is the re-merged patch to fix NULL dereference.

diff --git a/sys/dev/ixgbe/ix_txrx.c b/sys/dev/ixgbe/ix_txrx.c
index b16301d..79a5f92 100644
--- a/sys/dev/ixgbe/ix_txrx.c
+++ b/sys/dev/ixgbe/ix_txrx.c
@@ -1040,7 +1040,6 @@ ixgbe_txeof(struct tx_ring *txr)
 			    buf->map);
 			m_freem(buf->m_head);
 			buf->m_head = NULL;
-			buf->map = NULL;
 		}
 		buf->eop = NULL;
 		++txr->tx_avail;
@@ -1066,7 +1065,6 @@ ixgbe_txeof(struct tx_ring *txr)
 				    buf->map);
 				m_freem(buf->m_head);
 				buf->m_head = NULL;
-				buf->map = NULL;
 			}
 			++txr->tx_avail;
 			buf->eop = NULL;
@@ -1386,8 +1384,7 @@ ixgbe_allocate_receive_buffers(struct rx_ring *rxr)
 
 	for (i = 0; i < rxr->num_desc; i++, rxbuf++) {
 		rxbuf = &rxr->rx_buffers[i];
-		error = bus_dmamap_create(rxr->ptag,
-		    BUS_DMA_NOWAIT, &rxbuf->pmap);
+		error = bus_dmamap_create(rxr->ptag, 0, &rxbuf->pmap);
 		if (error) {
 			device_printf(dev, "Unable to create RX dma map\n");
 			goto fail;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150317220644.GQ2379>