From owner-freebsd-mips@FreeBSD.ORG Mon Aug 10 02:20:33 2009 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8ACF106564A for ; Mon, 10 Aug 2009 02:20:33 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from expo.ukrweb.net (mail.univua.net [91.202.128.78]) by mx1.freebsd.org (Postfix) with ESMTP id 91DF58FC16 for ; Mon, 10 Aug 2009 02:20:33 +0000 (UTC) Received: from [24.87.52.209] (helo=lair.bluezbox.com) by expo.ukrweb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MaK2U-000FqL-6b; Mon, 10 Aug 2009 04:51:09 +0300 Message-ID: <4A7F7CDB.2030009@bluezbox.com> Date: Sun, 09 Aug 2009 18:50:19 -0700 From: Oleksandr Tymoshenko User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: Neelkanth Natu References: <153254.15259.qm@web34402.mail.mud.yahoo.com> In-Reply-To: <153254.15259.qm@web34402.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: Diffs to fix L1 cache flush problems X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2009 02:20:34 -0000 Neelkanth Natu wrote: > Hi, > > This is a simple change that fixes problems invalidating L1 > data/instruction caches. The problem is that the type of the variable > that holds the size of the instruction/data caches is uint8_t. Clearly > this is going to overflow. > > On the Sibyte with 32KB cache size the uint8_t was causing it to be > truncated to 0. This in turn makes the cache flush routines turn into > no-ops. > > I ran into this when testing kernel loadable modules and have verified that > this change fixes the problem. Thanks, committed. From owner-freebsd-mips@FreeBSD.ORG Fri Aug 14 05:09:02 2009 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA1A11065691; Fri, 14 Aug 2009 05:09:02 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 8DDFB8FC67; Fri, 14 Aug 2009 05:09:02 +0000 (UTC) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n7E590rE035338; Fri, 14 Aug 2009 01:09:00 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.3/8.14.3) with ESMTP id n7E58xNU082746; Fri, 14 Aug 2009 01:08:59 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id BDE357302F; Fri, 14 Aug 2009 01:08:59 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090814050859.BDE357302F@freebsd-current.sentex.ca> Date: Fri, 14 Aug 2009 01:08:59 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at smtp2.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2009 05:09:03 -0000 TB --- 2009-08-14 04:04:42 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-08-14 04:04:42 - starting HEAD tinderbox run for mips/mips TB --- 2009-08-14 04:04:42 - cleaning the object tree TB --- 2009-08-14 04:05:02 - cvsupping the source tree TB --- 2009-08-14 04:05:02 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/mips/mips/supfile TB --- 2009-08-14 04:05:09 - building world TB --- 2009-08-14 04:05:09 - MAKEOBJDIRPREFIX=/obj TB --- 2009-08-14 04:05:09 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-08-14 04:05:09 - TARGET=mips TB --- 2009-08-14 04:05:09 - TARGET_ARCH=mips TB --- 2009-08-14 04:05:09 - TZ=UTC TB --- 2009-08-14 04:05:09 - __MAKE_CONF=/dev/null TB --- 2009-08-14 04:05:09 - cd /src TB --- 2009-08-14 04:05:09 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 14 04:05:11 UTC 2009 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] ===> usr.sbin/mfiutil (all) cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -fno-builtin-strftime -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/mfiutil/mfiutil.c cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -fno-builtin-strftime -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/mfiutil/mfi_cmd.c cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -fno-builtin-strftime -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/mfiutil/mfi_config.c cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -fno-builtin-strftime -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/mfiutil/mfi_drive.c cc1: warnings being treated as errors /src/usr.sbin/mfiutil/mfi_drive.c: In function 'mfi_lookup_drive': /src/usr.sbin/mfiutil/mfi_drive.c:120: warning: comparison between signed and unsigned *** Error code 1 Stop in /src/usr.sbin/mfiutil. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-08-14 05:08:59 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-08-14 05:08:59 - ERROR: failed to build world TB --- 2009-08-14 05:08:59 - 2959.47 user 335.62 system 3856.79 real http://tinderbox.des.no/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Fri Aug 14 13:28:52 2009 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA9A0106568D; Fri, 14 Aug 2009 13:28:51 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 9BBBE8FC51; Fri, 14 Aug 2009 13:28:51 +0000 (UTC) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id n7EDSmHk059697; Fri, 14 Aug 2009 09:28:48 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.3/8.14.3) with ESMTP id n7EDSmvg018689; Fri, 14 Aug 2009 09:28:48 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 1232B7302F; Fri, 14 Aug 2009 09:28:47 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20090814132848.1232B7302F@freebsd-current.sentex.ca> Date: Fri, 14 Aug 2009 09:28:47 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at smtp1.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2009 13:28:52 -0000 TB --- 2009-08-14 12:24:37 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-08-14 12:24:37 - starting HEAD tinderbox run for mips/mips TB --- 2009-08-14 12:24:37 - cleaning the object tree TB --- 2009-08-14 12:24:55 - cvsupping the source tree TB --- 2009-08-14 12:24:55 - /usr/bin/csup -z -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/mips/mips/supfile TB --- 2009-08-14 12:25:04 - building world TB --- 2009-08-14 12:25:04 - MAKEOBJDIRPREFIX=/obj TB --- 2009-08-14 12:25:04 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-08-14 12:25:04 - TARGET=mips TB --- 2009-08-14 12:25:04 - TARGET_ARCH=mips TB --- 2009-08-14 12:25:04 - TZ=UTC TB --- 2009-08-14 12:25:04 - __MAKE_CONF=/dev/null TB --- 2009-08-14 12:25:04 - cd /src TB --- 2009-08-14 12:25:04 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 14 12:25:05 UTC 2009 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] ===> usr.sbin/mfiutil (all) cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -fno-builtin-strftime -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/mfiutil/mfiutil.c cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -fno-builtin-strftime -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/mfiutil/mfi_cmd.c cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -fno-builtin-strftime -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/mfiutil/mfi_config.c cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -fno-builtin-strftime -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/mfiutil/mfi_drive.c cc1: warnings being treated as errors /src/usr.sbin/mfiutil/mfi_drive.c: In function 'mfi_lookup_drive': /src/usr.sbin/mfiutil/mfi_drive.c:120: warning: comparison between signed and unsigned *** Error code 1 Stop in /src/usr.sbin/mfiutil. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-08-14 13:28:47 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-08-14 13:28:47 - ERROR: failed to build world TB --- 2009-08-14 13:28:47 - 2958.74 user 336.41 system 3850.43 real http://tinderbox.des.no/tinderbox-head-HEAD-mips-mips.full