From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Oliver Pitzeier" Newsgroups: gmane.linux.redhat.axp.kernel Subject: RE: kernel 2.5.20 on alpha (RE: [patch] Re: kernel 2.5.18 on alpha) Date: Tue, 4 Jun 2002 16:40:02 +0200 Organization: =?us-ascii?Q?UPtime_Systemlosungen?= Sender: axp-kernel-list-admin@redhat.com Message-ID: <000101c20bd5$b8f24560$010b10ac@sbp.uptime.at> References: <000001c20bd1$0cad7580$010b10ac@sbp.uptime.at> Reply-To: axp-kernel-list@redhat.com NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1023201682 1069 127.0.0.1 (4 Jun 2002 14:41:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 4 Jun 2002 14:41:22 +0000 (UTC) Cc: Return-path: Original-Received: from listman.redhat.com ([66.187.233.211]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17FFUw-0000H8-00 for ; Tue, 04 Jun 2002 16:41:22 +0200 Original-Received: from listman.redhat.com (localhost.localdomain [127.0.0.1]) by listman.redhat.com (Postfix) with ESMTP id 5A7693EC27; Tue, 4 Jun 2002 10:41:01 -0400 (EDT) Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id D0A9B3EB02 for ; Tue, 4 Jun 2002 10:40:13 -0400 (EDT) Original-Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g54EeDl16083 for axp-kernel-list@listman.redhat.com; Tue, 4 Jun 2002 10:40:13 -0400 Original-Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g54EeC316079 for ; Tue, 4 Jun 2002 10:40:12 -0400 Original-Received: from vivi.uptime.at (vivi.uptime.at [62.116.87.11]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g54EWV926344 for ; Tue, 4 Jun 2002 10:32:32 -0400 Original-Received: from LEFTIE (fw [62.116.87.2]) by vivi.uptime.at (8.11.6/8.11.6) with ESMTP id g54EeAw17196; Tue, 4 Jun 2002 16:40:10 +0200 Original-To: , "'Ivan Kokshaysky'" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: <000001c20bd1$0cad7580$010b10ac@sbp.uptime.at> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Loop: axp-kernel-list@redhat.com Errors-To: axp-kernel-list-admin@redhat.com X-BeenThere: axp-kernel-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk X-Reply-To: List-Help: List-Post: List-Subscribe: , List-Id: Alpha Kernel issues List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.linux.redhat.axp.kernel:49 X-Report-Spam: http://spam.gmane.org/gmane.linux.redhat.axp.kernel:49 Can anybody tell me what's wrong within this line: linux-2.5.20/include/linux/device.h: [ ... ] 73 static inline struct bus_type * get_bus(struct bus_type * bus) 74 { -->> 75 BUG_ON(!atomic_read(&bus->refcount)); 76 atomic_inc(&bus->refcount); 77 return bus; 78 } [ ... ] I guess BUG_ON always produces an error? But why is my kernel jumping there and why is BUG_ON there? This is new to me... I can't find get_bus in 2.5.18. -Oliver Oliver Pitzeier wrote: > Ok. Kernel compiled, but at the startup I see this: > [ ... ] > Initializing RT netlink socket > pci: passed tb register update test > pci: passed sg loopback i/o read test > pci: passed tbia test > pci: passed pte write cache snoop test > pci: failed valid tag invalid pte reload test (mcheck; workaround > available) > pci: passed pci machine check test > Kernel bug at /usr/src/linux-2.5.20/include/linux/device.h:75 > swapper(1): Kernel Bug 1 > pc = [] ra = [] ps = 0000 Not > tainted > v0 = 0000000000000000 t0 = 0000000000000000 t1 = > fffffc00005b3a48 t2 = fffffc00001e2888 t3 = fffffc00001e2878 > t4 = ffffffff00000000 t5 = 0000000000000001 t6 = > fffffc000ffe1c68 t7 = fffffc00008a8000 a0 = fffffc00001e2878 > a1 = 0000000000000000 a2 = 0000000000000000 a3 = > 0000000000000000 a4 = fffffffffffffffe a5 = > 0000000000000002 t8 = fffffc00005a85b0 t9 = 0000000000008000 > t10= 0000000000008000 t11= 0000000000010000 pv = > fffffc00003dce80 at = 0000000000000000 gp = fffffc00005eece8 > sp = fffffc00008ab400 Trace:fffffc00003dbc14 > fffffc00003100c8 fffffc0000310708 fffffc0000310bf8 > fffffc000032ed58 fffffc000031008c fffffc00003100b0 fffffc00003106f0 > Code: a44400c0 2fe00000 e4400018 a022000c f4200004 > 00000081 <0000004b> 00579a9d > Kernel panic: Attempted to kill init! > > I check what is on line 75 in device.h! > > Greetz, > Oliver > > PS: Anybody want's the patches??? > > > -----Original Message----- > > From: axp-kernel-list-admin@redhat.com > > [mailto:axp-kernel-list-admin@redhat.com] On Behalf Of > Oliver Pitzeier > > Sent: Tuesday, June 04, 2002 2:45 PM > > To: 'Ivan Kokshaysky' > > Cc: linux-kernel@vger.kernel.org; axp-kernel-list@redhat.com > > Subject: RE: kernel 2.5.20 on alpha (RE: [patch] Re: kernel > > 2.5.18 on alpha) > > > > > > Hi! > > > > I already found a few more errors while trying to compile > > 2.5.20. I send you the patch as soon as I have successfully > > compiled the kernel _without_ problems (hopefully today). > > > > FYI. I do not compile very much options; The main options > > I compile ('coz I need 'em and nothing more...): > > SCSI: QLogic ISP > > Network: DECchip Tulip (dc2114x) and Early DECchip > > Tulip (dc2104x) > > Character Dev.: Support for console on serial port > > Filesystems: EXT3 support, no ReiserFS > > Network FS: NFS (as module) > > > > Greetz, > > Oliver > > > > > Oliver Pitzeier wrote: > > > [ ... ] > > > > > > > If you want to know the error: > > > > > > [ ... ] > > > > > > > `copy_user_page' undeclared (first use in this function) > > > > make[1]: *** [main.o] Error 1 > > > > make[1]: Leaving directory `/usr/src/linux-2.5.20/init' > > > > make: *** [init] Error 2 > > > > > > I guess I found where the error comes from: > > > > > > (from the 2.5.20 Changelog): > > > > > > > > [PATCH] pass "page" pointer to > clear_user_page()/copy_user_page() > > > > > > > > Hi Linus, > > > > > > > > Are you willing to change the interfaces of > clear_user_page() and > > > > copy_user_page() so that they can receive the relevant page > > > pointer as > > > > a separate argument? I need this on ia64 to implement the > > > lazy-cache > > > > flushing scheme. > > > > > > > > I believe PPC would also benefit from this. > > > > > > > > --david > > > > > > Now I believe, that Alpha also benefits from this. :o) The only > > > thing I have to do - I guess - is to change the defines for > > > copy_user_page() and clear_user_page. Adding the not used > parameter > > > >pg< should not make any problems. > > > > > > Greetz, > > > Oliver