122300 Commits

Author SHA1 Message Date
jhb
99ff582459 MFC: Move 'intbase != expected base' warning under boot verbose.
Requested by:	delphij
2007-08-28 15:47:41 +00:00
jhb
1ad28cbdd3 MFC: Treat the frame under 'nmi_calltrap' as a trapframe. 2007-08-27 17:23:41 +00:00
jkim
6a2ef087b4 MFC: 1.146
Export 4Gbps Fibre Channel link speed correctly with inquiry commands.
2007-08-27 16:56:28 +00:00
jhb
4d5d6d7337 MFC: Add SA_* constants for sx_assert() flags to make it easier to keep
drivers in sync between HEAD and 6.x.
2007-08-27 13:45:35 +00:00
remko
209c430c50 Semi-MFC Makefile v 1.37 (changed in order to reflect 6.X behaviour)
Make zoneinfo optional so that a filesystem upgrade/update does not overwrite
  possibly installed thirdparte zoneinfo databases (from ports for example).

  Submitted by: Mark Andrews <Mark_Andrews at isc dot org> (original patch
  rewritten by me to be more consistent with the new practise).
  Approved by: re (kensmith)
  Approved by: imp (mentor)
  Reviewed by: ru (some time ago already)

Approved by: imp (mentor, implicit MFC)
2007-08-26 15:57:06 +00:00
scottl
dc46a6c1d1 MFC LSI 1078/PERC6 update.
Submitted by: LSI
2007-08-26 02:36:31 +00:00
scottl
2027b27524 Fix the build. 2007-08-26 02:35:50 +00:00
alc
97599ed3bf MFC revisions 1.288 and 1.289
Eliminate the use of Giant from vm_daemon().  Replace the unconditional
  use of Giant in vm_pageout_scan() with VFS_LOCK_GIANT().
2007-08-26 00:27:48 +00:00
kmacy
733eb20c32 MFC: Fixes for 4 port and small packet optimization
- remove cpl->iff panic - we can't know the port number from the rspq on the 4-port
- pick the ifnet based on the interface in the CPL header
- switch to using qset 0 for egress on the 4-port for now - may change
  when we start using RSS
- move ether_ifdetach to before the port lock gets deinitialized to avoid
  hang in the case where there are BPF peers (cxgb_ioctl is called indirectly
  when BPF peers are present)
- don't call t3_mac_reset if multiport is set, this was causing tx errors
  by misconfiguring the MAC on the 4-port
- change V_TXPKT_INTF to use txpkt_intf as the interfaces are not contiguous
- free the mbuf immediately in the case where the payload is small enough to be copied
  into the rspq
- only update the coalesce timer if for a queue if packets were taken off of it
- add in missed 20ms DELAY in initializaton vsc8211

- prompt MFC as this only applies to the 4-port which is currently completely
  broken - OK'd by kensmith

Supported by: Chelsio
2007-08-25 23:55:21 +00:00
alc
d7ccdaec4d MFC revision 1.294
Eliminate GIANT_REQUIRED from swap_pager_putpages().
2007-08-25 19:42:29 +00:00
simon
0bac22ecad MFC rev 1.51:
Set timeout for all NIS RPC requests to 1 second and not just for
  yp_next as revision 1.50 did.  This should fix, or at least very much
  reduce the risk of, NIS timing out due to UDP packet loss for NIS
  functions.

  See also revision 1.50 for more details about the general problem.
2007-08-25 19:41:02 +00:00
alc
0370ed6aac MFC revision 1.231
Change vnode_pager_addr() such that on returning it distinguishes between
  an error returned by VOP_BMAP() and a hole in the file.

  Change the callers to vnode_pager_addr() such that they return
  VM_PAGER_ERROR when VOP_BMAP fails instead of a zero-filled page.

MFC revision 1.232
  Long ago, revision 1.22 of vm/vm_pager.h introduced a bug.  Specifically,
  it introduced a check after the call to file system's get pages method
  that assumes that the get pages method does not change the array of pages
  that is passed to it.  In the case of vnode_pager_generic_getpages(),
  this assumption has been incorrect.  The contents of the array of pages
  may be shifted by vnode_pager_generic_getpages().  Likely, the problem
  has been hidden by vnode_pager_haspage() limiting the set of pages that
  are passed to vnode_pager_generic_getpages() such that a shift never
  occurs.

  The fix implemented herein is to adjust the pointer to the array of pages
  rather than shifting the pages within the array.
2007-08-25 19:14:30 +00:00
alc
0ad15f74a4 MFC revision 1.234
Eliminate the special case handling of OBJT_DEVICE objects in
  vm_fault_additional_pages() that was introduced in revision 1.47.  Then
  as now, it is unnecessary because dev_pager_haspage() returns zero for
  both the number of pages to read ahead and read behind, producing the
  same exact behavior by vm_fault_additional_pages() as the special case
  handling.

MFC revision 1.235
  Two changes to vm_fault_additional_pages():

  1. Rewrite the backward scan.  Specifically, reverse the order in which
     pages are allocated so that upon failure it is never necessary to
     free pages that were just allocated.  Moreover, any allocated pages
     can be put to use.  This makes the backward scan behave just like the
     forward scan.

  2. Eliminate an explicit, unsynchronized check for low memory before
     calling vm_page_alloc().  It serves no useful purpose.  It is, in
     effect, optimizing the uncommon case at the expense of the common
     case.
2007-08-25 18:43:16 +00:00
alc
b16ee81c5e MFC revision 1.233
When a cached page is reactivated in vm_fault(), update the counter that
  tracks the total number of reactivated pages.  (We have not been
  counting reactivations by vm_fault() since revision 1.46.)

  Correct a comment in vm_fault_additional_pages().
2007-08-25 05:47:44 +00:00
kientzle
c478b42cd1 MFC: Opportunistic SUID/SGID restore.
If owner restore wasn't requested, then SUID/SGID restore
failures caused by owner/group mismatch won't be reported.
2007-08-25 04:42:01 +00:00
kientzle
a261d75a7b MFC: Enable -p by default for root, which seems to be what
most people expect.
2007-08-25 04:38:44 +00:00
kientzle
479b110eb7 Update bsdtar version to 1.9 to match libarchive.
At this point, bsdtar is identical to that in 7-CURRENT
except for one small behavioral change that I'm debating.
2007-08-25 04:35:21 +00:00
kientzle
0035d116be MFC: Use libarchive's new security checks (which are much faster)
instead of implementing them in bsdtar.
2007-08-25 04:33:13 +00:00
kientzle
e9b353931e MFC a comment. 2007-08-25 04:28:04 +00:00
kientzle
8162e7625f MFC: Don't try to store file body if there was a fatal error writing
the header.
2007-08-25 04:27:41 +00:00
kientzle
7bd343d4a0 MFC additional manpage comments to more widely publicize some
of bsdtar's key features.
2007-08-25 04:26:00 +00:00
kientzle
379f6c564c MFC --use-compress-program support. 2007-08-25 04:24:52 +00:00
kientzle
3210c203d5 MFC include guards. 2007-08-25 04:21:18 +00:00
kientzle
dbe00e79e2 MFC generic path comparisons. There was some old code
to ignore leading "./" that was there to allow us to
compare path names with strcmp().  Comparing pathnames
syntactically is a bit more complex than that, so
encapsulate it in a new utility function and use that instead.
2007-08-25 04:19:55 +00:00
kientzle
26f3bc4cf4 MFC corrected error handling on extraction. 2007-08-25 04:14:28 +00:00
kientzle
5b2f302121 MFC some miscellaneous casts to correct printing of
numerical UIDs, GIDs, and device numbers in tar -tv output.a
2007-08-25 04:11:47 +00:00
kientzle
67ca34cecd MFC refactored code to copy entry from one archive to another.
This is the code that implements the @<archive> interpolation
feature.
2007-08-25 04:08:45 +00:00
kientzle
c7d49f6377 MFC whitespace fixes. 2007-08-25 03:59:52 +00:00
kientzle
17d37094df MFC refactored platform configuration.
Separate platform-specific config into config_freebsd.h.
Changes to Makefile and bsdtar_platform.h to use this instead
of coding the FreeBSD configuration into bsdtar_platform.h
2007-08-25 03:58:25 +00:00
kientzle
090f1c5eb5 MFC archive_read_support_format_tar.c 1.61
This updates the support for GNU tar --posix --sparse archive
entries to be compatible with GNU tar 1.17.
2007-08-25 03:49:12 +00:00
jhb
a432a3d68c MFC: Expand the data structure returned by the ATA RAID status ioctl to
include detailed status on each of the backing subdisks.  A binary compat
shim is provided for the original status ioctl.

Approved by:	sos
2007-08-24 18:43:00 +00:00
jhb
1d80780684 MFC: Teach the mfi(4) driver to handle requests from userland management
applications to add and remove volumes.
2007-08-24 17:29:18 +00:00
thompsa
bb1f6850cc MFC r1.38,1.39
- Ensure the path cost does not exceed 65535 in legacy STP mode.
 - If the path cost is calculated when the link is down, set a pending flag so
   it is calculated again when it comes back up.
 - To not use 00:00:00:00:00:00 as the bridge id, all interfaces are scanned and
   the lowest number wins. All zeros is too low.
 - If the STP state machine is stopped then clear the bridge-id and root-id.
2007-08-24 10:34:30 +00:00
obrien
f5c0a61308 MFC: rev 1.1034: add warnings for additional GPL infecting sub-systems. 2007-08-23 22:30:14 +00:00
jinmei
94c889fde1 MFC:
Fix a kernel panic based on receiving an ICMPv6 Packet too Big message.
  (MFC was planned but has been missed)

PR:		99779
Submitted by:	Jinmei Tatuya
Reviewed by:	clement, rwatson
Approved by:	gnn (mentor)

src/sys/kern/uipc_socket.c:	1.280
2007-08-23 18:17:08 +00:00
bmah
e09aeb7b0f MFC (sort of): Autogenerate hardware notes entities for ath(4) for all
platforms on which it's included in the GENERIC kernel.  The change
is not an exact MFC because the set of platforms is different between
HEAD and RELENG_6.

	dev.archlist.txt	1.95 -> 1.96

PR:		115403
2007-08-23 15:44:44 +00:00
dhartmei
555abbbd85 MFC: r1.46 2007-08-23 09:38:14 +00:00
syrinx
03dcfe9592 MFC:
src/usr.sbin/bsnmpd/modules/snmp_bridge/BEGEMOT-BRIDGE-MIB.txt, Revision 1.3
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c, Revision 1.6
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.h, Revision 1.5
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c, Revision 1.7
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_tree.def, Revision 1.3
src/usr.sbin/bsnmpd/modules/snmp_bridge/snmp_bridge.3, Revision 1.4

Keep the snmp_bridge(3) module up to date with if_bridge(4) and add an
object to control the value of the new 'PRIVATE' bridge members' flag.

While here, remove stale '__unused' compiler directives.

Reviewed by:	bz
Approved by:	bz (mentor)
2007-08-23 08:19:09 +00:00
emaste
1c4a61f21a MFC sha2.c 1.9:
Initialize T1 to silent gcc warning.
2007-08-22 21:17:44 +00:00
gabor
0cb19b79aa MFC: r1.61
Approved by:	keramida (mentor)
2007-08-22 18:11:26 +00:00
emaste
042261af1a MFC aac_cam.c 1.26:
Add a missing mutex unlock to an error path.

  Submitted by: Yuxiang Luo
  PR: 107943
2007-08-22 14:46:27 +00:00
njl
0e4a0c6c62 MFC 1.26 and 1.27: use proper loop variables and sched_bind() behavior 2007-08-22 04:55:05 +00:00
emaste
6661f4aae3 MFC aac.c 1.118:
Rearrange locking in the alloc_commands and ioctl paths to avoid problems.
2007-08-21 20:31:49 +00:00
emaste
82cda9fbb8 MFC aac.c 1.119:
The return value of aac_alloc_command() was misinterpreted in aac_ioctl_event().
  Once triggered this would leak away all available commands and starve the rest
  of the driver.
2007-08-21 16:33:55 +00:00
hm
620b5eee96 PR: kern/115414
Submitted by:   Eugene Grosbein <eugen@grosbein.pp.ru>
The fix for PR kern/111480 was incomplete, "make MODULES_WITH_WORLD=true
buildworld" stopped with an error.
2007-08-21 08:58:22 +00:00
davidch
e683c36460 - Fixed a problem that would cause kernel panics and "bce0: discard frame .."
errors (especially when jumbo frames are enabled or in low memory systems)
    because the RX chain was corrupted when an mbuf was mapped to an unexpected
    number of buffers.
  - Fixed a problem that would cause kernel panics when an excessively
    fragmented TX mbuf couldn't be defragmented and was released by
    bce_tx_encap().
2007-08-20 21:47:49 +00:00
truckman
9349324cd3 MFC ehci.c 1.56
Replace three copies of the host controller reset sequence that
  differ in their details with calls to a new function, ehci_hcreset(),
  that performs the reset.

  The original sequences either had no delay or a 1ms delay between
  telling the controller to stop and asserting the controller reset
  bit.  One instance of the original reset sequence waited for the
  controller to indicate that its reset was complete before continuing,
  but the other two immediately let the subsequent code execute.  The
  latter is a problem on some hardware, because a read of the HCCPARAMS
  register returns an incorrect value while the reset is in progress,
  which triggers an infinite loop in ehci_pci_givecontroller(), which
  hangs the system on shutdown.

  The reset sequence in ehci_hcreset() starts with the most complete
  instance from the original code, which contains a loop to wait for
  the controller to indicate that its reset is complete.   This appears
  to be the correct thing to do according to "Enhanced Host Controller
  Interface Specification for Universal Serial Bus" revision 1.0,
  section 2.3.1.  Add another loop to wait for the controller to
  indicate that it has stopped before setting the HCRESET bit.  This
  is required by the section 2.3.1 in the specification, which says
  that setting HCRESET before the controller has halted "will result
  in undefined behaviour".
2007-08-20 13:04:04 +00:00
truckman
f6e11620e6 MFC file.c 1.8
If the mmap() call in rpc.statd fails, rpc.statd prints a warning
  message and then dumps core because the subsequent code assumes that
  mmap() succeeded.  Since rpc.statd does not have fallback code to
  implement the functionality needed to operate on the status file if
  it is not memory mapped, rpc.statd should use err() to force the process
  to exit if the mmap() call fails.

PR:		bin/115430 (mmap() failure previously fixed in statd.c 1.12.8.2)
2007-08-20 13:00:48 +00:00
ache
c9b2753121 Increase MAX_LEN to 4096
It fix core dump with latest ghostscript-gpl port (too many items)
2007-08-19 20:53:50 +00:00
mav
ff6b5cd0df MFC rev. 1.135
Add ng_send_fn() error handeling inside ng_con_nodes().
Without it some errors may left unnoticed and unhandeled
that lead to hooks left in half-connected state.
2007-08-19 19:36:46 +00:00