From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.44.254]) by listman.redhat.com (Postfix) with ESMTP id 9F3153EA4B for ; Tue, 11 Dec 2001 08:57:53 -0500 (EST) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id fBBDvrp26671 for ; Tue, 11 Dec 2001 08:57:53 -0500 Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id fBBDvrk19021 for axp-list@listman.redhat.com; Tue, 11 Dec 2001 08:57:53 -0500 Received: from web11204.mail.yahoo.com (web11204.mail.yahoo.com [216.136.131.186]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id fBBDvqw19017 for ; Tue, 11 Dec 2001 08:57:53 -0500 Message-ID: <20011211135752.29989.qmail@web11204.mail.yahoo.com> Received: from [24.49.188.189] by web11204.mail.yahoo.com via HTTP; Tue, 11 Dec 2001 05:57:52 PST Date: Tue, 11 Dec 2001 05:57:52 -0800 (PST) From: Tom Dropka Subject: Re: Kernel unaligned accesses To: axp-list@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Yep, that did it. Thanks to Ivan and Jay, my unaligned accesses are now pegged at 0. Tom ----- Original Message ----- From: "Ivan Kokshaysky" To: Sent: Tuesday, December 11, 2001 6:01 AM Subject: Re: Kernel unaligned accesses > On Mon, Dec 10, 2001 at 12:49:49PM -0800, Tom Dropka wrote: > > BTW, I saw the same unaligned accesses with the stock RH 2.4.3-12 > > kernel, which is why I tried 2.4.16. > > If you have the driver compiled as module (which is probably the > case for stock RH kernel), you can try to fix it even without > recompiling - pass "rx_copybreak=1518" option to the module. > Or try appended patch. > > > > Don Becker's drivers, when "adjusted" for Alpha, force a copy of the > > > data from the "raw" buffer to another buffer where the data will be > > > appropriately aligned, thus avoiding any unaligned accesses at the > > > price of the packet copy. > > Yes - it's a common problem on alpha and several other platforms > with network cards capable to DMA only on a 32-bit boundary (via-rhine > is one of those). Without copying the packet to another buffer IP header > will be misaligned, and you'll have tons of unaligned traps in the > TCP/IP layer. > > Ivan. > > --- linux/drivers/net/via-rhine.c.orig Sat Nov 10 00:45:36 2001 > +++ linux/drivers/net/via-rhine.c Tue Dec 11 13:11:33 2001 > @@ -87,7 +87,12 @@ static int max_interrupt_work = 20; > > /* Set the copy breakpoint for the copy-only-tiny-frames scheme. > Setting to > 1518 effectively disables this feature. */ > -static int rx_copybreak; > +#if defined(__alpha__) || defined(__sparc__) || defined(__mips__) || \ > + defined(__arm__) > +static int rx_copybreak = 1518; > +#else > +static int rx_copybreak = 200; > +#endif > > /* Used to pass the media type, etc. > Both 'options[]' and 'full_duplex[]' should exist for driver > > > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com