]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoOptimize this a bit better.
das [Tue, 15 Jan 2008 23:31:24 +0000 (23:31 +0000)]
Optimize this a bit better.

Submitted by: bde (although these aren't all of his changes)

16 years agoUse '%zd' to print PIO_LEN since it involves a size_t (via sizeof()) to
jhb [Tue, 15 Jan 2008 22:01:26 +0000 (22:01 +0000)]
Use '%zd' to print PIO_LEN since it involves a size_t (via sizeof()) to
appease the tinderbox on 32-bit platforms.

Tested on: amd64, i386

16 years agoDon't cache the new-bus name of a PCI device in the PCI conf structure,
jhb [Tue, 15 Jan 2008 21:40:46 +0000 (21:40 +0000)]
Don't cache the new-bus name of a PCI device in the PCI conf structure,
but reread it from the device_t every time the device list is fetched.
Previously the device name in pciconf -l would not be updated when a driver
was unloaded or if a device was detached and attached to a different
driver.

MFC after: 1 week
PR: kern/104777
Submitted by: "Iasen Kostoff"  tbyte | otel net

16 years agoAdd optional support to mxge for MSI-X interrupts and multiple receive
gallatin [Tue, 15 Jan 2008 20:34:49 +0000 (20:34 +0000)]
Add optional support to mxge for MSI-X interrupts and multiple receive
queues (which we call slices).  The NIC will steer traffic into up to
hw.mxge.max_slices different receive rings based on a configurable
hash type (hw.mxge.rss_hash_type).

Currently the driver defaults to using a single slice, so the default
behavior is unchanged.  Also, transmit from non-zero slices is
disabled currently.

16 years agoWITHOUT_FORTRAN was removed some time ago. Regen src.conf.5.
brueffer [Tue, 15 Jan 2008 19:54:17 +0000 (19:54 +0000)]
WITHOUT_FORTRAN was removed some time ago.  Regen src.conf.5.

PR: 119562
Submitted by: Daniel Rucci <dan@rucci.org>
MFC after: 3 days

16 years agoHide common prints under bootverbose.
sobomax [Tue, 15 Jan 2008 19:21:08 +0000 (19:21 +0000)]
Hide common prints under bootverbose.

Obtained from: src/sys/dev/rr232x/osm_bsd.c, rev.1.2-1.3
MFC after: 2 weeks

16 years agoRemove some now-unused macros.
jhb [Tue, 15 Jan 2008 18:55:52 +0000 (18:55 +0000)]
Remove some now-unused macros.

MFC after: 1 week

16 years agoFix a few minor issues based on a bug report and reading over the HPET
jhb [Tue, 15 Jan 2008 18:50:47 +0000 (18:50 +0000)]
Fix a few minor issues based on a bug report and reading over the HPET
spec:
- Use read/modify/write cycles to enable and disable the HPET instead of
  writing 0 to reserved bits.
- Shutdown the HPET during suspend as encouraged by the spec.
- Fail to attach to an HPET with a period of zero.

MFC after: 1 week
PR: kern/119675 [3]
Reported by: Leo Bicknell | bicknell ufp.org

16 years agoMake test00 compilable again.
sobomax [Tue, 15 Jan 2008 18:34:47 +0000 (18:34 +0000)]
Make test00 compilable again.

16 years agoHandle Zip archives that are "multi-part archives with only
kientzle [Tue, 15 Jan 2008 16:27:15 +0000 (16:27 +0000)]
Handle Zip archives that are "multi-part archives with only
one part" by simply ignoring the marker at the beginning
of the file.  (Zip archivers reserve four bytes at the beginning
of each part of a multi-part archive, if it happens to only
require one part, those four bytes get filled with a placeholder
that can be ignored.)

Thanks to: Marius Nuennerich,
 for pointing me to a Zip archive that libarchive couldn't handle
MFC after: 7 days

16 years agoPut back the openpty(3) and ptsname(3) fixes but don't disable ptsname(3)
jhb [Tue, 15 Jan 2008 15:36:23 +0000 (15:36 +0000)]
Put back the openpty(3) and ptsname(3) fixes but don't disable ptsname(3)
on pts(4) devices this time.  This fixes the issues while leaving pts(4)
enabled on HEAD.

16 years agoFix accidental swap of "const" for "static" in mxge firmware byte arrays
gallatin [Tue, 15 Jan 2008 15:04:40 +0000 (15:04 +0000)]
Fix accidental swap of "const" for "static" in mxge firmware byte arrays
caused by running my import script with the wrong args.

16 years agoBack out last commit, since it accidentally broke pts.
cperciva [Tue, 15 Jan 2008 13:59:13 +0000 (13:59 +0000)]
Back out last commit, since it accidentally broke pts.

The security fix will be re-committed soon, hopefully without breaking
anything.

16 years agoUpdate to firmware version 1.4.29 from 1.4.25. Relevant changes include:
gallatin [Tue, 15 Jan 2008 13:29:32 +0000 (13:29 +0000)]
Update to firmware version 1.4.29 from 1.4.25.  Relevant changes include:

- Fix a bug introduced in 1.4.20 where speculative read by the processor in the
   write-only doorbell region would cause a target-abort (as opposed to simply
   returning random data). This could manifest itself as NMI or machine freeze
   depending on how the BIOS/OS/chipset configuration handles target-abort.

- Add support for new revisions of -R cards (with AEL1002/AEL1010 xaui->xfi)

- Increase an internal timing (dispatch engine): fix possible spurious reset
  (seen on very few cards).

16 years ago - When executing the 'tryself' branch in sched_pickcpu() look at the
jeff [Tue, 15 Jan 2008 09:03:09 +0000 (09:03 +0000)]
 - When executing the 'tryself' branch in sched_pickcpu() look at the
   lowest priority on the queue for the current cpu vs curthread's
   priority.  In the case that curthread is waking up many threads of a
   lower priority as would happen with a turnstile_broadcast() or wakeup()
   of many threads this prevents them from all ending up on the current cpu.
 - In sched_add() make the relationship between a scheduled ithread and
   the current cpu advisory rather than strict.  Only give the ithread
   affinity for the current cpu if it's actually being scheduled from
   a hardware interrupt.  This prevents it from migrating when it simply
   blocks on a lock.

Sponsored by: Nokia

16 years ago- Simplify mb_free_ext_fast
kmacy [Tue, 15 Jan 2008 08:08:09 +0000 (08:08 +0000)]
- Simplify mb_free_ext_fast
- increase asserts for mbuf accounting
- track outstanding mbufs (maps very closely to leaked)
- actually only create one thread per port if !multiq
    Oddly enough this fixes the use after free

- move txq_segs to stack in t3_encap
- add checks that pidx doesn't move pass cidx
- simplify mbuf free logic in collapse mbufs routine

16 years agoFix some bugs in wall(1):
das [Tue, 15 Jan 2008 07:40:30 +0000 (07:40 +0000)]
Fix some bugs in wall(1):
- Handle wrapping correctly when \r appears in the input, and don't
  remove the \r from the output.
- For lines longer than 79 characters, don't drop every 80th character.
- Style: Braces around compound while statement.

PR: 114498
Submitted by: Niclas Zeising <niclas.zeising@gmail.com> (earlier version)

16 years agoIn getttyent(3), if /etc/ttys doesn't end in a newline, don't
das [Tue, 15 Jan 2008 06:50:50 +0000 (06:50 +0000)]
In getttyent(3), if /etc/ttys doesn't end in a newline, don't
freak out and keep trying to expand the buffer until realloc()
fails.

PR: 114398

16 years agoQuotacheck may possibly skip quota accounting for up to 2 files
mpp [Tue, 15 Jan 2008 06:33:20 +0000 (06:33 +0000)]
Quotacheck may possibly skip quota accounting for up to 2 files
on a filesystem if the quota data files reside on a different
filesystem (e.g. the userquota=/somepath,groupquota=/somepath2
options are specified in /etc/fstab to place the quota files
somewhere other than the default location).

Fix quotacheck to only skip accounting if the quota data file
actually resides on the filesystem being checked.

16 years agoSupport uppercase hex digits in cpio archives.
kientzle [Tue, 15 Jan 2008 04:56:48 +0000 (04:56 +0000)]
Support uppercase hex digits in cpio archives.

Thanks to: Joshua Kwan
MFC after: 7 days

16 years agoProtect arg in macro M_ASSERTPKTHDR.
yongari [Tue, 15 Jan 2008 04:00:12 +0000 (04:00 +0000)]
Protect arg in macro M_ASSERTPKTHDR.

16 years agoFix build.
yongari [Tue, 15 Jan 2008 03:47:24 +0000 (03:47 +0000)]
Fix build.

16 years ago- move WR_LEN in to cxgb_adapter.h add PIO_LEN to make intent clearer
kmacy [Tue, 15 Jan 2008 03:27:42 +0000 (03:27 +0000)]
- move WR_LEN in to cxgb_adapter.h add PIO_LEN to make intent clearer
- move cxgb_tx_common in to cxgb_multiq.c and rename to cxgb_tx
- move cxgb_tx_common dependencies
- further simplify cxgb_dequeue_packet for the non-multiqueue case
- only launch one service thread per port in the non-multiq case
- remove dead cleaning code from cxgb_sge.c
- simplify PIO case substantially in by returning directly from mbuf collapse
  and just using m_copydata
- remove gratuitous m_gethdr in the rx path
- clarify freeing of mbufs in collapse

16 years agoremove superfluous locking from dequeue
kmacy [Tue, 15 Jan 2008 03:21:02 +0000 (03:21 +0000)]
remove superfluous locking from dequeue

16 years agoOverhaul re(4).
yongari [Tue, 15 Jan 2008 01:10:31 +0000 (01:10 +0000)]
Overhaul re(4).
o Increased number of Rx/Tx descriptors to 256 for 8169 GigEs
  because it's hard to push the hardware to the limit with default
  64 descriptors.
  TSO requires large number of Tx descriptors to pass a full sized
  TCP segment(65535 bytes IP packet) to hardware. Previously it
  consumed 32 Tx descriptors, assuming MCLBYTES DMA segment size,
  to send the TCP segment which means re(4) couldn't queue more
  than two full sized IP packets.
  For 8139C+ it still uses 64 Rx/Tx descriptors due to its hardware
  limitations. With this changes there are (very) small waste of
  memory for 8139C+ users but I don't think it would affect 8139C+
  users for most cases.
o Various bus_dma(9) fixes.
   - The hardware supports DAC so allow 64bit DMA operations.
   - Removed BUS_DMA_ALLOC_NOW flag.
   - Increased DMA segment size to 4096 from MCLBYTES because TSO
     consumes too many descriptors with MCLBYTES DMA segment size.
   - Tx/Rx side bus_dmamap_load_mbuf_sg(9) support. With these
     changes the code is more readable than previous one and got a
     (slightly) better performance as it doesn't need to pass/
     decode arguments to/from callback function.
   - Removed unnecessary callback function re_dmamap_desc() and
     nuked rl_dmaload_arg structure which was used in the callback.
   - Additional protection for DMA map load failure. In case of
     failure reuse current map instead of returning a bogus DMA
     map.
  -  Deferred DMA map unloading/sync operation for maximum
     performance until we really need to load new DMA map. If we
     happen to reuse current map(e.g. input error) there is no need
     to sync/unload/load again.
  -  The number of allowable Tx DMA segments for a mbuf chains are
     now 32 instead of magic nseg value. If the number of available
     Tx descriptors are short enough to send highly fragmented mbuf
     chains an optimized re_defrag() is called to collapse mbuf
     chains which is supposed to be much faster than m_defrag(9).
     re_defrag() was borrowed from ath(4).
   - Separated Rx/Tx DMA tag from a common DMA tag such that Rx DMA
     tag correctly uses DMA maps that were created with DMA alignment
     restriction(8bytes alignments). Tx DMA tag does not have such
     alignment limitation.
   - Added additional sanity checks for DMA ring map load failure.
   - Added additional spare Rx DMA map for graceful handling of Rx
     DMA map load failure.
   - Fixed misused bus_dmamap_sync(9) and added missing
     bus_dmamap_sync(9) in re_encap()/re_txeof()/re_rxeof().
o Enabled TSO again as re(4) have reasonable number of Tx
  descriptors.
o Don't touch DMA address of a Tx descriptor in re_txeof(). It's
  not needed.
o Fix incorrect update of if_ierrors counter. For Rx buffer
  shortage it should update if_qdrops as the buffer is reused.
o Added checks for unsupported H/W revisions and return ENXIO for
  these hardwares. This is required to remove resource allocation
  code in re_probe as other drivers do in device probe routine.
o Modified descriptor index manipulation macros as it's now possible
  to have different number of descriptors for Rx/Tx.
o In re_start, to save a lock operation, use IFQ_DRV_IS_EMPTY before
  trying to invoke IFQ_DRV_DEQUEUE. Also don't blindly call re_encap
  since we already know the number of available Tx descriptors in
  advance.
o Removed RL_TX_DESC_THLD which was used to reserve RL_TX_DESC_THLD
  descriptors in Tx path. There is no such a limitation mentioned in
  8139C+/8169/8110/8168/8101/8111 datasheet and it seems to work ok
  without reserving RL_TX_DESC_THLD descriptors.
o Fix a comment for RL_GTXSTART. The register is 8bits register.
o Added comments for 8169/8139C+ hardware restrictions on descriptors.
o Removed forward declaration for "struct rl_softc", it's not needed.
o Added a new structure rl_txdesc for Tx descriptor managements and
  a structure rl_rxdesc for Rx descriptor managements.
o Removed unused member variable rl_intlock in driver softc. There are
  still several unused member variables which are supposed to be used
  to access hardware statistics counters. But it seems that accessing
  hardware counters were not implemented yet.

16 years agoUpdate the manpage for openpty(3) to account for the recent fixes.
jhb [Mon, 14 Jan 2008 23:49:56 +0000 (23:49 +0000)]
Update the manpage for openpty(3) to account for the recent fixes.
Specifically, remove the BUGS section and note that openpty(3) now always
does the various security-related steps.  Also, update the error return
value section.  The PR below is for the original bug rather than the doc
updates.

MFC after: 1 week
PR: bin/9770

16 years agoFix issues which allow snooping on ptys. [08:01]
cperciva [Mon, 14 Jan 2008 22:56:05 +0000 (22:56 +0000)]
Fix issues which allow snooping on ptys. [08:01]

Fix an off-by-one error in inet_network(3). [08:02]

Security: FreeBSD-SA-08:01.pty
Security: FreeBSD-SA-08:02.libc

16 years agoUpdate the KVA_PAGES comments for the effect that PAE has on it. It
peter [Mon, 14 Jan 2008 22:53:01 +0000 (22:53 +0000)]
Update the KVA_PAGES comments for the effect that PAE has on it.  It
becomes a unit size of 2MB instead of 4MB and must be a multiple of 8 to
get a valid KERNBASE.

16 years agoAdd a CTASSERT that KERNBASE is valid. This is usually messed up by an
peter [Mon, 14 Jan 2008 22:51:43 +0000 (22:51 +0000)]
Add a CTASSERT that KERNBASE is valid.  This is usually messed up by an
invalid KVA_PAGES, so add a pointer to there.

16 years agoMake pmap_is_prefaultable() more TLB friendly. Specifically, make it use
alc [Mon, 14 Jan 2008 21:25:06 +0000 (21:25 +0000)]
Make pmap_is_prefaultable() more TLB friendly.  Specifically, make it use
the kernel's direct map instead of the pmap's recursive mapping to access
the lowest level in the page table.  The direct map is preferable for two
reasons: (1) The TLB is more likely to hold the required direct mapping
because pmap_enter() has already used the direct map to access a nearby
PTE and (2) loading a direct mapping into the TLB involves walking only 2
or 3 levels of the page table instead of 4.

16 years agoChanging 'r' to a size_t in the previous commit turned quicksort
das [Mon, 14 Jan 2008 09:21:34 +0000 (09:21 +0000)]
Changing 'r' to a size_t in the previous commit turned quicksort
into slowsort for some sequences because different parts of the
code used 'r' to store two different things, one of which was
signed. Clean things up by splitting 'r' into two variables, and
use a more meaningful name.

16 years ago- Assert that immpkt is not set
kmacy [Mon, 14 Jan 2008 07:55:56 +0000 (07:55 +0000)]
- Assert that immpkt is not set
- convert %lx to 32-bit safe %jx

16 years agoImplement WOL capability.
yongari [Mon, 14 Jan 2008 07:16:48 +0000 (07:16 +0000)]
Implement WOL capability.
 - Turn on WOL bits in suspend/shutdown method.
 - WOL is disabled in resume routine as WOL can interfere normal
   Rx operation.
 - Move stge_reset() to stge_init_locked() as resetting hardware
   clears configured Rx information which in turn results in
   non-working Rx module after suspend/shutdown operation.

16 years agoIncrement major version to mark the ABI change between RELENG_7 and -HEAD.
jkoshy [Mon, 14 Jan 2008 06:33:41 +0000 (06:33 +0000)]
Increment major version to mark the ABI change between RELENG_7 and -HEAD.

16 years ago- Add more extensive sanity checks
kmacy [Mon, 14 Jan 2008 06:00:41 +0000 (06:00 +0000)]
- Add more extensive sanity checks
- remove initial dequeue from cxgb_start as it was causing an mbuf to be referenced twice

16 years agoMake back pressure visible more quickly, particularly now that we maintain a queue...
kmacy [Mon, 14 Jan 2008 05:59:06 +0000 (05:59 +0000)]
Make back pressure visible more quickly, particularly now that we maintain a queue internally

16 years agoAdd extensive sanity checking to buf_ring
kmacy [Mon, 14 Jan 2008 05:56:03 +0000 (05:56 +0000)]
Add extensive sanity checking to buf_ring

16 years agoTests for lrintl() and llrintl(). I didn't add anything specially
das [Mon, 14 Jan 2008 02:18:00 +0000 (02:18 +0000)]
Tests for lrintl() and llrintl(). I didn't add anything specially
tailored for the long double format; instead, I just modified the existing
tests to test lrintl() and llrintl() as well.

16 years agoImplement rintl(), nearbyintl(), lrintl(), and llrintl().
das [Mon, 14 Jan 2008 02:12:07 +0000 (02:12 +0000)]
Implement rintl(), nearbyintl(), lrintl(), and llrintl().
Thanks to bde@ for feedback and testing of rintl().

16 years agoAdd cxgb_multiq.c to the cxgb build for static linking
kmacy [Mon, 14 Jan 2008 00:59:33 +0000 (00:59 +0000)]
Add cxgb_multiq.c to the cxgb build for static linking

16 years agoSince the tar bidder can never get called more than once, it
kientzle [Sun, 13 Jan 2008 23:50:30 +0000 (23:50 +0000)]
Since the tar bidder can never get called more than once, it
doesn't need to compensate for this situation.

While here, fix a minor longstanding bug that empty tar archives
(which begin with at least 512 zero bytes) never properly reported
their format.  In particular, this fixes the output of:
   bsdtar tvvf /dev/zero

And, of course, a new test to verify that libarchive correctly
recognizes the format of such files.

16 years ago* Remove KTR_CPUMASK, it is not correct to set this
kris [Sun, 13 Jan 2008 22:46:24 +0000 (22:46 +0000)]
* Remove KTR_CPUMASK, it is not correct to set this

* Explain why 32768 entries is usually not enough

* Increase the scaling ratio to 10 to deal with 32-bit overflows that
  can occur in calculating the canvas offsets

16 years agoConvert over to using the multiqueue infrastructure although all calls going
kmacy [Sun, 13 Jan 2008 22:38:17 +0000 (22:38 +0000)]
Convert over to using the multiqueue infrastructure although all calls going
through cxgb_start still end up using queue 0

16 years agoAdd buf_ring_full utility function, make sure dequeue/enqueue see the latest
kmacy [Sun, 13 Jan 2008 22:37:09 +0000 (22:37 +0000)]
Add buf_ring_full utility function, make sure dequeue/enqueue see the latest
indexes

16 years agoremove unused code
kmacy [Sun, 13 Jan 2008 22:35:12 +0000 (22:35 +0000)]
remove unused code

16 years agostyle nit
kmacy [Sun, 13 Jan 2008 22:33:49 +0000 (22:33 +0000)]
style nit

16 years agoadd cxgb_multiq.c to the build
kmacy [Sun, 13 Jan 2008 22:31:59 +0000 (22:31 +0000)]
add cxgb_multiq.c to the build

16 years agoUpdate for the 'file' 4.23 import.
obrien [Sun, 13 Jan 2008 20:37:19 +0000 (20:37 +0000)]
Update for the 'file' 4.23 import.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r175296,
obrien [Sun, 13 Jan 2008 20:35:16 +0000 (20:35 +0000)]
This commit was generated by cvs2svn to compensate for changes in r175296,
which included commits to RCS files with non-trunk default branches.

16 years agoImport file version 4.23 onto the vendor branch
obrien [Sun, 13 Jan 2008 20:35:16 +0000 (20:35 +0000)]
Import file version 4.23 onto the vendor branch

16 years agoVersion bumping in order to reflect VOP_LOCK1(), VOP_UNLOCK() KPI
attilio [Sun, 13 Jan 2008 14:48:51 +0000 (14:48 +0000)]
Version bumping in order to reflect VOP_LOCK1(), VOP_UNLOCK() KPI
changing.

16 years agoVOP_LOCK1() (and so VOP_LOCK()) and VOP_UNLOCK() are only used in
attilio [Sun, 13 Jan 2008 14:44:15 +0000 (14:44 +0000)]
VOP_LOCK1() (and so VOP_LOCK()) and VOP_UNLOCK() are only used in
conjuction with 'thread' argument passing which is always curthread.
Remove the unuseful extra-argument and pass explicitly curthread to lower
layer functions, when necessary.

KPI results broken by this change, which should affect several ports, so
version bumping and manpage update will be further committed.

Tested by: kris, pho, Diego Sardina <siarodx at gmail dot com>

16 years agoAdd warning about this script dealing with untrusted data.
simon [Sun, 13 Jan 2008 14:27:53 +0000 (14:27 +0000)]
Add warning about this script dealing with untrusted data.

MFC after: 1 week

16 years agoUnbreak detection of cryptodev support for FreeBSD which was broken
simon [Sun, 13 Jan 2008 11:44:47 +0000 (11:44 +0000)]
Unbreak detection of cryptodev support for FreeBSD which was broken
with OpenSSL 0.9.8 import.

Note that this does not enable cryptodev by default, as it was the
case with OpenSSL 0.9.7 in FreeBSD base, but this change makes it
possible to enable cryptodev at all.

This has been submitted upstream as:
http://rt.openssl.org/Ticket/Display.html?id=1624

Submitted by: nork

16 years agoUse our standard verbose spelling of rules variables.
obrien [Sun, 13 Jan 2008 09:45:53 +0000 (09:45 +0000)]
Use our standard verbose spelling of rules variables.
(as a nice side affect, this will make gnu/usr.bin/cvs/contrib/Makefile
have a later date than contrib/cvs/contrib/Makefile.in - which will help
the build break after the 1.11.22 CVS import...)

16 years agoDisable contrib - there is weirdness going on with it.
obrien [Sun, 13 Jan 2008 08:58:25 +0000 (08:58 +0000)]
Disable contrib - there is weirdness going on with it.

16 years agoAttach the tr(1) regression tests to the build.
keramida [Sun, 13 Jan 2008 08:33:58 +0000 (08:33 +0000)]
Attach the tr(1) regression tests to the build.

Approved by: das, dds

16 years agoAdd a new set of regression tests, for the tr(1) utility.
keramida [Sun, 13 Jan 2008 08:33:20 +0000 (08:33 +0000)]
Add a new set of regression tests, for the tr(1) utility.

Approved by:    das, dds

16 years agoPrevent the `fix?' question from running together
yar [Sun, 13 Jan 2008 07:56:36 +0000 (07:56 +0000)]
Prevent the `fix?' question from running together
with the problem description on the terminal: use
conventional punctuation.

16 years agoReenable cvs with the build.
obrien [Sun, 13 Jan 2008 06:56:31 +0000 (06:56 +0000)]
Reenable cvs with the build.

16 years agoUpdate for the 1.11.22 import.
obrien [Sun, 13 Jan 2008 06:35:22 +0000 (06:35 +0000)]
Update for the 1.11.22 import.

Reviewed/begged-for by: peter

16 years agoThis commit was generated by cvs2svn to compensate for changes in r175283,
obrien [Sun, 13 Jan 2008 06:24:49 +0000 (06:24 +0000)]
This commit was generated by cvs2svn to compensate for changes in r175283,
which included commits to RCS files with non-trunk default branches.

16 years agoWe use the stock versions of these files.
obrien [Sun, 13 Jan 2008 06:20:11 +0000 (06:20 +0000)]
We use the stock versions of these files.

Reviewed/begged-for by: peter

16 years agoMerge what 1.11.17 -> 1.11.22 ../doc/cvs.1 changes I could.
obrien [Sun, 13 Jan 2008 06:14:29 +0000 (06:14 +0000)]
Merge what 1.11.17 -> 1.11.22 ../doc/cvs.1 changes I could.
We never merged in the 1.11.15 -> 1.11.17 changes - due to the moving
of cvs.1 from man/ to doc/ and being auto generated.

16 years agoMerge rev 1.9 (update "-T" Template support) and rev 1.2 (-D'date'
obrien [Sun, 13 Jan 2008 06:13:25 +0000 (06:13 +0000)]
Merge rev 1.9 (update "-T" Template support) and rev 1.2 (-D'date'
option with -r'branch' on update) into version 1.11.22.

16 years agoMerge rev 1.9 (new long flag to ignore the CVSROOT/passwd file)
obrien [Sun, 13 Jan 2008 06:12:54 +0000 (06:12 +0000)]
Merge rev 1.9 (new long flag to ignore the CVSROOT/passwd file)
rev 1.2 (local tag/$Id$ keyword support)  into version 1.11.22.

16 years agoMerge rev 1.28 (CAN-2005-0753 / FreeBSD-SA-05:05.cvs fixes),
obrien [Sun, 13 Jan 2008 06:12:27 +0000 (06:12 +0000)]
Merge rev 1.28 (CAN-2005-0753 / FreeBSD-SA-05:05.cvs fixes),
rev 1.27 ("iso8601" option keyword) revs 1.12/1.10/1.5/1.4 ($CVSHeader$
support) rev 1.2 ($CVS_LOCAL_BRANCH_NUM support for local commit
feature of cvsup)  into version 1.11.22.

Note rev 1.21 ("-D date" checkout bug relating to 1.1.1.1 vs 1.1
revisions), rev 1.13 (allow -D'date' with -r'branch' on a checkout),
rev 1.6 (use xstrdup rather than strdup)  are fixed in the vendor sources

16 years agoMerge rev 1.11 ("iso8601" option keyword) into version 1.11.22.
obrien [Sun, 13 Jan 2008 06:11:36 +0000 (06:11 +0000)]
Merge rev 1.11 ("iso8601" option keyword)  into version 1.11.22.
(all our other local changes are OBE)

16 years agoMerge rev 1.2 (extensions to the $CVSROOT/config syntax) and
obrien [Sun, 13 Jan 2008 06:10:58 +0000 (06:10 +0000)]
Merge rev 1.2 (extensions to the $CVSROOT/config syntax) and
rev 1.4 (1.12 CVSROOT/config keyword expansion forward compatability)
into version 1.11.22.

16 years agoMerge rev 1.25 ("iso8601" option keyword), rev 1.23 (blame),
obrien [Sun, 13 Jan 2008 06:10:18 +0000 (06:10 +0000)]
Merge rev 1.25 ("iso8601" option keyword), rev 1.23 (blame),
rev 1.17 (environtmental var "CVS_OPTIONS"), rev 1.14 ('-g' option to
support shared-group access), rev 1.7 ('-R' read-only repository mode),
rev 1.6 (support for checking out from a read-only repository),
revs 1.4 & 1.5 ("tagexpand=")  into version 1.11.22.

16 years agoMerge rev 1.9 (put the blank line back in the beginning of constructed
obrien [Sun, 13 Jan 2008 06:09:41 +0000 (06:09 +0000)]
Merge rev 1.9 (put the blank line back in the beginning of constructed
log messages being passed to $EDITOR)  into version 1.11.22.

16 years agoMerge rev 1.3 ('-n' option) & rev. 1.2 ("iso8601" option keyword)
obrien [Sun, 13 Jan 2008 06:08:49 +0000 (06:08 +0000)]
Merge rev 1.3 ('-n' option) & rev. 1.2 ("iso8601" option keyword)
into version 1.11.22.

16 years agoMerge rev 1.3 (catch write-lock attempts immediately if running in
obrien [Sun, 13 Jan 2008 06:08:17 +0000 (06:08 +0000)]
Merge rev 1.3 (catch write-lock attempts immediately if running in
read-only mode) & rev 1.2 (check out from read-only repository support)
into version 1.11.22.

16 years agoMerge revs 1.2 (comprehensive CVS/Template support) into version 1.11.22.
obrien [Sun, 13 Jan 2008 06:07:20 +0000 (06:07 +0000)]
Merge revs 1.2 (comprehensive CVS/Template support)  into version 1.11.22.

16 years agoMerge rev 1.2 (do not check val-tags if the repository is read-only)
obrien [Sun, 13 Jan 2008 06:06:41 +0000 (06:06 +0000)]
Merge rev 1.2 (do not check val-tags if the repository is read-only)
into version 1.11.22.

16 years agoToss all of our local changes - they are OBE.
obrien [Sun, 13 Jan 2008 06:06:15 +0000 (06:06 +0000)]
Toss all of our local changes - they are OBE.
However, stay with version 1.9.26's buflen of BUFSIZ as we have in the
past vs. going with the 1.10+ limited length of 128.

16 years agoMerge rev 1.16: implement -j for cvs diff, allowing tag:date based diffs
obrien [Sun, 13 Jan 2008 06:05:24 +0000 (06:05 +0000)]
Merge rev 1.16: implement -j for cvs diff, allowing tag:date based diffs
into version 1.11.22.

16 years agoChange default from rsh to ssh. (moved from client.c).
obrien [Sun, 13 Jan 2008 06:04:43 +0000 (06:04 +0000)]
Change default from rsh to ssh. (moved from client.c).
Merge rev 1.14: comprehensive -T CVS/Template support, rev 1.9: new long
flag that causes cvs to ignore the CVSROOT/passwd file, rev 1.3: support
for checking out from a read-only repository, rev. 1.2: support for local
$Id$ keyword  into cvs 1.11.22.
Note that rev 1.4 (make verifymsg extra useful) is OBE.

16 years agoMerge rev 1.7: always upload new files, even if the timestamps match,
obrien [Sun, 13 Jan 2008 06:02:28 +0000 (06:02 +0000)]
Merge rev 1.7: always upload new files, even if the timestamps match,
rev 1.4: flip the default for CVS_RSH to "ssh", rev 1.2: fix a problem
sometimes seen when doing checkouts from a local repo and committing
via remote cvs (a cvs -d override of the mismatched CVS/Root files was
missing)  into cvs 1.11.22.

16 years agoMerge our -T comprehensive CVS/Template support into cvs 1.11.22.
obrien [Sun, 13 Jan 2008 06:00:42 +0000 (06:00 +0000)]
Merge our -T comprehensive CVS/Template support into cvs 1.11.22.

16 years agoUpdate for the 1.11.22 import.
obrien [Sun, 13 Jan 2008 05:50:33 +0000 (05:50 +0000)]
Update for the 1.11.22 import.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r175261,
obrien [Sun, 13 Jan 2008 05:49:32 +0000 (05:49 +0000)]
This commit was generated by cvs2svn to compensate for changes in r175261,
which included commits to RCS files with non-trunk default branches.

16 years agoImport cvs-1.11.22 onto vendor branch.
obrien [Sun, 13 Jan 2008 05:49:32 +0000 (05:49 +0000)]
Import cvs-1.11.22 onto vendor branch.

16 years agoDisable CVS from the build.
obrien [Sun, 13 Jan 2008 05:49:03 +0000 (05:49 +0000)]
Disable CVS from the build.

16 years agoUse size_t to avoid overflow when sorting arrays larger than 2 GB.
das [Sun, 13 Jan 2008 02:11:10 +0000 (02:11 +0000)]
Use size_t to avoid overflow when sorting arrays larger than 2 GB.

PR: 111085
MFC after: 2 weeks

16 years ago- Add support for using swap backed md(4) devices for building the
simon [Sat, 12 Jan 2008 22:58:06 +0000 (22:58 +0000)]
- Add support for using swap backed md(4) devices for building the
  disk image.  In some cases this can be a significant speed-up, if
  most of the image can be kept in RAM while being populated.

  On the 2GB image I'm currently working with, the build time,
  excluding buildworld/buildkernel, goes from ~17 minutes to ~6
  minutes.

  This is not enabled by default, as it might have the opposite effect
  on low-memory systems.

- During the generation of the image file be a bit more verbose in the
  log file so it is possible to see what's being done.

- Add a NANO_DISKIMGDIR variable which makes it possibly to place the
  final images somewhere other than ${MAKEOBJDIRPREFIX}.  The default
  value for NANO_DISKIMGDIR is $MAKEOBJDIRPREFIX.

Go for it: phk

16 years agoThis commit was generated by cvs2svn to compensate for changes in r175256,
njl [Sat, 12 Jan 2008 22:13:12 +0000 (22:13 +0000)]
This commit was generated by cvs2svn to compensate for changes in r175256,
which included commits to RCS files with non-trunk default branches.

16 years agoFix GPE livelock that occurs on HP/Compaq laptops, mostly in the thermal
njl [Sat, 12 Jan 2008 22:13:12 +0000 (22:13 +0000)]
Fix GPE livelock that occurs on HP/Compaq laptops, mostly in the thermal
zone code.  The GPE handler method (i.e. _L00) generates various Notify
events that need to be run to completion before the GPE is re-enabled.
In ACPI-CA, we queue an asynch callback at the same priority as a Notify
so that it will only run after all Notify handlers have completed.  The
callback re-enables the GPE afterwards.  We also changed the priority of
Notifies to be the same as GPEs, given the possibility that another GPE
could arrive before the Notifies have completed and we don't want it to
get queued ahead of the rest.

The ACPI-CA change was submitted by Alexey Starikovskiy (SUSE) and will
appear in a later release.  Special thanks to him for helping track this
bug down.

MFC after: 1 week
Tested by: jhb, Yousif Hassan <yousif / alumni.jmu.edu>

16 years agoFix GPE livelock that occurs on HP/Compaq laptops, mostly in the thermal
njl [Sat, 12 Jan 2008 22:13:12 +0000 (22:13 +0000)]
Fix GPE livelock that occurs on HP/Compaq laptops, mostly in the thermal
zone code.  The GPE handler method (i.e. _L00) generates various Notify
events that need to be run to completion before the GPE is re-enabled.
In ACPI-CA, we queue an asynch callback at the same priority as a Notify
so that it will only run after all Notify handlers have completed.  The
callback re-enables the GPE afterwards.  We also changed the priority of
Notifies to be the same as GPEs, given the possibility that another GPE
could arrive before the Notifies have completed and we don't want it to
get queued ahead of the rest.

The ACPI-CA change was submitted by Alexey Starikovskiy (SUSE) and will
appear in a later release.  Special thanks to him for helping track this
bug down.

MFC after: 1 week
Tested by: jhb, Yousif Hassan <yousif / alumni.jmu.edu>

16 years agoBack when I committed the arm port, I've been asked to move
cognet [Sat, 12 Jan 2008 21:11:43 +0000 (21:11 +0000)]
Back when I committed the arm port, I've been asked to move
memcpy/memset/memcmp and friends from libkern/arm to arm/arm/support.S, and so
I did, but in the process, I didn't add the appropriate copyrights.
This is a major oversight from me, and I apology to the NetBSD people for it.

MFC After: 1 day

16 years agoo inetd(8) requires wait/nowait column in inetd.conf for
maxim [Sat, 12 Jan 2008 21:09:48 +0000 (21:09 +0000)]
o inetd(8) requires wait/nowait column in inetd.conf for
ONC services as well.

PR: bin/119203
Submitted by: Peter Jeremy
MFC atfer: 1 week

16 years agoo .Dd.year++.
maxim [Sat, 12 Jan 2008 21:07:03 +0000 (21:07 +0000)]
o .Dd.year++.

16 years agoo Fix a typo. errx() -> err().
maxim [Sat, 12 Jan 2008 20:57:19 +0000 (20:57 +0000)]
o Fix a typo.  errx() -> err().

Submitted by: das

16 years agoo From the Problem Report: the TCP_DROP_SYNFIN kernel option is now
maxim [Sat, 12 Jan 2008 20:52:30 +0000 (20:52 +0000)]
o From the Problem Report: the TCP_DROP_SYNFIN kernel option is now
included in the kernel by default.  Remove reference to this option
from defaults/rc.conf and rc.conf(5).

PR: conf/119098
Submitted by: Beat Gaetzi
MFC after: 1 week

16 years agoo Plug a memory leak: do not forget to free asprintf(3) allocated
maxim [Sat, 12 Jan 2008 20:37:06 +0000 (20:37 +0000)]
o Plug a memory leak: do not forget to free asprintf(3) allocated
memory.

PR: bin/119608
Submitted by: peter.schuller
MFC after: 1 week

16 years agoMFp4 multiple queue support
kmacy [Sat, 12 Jan 2008 20:34:56 +0000 (20:34 +0000)]
MFp4 multiple queue support

16 years agoo Allow setkey(8) to recognize esp as a protocoal name for spdadd.
maxim [Sat, 12 Jan 2008 20:00:23 +0000 (20:00 +0000)]
o Allow setkey(8) to recognize esp as a protocoal name for spdadd.

PR: bin/107392
Submitted by: Eugene Grosbein
MFC after: 1 month

16 years agoo Do not claim vlan(4) uses mbuf_tags(9).
maxim [Sat, 12 Jan 2008 19:37:18 +0000 (19:37 +0000)]
o Do not claim vlan(4) uses mbuf_tags(9).

PR: docs/11959
Submitted by: Alexander Chernikov
MFC after: 1 week

16 years agoo Correct EasyMP3 EM732X usb 2.0 flash mp3 player revision:
maxim [Sat, 12 Jan 2008 19:24:55 +0000 (19:24 +0000)]
o Correct EasyMP3 EM732X usb 2.0 flash mp3 player revision:
it's 1.00 not 1.0.

PR: usb/96546
Submitted by: Eugene Grosbein
MFC after: 1 month

16 years agoo Add Moxa Technologies CP-104EL PCI Express 4 port Serial card.
maxim [Sat, 12 Jan 2008 19:14:29 +0000 (19:14 +0000)]
o Add Moxa Technologies CP-104EL PCI Express 4 port Serial card.

PR: kern/119515
Submitted by: Gavin Stone-Tolcher
MFC after: 1 month