From owner-freebsd-alpha Thu Jan 4 12:29:35 2001 From owner-freebsd-alpha@FreeBSD.ORG Thu Jan 4 12:29:29 2001 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from front5.grolier.fr (front5.grolier.fr [194.158.96.55]) by hub.freebsd.org (Postfix) with ESMTP id 959D237B400 for ; Thu, 4 Jan 2001 12:29:28 -0800 (PST) Received: from nas1-206.cgy.club-internet.fr (nas1-206.cgy.club-internet.fr [195.36.197.206]) by front5.grolier.fr (8.9.3/No_Relay+No_Spam_MGC990224) with ESMTP id VAA19842; Thu, 4 Jan 2001 21:29:02 +0100 (MET) Date: Thu, 4 Jan 2001 20:28:36 +0100 (CET) From: =?ISO-8859-1?Q?G=E9rard_Roudier?= X-Sender: groudier@linux.local To: Matthew Jacob Cc: Yoriaki FUJIMORI , freebsd-alpha@FreeBSD.ORG Subject: Re: bus_dmamap_load In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 4 Jan 2001, Matthew Jacob wrote: > The trick now is to figure out who is passing a bogus value > to bus_dmamap_load. The value of buf_len (0xfaae8000) looks > suspicious. Only looks? Do you mean that you are unsure? ;-) > Since I hve essentially the same h/w (except for the symbios card) in a P= C164 > that runs 4.2 just fine, I would suspect the sym driver. But needs to hap= pen > is some better debugging for this. I take it that you aren't really runni= ng on > this h/w yet (i.e, you haven't been able to install)? It is likely the `sym' driver that called bus_dma_map_load() with the bogus value, but it may well have received it as the length for an I/O from some upper layer. Only part of value is for sure bogus. The low 16 bits are possibly ok (0x8000=3D32K). Some 16 bit (short) counter accessed as 32 bit value will give you 16 stale bits as upper bits on little-endian machines, for example. Unfortunately, I haven't time at the moment for compiling the kernel -Wall and inspect all warnings messages that may let think about such a mistyped access. Btw, having 0 warnings using -Wall without using wild casts to hide them would help a lot. Is this in the 5.0 todo list? ;-) G=E9rard. > -matt >=20 >=20 >=20 > On Thu, 4 Jan 2001, Yoriaki FUJIMORI wrote: >=20 > >=20 > > Thank you for your responce. =20 > > I use one noname DEC-based NIC. The scsi card is one from Intraserver. > >=20 > > In the following I attached the result of `dmesg'. > >=20 > > ------------------------------------------ > > Unrecognized boot flag '0'. > > Copyright (c) 1992-2000 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 199= 4 > > =09The Regents of the University of California. All rights reserved. > > FreeBSD 4.2-RELEASE #0: Tue Nov 21 09:42:09 GMT 2000 > > jkh@rawhide.osd.bsdi.com:/usr/src/sys/compile/GENERIC > > EB164 > > Digital AlphaPC 164 480 MHz, 480MHz > > 8192 byte page size, 1 processor. > > CPU: EV56 (21164A) major=3D7 minor=3D1 extensions=3D0x1 > > OSF PAL rev: 0x1000800020117 > > real memory =3D 534339584 (521816K bytes) > > avail memory =3D 513990656 (501944K bytes) > > Preloaded elf kernel "kernel" at 0xfffffc0000766000. > > md0: Malloc disk > > cia0: ALCOR/ALCOR2, pass 3 > > cia0: extended capabilities: 21 > > pcib0: <2117x PCI host bus adapter> on cia0 > > pci0: on pcib0 > > de0: port 0x10100-0x1017f mem 0x84061100= -0x8406117f irq 2 at device 5.0 on pci0 > > de0: interrupting at CIA irq 2 > > de0: DEC DE500-AA 21140A [10-100Mb/s] pass 2.0 > > de0: address 00:00:f8:1e:81:5a > > sym0: <875> port 0x10000-0x100ff mem 0x84060000-0x84060fff,0x84061000-0= x840610ff irq 0 at device 6.0 on pci0 > > sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking > > sym0: open drain IRQ line driver, using on-chip SRAM > > sym0: using LOAD/STORE-based firmware. > > sym0: interrupting at CIA irq 0 > > pci0: at 7.0 irq 1 > > isab0: at device 8.0 on pci0 > > isa0: on isab0 > > atapci0: port 0x10180-0x1018f irq 5 at device = 11.0 on pci0 > > fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on is= a0 > > fdc0: interrupting at ISA irq 6 > > fdc0: FIFO enabled, 8 bytes threshold > > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > > atkbdc0: at port 0x60,0x64 on isa0 > > atkbd0: irq 1 on atkbdc0 > > atkbd0: interrupting at ISA irq 1 > > psm0: irq 12 on atkbdc0 > > psm0: interrupting at ISA irq 12 > > psm0: model Generic PS/2 mouse, device ID 0 > > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on is= a0 > > sc0: on isa0 > > sc0: VGA <16 virtual consoles, flags=3D0x200> > > mcclock0: at port 0x70-0x71 on isa0 > > sio0 at port 0x3f8-0x3ff irq 4 on isa0 > > sio0: type 16550A > > sio0: interrupting at ISA irq 4 > > sio1: reserved for low-level i/o > > ppc0: at port 0x3bc-0x3bf irq 7 on isa0 > > ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode > > plip0: cannot reserve interrupt, failed. > > lpt0: on ppbus0 > > lpt0: Polled port > > ppi0: on ppbus0 > > ppc0: interrupting at ISA irq 7 > > Timecounter "alpha" frequency 480000416 Hz > > Waiting 15 seconds for SCSI devices to settle > > (noperiph:sym0:0:-1:-1): SCSI BUS reset delivered. > > de0: enabling Full Duplex 100baseTX port > > Mounting root from ufs:/dev/da0a > > cd0 at sym0 bus 0 target 5 lun 0 > > cd0: Removable CD-ROM SCSI-2 device=20 > > cd0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) > > cd0: Attempt to query device size failed: NOT READY, Medium not present > > da0 at sym0 bus 0 target 0 lun 0 > > da0: Fixed Direct Access SCSI-3 device=20 > > da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queuein= g Enabled > > da0: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) > > bus_dmamap_load: Too many segs! buf_len =3D 0xfaae8000 > > bus_dmamap_load: Too many segs! buf_len =3D 0xfaae8000 > > bus_dmamap_load: Too many segs! buf_len =3D 0xfaae8000 > > bus_dmamap_load: Too many segs! buf_len =3D 0xfaae8000 > > bus_dmamap_load: Too many segs! buf_len =3D 0xfaae8000 > > bus_dmamap_load: Too many segs! buf_len =3D 0xfaae8000 > > bus_dmamap_load: Too many segs! buf_len =3D 0xfaae8000 > > bus_dmamap_load: Too many segs! buf_len =3D 0xfaae8000 > > bus_dmamap_load: Too many segs! buf_len =3D 0xfaae8000 > > bus_dmamap_load: Too many segs! buf_len =3D 0xfaae8000 > >=20 > > -------------------------------------------------------- > >=20 > > Thanks for your attention. > > Yoriaki Fujimori > >=20 >=20 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-alpha" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message