Subject: TGA console broken
To: None <current-users@netbsd.org>
From: Christian Groessler <cpg@aladdin.de>
List: current-users
Date: 02/07/2000 22:34:39
Hi,
in recent current I get the following when I try to boot my Alpha:
Entering netbsd at 0xfffffxxxxxxxx
panic: tga_console (13, 0): couldn't map memory space
It seems the following change in sys/dev/pci/tga.c is the reason:
-----------------
--- tga.c 1999/12/11 00:59:37 1.1.1.5
+++ tga.c 2000/01/28 21:39:50 1.1.1.6
@@ -1,4 +1,4 @@
-/* $NetBSD: tga.c,v 1.15 1999/12/06 19:25:59 drochner Exp $ */
+/* $NetBSD: tga.c,v 1.16 2000/01/25 22:30:05 drochner Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -168,11 +168,11 @@
PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT,
&dc->dc_pcipaddr, &pcisize, &flags))
return;
- if ((flags & BUS_SPACE_MAP_CACHEABLE) == 0) /* XXX */
- panic("tga memory not cacheable");
+ if ((flags & BUS_SPACE_MAP_PREFETCHABLE) == 0) /* XXX */
+ panic("tga memory not prefetchable");
if (bus_space_map(memt, dc->dc_pcipaddr, pcisize,
- BUS_SPACE_MAP_CACHEABLE | BUS_SPACE_MAP_LINEAR, &dc->dc_vaddr))
+ BUS_SPACE_MAP_PREFETCHABLE | BUS_SPACE_MAP_LINEAR, &dc->dc_vaddr))
return;
#ifdef __alpha__
dc->dc_paddr = ALPHA_K0SEG_TO_PHYS(dc->dc_vaddr); /* XXX */
-----------------
If I revert to v1.15, the boot stops with
panic:tga memory not cacheable
I "fixed" this by removing the cacheable check and now it
works again, but I'm afraid that this is not the correct solution.
regards,
chris