Commit Graph

31725 Commits

Author SHA1 Message Date
Justin T. Gibbs 6d21c6f373 Bring back the cleanups from revs 1.121 and rev.1.122 of ncr.c.
Noticed by: bde
1998-09-22 04:56:08 +00:00
Justin T. Gibbs 02f822dd7d dpt.h:
Bump the lun field in the eata ccb to 5 bits.  We still only
	use 3 of them, but we may use the rest at a later date.

dpt_scsi.c:
	Default to only 32 S/G segments.

	Bzero our CCB array after allocation.
1998-09-22 04:55:07 +00:00
Justin T. Gibbs 53b062d3cc cam.c:
Clear up trailing NULs in cam_strvis.

cam_xpt.c:
	Nuke an experimental quirk entry for the Toshiba 3401.  The real
	problem with this device turned out to be a bug in the aic7xxx
	driver that was fixed months ago.

	Add a quirk entry to inhibit multiple lun scanning and serial number
	probing of DPT RAID volumes.  My DPT controller hangs up solid when
	I do either of these things to a RAID 1 volume.
1998-09-22 04:53:23 +00:00
John Polstra b19042b569 Make LD_PRELOAD work for ELF. 1998-09-22 02:09:56 +00:00
Jordan K. Hubbard 1e3badb305 Revert my change to use minigzip. Apparently, this thing is too "mini"
to actually work in this application.  Urk.  This probably explains the
problems people have been having with installing -snap.  My bad.  Will
fix and upload a new beta snap to ftp.freebsd.org.
Noted by:	jhay
1998-09-22 00:16:23 +00:00
Mike Smith 26dd997fbe New major for 3dfx driver. 1998-09-21 22:04:07 +00:00
Kenneth D. Merry 8ff6dbfc74 Fix a grammar problem.
PR:		docs/7975
1998-09-21 20:44:39 +00:00
Ollivier Robert 7c88491f77 The default tape device should be /dev/rsa0 for CAM. 1998-09-21 17:20:08 +00:00
Justin T. Gibbs 0f39fbdeb5 Correct twin channel operation. 1998-09-21 16:46:13 +00:00
John Birrell fd74ae08a8 Back out the last two hacks. I've added games to the (correct) build
path in src/Makefile.inc. The code that I'm backing out didn't work
anyway since exists() checks for a file in .PATH (and /usr/games/strfile
doesn't exist there), so the test was always defaulting to ../strfile/strfile
which breaks cross-compiled builds.
1998-09-21 09:01:53 +00:00
John Birrell b510e4c210 Remove the bootstrap-rtld target which wasn't needed.
Install the rest of the legacy libraries (like libgcc.a, libl.a).

Add games to the user's path to avoid the temptation for people to
hack paths to unsuitable tools.
1998-09-21 08:55:50 +00:00
John Birrell 608c9e3cf8 I danced with the devil and found the needle in the haystack!
Remove the /usr/bin path to ranlib and just let the build environment
set the path. Running an aout version of ranlib on an elf library
is something we'd prefer not to do. I'm surprised that the build
didn't spit any errors when it did this. Shrug.
1998-09-21 08:44:24 +00:00
David E. O'Brien 6d7cd12a6c Makefile.inc was conditionally setting vars already set by bsd.own.mk
which is read before tip's own Makefile is.  Move those varables here
where they will do some good.
1998-09-21 08:41:35 +00:00
Ollivier Robert d6bc2e88c1 Fix bad option processing.
PR:		bin/7986
Submitted by:	Dan Nelson <dnelson@emsphone.com>
1998-09-21 07:47:53 +00:00
Bruce Evans 5b036e2b3c Fixed missing dependencies of genassym.o, gensetdefs.o and vers.o
on opt_global.h.  This actually matters for genassym.o (it depends
on at least SMP).

Don't undefine KERNEL for compiling genassym.c.  genassym.o really
depends on KERNEL, and the prototype mismatches that required
undefining KERNEL in rev.1.49 no longer exist.

Compile gensetdefs* with the same flags as genassym*.  External
`gen' programs such linux_genassym should also use these flags
(${GEN_CFLAGS}).

Fixed missing dependency generation for gensetdefs.o.  C sources
for external `gen' programs should be added to GEN_CFILES to get
their dependencies generated.

Cleaned up flags definitions and use.  All of ${CFLAGS} is now
passed to mkdep and the assembler (both are actually variants of
${CC} and will ignore the irrelevant flags).
1998-09-21 06:39:11 +00:00
Jordan K. Hubbard 0b3c226f0e Include "stand.h", not <stand.h>. 1998-09-21 06:07:34 +00:00
Bruce Evans 641fc5df83 Clean aicasm's lex and yacc generated source files. 1998-09-21 04:41:11 +00:00
Bruce Evans 1245e3e02b Don't declare functions without a prototype if KERNEL is defined. This
fixes lots of warnings about missing prototypes in sys/netatm/spans/*.
1998-09-21 02:43:30 +00:00
Justin T. Gibbs bd6bae2166 Remove unused variables and functions.
In the rejected message handler, it was possible for us to confuse a
rejected SDTR or WDTR for a rejected tag.
1998-09-20 23:30:14 +00:00
Kenneth D. Merry 8dc6f245bc Alpha patches for the NCR driver from Doug Rabson. I've tested these on an
NCR 810a, and they seem to work fine on the i386 as well.

Reviewed by:	gibbs
Submitted by:	dfr
1998-09-20 22:54:28 +00:00
Kenneth D. Merry 050279e55a Some fixes to the CD driver that may fix PR kern/7996. The data direction
flags on some of the operations in the driver weren't quite right.  Also,
clean up scsi_cd.h, change u_char to u_int8_t.

I'm surprised this problem didn't show up sooner.  (the code has been in
there almost a year and a half)

PR:		        7996
Reviewed by:	        ken
Submitted (mostly) by:	gibbs
1998-09-20 22:48:15 +00:00
Doug Rabson 453455282c Make the alpha bootstrap build again, fix some warning and change sdboot to daboot. 1998-09-20 21:46:19 +00:00
Doug Rabson 02c40feecd Allocate disk buffers using a custom allocator. The standard allocator fragments
extremely badly if disk buffers are freed back into the main heap and the alpha
bootstrap has a restricted address space which just ran out :-(.
1998-09-20 21:42:20 +00:00
Doug Rabson b554c7492a Use a simple version of inet_ntoa(). The libc one uses inet_ntop which is too
complicated.
1998-09-20 21:40:28 +00:00
Bruce Evans 929d7a2fc5 Install using ${INSTALL}, not using `install'. 1998-09-20 21:38:12 +00:00
Bruce Evans 6ed49410a5 Attempt to work around a bug in the previous commit related to
non-reentrancy of SMP clock locking.  Depend on the giant lock
protecting clkintr().
1998-09-20 19:56:28 +00:00
David E. O'Brien 80db5fd640 Change lib specification in `clean' target to match ELF shared libs too.
Reported by:	Kris Kennaway <kkennawa@physics.adelaide.edu.au>
1998-09-20 19:49:44 +00:00
Søren Schmidt 82c4640c65 Put the right path on the devices.
Submitted by:	 Vanilla Pooh Shu <vanilla@oneway.net>
1998-09-20 18:49:04 +00:00
Nicolas Souchu 58bcaed08c vpo now compiles with CAM, #!CAM# removed. 1998-09-20 17:15:25 +00:00
Dmitrij Tejblum a511bf18fe Fix precedence bug, so that kernel dump works. 1998-09-20 16:50:31 +00:00
Nicolas Souchu 0a40e22a5d - program counter was previously an index in the microsequence, now pc
is struct ppb_microseq* pointing directly into the microsequence
1998-09-20 14:47:01 +00:00
Nicolas Souchu 71705a23fc - port of vpo code to CAM
- ppbus was released before checking if still in disk_mode by vpoio and immio:
  the microseq (in_disk_mode) was never executed. Fixed.

- nlptintr() renamed to nlpt_intr(). spltty() inserted in nlptintr() before
  nlpt_intr() call
1998-09-20 14:41:54 +00:00
KATO Takenori e0029f2568 Sync with sys/i386/isa/clock.c revision 1.126. 1998-09-20 10:51:57 +00:00
KATO Takenori 47d002cf75 Sync with sys/i386/conf/files.i386 revision 1.205. 1998-09-20 10:50:18 +00:00
Jordan K. Hubbard 5ce7941e37 Turn NODOC off again; now that releases are releasing again, it's time to
try and unbreak docs.
1998-09-20 08:52:23 +00:00
Justin T. Gibbs 3e82ad76da Re-enable the advansys driver. 1998-09-20 07:20:19 +00:00
Justin T. Gibbs 1da3ff4eea Drop the maximum SG count to 32 from 1024. We can't make use of all of
those extra ones yet, anyway.

In dpttimeout, expect that the controller will complete aborted CCBs through
the interrupt handler.  This corrects a panic that was caused by completing
the same transaction twice during timeout recovery.

Honor the tag times types expressed by the user and pass them down to
the controller.
1998-09-20 07:19:53 +00:00
Justin T. Gibbs 0c4930f525 Don't invalidate devices due to unexpected unit attention errors. In
a perfect world, we'd notice the UA and do some device validation to ensure
that the device hasn't changed.  We may get this before the year ends,
but not before 3.0R.  This change gives the adminstrator ample ammunition
to take off a foot or two, but hey this *is* UN*X.
1998-09-20 07:17:11 +00:00
Justin T. Gibbs e471e974cc cam_xpt.c:
Add quirk entry for a Samsung drive that doesn't like experiencing
	the queue full condition.

	Bump the timeouts for all probe activities to 60s.  We don't know
	what the seletion timeout (or equivelent on other mediums) is
	for controllers, which can make the transactions at the tail
	end of a parallel probe take a while to complete.  The DPT
	seems to be a card that takes a long time to see a selection timeout.

cam_periph.c:
	Don't call a device "gone" after a single selection timeout.  We
	need to come up with a better policy.  Until that time, you'll
	have to manually re-scan a bus via camcontrol for the system to
	decide that a device is really gone.  This should give devices
	experiencing temporary insanity to escape death.
1998-09-20 07:14:36 +00:00
Bruce Evans 4af2cddffe Removed unused file. 1998-09-20 06:28:10 +00:00
Bruce Evans 9547f2c6d9 Remove unused file. It was missing about half the necessary entries. 1998-09-20 06:23:58 +00:00
Bruce Evans 3a049d0356 Removed entries for dead SLICE files.
Removed commented out entries for dead networking files (netccitt etc.).
Uncommented entries for zombie networking files (netns).
1998-09-20 06:17:49 +00:00
Bruce Evans 35b47c4228 Remove vestiges of SLICE code.
Forgotten by:	sos
1998-09-20 06:04:56 +00:00
Bruce Evans 4c7304dd15 Remove unused file. 1998-09-20 05:54:38 +00:00
Justin T. Gibbs 8726fc121b On wide cards with firmware revisions < 5.06L, we have to infer that
wide targets are in fact running wide since the "setup info" command
for these revisions does not fill out the wide negotiation bits.
1998-09-20 05:08:15 +00:00
Justin T. Gibbs ebeec632cd Correct a bug in the timeout handler. When queuing a BDR response to
a timeout, we must remove the pending SCB from the disconnected list
or risk list corruption when our BDR request using the same SCB is placed
on the waiting list.

Eradicate some silly uses of u_int8_t that just serve to slow the code down.
1998-09-20 05:06:10 +00:00
Justin T. Gibbs c279502fc6 Correct compilation with option DIAGNOSTIC set.
Upgrade to the latest firmware.
1998-09-20 05:04:05 +00:00
Justin T. Gibbs ecdf111388 Only deregister out configuration hook manually if there are no SCSI
busses to configure.
1998-09-20 05:03:34 +00:00
Bruce Evans a6796db6ce Ensure that the i8254 timecounter doesn't go backards. It sometimes
went backwards when interrupts were masked for more than one i8254
interrupt period.  It sometimes went backwards when the i8254 counter
was reprogrammed.  Neither of these should happen in normal operation.

Update the i8254 timecounter support variables atomically.  Calling
timecounter functions from fast interrupt handlers may actually work
in all cases now.
1998-09-20 03:47:54 +00:00
John Polstra cc59ec0b9e Null-terminate the message for a warning symbol in the __warn_references()
macro for ELF.  Ian@cygnus.com says that is the proper way to use
the ".gnu.warning.SYMBOL" sections.  However, he has accepted Doug
Rabson's BFD patch anyway.
1998-09-20 03:24:55 +00:00