From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2549 invoked from network); 18 Mar 1999 18:24:25 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Mar 1999 18:24:25 -0000 Received: from mail13.digital.com (mail13.digital.com [192.208.46.30]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA21065 for ; Thu, 18 Mar 1999 13:13:51 -0500 Received: from segsrv.hlo.dec.com (segsrv.hlo.dec.com [16.128.112.18]) by mail13.digital.com (8.9.2/8.9.2/WV2.0e) with SMTP id NAA22206; Thu, 18 Mar 1999 13:13:46 -0500 (EST) Received: from pkras4.pko.dec.com by segsrv.hlo.dec.com (5.65v4.0/1.1.10.5/21Aug98-0201PM) id AA10280; Thu, 18 Mar 1999 13:13:39 -0500 Received: from ma.ultranet.com (jestabro@localhost [127.0.0.1]) by alpha1.estabrook.org (8.8.7/8.8.7) with ESMTP id NAA01337; Thu, 18 Mar 1999 13:05:22 -0500 Message-Id: <199903181805.NAA01337@alpha1.estabrook.org> X-Mailer: exmh version 2.0.2 X-Exmh-Isig-Comptype: repl X-Exmh-Isig-Folder: axp-list To: axp-list@redhat.com Cc: rth@cygnus.com, Jay.Estabrook@digital.com From: Jay.Estabrook@digital.com Subject: Re: alpha linux 2.2.3-ac2 + 53c875 problem? In-Reply-To: Your message of Thu, 18 Mar 1999 15:15:44 +0000. <36F118A0.A8497683@art-render.com> Mime-Version: 1.0 Content-Type: text/plain Date: Thu, 18 Mar 1999 13:05:22 -0500 Sender: jestabro@ma.ultranet.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 -------------------------------------------------------------------------------