122300 Commits

Author SHA1 Message Date
marius
ae3fe2eabf MFC: if_xl.c 1.192, 1.199, 1.206, 1.207, 1.208; if_xlreg.h 1.57, 1,58, 1.59
- The 575A doesn't have funcregs in memio. So don't claim that it does.
- In detach method, move if_free() after bus_teardown_intr().
- Consistently use if_printf() only in interface methods: if_start(),
  if_watchdog, etc., or in functions used only in these methods.
  In all other functions in the driver use device_printf().
- Use the xl_stats_update() callout instead of if_slowtimo() for
  driving xl_watchdog() in order to avoid races accessing if_timer.
- Use bus_get_dma_tag() so xl(4) works on platforms requiring it.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
2007-09-15 09:57:01 +00:00
marius
6c4ec39e74 MFC: if_re.c 1.77, 1.86, 1.94
- Correctly set IFCAP_VLAN_HWCSUM as re(4) can do VLAN tagging/checksum
  offloading in hardware.
- Correctly set media header length for VLAN.
- Use taskqueue_drain() to wait for any pending tasks to complete rather
  than just pausing for a second.
- Initialize the rl_vlanctl field of the descriptors to zero (in order
  to clear RL_TDESC_VLANCTL_TAG).
2007-09-15 09:52:19 +00:00
wilko
fed58fe1d8 sys/lock.h must precede sys/sx.h these days or the kernel won't build.
Looks like no-one builds Alpha kernels anymore?
2007-09-15 09:40:38 +00:00
philip
96eeba2216 MFC: remove -T from getopt() spec and usage string.
Forgotten by:	des
2007-09-15 07:04:04 +00:00
thompsa
56363ff83a MFC
Change from a mutex to a read/write lock. This allows the tx port to be
 selected simultaneously by multiple senders and transmit/receive is not
 serialised between aggregated interfaces.
2007-09-15 01:11:26 +00:00
jkim
8bd7d2cca7 MFC: sys/dev/fdc/fdc.c 1.310-1.313
sys/dev/ic/nec765.h	1.12, 1.13
	sys/dev/pc98/fdc.c	1.167

- Enhanced floppy controllers have Data Rate Select Register (DSR) at 0x3f4.
Use it to reset controller and to select data rate.  According to Intel
80277AA datasheet, software reset behaves the same as DOR reset except
that it is self clearing.  National Semiconductor PC8477B datasheet says
the same.  As a side effect, we no longer use Configuration Control
Register (CCR) at 0x3f7 for these controllers, which is often missing
in modern hardware.
- Assume floppy disk is not inserted when we have exhausted retries.  This
significantly reduces booting time when there is broken floppy disk drive,
controller, cable, BIOS, etc.
When the floppy controller interface is correctly implemented, disk change
signal (DSKCHG) is reflected in the Digital Input Register (DIR) at 0x3f7.
However, there are many cases that the signal is unusable.  Moreover, some
BIOS does not reserve the port at all.  In those cases, the register may not
function.
- Fix style nits.

PR:	kern/103841
2007-09-14 23:44:11 +00:00
obrien
fb0af2dfab MFC: new kernel config option, VERBOSE_SYSINIT.
(kern/init_main.c rev. 1.263)
2007-09-14 22:44:37 +00:00
edwin
69f4c5f944 Massive MFC for all calendar files which have been updated in the
past but were never MFCd.

PR:             conf/61641 conf/70252 conf/107453 conf/113285 conf/113642 (and others)
Submitted by:   various
2007-09-14 01:33:53 +00:00
brueffer
b86840e428 MFC:
Autogenerate hardware notes for ral(4) and ural(4).
2007-09-13 16:25:43 +00:00
brueffer
34526391c6 MFC: rev. 1.320 + 1.324
- Sort wlan entries by driver name.
- Add information about hardware supported by ipw(4) and iwi(4).
2007-09-13 16:23:27 +00:00
brueffer
3e63aca7a8 MFC:
Prepare for automatic hardware notes generation:

- mention the supported chipsets in the HARDWARE section
- remove unnecessary Li arguments
2007-09-13 16:06:30 +00:00
obrien
ada3ff871d Remove localism that snuck in the last commit. 2007-09-12 02:54:57 +00:00
thompsa
bbde4a6275 MFC r1.19
Show the ACTIVE flag in ifconfig for the single interface that is actaully
 active in failover mode rather than all interfaces with a link.
2007-09-11 00:34:59 +00:00
alfred
d85be45214 FreeBSD 7 has a macro that converts calls to sx_init -> sx_init_flags,
however FreeBSD 6 needs this as a function to preserve binary compat.

Pointed out by: kmacy
2007-09-10 23:43:52 +00:00
peter
ad71fee25d Export the MAXCPU symbol to assym.s. This is used to size the intrcnt
and intrnames arrays.  as(1)/ld(1) don't detect the undefined MAXCPU
variable, leading to insufficient space being reserved.
2007-09-10 23:01:35 +00:00
gabor
2f7e95f1a6 MFC r1.33 2007-09-10 18:32:07 +00:00
gabor
8f8fa8fb7b MFC: r1.7 2007-09-10 18:28:13 +00:00
gabor
b781088c03 MFC r1.7 2007-09-10 17:30:44 +00:00
gabor
5a24847a0c MFC r1.25 2007-09-10 17:30:26 +00:00
gabor
68be43d913 MFC r1.32 2007-09-10 17:30:02 +00:00
gabor
27094fc675 MFC r1.38 2007-09-10 17:29:34 +00:00
gabor
3fff32f8f4 MFC r1.8 2007-09-10 17:29:10 +00:00
gabor
d52638cd79 MFC r1.10 2007-09-10 17:28:45 +00:00
gabor
8573b384dd MFC r1.47 2007-09-10 17:28:01 +00:00
obrien
8a8d26239d MFC: 'sade' - the SysAdmins Disk Editor 2007-09-10 14:25:05 +00:00
kib
0e4499f2fc MFC rev. 1.5, 1.6:
Move the drm_pci_alloc() to the start of the i915_initialize() and drop the
the drm mutex around it.
2007-09-10 12:51:06 +00:00
ru
78a46e2fb2 MFC: 1.46: EVFILT_VNODE filtering isn't limited to UFS. 2007-09-10 07:45:39 +00:00
kib
3857d590ed MFC
rev. 1.387 of src/sys/vm/vm_map.c
rev. 1.120 of src/sys/vm/vm_map.h
rev. 1.213 of src/sys/vm/vm_mmap.c

Do not drop vm_map lock between doing vm_map_remove() and vm_map_insert().
For this, introduce vm_map_fixed() that does that for MAP_FIXED case.

Tested by:	Marc G. Fournier <scrappy hub org>
2007-09-09 04:41:24 +00:00
cvs2svn
14094fa00e This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-09-09 01:28:04 +00:00
emaste
4ed3911b83 MFC aac.4 1.36:
Add PCI IDs for two cards:
  - Adaptec RAID 3405
  - Adaptec RAID 3805
2007-09-07 13:40:10 +00:00
emaste
52eebb085e MFC 1.62:
Add PCI IDs for two cards:
  - Adaptec RAID 3405
  - Adaptec RAID 3805

  Submitted by:	John Marra  jmarra at nmu dot edu
2007-09-07 13:37:31 +00:00
alfred
6df6b1c5ea Remove/refactor calls to turnstile_release() as it turns out that
turnstile_unpend_queue() drops the lock that turnstile_release()
does.  This was triggering a mtx_unlock() of an already unlocked
mutex panic.

Obtained from: Juniper Networks
2007-09-05 22:18:39 +00:00
alfred
7740e0f542 Unbreak "options DDB" breakage from previous commit. 2007-09-05 17:38:28 +00:00
delphij
2e3f1f56fe MFC 1.9-1.12: restore various historical behaviors. 2007-09-05 15:47:07 +00:00
alfred
bf462b58be Backport of optimized sx locks and rwlocks from FreeBSD 7.0.
Reviewed by: attilio, jhb
Obtained from: Juniper Networks
2007-09-04 22:40:40 +00:00
davidxu
de3edd54af MFC Revision 1.78:
> Output error message to STDERR_FILENO.
2007-09-04 05:51:00 +00:00
netchild
cba8561b2d Really commit the TIOCGPTN part (missing in the previous commit...). 2007-09-03 13:55:05 +00:00
netchild
68fcd79292 MFC:
- sync linuxulator:
   * de-COMPAT_43-ify:
     + socket related ioctl's
     This differs from -current, as the kernel ABI is different
     (kern_bind() and kern_connect() free the struct sockaddr on -stable
     themself, so two calls to free() are not included in this MFC).
   * bug-/compatibility-fixes
   * ioctl TIOCGPTN
   * 1 style(9)-fix

Tested by:	"Arno J. Klaassen" <arno@heho.snv.jussieu.fr>
2007-09-03 13:18:42 +00:00
edwin
aacf4b201e MFC of src/share/zoneinfo
MFV: tzdata2007g

PR:             conf/115706
Submitted by:   edwin@
Obtained from:  ftp://elsie.nci.nih.gov/pub/
2007-09-02 01:24:08 +00:00
sobomax
16dad76a9c MFC: Build p4tcc and est cpu frequency modules on amd64 to match
modules/cpufreq.
2007-08-30 20:29:01 +00:00
netchild
1f94a199bc Add 2 missing typedefs.
Noticed by:	Christian Hiris <4711@chello.at>
2007-08-30 07:22:20 +00:00
netchild
3e5a47e506 Remove second entry for tgkill.
Noticed by:	dwhite
2007-08-30 07:16:58 +00:00
alc
a3de330a0d MFC revisions 1.375-1.377
Use pmap_enter_object() in vm_map_pmap_enter() to reduce the
  locking overhead of premapping objects.

Note: It was later discovered that this change addresses a race condition
that is discussed by vm/vm_fault.c revision 1.216.  Specifically, replacing
pmap_enter_quick() by pmap_enter_object() addresses the race.
2007-08-30 02:32:04 +00:00
alc
7fd3b6152b MFC revision 1.104 of powerpc/powerpc/mmu_oea.c
Introduce the function pmap_enter_object().
2007-08-30 02:11:33 +00:00
peter
cd2b6bda41 MFC: rev 1.261. Set a stack for interrupt stack 1 (double fault) on
AP cpus.  This changes a guaranteed triple-fault (silent reset) into
something that has a chance to work.  Apparently, the NMI handler uses
this stack too.
2007-08-29 23:26:33 +00:00
gabor
929e0595e3 MFC rev 1.6
Approved by:	keramida (mentor)
2007-08-29 22:00:39 +00:00
netchild
e0b4a0fff2 regen 2007-08-29 15:05:36 +00:00
netchild
5a60814e56 MFC:
- sync linuxulator:
   * add syscalls:
     + stat            (i386, amd64)
     + iopl            (i386, amd64)
     + mprotect        (i386)
     + rt_sigpending   (i386)
     + rt_sigtimedwait (i386)
     + statfs64        (i386, amd64)
     + utimes          (i386, amd64)
     + settimeofday    (amd64)
     + clock_*         (i386, amd64)
   * de-COMPAT_43-ify:
     + sethostname
     + lstat
     + ftruncate
     + nanosleep (i386)
   * add more dummy syscalls so that we know what is needed

Tested by:	bsam (on i386/amd64 with LTP 20070630)
2007-08-29 15:04:26 +00:00
mav
90496dfcb1 MFC ng_ppp.c rev. 1.68, 1.69.
Add proper fine-grained node locking.
Add 64bit statistic counters.
2007-08-28 18:49:33 +00:00
emax
d0e06d1dd8 MFC:
Return EADDRNOTAVAIL instead of EDESTADDRREQ error when listen(2)
is called on improperly bound socket.
2007-08-28 17:07:49 +00:00