]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoUpdate the regression test so that there are actually two independent
gnn [Sat, 24 Mar 2007 13:47:16 +0000 (13:47 +0000)]
Update the regression test so that there are actually two independent
networks involved, as opposed to two hosts on one network.

MFC after: 1 week

17 years agoo A quirk for Sagem USB-Serial controller.
maxim [Sat, 24 Mar 2007 09:27:58 +0000 (09:27 +0000)]
o A quirk for Sagem USB-Serial controller.

PR: usb/109613
Submitted by: Mayr Gerald
MFC after: 1 month

17 years agoo Add several CDMA-2000 terminals.
maxim [Sat, 24 Mar 2007 09:25:56 +0000 (09:25 +0000)]
o Add several CDMA-2000 terminals.

PR: usb/109838
Submitted by: R.Mahmatkhanov
MFC after: 1 month

17 years agoNotice when mkdir() fails.
kientzle [Sat, 24 Mar 2007 05:02:16 +0000 (05:02 +0000)]
Notice when mkdir() fails.
Don't change permissions on an existing dir unless _EXTRACT_PERM
is requested.

In particular, bsdtar -x should not edit mode of existing dirs
now; bsdtar -xp will.

17 years agobus_size_t is a bad cross-architectural type with respect to printf, use uint32_t...
kmacy [Sat, 24 Mar 2007 04:28:33 +0000 (04:28 +0000)]
bus_size_t is a bad cross-architectural type with respect to printf, use uint32_t instead

17 years agoIssue a warning if there's a non-zero exit value.
kientzle [Sat, 24 Mar 2007 03:25:49 +0000 (03:25 +0000)]
Issue a warning if there's a non-zero exit value.

17 years agoFix compile error when libbz2 is unavailable.
kientzle [Sat, 24 Mar 2007 03:23:26 +0000 (03:23 +0000)]
Fix compile error when libbz2 is unavailable.

17 years agoo While the script is correct and works well in sh(1) make it
maxim [Sat, 24 Mar 2007 01:39:24 +0000 (01:39 +0000)]
o While the script is correct and works well in sh(1) make it
works in tcsh(1) which does not support <<- redirection.

PR: docs/110097
Submitted by: Sameh Ghane

17 years agoDefault to booting off the SD card. It is more useful, and a full
imp [Fri, 23 Mar 2007 23:47:59 +0000 (23:47 +0000)]
Default to booting off the SD card.  It is more useful, and a full
FreeBSD/arm installworld install is only 170MB.  The smallest SD card
I could find at the store today was 512MB (and it was only $10 after
rebate), with a 2GB card for as low as $25.00...

Now that the IIC stuff has been sorted out, include that as well.
Include hints for the icee 16kb 16-bit i2c device.  It should include
info about the temperature sensor as well, but that driver isn't quite
ready.

Add bpf for dhclient happiness.

MFC After: 1 week

17 years agoNew device: icee. Generic i2c eeprom driver.
imp [Fri, 23 Mar 2007 23:10:35 +0000 (23:10 +0000)]
New device: icee.  Generic i2c eeprom driver.

17 years agoMFp4: Make the iicbus fully hinted. We no longer automatically add
imp [Fri, 23 Mar 2007 23:08:28 +0000 (23:08 +0000)]
MFp4: Make the iicbus fully hinted.  We no longer automatically add
some devices (and not others).  To get instances onto the iicbus, one
now needs hints or an identify routine.  We also do not probe the bus
for devices because many iic devices cannot be safely probed (and when
they can, the probe order turns out to be somewhat difficult to get
right).

# I'm not 100% sure that the iicsmb removal is right.  Please contact me if
# this causes difficulty.

17 years agoMFp4: Make iicbus_trasnfer_gen suitable for bridge drivers. Use it in the
imp [Fri, 23 Mar 2007 23:03:54 +0000 (23:03 +0000)]
MFp4: Make iicbus_trasnfer_gen suitable for bridge drivers.  Use it in the
bitbang bridge.

17 years agoMFp4: Create an ivar for each iic device on the iicbus. This ivar
imp [Fri, 23 Mar 2007 23:02:33 +0000 (23:02 +0000)]
MFp4: Create an ivar for each iic device on the iicbus.  This ivar
holds the device's address.

17 years agoFix posix_memalign() for large objects. Now that runs are extents rather
jasone [Fri, 23 Mar 2007 22:58:15 +0000 (22:58 +0000)]
Fix posix_memalign() for large objects.  Now that runs are extents rather
than binary buddies, the alignment guarantees are weaker, which requires
a more complex aligned allocation algorithm, similar to that used for
alignment greater than the chunk size.

Reported by: matteo

17 years agoMFp4: A bunch of patches from myself and Tisco to improve the
imp [Fri, 23 Mar 2007 22:57:24 +0000 (22:57 +0000)]
MFp4: A bunch of patches from myself and Tisco to improve the
robustness of IIC transactions when parts aren't present.  This also
removes a bunch of debug.  This also moves this driver to 7-1
addressing rather than 6-0 addressing, which is more inline with all
the other iic drivers in the tree.  I've tested this for about a
million years on the systems at work.

17 years agoSwitch to ANSI function declarations.
rodrigc [Fri, 23 Mar 2007 22:48:44 +0000 (22:48 +0000)]
Switch to ANSI function declarations.

17 years agoUpdate to FICL 3.03 (the last release before FICL4 rewrite).
jkim [Fri, 23 Mar 2007 22:26:01 +0000 (22:26 +0000)]
Update to FICL 3.03 (the last release before FICL4 rewrite).

The relevant changes for FreeBSD (excerpt from the release note):

  * Newly implemented CORE EXT words: CASE, OF, ENDOF, and ENDCASE. Also
    added FALLTHROUGH, which works like ENDOF but jumps to the instruction
    just after the next OF.
  * Bugfix: John-Hopkins locals syntax now accepts | and -- in the comment
    (between the first -- and the }.)
  * Bugfix: Changed vmGetWord0() to make Purify happier. The resulting
    code is no slower, no larger, and slightly more robust.

17 years agoremove WARNS=2: we're not ready for it yet.
matteo [Fri, 23 Mar 2007 22:09:02 +0000 (22:09 +0000)]
remove WARNS=2: we're not ready for it yet.

17 years ago- Increase coalesce_nsecs
kmacy [Fri, 23 Mar 2007 22:03:55 +0000 (22:03 +0000)]
- Increase coalesce_nsecs
- commit fixes for the following coverity warnings: 1765, 1760, 1758, 1756

17 years agocommit missed change
kmacy [Fri, 23 Mar 2007 22:02:11 +0000 (22:02 +0000)]
commit missed change

17 years agoIf KERNEL_EXTRA is defined, make kernel-all target depend on it.
imp [Fri, 23 Mar 2007 21:55:59 +0000 (21:55 +0000)]
If KERNEL_EXTRA is defined, make kernel-all target depend on it.
If KERNEL_EXTRA_INSTALL is defined, install it into ${DESTDIR}${KODIR}.

17 years agoExit status should be 1 on error.
pjd [Fri, 23 Mar 2007 21:05:36 +0000 (21:05 +0000)]
Exit status should be 1 on error.

PR: bin/110705
Reported by: Tom Judge
MFC after: 2 weeks

17 years agoCheck PCI-e link width to avoid foot shooting with 4x links
kmacy [Fri, 23 Mar 2007 20:18:07 +0000 (20:18 +0000)]
Check PCI-e link width to avoid foot shooting with 4x links

MFC after: 3 days

17 years agoSplit tcp_input() into its two functional parts:
andre [Fri, 23 Mar 2007 20:16:50 +0000 (20:16 +0000)]
Split tcp_input() into its two functional parts:

 o tcp_input() now handles TCP segment sanity checks and preparations
   including the INPCB lookup and syncache.
 o tcp_do_segment() handles all data and ACK processing and is IPv4/v6
   agnostic.

Change all KASSERT() messages to ("%s: ", __func__).

The changes in this commit are primarily of mechanical nature and no
functional changes besides the function split are made.

Discussed with: rwatson

17 years agoMake sysinstall's code WARNS=2 clean .
matteo [Fri, 23 Mar 2007 19:57:27 +0000 (19:57 +0000)]
Make sysinstall's code WARNS=2 clean .

MFC after: 1 week

17 years agoTidy up some code to conform better to surroundings and style(9), 0 = NULL
andre [Fri, 23 Mar 2007 19:11:22 +0000 (19:11 +0000)]
Tidy up some code to conform better to surroundings and style(9), 0 = NULL
and space/tab.

17 years agoBring SACK option handling in tcp_dooptions() in line with all other
andre [Fri, 23 Mar 2007 18:33:21 +0000 (18:33 +0000)]
Bring SACK option handling in tcp_dooptions() in line with all other
options and ajust users accordingly.

17 years ago- Fix exca_(io|mem)_map() to return proper errno values.
jhb [Fri, 23 Mar 2007 17:15:07 +0000 (17:15 +0000)]
- Fix exca_(io|mem)_map() to return proper errno values.
- Change exca_activate_resource() to call BUS_ACTIVATE_RESOURCE() before
  calling exca_(io|mem)_map() since the latter use rman_get_bus(tag|handle)
  and the recent changes to nexus(4) mean that you need to activate a
  resource before reading the bus tag and handle.  This was true before,
  but now the nexus(4) drivers on x86 and ia64 are more forceful about it.

Reviewed by: imp

17 years agoPurge two redundant case labels.
bms [Fri, 23 Mar 2007 09:43:36 +0000 (09:43 +0000)]
Purge two redundant case labels.

17 years agoDon't destroy a mutex just before we use it, instead,
delphij [Fri, 23 Mar 2007 08:52:36 +0000 (08:52 +0000)]
Don't destroy a mutex just before we use it, instead,
destroy it after we have used it.

17 years agovm_page_busy() no longer requires the page queues lock to be held. Reduce
alc [Fri, 23 Mar 2007 06:11:25 +0000 (06:11 +0000)]
vm_page_busy() no longer requires the page queues lock to be held.  Reduce
the scope of the page queues lock in vm_fault() accordingly.

17 years agoUse extents rather than binary buddies to track free pages within
jasone [Fri, 23 Mar 2007 05:05:48 +0000 (05:05 +0000)]
Use extents rather than binary buddies to track free pages within
chunks.  This allows runs to be any multiple of the page size.  The
primary advantage is that large objects are no longer constrained to be
2^n pages, which can dramatically decrease internal fragmentation for
large objects.  This also allows the sizes for runs that back small
objects to be more finely tuned.

Free runs are searched for linearly using the chunk page map (with the
help of some heuristic optimizations).  This changes the allocation
policy from "first best fit" to "first fit".  A prototype red-black tree
implementation for tracking free runs that implemented "first best fit"
did not cause a measurable speed or memory usage difference for
realistic chunk sizes (though of course it is possible to construct
benchmarks that favor one allocation policy over another).

Refine the handling of fullness constraints for small runs to be more
tunable.

Restructure the per chunk page map to contain only two fields per entry,
rather than four.  Also, increase each entry from 4 to 8 bytes, since it
allows for 32-bit integers, without increasing the number of chunk
header pages.

Relax the maximum chunk size constraint.  This is of no practical
interest; it is merely fallout from the chunk page map restructuring.

Revamp statistics gathering and reporting to be faster, clearer and more
informative.  Statistics gathering is fast enough now to have little
to no impact on application speed, but it still requires approximately
two extra pages of memory per arena (per process).  This memory overhead
may be acceptable for most systems, but we still need to leave
statistics gathering disabled by default in RELENG branches.

Rename NO_MALLOC_EXTRAS to MALLOC_PRODUCTION in order to make its intent
clearer (i.e. it should be defined in RELENG branches).

17 years agoStop setting ki_ocomm (thread name) to the proc name by default, as nothing
emaste [Fri, 23 Mar 2007 04:01:08 +0000 (04:01 +0000)]
Stop setting ki_ocomm (thread name) to the proc name by default, as nothing
in the base system relies on this any longer.

17 years agoReflect ACPI-CA 20070320 import.
delphij [Fri, 23 Mar 2007 01:47:04 +0000 (01:47 +0000)]
Reflect ACPI-CA 20070320 import.

17 years agoAdd '-s' option and update the manual page. With this option, it prints
jkim [Fri, 23 Mar 2007 00:00:22 +0000 (00:00 +0000)]
Add '-s' option and update the manual page.  With this option, it prints
little more style(9) friendly output.  For example:

%file2c -n 8 -s -x 'const char data[] = {' '};' < /etc/motd
const char data[] = {
0x46, 0x72, 0x65, 0x65, 0x42, 0x53, 0x44, 0x20,
0x37, 0x2e, 0x30, 0x2d, 0x43, 0x55, 0x52, 0x52,
0x45, 0x4e, 0x54, 0x20, 0x28, 0x42, 0x45, 0x41,
0x53, 0x54, 0x49, 0x45, 0x29, 0x20, 0x23, 0x30,
0x3a, 0x20, 0x57, 0x65, 0x64, 0x20, 0x4d, 0x61,
0x72, 0x20, 0x32, 0x31, 0x20, 0x31, 0x39, 0x3a,
0x30, 0x34, 0x3a, 0x33, 0x36, 0x20, 0x45, 0x44,
0x54, 0x20, 0x32, 0x30, 0x30, 0x37, 0x0a
};

17 years agoPass the RID from the bus frontends to the core probe function.
marcel [Thu, 22 Mar 2007 23:45:25 +0000 (23:45 +0000)]
Pass the RID from the bus frontends to the core probe function.
Currently all RIDs are 0, but for PCI devices this typically
isn't the case. This change is made with future PCI support in
mind.

17 years agoMFP4: a) Some constification from NetBSD (gcc 4.1.2)
mjacob [Thu, 22 Mar 2007 23:38:32 +0000 (23:38 +0000)]
MFP4: a) Some constification from NetBSD (gcc 4.1.2)
b) Split default param fetching/setting into scsi and fibre functions
and retry the fibre fetch more than once.

MFC after: 1 week

17 years agoadd include now required for crypto flags
sam [Thu, 22 Mar 2007 22:25:25 +0000 (22:25 +0000)]
add include now required for crypto flags

17 years agoMerge from vendor branch to fix tinderbox breakage.
jkim [Thu, 22 Mar 2007 21:23:29 +0000 (21:23 +0000)]
Merge from vendor branch to fix tinderbox breakage.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r167817,
jkim [Thu, 22 Mar 2007 21:14:43 +0000 (21:14 +0000)]
This commit was generated by cvs2svn to compensate for changes in r167817,
which included commits to RCS files with non-trunk default branches.

17 years agoFix tinderbox build breakage.
jkim [Thu, 22 Mar 2007 21:14:43 +0000 (21:14 +0000)]
Fix tinderbox build breakage.

Note that it is committed on the vendor branch because it will be
submitted to the vendor.

17 years agoFix a typo, and update a comment.
bms [Thu, 22 Mar 2007 19:08:39 +0000 (19:08 +0000)]
Fix a typo, and update a comment.

Submitted by: yar

17 years agoCatch up with ACPI-CA 20070320 import.
jkim [Thu, 22 Mar 2007 18:16:43 +0000 (18:16 +0000)]
Catch up with ACPI-CA 20070320 import.

17 years agoUpdate to reflect import of ACPI-CA 20070320.
jkim [Thu, 22 Mar 2007 18:08:11 +0000 (18:08 +0000)]
Update to reflect import of ACPI-CA 20070320.

17 years agoResolve conflicts from import of Intel ACPI-CA 20070320.
jkim [Thu, 22 Mar 2007 18:02:34 +0000 (18:02 +0000)]
Resolve conflicts from import of Intel ACPI-CA 20070320.

17 years agoResolve conflicts of unchanged files that are off the vendor branch.
jkim [Thu, 22 Mar 2007 17:58:27 +0000 (17:58 +0000)]
Resolve conflicts of unchanged files that are off the vendor branch.

17 years agoUse proc name (ki_comm) instead of thread name (ki_ocomm) as these may now
emaste [Thu, 22 Mar 2007 17:47:58 +0000 (17:47 +0000)]
Use proc name (ki_comm) instead of thread name (ki_ocomm) as these may now
be different.

17 years agoRemove files that removed on the vendor branch.
jkim [Thu, 22 Mar 2007 17:47:41 +0000 (17:47 +0000)]
Remove files that removed on the vendor branch.

17 years agoRemove files that are no longer needed or removed by vendor.
jkim [Thu, 22 Mar 2007 17:43:38 +0000 (17:43 +0000)]
Remove files that are no longer needed or removed by vendor.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r167807,
jkim [Thu, 22 Mar 2007 17:43:38 +0000 (17:43 +0000)]
This commit was generated by cvs2svn to compensate for changes in r167807,
which included commits to RCS files with non-trunk default branches.

17 years agoAdd fixes for FreeBSD build that were submitted upstream.
jkim [Thu, 22 Mar 2007 17:36:29 +0000 (17:36 +0000)]
Add fixes for FreeBSD build that were submitted upstream.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r167805,
jkim [Thu, 22 Mar 2007 17:36:29 +0000 (17:36 +0000)]
This commit was generated by cvs2svn to compensate for changes in r167805,
which included commits to RCS files with non-trunk default branches.

17 years agoVendor import of Intel ACPI-CA 20070320
jkim [Thu, 22 Mar 2007 17:24:05 +0000 (17:24 +0000)]
Vendor import of Intel ACPI-CA 20070320

17 years agoThis commit was generated by cvs2svn to compensate for changes in r167802,
jkim [Thu, 22 Mar 2007 17:24:05 +0000 (17:24 +0000)]
This commit was generated by cvs2svn to compensate for changes in r167802,
which included commits to RCS files with non-trunk default branches.

17 years ago- Simplify the #ifdef's for adaptive mutexes and rwlocks by conditionally
jhb [Thu, 22 Mar 2007 16:09:23 +0000 (16:09 +0000)]
- Simplify the #ifdef's for adaptive mutexes and rwlocks by conditionally
  defining a macro earlier in the file.
- Add NO_ADAPTIVE_RWLOCKS option to disable adaptive spinning for rwlocks.

17 years agoAdd missing \n.
pjd [Thu, 22 Mar 2007 15:42:13 +0000 (15:42 +0000)]
Add missing \n.

17 years agoMove the dom_dispose and pru_detach calls in sofree() earlier. Only after
glebius [Thu, 22 Mar 2007 13:21:24 +0000 (13:21 +0000)]
Move the dom_dispose and pru_detach calls in sofree() earlier. Only after
calling pru_detach we can be absolutely sure, that we don't have any
references to the socket in the stack.

This closes race between lockless sbdestroy() and data arriving on socket.

Reviewed by: rwatson

17 years agoWhen working on an RTM_CHANGE do the route editing in the following
glebius [Thu, 22 Mar 2007 10:51:03 +0000 (10:51 +0000)]
When working on an RTM_CHANGE do the route editing in the following
sequence. First, if rt_ifa is going to be changed, then call
ifa_rtrequest(RTM_DELETE). Second, if gateway is going to be changed,
then call rt_setgate(). Third, change rt_ifa.

With this change we are able to change a link level route to a
gateway one, that wasn't possible before:

# ifconfig em0 192.168.22.1/24
        # arp -s 192.168.22.99 00:11:22:33:44:55
        # route change 192.168.22.99 192.168.22.199
        # ping 192.168.22.99
db>

Reported by: avatar

17 years agoRemove global list of all llinfo_arp entries and use a callout per
glebius [Thu, 22 Mar 2007 10:37:53 +0000 (10:37 +0000)]
Remove global list of all llinfo_arp entries and use a callout per
instance expiry of the ARP entries. Since we no longer abuse the IPv4
radix head lock, we can now enter arp_rtrequest() with a lock held on
an arbitrary rt_entry.

Reviewed by: bms

17 years agoChange the order of lock reacquisition in vm_object_split() in order to
alc [Thu, 22 Mar 2007 07:02:43 +0000 (07:02 +0000)]
Change the order of lock reacquisition in vm_object_split() in order to
simplify the code slightly.  Add a comment concerning lock ordering.

17 years agoRename the cv_*wait*() functions to _cv_*wait*() and change their second
jhb [Wed, 21 Mar 2007 22:22:13 +0000 (22:22 +0000)]
Rename the cv_*wait*() functions to _cv_*wait*() and change their second
argument from a mutex to a lock_object.  Add cv_*wait*() wrapper macros
that accept either a mutex, rwlock, or sx lock as the second argument and
convert it to a lock_object and then call _cv_*wait*().  Basically, the
visible difference is that you can now use rwlocks and sx locks with
condition variables using the same API as with mutexes.

17 years agoMake use of 'lock_object' being the same field name in the witness_check*()
jhb [Wed, 21 Mar 2007 22:18:10 +0000 (22:18 +0000)]
Make use of 'lock_object' being the same field name in the witness_check*()
macros.
- witness_check() replaces witness_check_mtx() and
  witness_check_exclusive_sx() and checks for an exclusive acquire of
  either a mutex, rwlock, or sx lock.
- witness_check_shared() replaces witness_check_shared_sx() and checks for
  a shared acquire of either a rwlock or sx lock.

17 years agoRename the 'mtx_object', 'rw_object', and 'sx_object' members of mutexes,
jhb [Wed, 21 Mar 2007 21:20:51 +0000 (21:20 +0000)]
Rename the 'mtx_object', 'rw_object', and 'sx_object' members of mutexes,
rwlocks, and sx locks to 'lock_object'.

17 years agoDon't use cv_wait_unlock() to implement cv_wait(). Instead, implement
jhb [Wed, 21 Mar 2007 20:46:26 +0000 (20:46 +0000)]
Don't use cv_wait_unlock() to implement cv_wait().  Instead, implement
cv_wait() fully and add missing KTRACE context switch traces.

17 years agoANSIfy function declarations and remove register keywords for variables.
andre [Wed, 21 Mar 2007 19:37:55 +0000 (19:37 +0000)]
ANSIfy function declarations and remove register keywords for variables.
Consistently apply style to all function declarations.

17 years agoMatch up SYSCTL declarations in style.
andre [Wed, 21 Mar 2007 19:34:12 +0000 (19:34 +0000)]
Match up SYSCTL declarations in style.

17 years agoIf vn_open() fails during kern_open(), don't fdrop() the new file object
jhb [Wed, 21 Mar 2007 19:32:08 +0000 (19:32 +0000)]
If vn_open() fails during kern_open(), don't fdrop() the new file object
until after the call to fdclose().  This closes an obscure race that
could result in the later call to fdclose() actually closing a different
file descriptor if another thread close()'s the file descriptor being
opened before fdrop() is called, so the fdrop() in kern_open() frees the
file object, then the second thread (or a third) creates a new file
descriptor which reuses both the same index and the same file pointer
thus tricking fdclose() in the first thread into thinking that the
original file was still open.

MFC after: 1 week

17 years agoHandle the case when a thread is blocked on a lockmgr lock with LK_DRAIN
jhb [Wed, 21 Mar 2007 19:28:20 +0000 (19:28 +0000)]
Handle the case when a thread is blocked on a lockmgr lock with LK_DRAIN
in DDB's 'show sleepchain'.

MFC after: 3 days

17 years agoSubtract optlen in the maximum length check for TSO and finally avoid
andre [Wed, 21 Mar 2007 19:04:07 +0000 (19:04 +0000)]
Subtract optlen in the maximum length check for TSO and finally avoid
slightly oversized TSO mbuf chains.

Submitted by: kmacy

17 years agoTidy up IPFIREWALL_FORWARD sections and comments.
andre [Wed, 21 Mar 2007 18:56:03 +0000 (18:56 +0000)]
Tidy up IPFIREWALL_FORWARD sections and comments.

17 years agoUpdate and clarify comments in first section of tcp_input().
andre [Wed, 21 Mar 2007 18:52:58 +0000 (18:52 +0000)]
Update and clarify comments in first section of tcp_input().

17 years agoTidy up the ACCEPTCONN section of tcp_input(), ajust comments and remove
andre [Wed, 21 Mar 2007 18:49:43 +0000 (18:49 +0000)]
Tidy up the ACCEPTCONN section of tcp_input(), ajust comments and remove
old dead T/TCP code.

17 years agoFix an off-by-one error in iwi_init_fw_dma(). It didn't reuse the existing
jhb [Wed, 21 Mar 2007 18:40:31 +0000 (18:40 +0000)]
Fix an off-by-one error in iwi_init_fw_dma().  It didn't reuse the existing
DMA memory for a firmware load if it was the exact size needed, thus in the
common case the driver was constantly free'ing and reallocating the DMA
buffer and it would eventually begin to fail.  With this fix, iwi0 reuses
the same buffer the entire time and no longer fails to load the firmware
after the machine has been up for a while.

MFC after: 1 week

17 years agoTidy up tcp_log_in_vain and blackhole.
andre [Wed, 21 Mar 2007 18:36:49 +0000 (18:36 +0000)]
Tidy up tcp_log_in_vain and blackhole.

17 years agoMake TCP_DROP_SYNFIN a standard part of TCP. Disabled by default it
andre [Wed, 21 Mar 2007 18:25:28 +0000 (18:25 +0000)]
Make TCP_DROP_SYNFIN a standard part of TCP.  Disabled by default it
doesn't impede normal operation negatively and is only a few lines of
code.  It's close relatives blackhole and log_in_vain aren't options
either.

17 years agoMemory leak killing spree, mostly bus_dma(9) related.
ariff [Wed, 21 Mar 2007 18:17:03 +0000 (18:17 +0000)]
Memory leak killing spree, mostly bus_dma(9) related.

17 years agoRemove tcp_minmssoverload DoS detection logic. The problem it tried to
andre [Wed, 21 Mar 2007 18:05:54 +0000 (18:05 +0000)]
Remove tcp_minmssoverload DoS detection logic.  The problem it tried to
protect us from wasn't really there and it only bloats the code.  Should
the problem surface in the future we can simply resurrect it from cvs
history.

17 years agoanother missing change for recent crypto mods
sam [Wed, 21 Mar 2007 17:37:13 +0000 (17:37 +0000)]
another missing change for recent crypto mods

17 years agomove call to t3_prep_adapter earlier in attach before msi-x setup occurs
kmacy [Wed, 21 Mar 2007 16:40:37 +0000 (16:40 +0000)]
move call to t3_prep_adapter earlier in attach before msi-x setup occurs

this works around the fact that pci_config_{save,restore} doesn't adequately
restore state for msi-x

MFC after: 3 days

17 years agoChange acpi's handling of suballocating system resources to be a little
jhb [Wed, 21 Mar 2007 15:39:11 +0000 (15:39 +0000)]
Change acpi's handling of suballocating system resources to be a little
simpler.  It now can just use rman_is_region_manager() during
acpi_release_resource() to see if the the resource is suballocated from
a system resource.  Also, the driver no longer needs MD knowledge about
how to setup bus space tags and handles when doing a suballocation, but
can simply rely on bus_activate_resource() in the parent setting all that
up.

17 years agoChange the amd64, i386, and ia64 nexus drivers to setup bus space tags and
jhb [Wed, 21 Mar 2007 15:36:38 +0000 (15:36 +0000)]
Change the amd64, i386, and ia64 nexus drivers to setup bus space tags and
handles when activating a resource via bus_activate_resource() rather than
doing some of the work in bus_alloc_resource() and some of it in
bus_activate_resource().

One note is that when using isa_alloc_resourcev() on PC-98, drivers now
need to just use bus_release_resource() without explicitly calling
bus_deactivate_resource() first.  nyan@ has already fixed all of the PC-98
drivers.

17 years agocatchup w/ crypto changes
sam [Wed, 21 Mar 2007 14:39:39 +0000 (14:39 +0000)]
catchup w/ crypto changes

17 years agoAdd a test for IPv6 and IPsec which is similar to the one for IPv4.
gnn [Wed, 21 Mar 2007 09:39:51 +0000 (09:39 +0000)]
Add a test for IPv6 and IPsec which is similar to the one for IPv4.
Add comments to the test for IPv4 with IPsec.
MFC after: 1 week

17 years agoallocate 9 messages in all cases
kmacy [Wed, 21 Mar 2007 09:16:10 +0000 (09:16 +0000)]
allocate 9 messages in all cases

17 years agoFix a comment
kevlo [Wed, 21 Mar 2007 07:49:56 +0000 (07:49 +0000)]
Fix a comment

17 years agomake MSI-X the default and allocate up to mp_ncpus queues per port
kmacy [Wed, 21 Mar 2007 07:25:40 +0000 (07:25 +0000)]
make MSI-X the default and allocate up to mp_ncpus queues per port

MFC after: 3 days

17 years agoLet people in on the magic of INET[6]_ADDRSTRLEN which comes quite handy in
mlaier [Wed, 21 Mar 2007 05:46:18 +0000 (05:46 +0000)]
Let people in on the magic of INET[6]_ADDRSTRLEN which comes quite handy in
combination with inet_ntop().

Reviewed by: trhodes "works for me"

17 years agoadd missing file from last commit that overhauls crypto/driver api's
sam [Wed, 21 Mar 2007 03:43:33 +0000 (03:43 +0000)]
add missing file from last commit that overhauls crypto/driver api's

17 years agoOverhaul driver/subsystem api's:
sam [Wed, 21 Mar 2007 03:42:51 +0000 (03:42 +0000)]
Overhaul driver/subsystem api's:
o make all crypto drivers have a device_t; pseudo drivers like the s/w
  crypto driver synthesize one
o change the api between the crypto subsystem and drivers to use kobj;
  cryptodev_if.m defines this api
o use the fact that all crypto drivers now have a device_t to add support
  for specifying which of several potential devices to use when doing
  crypto operations
o add new ioctls that allow user apps to select a specific crypto device
  to use (previous ioctls maintained for compatibility)
o overhaul crypto subsystem code to eliminate lots of cruft and hide
  implementation details from drivers
o bring in numerous fixes from Michale Richardson/hifn; mostly for
  795x parts
o add an optional mechanism for mmap'ing the hifn 795x public key h/w
  to user space for use by openssl (not enabled by default)
o update crypto test tools to use new ioctl's and add cmd line options
  to specify a device to use for tests

These changes will also enable much future work on improving the core
crypto subsystem; including proper load balancing and interposing code
between the core and drivers to dispatch small operations to the s/w
driver as appropriate.

These changes were instigated by the work of Michael Richardson.

Reviewed by: pjd
Approved by: re

17 years agoDon't call bus_deactivate_resource() explicitly before calling
nyan [Wed, 21 Mar 2007 03:38:37 +0000 (03:38 +0000)]
Don't call bus_deactivate_resource() explicitly before calling
bus_release_resource().  This is needed for pc98 by upcoming nexus related
change.

17 years agoRemove __P
kevlo [Wed, 21 Mar 2007 03:28:16 +0000 (03:28 +0000)]
Remove __P

17 years agoRemove firmware version flags
kmacy [Wed, 21 Mar 2007 00:54:23 +0000 (00:54 +0000)]
Remove firmware version flags

MFC after: 3 days

17 years agoAdd a new apic0 psuedo-device to claim memory resources for the memory
jhb [Tue, 20 Mar 2007 21:53:31 +0000 (21:53 +0000)]
Add a new apic0 psuedo-device to claim memory resources for the memory
address ranges used by local and I/O APICs in the system.  Some systems
also reserve these ranges as system resources via either PnPBIOS or
ACPI, so this device currently attaches after acpi0 and legacy0 so that
the system resources are given precedence.

17 years agoSynchronize with version 1.0.071 of Chelsio's common code
kmacy [Tue, 20 Mar 2007 21:43:32 +0000 (21:43 +0000)]
Synchronize with version 1.0.071 of Chelsio's common code
 (with the notable exception of improvements for using multiple TX queues)

This adds support for the T3B2 ASIC rev

Obtained from: Chelsio
MFC after: 3 days

17 years agoAdd a new ram0 pseudo-device that claims memory resouces for physical
jhb [Tue, 20 Mar 2007 21:08:39 +0000 (21:08 +0000)]
Add a new ram0 pseudo-device that claims memory resouces for physical
addresses corresponding to system RAM.  On amd64 ram0 uses the SMAP
and claims all the type 1 SMAP regions.  On i386 ram0 uses the
dump_avail[] array.  Note that on i386 we have to ignore regions above
4G in PAE kernels since bus resources use longs.

17 years ago- Add macros for newly added CPUID bits in the corresponding header files.
jkim [Tue, 20 Mar 2007 20:22:45 +0000 (20:22 +0000)]
- Add macros for newly added CPUID bits in the corresponding header files.
- Use correct capticalization in xTPR as Intel uses in their documents.
- Use proper description instead of vendor code name in comment.

17 years agoTweak the probe/attach order of devices on the x86 nexus devices.
jhb [Tue, 20 Mar 2007 20:21:44 +0000 (20:21 +0000)]
Tweak the probe/attach order of devices on the x86 nexus devices.
Various BIOS-related psuedo-devices are added at an order of 5.  acpi0 is
added at an order of 10, and legacy0 is added at an order of 11.

17 years agoMFi386 1.173: Display two new Intel feature bits.
jhb [Tue, 20 Mar 2007 18:48:04 +0000 (18:48 +0000)]
MFi386 1.173: Display two new Intel feature bits.

17 years agoMake the m_pullup() diagnostic message compile-time conditional on DIAGNOSTIC.
bms [Tue, 20 Mar 2007 14:29:54 +0000 (14:29 +0000)]
Make the m_pullup() diagnostic message compile-time conditional on DIAGNOSTIC.

Requested by: glebius

17 years agoIncrease default size of raw IP send and receive buffers to the same as
bms [Tue, 20 Mar 2007 13:15:20 +0000 (13:15 +0000)]
Increase default size of raw IP send and receive buffers to the same as
udp_sendspace, to avoid a situation where jumbograms (datagrams > 9KB)
are unnecessarily fragmented.

A common use case for this is OSPF link-state database synchronization
during adjacency bringup on a high speed network with a large MTU.

It is not possible to auto-tune this setting until a socket is bound to
a given interface, and because the laddr part of the inpcb tuple may be
overridden, it makes no sense to do so. Applications may request a larger
socket buffer size by using the SO_SENDBUF and SO_RECVBUF socket options.

Certain applications such as Quagga ospfd do not probe for interface MTU
and therefore do not increase SO_SENDBUF in this use case.
XORP is not affected by this problem as it preemptively uses SO_SENDBUF
and SO_RECVBUF to account for any possible additional latency in XRL IPC.

PR: kern/108375
Requested by: Vladimir Ivanov
MFC after: 1 week