Subject: Re: 1.6 -> 1.6.1 OFB_ENABLE_CACHE lossage
To: Christian Groessler <cpg@aladdin.de>
From: Allen Briggs <briggs@wasabisystems.com>
List: port-macppc
Date: 04/21/2003 21:40:51
On Mon, Apr 21, 2003 at 11:30:37PM +0200, Christian Groessler wrote:
> the same kernel configuration used as on 1.6 didn't work after
> updating to 1.6.1.

When you say 1.6, was it 1.6something where 'something' was a letter?
(I.e., was it -current)?  If so, then going to 1.6.1 is actually a move
backward in some ways.

In any case, can you try the following patch (with OFB_ENABLE_CACHE
enabled)?

-allen

Index: ofb.c
===================================================================
RCS file: /cvsroot/src/sys/arch/macppc/dev/ofb.c,v
retrieving revision 1.26
diff -u -r1.26 ofb.c
--- ofb.c	2002/03/17 19:40:44	1.26
+++ ofb.c	2003/04/22 01:39:23
@@ -247,7 +247,8 @@
 
 	/* Enable write-through cache. */
 	if (ofb_enable_cache && battable[0xc].batu == 0) {
-		battable[0xc].batl = BATL(addr & 0xf0000000, BAT_W, BAT_PP_RW);
+		battable[0xc].batl = BATL(addr & 0xf0000000,
+					 BAT_G | BAT_W | BAT_M, BAT_PP_RW);
 		battable[0xc].batu = BATL(0xc0000000, BAT_BL_256M, BAT_Vs);
 		addr &= 0x0fffffff;
 		addr |= 0xc0000000;

-- 
 Allen Briggs                     briggs@wasabisystems.com
 Wasabi Systems, Inc.             http://www.wasabisystems.com/