Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 1998 21:33:46 +0200
From:      Peter Cornelius <pc@akk.uni-karlsruhe.de>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Cc:        Olaf Erb <erb@inss1.etec.uni-karlsruhe.de>
Subject:   kern/6788: scsi/sctarg.c: structure has no member named `tqh_first' / `tqh_last'
Message-ID:  <19980529213346.45197@inr.fzk.de>

next in thread | raw e-mail | index | archive | help

>Number:         6788
>Category:       kern
>Synopsis:       scsi/sctarg.c: structure has no member named `tqh_first' / `tqh_last'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 29 12:40:01 PDT 1998
>Last-Modified:
>Originator:     Peter Cornelius
>Organization:
Arbeitskreis Kultur und Kommunikation (AKK) Universitaet Karlsruhe
>Release:        FreeBSD 2.2.5-RELEASE i386
>Environment:

~ # uname -a
FreeBSD petra.cornelius.org 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Sun Mar 29 23:56:20 CEST 1998 root@petra.cornelius.org:/usr/src/sys/compile/PETRA  i386
~ #

cvsup-dated until May 23rd, 1998, about midnight (RELENG_2_2).

Iwill P54TS (PCI, AIC7850 onboard) mainboard, P133 cpu.

Two scsi host adapters configured (cut from -v boot):
ahc0 <Adaptec aic7850 SCSI host adapter> rev 0 int a irq 11 on pci0:18
        mapreg[10] type=1 addr=00006000 size=0100.
        mapreg[14] type=0 addr=f0800000 size=1000.
        reg20: virtual=0xf497b000 physical=0xf0800000 size=0x1000
ahc0: Using left over BIOS settings
ahc0: aic7850 Single Channel, SCSI Id=7, 3 SCBs
ahc0: Resetting Channel A
ahc0: Downloading Sequencer Program...ahc0: 366 instructions downloaded
Done
ahc0: Probing channel A
ahc0 waiting for scsi devices to settle
ahc0: target 0 synchronous at 10.0MHz, offset = 0xf
ahc0: target 0 Tagged Queuing Device
(ahc0:0:0): "IBM DCAS-34330 S65A" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 4134MB (8467200 512 byte sectors)
sd0(ahc0:0:0): with 8205 cyls, 6 heads, and an average 171 sectors/track
ahc0: target 5 synchronous at 4.0MHz, offset = 0xf
(ahc0:5:0): "TOSHIBA CD-ROM XM-5401TA 3115" type 5 removable SCSI 2
cd0(ahc0:5:0): CD-ROM can't get the size
ncr0 <ncr 53c810 fast10 scsi> rev 1 int a irq 12 on pci0:19
        mapreg[10] type=1 addr=00006100 size=0100.
        mapreg[14] type=0 addr=f0801000 size=0100.
        reg20: virtual=0xf497c000 physical=0xf0801000 size=0x100
ncr0: minsync=25, maxsync=206, maxoffs=8, 16 dwords burst, normal dma fifo
ncr0: single-ended, open drain IRQ driver
ncr0: restart (scsi reset).
ncr0 scanning for targets 0..6 (V2 pl24 96/12/14)
ncr0 waiting for scsi devices to settle
(ncr0:5:0): phase change 2-3 10@00006a58 resid=4.
new ccb @f08e2800.
(ncr0:5:0): "OLIVETTI CP30100-105mb 1F1E" type 0 fixed SCSI 1
sd1(ncr0:5:0): Direct-Access 
sd1(ncr0:5:0): 3.3 MB/s (300 ns, offset 8)
100MB (206076 512 byte sectors)
sd1(ncr0:5:0): with 1321 cyls, 4 heads, and an average 39 sectors/track

I boot from ahc0.
 
~ # grep SCSI PETRA
# SCSI DEVICES
# SCSI DEVICE CONFIGURATION
# The SCSI subsystem consists of the `base' SCSI code, a number of
# high-level SCSI device `type' drivers, and the low-level host-adapter
# Beginning with FreeBSD 2.0.5 you can wire down your SCSI devices so
# in the order that the devices were probed on the SCSI bus.  This
# "units" (SCSI logical unit number) that are not specified are
# All SCSI devices allocate as many units as are required.
# The "unknown" device (uk? in pre-2.0.5) is now part of the base SCSI
controller      scbus0  #base SCSI code
#device         ch0     #SCSI media changers
device          sd0     #SCSI disks
device          st0     #SCSI tapes
device          cd0     #SCSI CD-ROMs
#device         od0     #SCSI optical disk
# so we have to specify that they are on a SCSI bus with the "at scbus?"
#device worm0 at scbus? # SCSI worm
device pt0 at scbus?    # SCSI processor type
device sctarg0 at scbus? # SCSI target
# SCSI OPTIONS:
# SCSIDEBUG: When defined enables debugging macros
# NO_SCSI_SENSE: When defined disables sense descriptions (about 4k)
# SCSI_REPORT_GEOMETRY: Always report disk geometry at boot up instead
options         SCSIDEBUG
#options        NO_SCSI_SENSE
options         SCSI_REPORT_GEOMETRY
# These are only for watching for bitrot in old SCSI code.
# SCSI host adapters: `aha', `aic', `bt', `nca'
# with an onboard AIC7770 dual-channel SCSI controller on EISA slot #11,
# self-contained SCSI host adapters.
# SCSI host adapters, but is expected to work with any AMD 53c974
# PCI SCSI chip and the AMD Ethernet+SCSI Combo chip, after some
# been written by Tekram and limited to work with their SCSI cards).
options         "SCSI_2_DEF"
options         SCSI_DELAY=16   # (was 8) Be pessimistic about Joe SCSI device
options         SCSI_NCR_DEBUG
options         SCSI_NCR_DFLT_TAGS=4
options         SCSI_NCR_MAX_SYNC=10000
options         SCSI_NCR_MAX_WIDE=1
options         SCSI_NCR_MYADDR=7
~ #

>Description:

While make world succeeds nicely, kernel compile dies with:

cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -nostdinc -I- -I. -I../.. -I../../../include -DSCSI_2_DEF -DDEBUG -DNSWAPDEV=20 -DMSDOSFS -DNFS -DFFS -DIPDIVERT -DINET -DMD5 -DCOMPAT_43 -DFAILSAFE -DKERNEL  ../../scsi/sctarg.c
../../scsi/sctarg.c: In function `sctargstart':
../../scsi/sctarg.c:191: structure has no member named `tqh_first'
../../scsi/sctarg.c:194: structure has no member named `tqh_last'
../../scsi/sctarg.c: In function `sctarg_strategy':
../../scsi/sctarg.c:254: structure has no member named `tqh_last'
../../scsi/sctarg.c:254: structure has no member named `tqh_last'
../../scsi/sctarg.c:254: structure has no member named `tqh_last'
*** Error code 1

Stop.
~ #

Also, since quite a while (after upgrading from 2.2.1-RELEASE to
2.5-RELEASE, if I remember correctly), I can't boot with any new kernel
I made and the conner disc *and* my scanner (Relisys Avec Color VM3520) 
both connected to the ncr0 and turned on. Since currently I only can scan
from win-doze-nine-and-a-half-hours (btw. does anyone know how to access &
use this bugger from FreeBSD?), I can live with switching it on when I
need it.

I expected these things to go away with a new cvsup-date, but no luck so
far, so here they are. With all these new sources I'd like to have a new
kernel built some time, but it's only a bl**dy nuisance by now.

>How-To-Repeat:

Well, compile kernel.

>Fix:

Dunno. Sorry, folks. Maybe leave out scsi target driver in kernel config
file.

Best Regards, Peter.
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980529213346.45197>