linux-alpha.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: AS500/266 trouble
       [not found] <wrpvg8s5jyd.fsf@hina.wild-wind.fr.eu.org>
@ 2002-06-12  0:08 ` Kurt Garloff
  2002-06-13  3:48   ` AS600/333 kernel problem Rick Altherr
  0 siblings, 1 reply; 4+ messages in thread
From: Kurt Garloff @ 2002-06-12  0:08 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: Linux Alpha list

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

Hi Marc,

On Sun, Jun 09, 2002 at 09:30:02PM +0200, Marc Zyngier wrote:
> I just bought myself an AS500/333,

I had gotten mine for free :-)

> and suffered from the problems you
> described in your email to linux-alpha on 4/15/2002.
> 
> Did you finally solve this problem ?

No.

> If not, could you give this
> simple patch a spin ? It solved all PCI problems on my system.

Indeed, with your patch, the machine happily boots, i.e. the QLogic
ISP 1020 finally works again.
THANKS!

But ...

> Also, if you compile your kernel for Alcor, do you manage to get any
> ISA interrupt ? I can only get them if I compile for generic...

... I did not get the floppy driver to work. Not with an Alcor SRM kernel
nor with generic.

Regards,
-- 
Kurt Garloff                   <kurt@garloff.de>         [Eindhoven, NL]
Physics: Plasma simulations    <K.Garloff@TUE.NL>     [TU Eindhoven, NL]
Linux: SCSI, Security          <garloff@suse.de>    [SuSE Nuernberg, DE]
 (See mail header or public key servers for PGP2 and GPG public keys.)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* AS600/333 kernel problem
  2002-06-12  0:08 ` AS500/266 trouble Kurt Garloff
@ 2002-06-13  3:48   ` Rick Altherr
  2002-06-13 11:31     ` Terry A. Bowling
  2002-06-13 21:49     ` Kurt Garloff
  0 siblings, 2 replies; 4+ messages in thread
From: Rick Altherr @ 2002-06-13  3:48 UTC (permalink / raw)
  To: linux-alpha

I'm rather new to Linux on Alphas.  I have Debian installed on my AS600 
and it works fine, but I needed some kernel options and tried to build a 
new one.  The build completes fine and aboot begins to boot, but after 
it detects my QLogic ISP1020 SCSI controllers it dumps what appears to 
be the CPU registers and halts.  I've been trying 2.4.17.  Is this a 
known issue?  Any ideas?
-- 
Thanks and 73s,
Rick Altherr
KC8APF
kc8apf@kc8apf.net


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AS600/333 kernel problem
  2002-06-13  3:48   ` AS600/333 kernel problem Rick Altherr
@ 2002-06-13 11:31     ` Terry A. Bowling
  2002-06-13 21:49     ` Kurt Garloff
  1 sibling, 0 replies; 4+ messages in thread
From: Terry A. Bowling @ 2002-06-13 11:31 UTC (permalink / raw)
  To: Rick Altherr; +Cc: linux-alpha

I have been using the 2.4.18-pre4 kernel for a while now with great
success. It handles my ISP1020/1040 cards just fine.  You might want to
post this to the debian and redhat alpha lists - there are a lot of VERY
experienced people who frequent those lists.

Terry
-- 
Terry Bowling
Verizon NOTD Systems Support
260.461.3772


Rick Altherr wrote:
> 
> I'm rather new to Linux on Alphas.  I have Debian installed on my AS600
> and it works fine, but I needed some kernel options and tried to build a
> new one.  The build completes fine and aboot begins to boot, but after
> it detects my QLogic ISP1020 SCSI controllers it dumps what appears to
> be the CPU registers and halts.  I've been trying 2.4.17.  Is this a
> known issue?  Any ideas?
> --
> Thanks and 73s,
> Rick Altherr
> KC8APF
> kc8apf@kc8apf.net
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AS600/333 kernel problem
  2002-06-13  3:48   ` AS600/333 kernel problem Rick Altherr
  2002-06-13 11:31     ` Terry A. Bowling
@ 2002-06-13 21:49     ` Kurt Garloff
  1 sibling, 0 replies; 4+ messages in thread
From: Kurt Garloff @ 2002-06-13 21:49 UTC (permalink / raw)
  To: Rick Altherr; +Cc: linux-alpha


[-- Attachment #1.1: Type: text/plain, Size: 924 bytes --]

Hi Rick,

On Wed, Jun 12, 2002 at 11:48:53PM -0400, Rick Altherr wrote:
> I'm rather new to Linux on Alphas.  I have Debian installed on my AS600 
> and it works fine, but I needed some kernel options and tried to build a 
> new one.  The build completes fine and aboot begins to boot, but after 
> it detects my QLogic ISP1020 SCSI controllers it dumps what appears to 
> be the CPU registers and halts.  I've been trying 2.4.17.  Is this a 
> known issue?  Any ideas?

Here is the patch from Jay (that Marc Zyngier forwarded to me), that helped
my AS500/266 to finally like the ISP1020 again ...

If I only could get the floppy to work with 2.4, everything would be perfect.

Regards,
-- 
Kurt Garloff  <garloff@suse.de>                          Eindhoven, NL
GPG key: See mail header, key servers         Linux kernel development
SuSE Linux AG, Nuernberg, DE                            SCSI, Security

[-- Attachment #1.2: patch-cia-jay --]
[-- Type: text/plain, Size: 2277 bytes --]

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



[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-06-13 21:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <wrpvg8s5jyd.fsf@hina.wild-wind.fr.eu.org>
2002-06-12  0:08 ` AS500/266 trouble Kurt Garloff
2002-06-13  3:48   ` AS600/333 kernel problem Rick Altherr
2002-06-13 11:31     ` Terry A. Bowling
2002-06-13 21:49     ` Kurt Garloff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).