From owner-freebsd-current@FreeBSD.ORG Fri May 7 20:53:39 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 254C21065673; Fri, 7 May 2010 20:53:39 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id D96948FC1A; Fri, 7 May 2010 20:53:38 +0000 (UTC) Received: by pxi20 with SMTP id 20so721762pxi.13 for ; Fri, 07 May 2010 13:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=nymjM8aQpXCTQKpDM8kFK2X72tRZzz7ph80L9lNoxIA=; b=NqxhaSbEwkMM6Aoogr0v7fqhycxD64VElkXOrxX6ThJLgiXEzS6ERWWJN1RgSLo10N WjXVj6Ah3iwcXN9oinbN87BG3R5JhChM1Eq3S2NW5bOtLBh00eL/sYkpVdzrjmnqcrJx fYxyK5/D3+fvs22da5LFnSlDzKGnpSlFojLss= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=sMvkKVD1e4aOrGi/jfI9bWU7Vz47916QmKLXKnWr6kY0j/REbPlZhTwPL3pSmY/iGI 8TeoqVFx5DOmPvUAUFv4BHle0918khSdte2OLSIdCiMLUOyXM6RXx2025vIeipV3jG8J TpjQyFmhksCJt2DUoztOcCKir09whb6HofKJ4= Received: by 10.142.7.13 with SMTP id 13mr385665wfg.122.1273265615096; Fri, 07 May 2010 13:53:35 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 20sm1970927pzk.7.2010.05.07.13.53.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 07 May 2010 13:53:34 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 7 May 2010 13:53:28 -0700 From: Pyun YongHyeon Date: Fri, 7 May 2010 13:53:28 -0700 To: McLone Message-ID: <20100507205328.GH14801@michelle.cdnetworks.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="C+ts3FVlLX8+P6JN" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: network@freebsd.org, stable@freebsd.org, current@freebsd.org Subject: Re: if_re regression on RELENG_8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2010 20:53:39 -0000 --C+ts3FVlLX8+P6JN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 07, 2010 at 05:55:02PM +0300, McLone wrote: > Hell Low. > > When Vista finally died on my girl's notebook, > she asked me to install FreeBSD on it, so no more viruses. > I installed RELENG_8_0/i386, to compile fresh RELENG_8/amd64 > in hopes SUJ will be availible (2gb RAM is kinda too small for ZFS). > > I've built custom kernel (GENERIC with unneeded things nodevice'd) > and rebooted it, kldload if_re, ifcionfig, so ping started to work. > I then attempted to mount_nfs, but it hung. > "re0: watchdog timeout" appeared on console. > > So the thing is, re0 stops working after sending any packet > longer than 536 bytes. I tested via ping, -S (536-8) works, > but (537-8) leads to watchdog timeout. The host cannot be > software rebooted in ~80% cases after it happened. > > Machine in question is Fujitsu-Siemens Amilo Pi 2540. > The lines from RELENG_8 dmesg are: > > re0: port > 0x3000-0x30ff mem 0xf0300000-0xf0300fff irq 19 at device 0.0 on pci5 > re0: Reserved 0x1000 bytes for rid 0x18 type 3 at 0xf0300000 > re0: MSI count : 2 > re0: attempting to allocate 1 MSI vectors (2 supported) > re0: using IRQ 256 for MSI > re0: Using 1 MSI messages > re0: Chip rev. 0x34000000 > re0: MAC rev. 0x00000000 > miibus0: on re0 > re0: bpf attached > re0: Ethernet address: 00:03:0d:a1:a8:19 > re0: [MPSAFE] > re0: [FILTER] > > Those lines in RELENG_8_0 are the same except IRQ 259 > (i kldload if_re after boot). > RELENG_8 is from 2010.05.04 i believe; > had tried with sources as of 2 or 3 weeks earlier - same bug. > No CFLAGS except -mtune=native (i doubt it does the weather). > It doesn't matter if i kldload or just use GENERIC. > > How can i test further, except building fresh RELENG_8/i386? > How to use a magic "DDB key" and what to input in there? > Would you try attached patch? --C+ts3FVlLX8+P6JN Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="re.mreq.patch" Index: sys/dev/re/if_re.c =================================================================== --- sys/dev/re/if_re.c (revision 207747) +++ sys/dev/re/if_re.c (working copy) @@ -1162,9 +1162,11 @@ msic = 0; if (pci_find_extcap(dev, PCIY_EXPRESS, ®) == 0) { sc->rl_flags |= RL_FLAG_PCIE; - /* Set PCIe maximum read request size to 2048. */ - if (pci_get_max_read_req(dev) < 2048) - pci_set_max_read_req(dev, 2048); + if (devid != RT_DEVICEID_8101E) { + /* Set PCIe maximum read request size to 2048. */ + if (pci_get_max_read_req(dev) < 2048) + pci_set_max_read_req(dev, 2048); + } msic = pci_msi_count(dev); if (bootverbose) device_printf(dev, "MSI count : %d\n", msic); --C+ts3FVlLX8+P6JN--