linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ncr810 problem on powerstack
@ 2001-01-16 20:44 Alois Fertl
  2001-01-19  6:03 ` Troy Benjegerdes
  0 siblings, 1 reply; 4+ messages in thread
From: Alois Fertl @ 2001-01-16 20:44 UTC (permalink / raw)
  To: LinuxppcDev

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

I tried the recent 2.4.1-pre1 kernel on a powerstack but the ncr810 based
SCSI code does not work. The driver complains about CACHE INCORRECTLY CONFIGURED.

Anybody knows what this comes from. Attached if the full boot log of the system.

Alois

[-- Attachment #2: boot.log --]
[-- Type: text/plain, Size: 5980 bytes --]

loaded at:     00005400 0001A220
relocated to:  00800000 00814E20
board data at: 03F78000 03F7EA0C
relocated to:  0080E314 00814D20
zimage at:     00010400 000F1A5D
relocated to:  00815000 008F665D
avail ram:     00400000 00800000

Linux/PPC load: console=ttyS0,9600 console=tty0 root=/dev/sda1
Uncompressing Linux...done.
Now booting the kernel
Total memory = 64MB; using 0kB for hash table (at 00000000)
Linux version 2.4.1-pre1 (alois@localhost) (gcc version 2.95.2 19991024 (release)) #6 Sun Jan 14 12:03:19 CET 2001
PReP architecture
Boot arguments: console=ttyS0,9600 console=tty0 root=/dev/sda1
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,9600 console=tty0 root=/dev/sda1
time_init: decrementer frequency = 16.663082 MHz
Console: colour VGA+ 80x25
Calibrating delay loop... 133.12 BogoMIPS
Memory: 61980k available (1448k kernel code, 696k data, 236k init, 0k highmem)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Fixup IO res, dev: 0.2, res_start: ffffff0->8ffffff0
Fixup IO res, dev: 0.2, res_start: fffffec->8fffffec
Fixup IO res, dev: 0.2, res_start: fffffe0->8fffffe0
Fixup IO res, dev: 0.2, res_start: fffffdc->8fffffdc
Fixup IO res, dev: 0.2, res_start: fffffc0->8fffffc0
Fixup IO res, dev: 0.6, res_start: ffffe00->8ffffe00
Fixup mem res, dev: 0.6, res_start: 3bfffe00->fbfffe00
Fixup IO res, dev: 0.7, res_start: ffffd80->8ffffd80
Fixup mem res, dev: 0.7, res_start: 3bfff800->fbfff800
Fixup mem res, dev: 0.7, res_start: fffc0000->bffc0000
Fixup mem res, dev: 0.8, res_start: ffff8000->bfff8000
Setting PCI interrupts for a "Omaha (PowerStack II Pro3000)"
Relocating PCI address 8ffffff0 -> 1fffff0
Relocating PCI address 8fffffec -> 1ffffec
Relocating PCI address 8fffffe0 -> 1ffffe0
Relocating PCI address 8fffffdc -> 1ffffdc
Relocating PCI address 8fffffc0 -> 1ffffc0
Relocating PCI address 8ffffe00 -> 1fffe00
Relocating PCI address 8ffffd80 -> 1fffd80
PCI: Resource 01fffff0-01fffff7 (f=101, d=0, p=0)
PCI: Resource 01ffffec-01ffffef (f=10d, d=0, p=0)
PCI: Resource 01ffffe0-01ffffe7 (f=101, d=0, p=0)
PCI: Resource 01ffffdc-01ffffdf (f=10d, d=0, p=0)
PCI: Resource 01ffffc0-01ffffcf (f=101, d=0, p=0)
PCI: Resource 01fffe00-01fffeff (f=101, d=0, p=0)
PCI: Resource fbfffe00-fbfffeff (f=200, d=0, p=0)
PCI: Resource 01fffd80-01fffdff (f=101, d=0, p=0)
PCI: Resource fbfff800-fbfffbff (f=200, d=0, p=0)
  got res[10000000:10ffffff] for resource 0 of Cirrus Logic GD 5446
  got res[11000000:1103ffff] for resource 6 of Digital Equipment Corporation DECchip 21142/43
  got res[11040000:11047fff] for resource 6 of Cirrus Logic GD 5446
PCI enable device: (PCI device 1014:0037 (IBM))
  cmd reg 0x106
PCI enable device: (Intel Corporation 82378IB [SIO ISA Bridge])
  cmd reg 0xf
PCI enable device: (Symphony Labs SL82c105)
  cmd reg 0x5
PCI enable device: (Symbios Logic Inc. (formerly NCR) 53c810)
  cmd reg 0x7
PCI enable device: (Digital Equipment Corporation DECchip 21142/43)
  cmd reg 0x7
PCI enable device: (Cirrus Logic GD 5446)
  cmd reg 0x7
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: enabling 8 loop devices
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
W82C105: IDE controller on PCI bus 00 dev 10
W82C105: chipset revision 6
W82C105: 100% native mode on irq 14
    ide0: BM-DMA at 0x1ffffc0-0x1ffffc7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0x1ffffc8-0x1ffffcf, BIOS settings: hdc:pio, hdd:pio
hdc: MATSHITA CR-583, ATAPI CDROM drive
ide1 at 0x1ffffe0-0x1ffffe7,0x1ffffde on irq 14
hdc: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdc: request sense failure: error=0x24
hdc: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdc: request sense failure: error=0x24
Uniform CD-ROM driver Revision: 3.12
Floppy drive(s): fd0 is 2.88M
FDC 0 is a National Semiconductor PC87306
Serial driver version 5.02 (2000-08-09) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Linux Tulip driver version 0.9.13 (January 2, 2001)
eth0: Digital DS21143 Tulip rev 65 at 0x1fffd80, 00:48:54:12:09:26, IRQ 11.
eth0:  EEPROM default media type Autosense.
eth0:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth0:  MII transceiver #1 config 3000 status 7869 advertising 01e1.
PPP generic driver version 2.4.1
PPP Deflate Compression module registered
SCSI subsystem driver Revision: 1.00
ncr53c8xx: at PCI bus 0, device 6, function 0
ncr53c8xx: 53c810 detected 
ncr53c810-0: rev 0x2 on pci bus 0 device 6 function 0 irq 9
ncr53c810-0: ID 7, Fast-10, Parity Checking
CACHE TEST FAILED: script execution failed.
start=80391414, pc=80391420, end=80391440
CACHE INCORRECTLY CONFIGURED.
ncr53c810-0: detaching...
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Macintosh non-volatile memory driver v1.0
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
request_module[block-major-8]: Root fs not mounted
VFS: Cannot open root device "sda1" or 08:01
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 08:01
Rebooting in 180 seconds..~[dino].\aConnected.

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

* Re: ncr810 problem on powerstack
  2001-01-16 20:44 ncr810 problem on powerstack Alois Fertl
@ 2001-01-19  6:03 ` Troy Benjegerdes
  2001-01-19  7:54   ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Troy Benjegerdes @ 2001-01-19  6:03 UTC (permalink / raw)
  To: Alois Fertl; +Cc: LinuxppcDev


On Tue, Jan 16, 2001 at 09:44:07PM +0100, Alois Fertl wrote:
> I tried the recent 2.4.1-pre1 kernel on a powerstack but the ncr810 based
> SCSI code does not work. The driver complains about CACHE INCORRECTLY CONFIGURED.
>
> Anybody knows what this comes from. Attached if the full boot log of the system.

Arrrgh, the same thing happens on my powerstack.
I'd track this down, but

a) I don't have time
b) the machine is my mail server and runs the linuxppc_2_2 tree happily.


--
--------------------------------------------------------------------------
Troy Benjegerdes                'da hozer'                hozer@drgw.net


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: ncr810 problem on powerstack
  2001-01-19  6:03 ` Troy Benjegerdes
@ 2001-01-19  7:54   ` Geert Uytterhoeven
  2001-02-18 20:26     ` Alois Fertl
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2001-01-19  7:54 UTC (permalink / raw)
  To: Troy Benjegerdes; +Cc: Alois Fertl, LinuxppcDev


On Fri, 19 Jan 2001, Troy Benjegerdes wrote:
> On Tue, Jan 16, 2001 at 09:44:07PM +0100, Alois Fertl wrote:
> > I tried the recent 2.4.1-pre1 kernel on a powerstack but the ncr810 based
> > SCSI code does not work. The driver complains about CACHE INCORRECTLY CONFIGURED.
> >
> > Anybody knows what this comes from. Attached if the full boot log of the system.
>
> Arrrgh, the same thing happens on my powerstack.
> I'd track this down, but
>
> a) I don't have time
> b) the machine is my mail server and runs the linuxppc_2_2 tree happily.

I saw a similar thing on my LongTrail (with '875 card) after I added a call to
pci_assign_unassigned_resources() to arch/ppc/kernel/pci.c (like PReP) did, and
before I fixed the test for ppc_md.pcibios_enable_device_hook.

Perhaps PReP doesn't like ppc_md.pcibios_enable_device_hook instead of
pci_assign_unassigned_resources?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: ncr810 problem on powerstack
  2001-01-19  7:54   ` Geert Uytterhoeven
@ 2001-02-18 20:26     ` Alois Fertl
  0 siblings, 0 replies; 4+ messages in thread
From: Alois Fertl @ 2001-02-18 20:26 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Troy Benjegerdes, LinuxppcDev

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

Geert Uytterhoeven wrote:
>
> On Fri, 19 Jan 2001, Troy Benjegerdes wrote:
> > On Tue, Jan 16, 2001 at 09:44:07PM +0100, Alois Fertl wrote:
> > > I tried the recent 2.4.1-pre1 kernel on a powerstack but the ncr810 based
> > > SCSI code does not work. The driver complains about CACHE INCORRECTLY CONFIGURED.
> > >
> > > Anybody knows what this comes from. Attached if the full boot log of the system.
> >
> > Arrrgh, the same thing happens on my powerstack.
> > I'd track this down, but
> >
> > a) I don't have time
> > b) the machine is my mail server and runs the linuxppc_2_2 tree happily.
>
> I saw a similar thing on my LongTrail (with '875 card) after I added a call to
> pci_assign_unassigned_resources() to arch/ppc/kernel/pci.c (like PReP) did, and
> before I fixed the test for ppc_md.pcibios_enable_device_hook.
>
> Perhaps PReP doesn't like ppc_md.pcibios_enable_device_hook instead of
> pci_assign_unassigned_resources?
>

The recent code in prep_pci.c no longer tweaks pci memory resources to fit
into a 256 MByte BAT range. For some reason this is now limited I/O resources.
I don't know why this change was introduced. The attached diff keeps the handling
for I/O and introduces a similar fix for memory. I don't know if this is the
way to do it. The ncr810 controller starts working again.

Regards,
  Alois

[-- Attachment #2: prep_pci.diff --]
[-- Type: text/plain, Size: 2473 bytes --]

--- arch/ppc/kernel/prep_pci.c.dist	Sat Feb 17 17:42:00 2001
+++ arch/ppc/kernel/prep_pci.c	Sun Feb 18 20:47:48 2001
@@ -1084,23 +1084,37 @@
 		for ( i = 0 ; i <= 5 ; i++ )
 		{
 			/*
-			 * Relocate PCI I/O resources if necessary so the
+			 * Relocate PCI memory and I/O resources if necessary so the
 			 * standard 256MB BAT covers them.
 			 */
-			if ( (pci_resource_flags(dev, i) & IORESOURCE_IO) &&
-				(dev->resource[i].start > 0x10000000) )
+			if ( dev->resource[i].start > 0x10000000 )
 		        {
-		                printk("Relocating PCI address %lx -> %lx\n",
-		                       dev->resource[i].start,
-		                       (dev->resource[i].start & 0x00FFFFFF)
-		                       | 0x01000000);
-		                dev->resource[i].start =
-		                  (dev->resource[i].start & 0x00FFFFFF) | 0x01000000;
-		                pci_write_config_dword(dev,
-		                        PCI_BASE_ADDRESS_0+(i*0x4),
-		                       dev->resource[i].start );
-				dev->resource[i].end =
-					(dev->resource[i].end & 0x00FFFFFF) | 0x01000000;
+			        if ( pci_resource_flags(dev, i) & IORESOURCE_IO )
+			        {
+		                        printk("Relocating PCI I/O address %lx -> %lx\n",
+		                               dev->resource[i].start,
+		                               (dev->resource[i].start & 0x00FFFFFF)
+		                               | 0x01000000);
+		                        dev->resource[i].start =
+		                          (dev->resource[i].start & 0x00FFFFFF) | 0x01000000;
+		                        pci_write_config_dword(dev,
+		                                PCI_BASE_ADDRESS_0+(i*0x4),
+		                               dev->resource[i].start );
+			        	dev->resource[i].end =
+		        			(dev->resource[i].end & 0x00FFFFFF) | 0x01000000;
+				} else
+				{
+		                        printk("Relocating PCI memory address %lx -> %lx\n",
+		                               dev->resource[i].start,
+		                               dev->resource[i].start & 0x0FFFFFFF);
+		                        dev->resource[i].start =
+		                          dev->resource[i].start & 0x0FFFFFFF;
+		                        pci_write_config_dword(dev,
+		                                PCI_BASE_ADDRESS_0+(i*0x4),
+		                               dev->resource[i].start );
+			        	dev->resource[i].end =
+		        			dev->resource[i].end & 0x0FFFFFFF;
+				}
 		        }
 		}
 #if 0

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

end of thread, other threads:[~2001-02-18 20:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-16 20:44 ncr810 problem on powerstack Alois Fertl
2001-01-19  6:03 ` Troy Benjegerdes
2001-01-19  7:54   ` Geert Uytterhoeven
2001-02-18 20:26     ` Alois Fertl

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).