]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years ago - Hold the vnode interlock across calls to bgetvp instead of acquiring it
Jeff Roberson [Sun, 2 Mar 2003 06:05:23 +0000 (06:05 +0000)]
 - Hold the vnode interlock across calls to bgetvp instead of acquiring it
   internally.  This is required to stop multiple bufs from being associated
   with a single lblkno.

21 years agoAlso allow and document a "build" ordering for variables.
David E. O'Brien [Sun, 2 Mar 2003 02:51:40 +0000 (02:51 +0000)]
Also allow and document a "build" ordering for variables.
Both "product" and "build" ordering are rampant in /usr/src.  This document
is not indented to be as strict as style(9) as historically BSD hasn't been
as consistent about Makefile as C code.  Also there are too many variations,
exceptions and allowances in out existing Makefile style to be strict.
However there is a general level of consensus on what the general BSD style
of our Makefiles is.  This manpage documents that "smell".

21 years agoo Do not use VPATH.
David E. O'Brien [Sun, 2 Mar 2003 02:40:38 +0000 (02:40 +0000)]
o Do not use VPATH.
o Give the proper spelling for WARNS.
o Clarify using NO_WERROR.
o Embelish -D after -I verbage.
o Document preference of ${.ALLSRC} & ${.TARGET} vs. $< & $@.

Based on: brucification

21 years agoFix 'bulk in' and 'bulk out' being reversed in a couple of error messages.
Scott Long [Sun, 2 Mar 2003 02:35:00 +0000 (02:35 +0000)]
Fix 'bulk in' and 'bulk out' being reversed in a couple of error messages.

21 years agoMdoc police.
David E. O'Brien [Sun, 2 Mar 2003 02:21:37 +0000 (02:21 +0000)]
Mdoc police.

Submitted by: ru

21 years agoAdd the mksnap_ffs command to the sbin directory. This setuid root
Kirk McKusick [Sun, 2 Mar 2003 01:50:33 +0000 (01:50 +0000)]
Add the mksnap_ffs command to the sbin directory. This setuid root
program allows users in the operator group to take filesystem
snapshots. Its first use will be in support of `dump -L'.

Approved by: Technical Review Board <trb@FreeBSD.org>
Sponsored by:   DARPA & NAI Labs.

21 years agoForgot to update the date field; from David Magda <dmagda@magda.ca>.
Juli Mallett [Sat, 1 Mar 2003 23:43:53 +0000 (23:43 +0000)]
Forgot to update the date field; from David Magda <dmagda@magda.ca>.

21 years agoAdd functionality to only list hosts specified on the command line. If none
Juli Mallett [Sat, 1 Mar 2003 23:09:26 +0000 (23:09 +0000)]
Add functionality to only list hosts specified on the command line.  If none
are specified the old behaviour is old.  The submitted applied a much cleaner
diff to ruptime.c, however it did not cover cases like listing failures.  It
would probably be a good idea to move the printing from the ruptime function,
and have that function just be used to build the list, as that would unbreak
sorting, but this diff is intended to be clear, relative to the original
code.  As the sort order is the order specified on the command line, for now,
such is documented in the manual page accordingly.

Submitted by: Edward J. M. Blocklesby <ejb@lythe.org.uk>
MFC after: 3 weeks

21 years agoTeach vm_page_sleep_if_busy() to release the vm_object lock before sleeping.
Alan Cox [Sat, 1 Mar 2003 19:16:32 +0000 (19:16 +0000)]
Teach vm_page_sleep_if_busy() to release the vm_object lock before sleeping.

21 years ago`Word-smithing'
Tom Rhodes [Sat, 1 Mar 2003 19:13:27 +0000 (19:13 +0000)]
`Word-smithing'

21 years agoAdd notes about which versions of firmware is known to work/fail with
Warner Losh [Sat, 1 Mar 2003 18:26:49 +0000 (18:26 +0000)]
Add notes about which versions of firmware is known to work/fail with
various functions of the card.  Be pedantically careful to use 'station
firmware' when talking about the version of Prism firmware.

As always, word-smithing welcome.

MFC-After: Tom Rhodes wakes up and notices :-)

21 years agoRemove unneeded code added in revision 1.188.
Tor Egge [Sat, 1 Mar 2003 17:18:28 +0000 (17:18 +0000)]
Remove unneeded code added in revision 1.188.

21 years agoNew release note: NETNCP/nwfs working.
Bruce A. Mah [Sat, 1 Mar 2003 17:08:26 +0000 (17:08 +0000)]
New release note:  NETNCP/nwfs working.

Updated release note:  ipfw(4) uid rules working.

21 years agoUpdates for the status of ipfw(4) bugs [1] and NETWARE/ncp [2].
Bruce A. Mah [Sat, 1 Mar 2003 16:58:53 +0000 (16:58 +0000)]
Updates for the status of ipfw(4) bugs [1] and NETWARE/ncp [2].

Submitted by: maxim [1], tjr [2].

21 years agoShare ino_t and nlink_t.
Mike Barcroft [Sat, 1 Mar 2003 16:51:40 +0000 (16:51 +0000)]
Share ino_t and nlink_t.

21 years agoDon't reset agent before processing OCB has done.
Hidetoshi Shimokawa [Sat, 1 Mar 2003 16:50:40 +0000 (16:50 +0000)]
Don't reset agent before processing OCB has done.

21 years agoUpdated release notes: add nooption/nomakeoption to nodevice, FILE
Bruce A. Mah [Sat, 1 Mar 2003 16:28:25 +0000 (16:28 +0000)]
Updated release notes:  add nooption/nomakeoption to nodevice, FILE
3.41.

MFC noted:  IPFilter 3.4.31.

21 years agoUse .Pa for file names and paths.
Tom Rhodes [Sat, 1 Mar 2003 15:56:42 +0000 (15:56 +0000)]
Use .Pa for file names and paths.

21 years agoNew mapping for the italian keyboard, includes the Euro symbol
Luigi Rizzo [Sat, 1 Mar 2003 14:45:17 +0000 (14:45 +0000)]
New mapping for the italian keyboard, includes the Euro symbol
and other localized keys.

MFC candidate pending re@ approval.

Contributed by: Gruppo Utenti FreeBSD Italia (www.gufi.org)
No-reply-from: ache
MFC after: 3 days

21 years agoMFi386 revision 1.88
Alan Cox [Sat, 1 Mar 2003 10:02:11 +0000 (10:02 +0000)]
MFi386 revision 1.88
 Remove some long unused declarations.

21 years agoFix support for HPT controllers they where always left in PIO mode.
Søren Schmidt [Sat, 1 Mar 2003 09:33:35 +0000 (09:33 +0000)]
Fix support for HPT controllers they where always left in PIO mode.
Amazing what a ';' can do :/

21 years agoMake /dev/pci use MAJOR_AUTO.
Stefan Eßer [Sat, 1 Mar 2003 08:57:16 +0000 (08:57 +0000)]
Make /dev/pci use MAJOR_AUTO.

21 years ago - gc USE_BUFHASH. The smp locking of the buf cache renders this useless.
Jeff Roberson [Sat, 1 Mar 2003 05:55:03 +0000 (05:55 +0000)]
 - gc USE_BUFHASH.  The smp locking of the buf cache renders this useless.

21 years agoSpeed up debugging in the context of unexpected traps by printing
Marcel Moolenaar [Sat, 1 Mar 2003 05:18:28 +0000 (05:18 +0000)]
Speed up debugging in the context of unexpected traps by printing
the address of the image base of the loader. Given cr.iip, we can
use the symbol table to figure out what function caused the trap.

21 years agoParanoia: Don't use the length of the option string alone to
Marcel Moolenaar [Sat, 1 Mar 2003 05:13:59 +0000 (05:13 +0000)]
Paranoia: Don't use the length of the option string alone to
determine whether we have command line options. We expect a
valid string pointer as well.

21 years agoThe aac driver has evolved enough over the last few months that it no
Scott Long [Sat, 1 Mar 2003 05:07:19 +0000 (05:07 +0000)]
The aac driver has evolved enough over the last few months that it no
longer resembles the 4.x version very much.  Garbage collect the legacy
bits.

21 years agoDescribe the 5823 and why there's no AES support.
Sam Leffler [Sat, 1 Mar 2003 00:50:09 +0000 (00:50 +0000)]
Describe the 5823 and why there's no AES support.

21 years agoRemove traces of MAKEDEV & add xref to mount_devfs(8).
Giorgos Keramidas [Fri, 28 Feb 2003 22:47:18 +0000 (22:47 +0000)]
Remove traces of MAKEDEV & add xref to mount_devfs(8).
DEVFS is now mandatory in CURRENT.

PR: docs/48095
Submitted by: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>

21 years agoHopefully, obviate the need of ``make depend''.
Ruslan Ermilov [Fri, 28 Feb 2003 22:17:47 +0000 (22:17 +0000)]
Hopefully, obviate the need of ``make depend''.

21 years agoInitiate the de-orbit burn sequence for <bsd.kern.mk>.
Ruslan Ermilov [Fri, 28 Feb 2003 22:12:17 +0000 (22:12 +0000)]
Initiate the de-orbit burn sequence for <bsd.kern.mk>.
Always use sys/conf/kern.mk when building kernel/modules.
<bsd.kern.mk> is only preserved for sys/boot/pc98/boot2
for now, but this will be fixed.  If there are other
users of <bsd.kern.mk>, please let me know.

Reminded by: bde

21 years agoDocument keybell="" switch and refer to kbdcontrol(1) for details.
Giorgos Keramidas [Fri, 28 Feb 2003 22:07:19 +0000 (22:07 +0000)]
Document keybell="" switch and refer to kbdcontrol(1) for details.

21 years agoStandardize handling of locore.[sS] etc. files.
Ruslan Ermilov [Fri, 28 Feb 2003 21:59:14 +0000 (21:59 +0000)]
Standardize handling of locore.[sS] etc. files.

Submitted by: jake, bde, ru

21 years agoThe .Nm utility.
Giorgos Keramidas [Fri, 28 Feb 2003 21:04:17 +0000 (21:04 +0000)]
The .Nm utility.

21 years agofix compilation w/o INET6
Sam Leffler [Fri, 28 Feb 2003 20:06:29 +0000 (20:06 +0000)]
fix compilation w/o INET6

Noticed by: "James E. Flemer" <jflemer@acm.jhu.edu>

21 years agoGC the major number for the network entries.
Maxime Henrion [Fri, 28 Feb 2003 19:56:10 +0000 (19:56 +0000)]
GC the major number for the network entries.

21 years agoImplement outgoing interrupt pipes. It is part of the USB 1.1 spec.
John Hay [Fri, 28 Feb 2003 19:28:29 +0000 (19:28 +0000)]
Implement outgoing interrupt pipes. It is part of the USB 1.1 spec.
The Lego Infrared Tower use it.

21 years agoo Move vendor ids into separate table.
Orion Hodson [Fri, 28 Feb 2003 18:04:52 +0000 (18:04 +0000)]
o Move vendor ids into separate table.
o Add assorted vendor and codec ids.

21 years agoMake the network /dev entries use MAJOR_AUTO.
Maxime Henrion [Fri, 28 Feb 2003 18:04:42 +0000 (18:04 +0000)]
Make the network /dev entries use MAJOR_AUTO.

21 years agoCheck kse group limit before linking new ksegrp.
David Xu [Fri, 28 Feb 2003 15:57:33 +0000 (15:57 +0000)]
Check kse group limit before linking new ksegrp.

21 years agoDon't pretend natd(8) doesn't work with ppp(8) interfaces.
Ruslan Ermilov [Fri, 28 Feb 2003 15:41:45 +0000 (15:41 +0000)]
Don't pretend natd(8) doesn't work with ppp(8) interfaces.
While there's probably a better way to achieve the same,
nothing precludes us from using natd(8) on tun(4) links.

Noticed by: bde

21 years agoSpellcheck.
Jacques Vidrine [Fri, 28 Feb 2003 15:01:31 +0000 (15:01 +0000)]
Spellcheck.

21 years ago86 ufm: it now uses MAJOR_AUTO.
Warner Losh [Fri, 28 Feb 2003 13:25:06 +0000 (13:25 +0000)]
86 ufm: it now uses MAJOR_AUTO.

21 years agoufm doesn't care what major it uses.
Warner Losh [Fri, 28 Feb 2003 13:23:31 +0000 (13:23 +0000)]
ufm doesn't care what major it uses.

21 years agoThese appear to work as cardbus cards too
Warner Losh [Fri, 28 Feb 2003 13:21:17 +0000 (13:21 +0000)]
These appear to work as cardbus cards too

21 years agoNO_GEOM cleanup:
Poul-Henning Kamp [Fri, 28 Feb 2003 10:02:02 +0000 (10:02 +0000)]
NO_GEOM cleanup:

Retire the "dev_t" centric version of the disk mini-layer.
Remove now unneeded linkage field in dev_t and struct disk.

21 years agoNO_GEOM cleanup:
Poul-Henning Kamp [Fri, 28 Feb 2003 09:53:36 +0000 (09:53 +0000)]
NO_GEOM cleanup:

Convert to "struct disk *" centric API.

OK'ed by: sos

21 years agoRetire #3: wd.
Poul-Henning Kamp [Fri, 28 Feb 2003 09:48:59 +0000 (09:48 +0000)]
Retire #3: wd.

21 years agoNO_GEOM cleanup:
Poul-Henning Kamp [Fri, 28 Feb 2003 09:47:22 +0000 (09:47 +0000)]
NO_GEOM cleanup:

Convert to "struct disk *" centric API.

21 years agoAttempt to mark the majors which are used by drivers checked into the
Poul-Henning Kamp [Fri, 28 Feb 2003 07:49:57 +0000 (07:49 +0000)]
Attempt to mark the majors which are used by drivers checked into the
CVS tree.

21 years agoSync with bsd.kern.mk.
Jake Burkholder [Fri, 28 Feb 2003 06:49:59 +0000 (06:49 +0000)]
Sync with bsd.kern.mk.

Reminded by: bde

21 years agopccard isn't picky about WHAT major it gets.
Warner Losh [Fri, 28 Feb 2003 05:56:06 +0000 (05:56 +0000)]
pccard isn't picky about WHAT major it gets.

21 years agoUpdate for version 3.41.
David E. O'Brien [Fri, 28 Feb 2003 05:31:47 +0000 (05:31 +0000)]
Update for version 3.41.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r111658,
David E. O'Brien [Fri, 28 Feb 2003 05:19:36 +0000 (05:19 +0000)]
This commit was generated by cvs2svn to compensate for changes in r111658,
which included commits to RCS files with non-trunk default branches.

21 years agoVirgin import of Christos Zoulas's FILE 3.41.
David E. O'Brien [Fri, 28 Feb 2003 05:19:36 +0000 (05:19 +0000)]
Virgin import of Christos Zoulas's FILE 3.41.
* - fix memory allocation problem (Jeff Johnson)
* - fix stack overflow corruption (David Endler)

21 years agoUse a character device and ioctl() for communication between libncp
Tim J. Robbins [Fri, 28 Feb 2003 04:31:29 +0000 (04:31 +0000)]
Use a character device and ioctl() for communication between libncp
and the kernel instead of adding more syscalls at runtime. As a bonus,
you can now restrict access to the kernel NCP interface with chmod.

21 years agoUse MAJOR_AUTO. GC statically assigned majors.
Jake Burkholder [Fri, 28 Feb 2003 04:21:13 +0000 (04:21 +0000)]
Use MAJOR_AUTO.  GC statically assigned majors.

21 years agoThese files are no longer used. They have been replaced with similarly named
Benno Rice [Fri, 28 Feb 2003 03:35:42 +0000 (03:35 +0000)]
These files are no longer used.  They have been replaced with similarly named
.S files.

21 years agoSpell "utilities" correctly.
Giorgos Keramidas [Fri, 28 Feb 2003 00:55:18 +0000 (00:55 +0000)]
Spell "utilities" correctly.

21 years agoaic79xx.c:
Justin T. Gibbs [Thu, 27 Feb 2003 23:23:16 +0000 (23:23 +0000)]
aic79xx.c:
Clear the LQICRC_NLQ status should it pop up after we have
already handled the SCSIPERR.  During some streaming operations
this status can be delayed until the stream ends.  Without this
change, the driver would complain about a "Missing case in
ahd_handle_scsiint".

In the LQOBUSFREE handler...

Don't return the LQOMGR back to the idle state until after
we have cleaned up ENSELO and any status related to this
selection.  The last thing we need is the LQO manager starting
another select-out before we have updated the execution queue.
It is not clear whether the LQOMGR would, or would not
start a new selection early.

Make sure ENSELO is off prior to clearing SELDO by flushing
device writes.

Move assignment of the next target SCB pointer inside of
an if to make the code clearer.  The effect is the same.

Dump card state in both "Unexpected PKT busfree" paths.

In ahd_reset(), set the chip to SCSI mode before reading SXFRCTL1.
That register only exists in the SCSI mode.  Also set the mode
explicitly to the SCSI mode after chip reset due to paranoia.
Re-arrange code so that SXFRCTL1 is restored as quickly after the
chip reset as possible.

S/G structurs must be 8byte aligned.  Make this official by saying
so in our DMA tag.

Disable CIO bus stretch on MDFFSTAT if SHVALID is about to come
true.  This can cause a CIO bus lockup if a PCI or PCI-X error
occurs while the stretch is occurring - the host cannot service
the PCI-X error since the CIO bus is locked out and SHVALID will
never resolve.  The stretch was added in the Rev B to simplify the
wait for SHVALID to resolve, but the code to do this in the open
source sequencer is so simple it was never removed.

Consistently use MAX_OFFSET for the user max syncrate set from
non-volatile storage.  This ensures that the offset does not
conflict with AH?_OFFSET_UNKNOWN.

Have ahd_pause_and_flushwork set the mode to ensure that it has
access to the registers it checks.  Also modify the checking of
intstat so that the check against 0xFF can actually succeed if
the INT_PEND mask is something other than 0xFF.  Although there
are no cardbus U320 controllers, this check may be needed to
recover from a hot-plug PCI removal that occurs without informing
the driver.

Fix a typo.  sg_prefetch_cnt -> sg_prefetch_align.  This fixes
an infinite loop at card initialization if the cacheline size is 0.

aic79xx.h:
Add AHD_EARLY_REQ_BUG bug flag.

Fix spelling errors.

Include the CDB's length just after the CDB pointer in the DMA'ed
CDB case.

Change AH?_OFFSET_UNKNOWN to 0xFF.  This is a value that the
curr->offset can never be, unlike '0' which we previously used.
This fixes code that only checks for a non-zero offset to
determine if a sync negotiation is required since it will fire
in the unknown case even if the goal is async.

aic79xx.reg:
Add comments for LQISTAT bits indicating their names in the 7902
data book.  We use slightly different and more descriptive names
in the firmware.

Fix spelling errors.

Include the CDB's length just after the CDB pointer in the DMA'ed
CDB case.

aic79xx.seq:
Update comments regarding rundown of the GSFIFO to reflect reality.

Fix spelling errors.

Since we use an 8byte address and 1 byte length, shorten the size
of a block move for the legacy DMA'ed CDB case from 11 to 9 bytes.

Remove code that, assuming the abort pending feature worked, would
set MK_MESSAGE in the SCB's control byte on completion to catch
invalid reselections.  Since we don't see interrupts for completed
selections, this status update could occur prior to us noticing the
SELDO.  The "select-out" queue logic will get confused by the
MK_MESSAGE bit being set as this is used to catch packatized
connections where we select-out with ATN.  Since the abort pending
feature doesn't work on any released controllers yet, this code was
never executed.

Add support for the AHD_EARLY_REQ_BUG.  Don't ignore persistent REQ
assertions just because they were asserted within the bus settle delay
window.  This allows us to tolerate devices like the GEM318 that
violate the SCSI spec.

Remove unintentional settnig of SG_CACHE_AVAIL.  Writing this bit
should have no effect, but who knows...

On the Rev A, we must wait for HDMAENACK before loading additional
segments to avoid clobbering the address of the first segment in
the S/G FIFO.  This resolves data-corruption issues with certain
IBM (now Hitachi) and Fujitsu U320 drives.

Rearrange calc_residual to avoid an extra jmp instruction.

On RevA Silicon, if the target returns us to data-out after we
have already trained for data-out, it is possible for us to
transition the free running clock to data-valid before the required
100ns P1 setup time (8 P1 assertions in fast-160 mode).  This will
only happen if this L-Q is a continuation of a data transfer for
which we have already prefetched data into our FIFO (LQ/Data
followed by LQ/Data for the same write transaction).  This can
cause some target implementations to miss the first few data
transfers on the bus.  We detect this situation by noticing that
this is the first data transfer after an LQ (LQIWORKONLQ true),
that the data transfer is a continuation of a transfer already
setup in our FIFO (SAVEPTRS interrupt), and that the transaction
is a write (DIRECTION set in DFCNTRL). The delay is performed by
disabling SCSIEN until we see the first REQ from the target.

Only compile in snapshot savepointers handler for RevA silicon
where it is enabled.

Handle the cfg4icmd packetized interrupt.  We just need to load
the address and count, start the DMA, and CLRCHN once the transfer
is complete.

Fix an oversight in the overrun handler for packetized status
operations.  We need to wait for either CTXTDONE or an overrun
when checking for an overrun.  The previous code did not wait
and thus could decide that no overrun had occurred even though
an overrun will occur on the next data-valid req.  Add some
comment to this section for clarity.

Use LAST_SEG_DONE instead of LASTSDONE for testing transfer
completion in the packetized status case.  LASTSDONE may come up
more quickly since it only records completion on the SCSI side,
but since LAST_SEG_DONE is used everywhere else (and needs to be),
this is less confusing.

Add a missing invalidation of the longjmp address in the non-pack
handler.  This code needs additional review.

aic79xx_inline.h:
Fix spelling error.

aic79xx_osm.c:
Set the cdb length for CDBs dma'ed from host memory.

Add a comment indicating that, should CAM start supporting cdbs
larger than 16bytes, the driver could store the CDB in the status
buffer.

aic79xx_pci.c:
Add a table entry for the 39320A.

Added a missing comma to an error string table.

Fix spelling errors.

21 years agoHandle includes the normal way.
Ruslan Ermilov [Thu, 27 Feb 2003 23:07:26 +0000 (23:07 +0000)]
Handle includes the normal way.

Reviewed by: markm
Approved by: nectar

21 years ago- Removed various cruft from before we had a hosted toolchain (!).
Jake Burkholder [Thu, 27 Feb 2003 23:02:22 +0000 (23:02 +0000)]
- Removed various cruft from before we had a hosted toolchain (!).
- Moved special compiler flags to bsd.kern.mk so they get used for modules
  too.

21 years agoDocument the rxcsum and txcsum commands.
Ruslan Ermilov [Thu, 27 Feb 2003 22:59:13 +0000 (22:59 +0000)]
Document the rxcsum and txcsum commands.

Submitted by: jlemon

21 years agoNO_GEOM cleanup:
Poul-Henning Kamp [Thu, 27 Feb 2003 22:04:08 +0000 (22:04 +0000)]
NO_GEOM cleanup:

Move <sys/conf.h> before <sys/disk.h>.
No need for raidread()/raidwrite(), we have generic code for that.
Remove non-functional dump code.
Make raidinit() return the softc, not the dev_t.
Move to "struct disk*" centric API.
Fix printfs' to get name from struct disk instead of dev_t.

OK'ed by: scottl

21 years agoAdd support for the Elan CPU hardware watchdog used in "active" mode.
Poul-Henning Kamp [Thu, 27 Feb 2003 21:13:08 +0000 (21:13 +0000)]
Add support for the Elan CPU hardware watchdog used in "active" mode.

21 years agoadd 5801 and 5802 recognition (somehow lost in transition from openbsd)
Sam Leffler [Thu, 27 Feb 2003 21:10:20 +0000 (21:10 +0000)]
add 5801 and 5802 recognition (somehow lost in transition from openbsd)

Noticed by: Larry Baird <lab@gta.com>

21 years agoAdd header file defining a simple, yet expressive watchdog interface
Poul-Henning Kamp [Thu, 27 Feb 2003 21:07:36 +0000 (21:07 +0000)]
Add header file defining a simple, yet expressive watchdog interface
which can be implemented on all the watchdog hardware I know.

21 years agoAdd a new variable `noInet6', which if set disables IPv6 configuration
Maxim Sobolev [Thu, 27 Feb 2003 21:04:34 +0000 (21:04 +0000)]
Add a new variable `noInet6', which if set disables IPv6 configuration
dialog for network interfaces.

MFC after: 20 days

21 years agoZero cpi->target_sprt since atapi-cam does not support target mode. This
Nate Lawson [Thu, 27 Feb 2003 20:56:56 +0000 (20:56 +0000)]
Zero cpi->target_sprt since atapi-cam does not support target mode.  This
gets rid of annoying messages when targbh tries to attach to the ATA bus
and gets rejected.

MFC after: 1 day

21 years agoInclude majors.o in SYSTEM_OBJS to make sparc64 kernels link. This is a
Jake Burkholder [Thu, 27 Feb 2003 20:55:09 +0000 (20:55 +0000)]
Include majors.o in SYSTEM_OBJS to make sparc64 kernels link.  This is a
quick fix while I work on a better solution.

21 years agoAdd xref to oldcard/newcard docs.
Warner Losh [Thu, 27 Feb 2003 20:45:54 +0000 (20:45 +0000)]
Add xref to oldcard/newcard docs.

21 years agoOLDCARD man page. This sucks, but not too bad. and better than
Warner Losh [Thu, 27 Feb 2003 20:45:26 +0000 (20:45 +0000)]
OLDCARD man page.  This sucks, but not too bad.  and better than
what we had before.  Improvements encouraged and welcome.

21 years agoIncrease size of the static buffer used to hold runtime dependency list
Maxim Sobolev [Thu, 27 Feb 2003 20:43:52 +0000 (20:43 +0000)]
Increase size of the static buffer used to hold runtime dependency list
read from CD from 2k to 16k, because in the modern world of meta-packages
(Gnome et al) the length of this list could easily owerflow limit causing
strange things to happen, ranging from installation failure due to list
truncation to complete stack trashing (there is very vague bounds checking).
For example, x11/gnome2-fifth-toe runtime dependencies list is 2,418 bytes
long.

Due to obvious reasons, this is an immediate MFC candidate.

Sponsored by: Porta Software Ltd
MFC after: 1 day

21 years agoExpand some #ifdef's to fix I386_CPU compile.
John Baldwin [Thu, 27 Feb 2003 20:38:48 +0000 (20:38 +0000)]
Expand some #ifdef's to fix I386_CPU compile.

Reported by: Andy Farkas <andyf@speednet.com.au>

21 years agoDocument the hand springs that you need to go through to use a WL200
Warner Losh [Thu, 27 Feb 2003 20:37:03 +0000 (20:37 +0000)]
Document the hand springs that you need to go through to use a WL200

21 years agoRemove some long unused declarations. (For example, the PV flags have not
Alan Cox [Thu, 27 Feb 2003 20:13:20 +0000 (20:13 +0000)]
Remove some long unused declarations.  (For example, the PV flags have not
been used since revision 1.8, roughly nine years ago.)

21 years agoRemember to set if_capenable when setting up checksum offload in fxp_attach().
Bill Paul [Thu, 27 Feb 2003 19:41:55 +0000 (19:41 +0000)]
Remember to set if_capenable when setting up checksum offload in fxp_attach().

Pointed out by: jlemon

21 years agoDocument the fact that VTY locking is easily bypassable when DDB
Maxime Henrion [Thu, 27 Feb 2003 18:25:26 +0000 (18:25 +0000)]
Document the fact that VTY locking is easily bypassable when DDB
is compiled in the kernel.  Also add some useful xrefs to lock(1).

21 years agoWhen DDB is in the kernel, unlock VTY switching so that we
Maxime Henrion [Thu, 27 Feb 2003 18:24:06 +0000 (18:24 +0000)]
When DDB is in the kernel, unlock VTY switching so that we
don't end up freezing the box.  This makes VTY locking useless
in the DDB case but a box which is supposed to be physically
secure shouldn't compile DDB anyway.

Reviewed by: silence on -audit

21 years agoThis is not going to win prizes for the most useful module ever,
Mark Murray [Thu, 27 Feb 2003 18:08:44 +0000 (18:08 +0000)]
This is not going to win prizes for the most useful module ever,
but it is useful to me for some testing and warns-fixing.

21 years agoWarns and lint fix. Nearly all trivial stuff.
Mark Murray [Thu, 27 Feb 2003 18:07:11 +0000 (18:07 +0000)]
Warns and lint fix. Nearly all trivial stuff.

21 years agoWARNS=4 fixes. This would be WARNS=9 if we were -std=99 instead of
Mark Murray [Thu, 27 Feb 2003 18:04:54 +0000 (18:04 +0000)]
WARNS=4 fixes. This would be WARNS=9 if we were -std=99 instead of
-ansi, due to 'long long'.

Reviewed by: green (slightly earlier version)

21 years agoUpdate the comment to reflect new reality.
Poul-Henning Kamp [Thu, 27 Feb 2003 15:34:12 +0000 (15:34 +0000)]
Update the comment to reflect new reality.
GC more entries.

21 years agoGC some more major numbers.
Poul-Henning Kamp [Thu, 27 Feb 2003 15:18:56 +0000 (15:18 +0000)]
GC some more major numbers.

21 years agoAdd the flip-side check: If a driver wants a particular major#, make
Poul-Henning Kamp [Thu, 27 Feb 2003 15:17:37 +0000 (15:17 +0000)]
Add the flip-side check:  If a driver wants a particular major#, make
sure it is marked as allocated in reserved_majors[].  Whine if it wasn't.

21 years agoUse MAJOR_AUTO.
Poul-Henning Kamp [Thu, 27 Feb 2003 15:05:28 +0000 (15:05 +0000)]
Use MAJOR_AUTO.

21 years agoHook up the if_my module to the build.
Ruslan Ermilov [Thu, 27 Feb 2003 14:49:56 +0000 (14:49 +0000)]
Hook up the if_my module to the build.

21 years agoWe can now properly return ENODEV in nommap(), so do it.
Maxime Henrion [Thu, 27 Feb 2003 14:48:53 +0000 (14:48 +0000)]
We can now properly return ENODEV in nommap(), so do it.
Remove the now wrong comment which says we can't.

21 years agoAdd support for allocating a device driver major number on demand.
Poul-Henning Kamp [Thu, 27 Feb 2003 14:46:51 +0000 (14:46 +0000)]
Add support for allocating a device driver major number on demand.

To do this, initialize the d_maj member of the cdevsw to MAJOR_AUTO.
When the cdevsw is first passed to make_dev() a free major number
will be assigned.

Until we have a bit more experience with this a printf will announce
this fact.

Major numbers are not reclaimed, so loading/unloading the same
device driver which uses MAJOR_AUTO will eventually deplete the
pool of free major numbers and the system will panic when it can
not allocate one.  Still undecided who to invonvenience with the
solution to this.

21 years agoUse noread(), nowrite() and nopoll() instead of our own stub functions.
Tim J. Robbins [Thu, 27 Feb 2003 14:35:21 +0000 (14:35 +0000)]
Use noread(), nowrite() and nopoll() instead of our own stub functions.

21 years agoAdd yet a patch for the patchwork quilt called sio(4):
Poul-Henning Kamp [Thu, 27 Feb 2003 14:09:36 +0000 (14:09 +0000)]
Add yet a patch for the patchwork quilt called sio(4):

Allow people set set flags on pci based SIO ports.

21 years ago"Advertizing" is ugly and possibly incorrect; use "Advertising" instead.
Tim J. Robbins [Thu, 27 Feb 2003 14:07:49 +0000 (14:07 +0000)]
"Advertizing" is ugly and possibly incorrect; use "Advertising" instead.

21 years agoEliminate 19 warnings in libc (at level WARNS=2) of the
Jacques Vidrine [Thu, 27 Feb 2003 13:40:01 +0000 (13:40 +0000)]
Eliminate 19 warnings in libc (at level WARNS=2) of the
`implicit declaration of function' variety.

21 years agoDon't make buildworld and buildkernel in parallel.
Ruslan Ermilov [Thu, 27 Feb 2003 13:11:33 +0000 (13:11 +0000)]
Don't make buildworld and buildkernel in parallel.
And this is probably what you expect when you say
"make -jX buildworld buildkernel".

21 years agoTypo, I must have hit xZZ in vi(1).
Poul-Henning Kamp [Thu, 27 Feb 2003 12:53:21 +0000 (12:53 +0000)]
Typo, I must have hit xZZ in vi(1).

21 years agoMFp4(simokawa_sbp branch)
Hidetoshi Shimokawa [Thu, 27 Feb 2003 12:51:24 +0000 (12:51 +0000)]
MFp4(simokawa_sbp branch)

Improve SBP device probeing:
- Wait 2 sec before issuing LOGIN ORB expecting the reconnection
hold timer expires.
- Serialize management ORB and scanning LUN by CAM on each target.
This should fix the problem for devices which have multiple LUNs.
Test device is donated by: Jaye Mathisen <mrcpu@internetcds.com>
- Freeze SIM queue for 2 sec after BUS RESET.
- Retry with LOGIN rather than RECONNECT after LOGIN is not completed for
BUS RESET.
- Use appropriate CAM status for BUS RESET and DEVICE RESET.
- Let CAM to scan targets after BUS REST.
- Implement CAM scan target function.
- Keep our own devq freeze count.
- Let CAM to know that SBP does tagged queuing.

These should be merged to RELENG_4 before 4.8-RELEASE.

21 years agoDocument that flags bit 0x10000 puts PPS timestamping on CTS instead of DCD.
Poul-Henning Kamp [Thu, 27 Feb 2003 12:27:35 +0000 (12:27 +0000)]
Document that flags bit 0x10000 puts PPS timestamping on CTS instead of DCD.

21 years agoMake flags bit 0x10000 mean that PPS timestamping should use the
Poul-Henning Kamp [Thu, 27 Feb 2003 12:27:09 +0000 (12:27 +0000)]
Make flags bit 0x10000 mean that PPS timestamping should use the
CTS instead of the DCD pin.

21 years agoCopy some VM changes from smbfs_putpages() to nwfs_putpages(): lock
Tim J. Robbins [Thu, 27 Feb 2003 11:35:22 +0000 (11:35 +0000)]
Copy some VM changes from smbfs_putpages() to nwfs_putpages(): lock
page queues, use vm_page_undirty().

21 years agoBuild the ncp and nwfs modules again, but only on i386 for now.
Tim J. Robbins [Thu, 27 Feb 2003 11:31:08 +0000 (11:31 +0000)]
Build the ncp and nwfs modules again, but only on i386 for now.

21 years agoOnly use function 1 not 0 on cypress chips.
Søren Schmidt [Thu, 27 Feb 2003 09:42:57 +0000 (09:42 +0000)]
Only use function 1 not 0 on cypress chips.