From: Jay Estabrook <Jay.Estabrook@compaq.com>
To: axp-list@redhat.com
Subject: Re: [LONG] CIA breakage in 2.4.13 (was Re: AS500 and 2.4 SCSI blues)
Date: Mon, 10 Jun 2002 14:07:07 -0400 [thread overview]
Message-ID: <20020610140707.A1355@linux04.mro.cpqcorp.net> (raw)
In-Reply-To: <wrpr8jf64zc.fsf@hina.wild-wind.fr.eu.org>; from mzyngier@freesurf.fr on Mon, Jun 10, 2002 at 08:08:07AM +0200
On Mon, Jun 10, 2002 at 08:08:07AM +0200, Marc Zyngier wrote:
> >>>>> "Jay" == Jay Estabrook <Jay.Estabrook@compaq.com> writes:
>
> Jay> I will post patches against 2.4.19-preX when I get in to work
> Jay> Monday.
>
> I'll be very happy to test it.
OK, here you go, apply as usual...
These have worked fine for me on CIA-1 machines such as XLT and EB164.
-----------------------------------------------------------------------------
diff -ur old/arch/alpha/kernel/core_cia.c new/arch/alpha/kernel/core_cia.c
--- old/arch/alpha/kernel/core_cia.c Sun Oct 21 13:30:58 2001
+++ new/arch/alpha/kernel/core_cia.c Tue May 28 15:02:42 2002
@@ -370,7 +370,7 @@
}
static inline void
-cia_prepare_tbia_workaround(void)
+cia_prepare_tbia_workaround(int cia_rev, int is_pyxis)
{
unsigned long *ppte, pte;
long i;
@@ -382,10 +382,20 @@
for (i = 0; i < CIA_BROKEN_TBIA_SIZE / sizeof(unsigned long); ++i)
ppte[i] = pte;
- *(vip)CIA_IOC_PCI_W1_BASE = CIA_BROKEN_TBIA_BASE | 3;
- *(vip)CIA_IOC_PCI_W1_MASK = (CIA_BROKEN_TBIA_SIZE*1024 - 1)
- & 0xfff00000;
- *(vip)CIA_IOC_PCI_T1_BASE = virt_to_phys(ppte) >> 2;
+ if (is_pyxis || cia_rev != 1) {
+ /* We can use W1 for SG on PYXIS/CIA rev 2. */
+ *(vip)CIA_IOC_PCI_W1_BASE = CIA_BROKEN_TBIA_BASE | 3;
+ *(vip)CIA_IOC_PCI_W1_MASK = (CIA_BROKEN_TBIA_SIZE*1024 - 1)
+ & 0xfff00000;
+ *(vip)CIA_IOC_PCI_T1_BASE = virt_to_phys(ppte) >> 2;
+ } else {
+ /* CIA rev 1 can't use W1 or W2 for SG, apparently,
+ so use W3, which we made sure is not used for DAC. */
+ *(vip)CIA_IOC_PCI_W3_BASE = CIA_BROKEN_TBIA_BASE | 3;
+ *(vip)CIA_IOC_PCI_W3_MASK = (CIA_BROKEN_TBIA_SIZE*1024 - 1)
+ & 0xfff00000;
+ *(vip)CIA_IOC_PCI_T3_BASE = virt_to_phys(ppte) >> 2;
+ }
}
static void __init
@@ -715,8 +725,14 @@
are compared against W_DAC. We can, however, directly map 4GB,
which is better than before. However, due to assumptions made
elsewhere, we should not claim that we support DAC unless that
- 4GB covers all of physical memory. */
- if (is_pyxis || max_low_pfn > (0x100000000 >> PAGE_SHIFT)) {
+ 4GB covers all of physical memory.
+
+ Also, don't do DAC on CIA rev 1, it has other problems and is
+ unlikely to have more than 2GB of memory anyway, so direct is
+ fine.
+ */
+ if (cia_rev == 1 || is_pyxis ||
+ max_low_pfn > (0x100000000 >> PAGE_SHIFT)) {
*(vip)CIA_IOC_PCI_W3_BASE = 0;
} else {
*(vip)CIA_IOC_PCI_W3_BASE = 0x00000000 | 1 | 8;
@@ -728,7 +744,7 @@
}
/* Prepare workaround for apparently broken tbia. */
- cia_prepare_tbia_workaround();
+ cia_prepare_tbia_workaround(cia_rev, is_pyxis);
}
void __init
-----------------------------------------------------------------------------
--Jay++
-----------------------------------------------------------------------------
Jay A Estabrook HPTC - LINUX support
Hewlett-Packard Company - MRO1-2/K15 (508) 467-2080
200 Forest Street, Marlboro MA 01752 Jay.Estabrook@hp.com
-----------------------------------------------------------------------------
next prev parent reply other threads:[~2002-06-10 18:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-08 8:13 AS500 and 2.4 SCSI blues Marc Zyngier
2002-06-08 11:29 ` Peter M. Hahn
2002-06-08 14:04 ` Marc Zyngier
2002-06-08 18:53 ` George France
2002-06-09 19:02 ` Marc Zyngier
2002-06-09 8:30 ` [LONG] CIA breakage in 2.4.13 (was Re: AS500 and 2.4 SCSI blues) Marc Zyngier
2002-06-09 12:53 ` Marc Zyngier
2002-06-09 19:41 ` Jay Estabrook
2002-06-10 6:08 ` Marc Zyngier
2002-06-10 12:12 ` Jay Estabrook
2002-06-10 12:25 ` Marc Zyngier
2002-06-10 18:38 ` Marc Zyngier
2002-06-10 18:07 ` Jay Estabrook [this message]
2002-06-10 19:29 ` Marc Zyngier
2002-06-13 17:02 ` Jay Estabrook
2002-06-13 21:28 ` Marc Zyngier
2002-06-09 16:32 ` Michal Jaegermann
2002-06-09 18:36 ` Marc Zyngier
2002-06-09 19:03 ` Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
2002-06-17 18:08 Jay Estabrook
2002-06-18 21:21 ` Marc Zyngier
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox