NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR/48431 CVS commit: src/sys/arch/alpha/pci
The following reply was made to PR port-alpha/48431; it has been noted by GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: PR/48431 CVS commit: src/sys/arch/alpha/pci
Date: Thu, 16 Jan 2014 00:22:30 +0900
> Revert previous. PR/48431 claims ALPHA_PHYS_TO_K0SEG() is necessary.
Can you try this patch instead?
---
Index: pci/tsp_bus_mem.c
===================================================================
RCS file: /cvsroot/src/sys/arch/alpha/pci/tsp_bus_mem.c,v
retrieving revision 1.12
diff -u -p -r1.12 tsp_bus_mem.c
--- pci/tsp_bus_mem.c 6 Feb 2012 02:14:15 -0000 1.12
+++ pci/tsp_bus_mem.c 15 Jan 2014 15:18:22 -0000
@@ -57,7 +57,8 @@ __KERNEL_RCSID(0, "$NetBSD: tsp_bus_mem.
#define CHIP_MEM_EX_STORE_SIZE(v)
\
(sizeof (((struct tsp_config *)(v))->pc_mem_exstorage))
-#define CHIP_MEM_SYS_START(v) (((struct tsp_config *)(v))->pc_iobase)
+#define CHIP_MEM_SYS_START(v) \
+ (((struct tsp_config *)(v))->pc_iobase | P_PCI_MEM)
/*
* Tsunami core logic appears on EV6. We require at least EV56
---
I'm not sure which address should be used to translate
Titan's P_PCI_MEM (from 0x0000080000000000) regions into
K0SEG direct map (from 0xfffffc0000000000) regions though.
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index