Subject: Re: TGA and NetBSD/alpha
To: Ross Harvey <ross@ghs.com>
From: Chuck Silvers <chuq@chuq.com>
List: port-alpha
Date: 10/24/1999 08:57:34
try this patch.

-Chuck


Index: uvm_device.c
===================================================================
RCS file: /cvsroot/syssrc/sys/uvm/uvm_device.c,v
retrieving revision 1.16
diff -u -r1.16 uvm_device.c
--- uvm_device.c	1999/04/08 10:26:21	1.16
+++ uvm_device.c	1999/10/24 15:54:12
@@ -415,6 +415,7 @@
 	int lcv, retval, mdpgno;
 	dev_t device;
 	int (*mapfn) __P((dev_t, int, int));
+	vm_prot_t mapprot;
 	UVMHIST_FUNC("udv_fault"); UVMHIST_CALLED(maphist);
 	UVMHIST_LOG(maphist,"  flags=%d", flags,0,0,0);
 
@@ -473,11 +474,12 @@
 			break;
 		}
 		paddr = pmap_phys_address(mdpgno);
+		mapprot = ufi->entry->protection;
 		UVMHIST_LOG(maphist,
 		    "  MAPPING: device: pm=0x%x, va=0x%x, pa=0x%x, at=%d",
-		    ufi->orig_map->pmap, curr_va, (int)paddr, access_type);
-		pmap_enter(ufi->orig_map->pmap, curr_va, paddr, access_type, 0,
-		    access_type);
+		    ufi->orig_map->pmap, curr_va, (int)paddr, mapprot);
+		pmap_enter(ufi->orig_map->pmap, curr_va, paddr, mapprot, 0,
+		    mapprot);
 
 	}
 

On Sun, Oct 24, 1999 at 12:09:44AM -0700, Ross Harvey wrote:
> > From: Andrew Gillham <gillhaa@ghost.whirlpool.com>
> :::
> > Boy, I wasn't kidding when I said X under 1.4 was slow compared to
> > 1.3.3. :=)  Geez, 1.3.3 is 52 times faster at scrolling text, 40 times
> > faster at xor'ing, and 56 times faster at line segments.
> :::
> 
> OK, I've found the problem (lurking in the kernel) and should have it fixed
> RSN.
> 
> Thanks very much for a good report, and thanks to RC for a perfect test case.
> 
> 	ross.harvey@computer.org