Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751557AbWIUUvK (ORCPT ); Thu, 21 Sep 2006 16:51:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751554AbWIUUvK (ORCPT ); Thu, 21 Sep 2006 16:51:10 -0400 Received: from dsl027-180-168.sfo1.dsl.speakeasy.net ([216.27.180.168]:25059 "EHLO sunset.davemloft.net") by vger.kernel.org with ESMTP id S1751547AbWIUUvI (ORCPT ); Thu, 21 Sep 2006 16:51:08 -0400 Date: Thu, 21 Sep 2006 13:51:21 -0700 (PDT) Message-Id: <20060921.135121.35022014.davem@davemloft.net> To: mikpe@it.uu.se Cc: simoneau@ele.uri.edu, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [sparc64] 2.6.18 unaligned acccess in ehci_hub_control From: David Miller In-Reply-To: <17682.27477.995475.57130@alkaid.it.uu.se> References: <20060920172123.GA9334@ele.uri.edu> <20060920.105659.128612840.davem@davemloft.net> <17682.27477.995475.57130@alkaid.it.uu.se> X-Mailer: Mew version 4.2 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 22 From: Mikael Pettersson Date: Thu, 21 Sep 2006 12:37:09 +0200 > I don't think it's harmless. My Ultra5 has an add-on PCI USB controller > card (Belkin). A 2.6.18-rc kernel compiled with gcc-4.1.1 will throw a few > unaligned accesses when I initialise USB by inserting a USB memory stick. > Removing the memory stick then results in PCI errors and other breakage. > > The same kernel compiled with gcc-3.4.6 has no problems at all, so I've > been assuming it's a gcc-4 issue and not a kernel issue. Compiled with gcc-4.0.x I get the same ehci_hub_control unaligned accesses, and putting the correct {get,put}_unaligned() in that function makes them go away. It's a pure mystery if gcc-3.4.x somehow avoids those, as by the way the code is written those unaligned accesses are to be expected. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/