Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jay.Estabrook@digital.com
To: axp-list@redhat.com
Cc: rth@cygnus.com, Jay.Estabrook@digital.com
Subject: Re: alpha linux 2.2.3-ac2 + 53c875 problem?
Date: Thu, 18 Mar 1999 13:05:22 -0500	[thread overview]
Message-ID: <199903181805.NAA01337@alpha1.estabrook.org> (raw)
In-Reply-To: Your message of Thu, 18 Mar 1999 15:15:44 +0000. <36F118A0.A8497683@art-render.com>


>>> John Connett said:
>
> I have attempted to build a linux 2.2.3-ac2 kernel for a Ruffian (UX)
> system using the linux 2.2.3 sources and the following patch:
> 
> ftp://ftp.linux.org.uk/pub/linux/alan/2.2/patch-2.2.3-ac2.bz2

Uh, those patches include the Henderson ones related to support of 2Gb
of memory, right?

Clue number 1...

> It all builds successfully (with egcs-1.1.1) but fails during boot with
> the following:
> 
> [earlier messages scrolled off top of screen ...
> ncr53c875-0: rev=0x03, base=0x9100000, ioport=0x9000, irq=20
> ncr53c875-0: ID 7, Fast-20, Parity Checking
> ncr53c875-0: on-chip RAM at 0x9101000
> CACHE TEST FAILED: script execution failed.
> start=80753648, pc=80753648, end=80753674
> CACHE INCORRECTLY CONFIGURED.
> ncr53c875-0: detatching...

Notice that the "start=" address is above 2Gb.

Clue number 2...

> I have also tried applying the following patch (before patch-2.2.3-ac2)
> and configuring for the sym53c8xx driver:
> 
> ftp://ftp.tux.org/pub/roudier/misc-stuff/ncr-8xx-896-bundle-for-linux-2.2.3
> .patch.gz

This is irrelevant.

> MILO has no problem booting using the same controller and disk
> combination, and earlier kernels (eg. 2.2.1) ran without any obvious
> problems.

So MILO and older kernels work, eh?

Clue number 3...

And if you saw a message during boot-up of the kernel that said:

	"ruffian_init_arch: Skipping window register rewrites."
	"... Trust DeskStation firmware!"

that would be Clue number 4...

So, have you gotten the suspicion that it might be related to the patches
for 2Gb memory support? If so, you're right... ;-}

And it's not obvious; I know, I submitted the original code, and I ran into
this same exact problem when I played around with 2Gb memory support on the
UX as well.

It turns out that Richard's patches make the virt_to_bus routine calculate
bus addresses (like the "start=" one of the SCSI driver above) based on a
PCI DMA window address located at 2Gb. Unfortunately, on the UX, the
kernel's PCI DMA window init code does NOT change where the console code has
initialized the window (and which MILO doesn't change, either), which is
always at 1Gb, no matter how much memory there is.

Quick solution: go back to stock 2.2.3, if possible.

Permanent solution? Well, what I did was to revert the original window
address back to 1Gb, and define a *second* window to map memory above 1Gb to
the new window at 2Gb. This is apparently what the ARCSBIOS console does on
the UX, so we can continue to have the kernel not bother with the
initialization on the UX. This is critical for maintaining compatibility
with older MILOs - if we let the kernel change the window mappings, if/when
MILO is re-entered from the kernel via "shutdown -r", it (MILO) wouldn't
work correctly.  IMHO, the changed code should work fine on the other
PYXIS-based machines.

--Jay++

-------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                            Alpha Motherboards - LINUX Project
Compaq Computer Corporation                (508) 841-3241 or (DTN) 237-3241
334 South Street, Shrewsbury, MA 01545     Jay.Estabrook@digital.com
-------------------------------------------------------------------------------


  parent reply	other threads:[~1999-03-18 18:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-18 15:15 alpha linux 2.2.3-ac2 + 53c875 problem? John Connett
1999-03-18 17:37 ` Michal Jaegermann
1999-03-18 18:54   ` John Connett
1999-03-18 18:05 ` Jay.Estabrook [this message]
1999-03-19 11:03   ` John Connett
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