Commit Graph

122255 Commits

Author SHA1 Message Date
jfv
f464b3caaa Fix the duplicate include stanza.
PR: 117125
2007-10-12 07:49:33 +00:00
mav
3750cc7cc3 MFC rev. 1.18-1.21
- Fix thread safety.
 - Make some optimizations.
2007-10-12 05:09:13 +00:00
jkim
be00572ccd Fix SUBDIR expansion and reduce diff from HEAD. 2007-10-11 23:47:28 +00:00
thompsa
f3e06bc436 Sync to HEAD. 2007-10-11 20:29:41 +00:00
thompsa
7d4e7d98da MFC if_bridge.c r1.103, if_bridge.4 r1.29
Allow additional packet filtering on the physical interface for locally
  destined packets, disabled by default.

PR:             kern/116051
Submitted by:   Eygene Ryabinkin
2007-10-11 20:28:53 +00:00
thompsa
0f871a6acb MFC r1.17
Use the -n flag on ifconfig so that dhclient does not cause the kernel module
  to be reloaded when the interface is torn down.
2007-10-11 20:23:33 +00:00
thompsa
b0693660ac MFC ifconfig.8 r1.138, ifconfig.c r1.131
Add the -n flag for disabling automatic module loading
2007-10-11 20:20:39 +00:00
delphij
c30c88743a Note less v408 MFC. 2007-10-11 18:54:35 +00:00
delphij
289322e6a4 MFC: less v408. 2007-10-11 18:51:44 +00:00
jfv
cc2e44be9f Small change, this will allow this driver version to be used
on 6.2 RELEASE, you simply won't get MSI/X support.
2007-10-11 17:58:28 +00:00
ticso
287974ed2d MFC: rev 1.6
declare struct tftphdr and embedded union as beeing packed, which is
required for arm.
2007-10-11 17:32:20 +00:00
obrien
518dde115f MFC: bwk's 01-May-2007 release 2007-10-10 00:22:15 +00:00
edwin
1ea17145e8 Whitespace chase after bad copy+paste.
Noticed by: John Baldwin
2007-10-10 00:09:08 +00:00
obrien
a5ff6b804a Stop applying patches at build time - instead apply directly to the files.
I've seen this practice cause issues for vendors using our sources...
2007-10-09 15:28:15 +00:00
edwin
540559667f MFC:
Describe the process of importing new zoneinfo data and updating
it into CVS.

PR:             conf/116901
2007-10-09 02:37:21 +00:00
jhb
b320baddf7 MFC some fixes to IPI_PREEMPT:
- Use the proper bitmask tests for an IPI in the bitmap handler on amd64
  and i386.
- Don't test against idle priority, just the idle thread in the IPI_PREEMPT
  handlers.
2007-10-08 21:51:01 +00:00
jfv
b3c5567cb5 Last delta confused shared code API in the fix, this
corrects it.
2007-10-07 03:11:31 +00:00
marius
3f097d4adb MFC: 1.15; 1.16
- Remove unused softc.
- Use the actual clock frequency of the PCI bus instead of assuming
  33MHz for calculating the latency timer values for its children.
  Inspired by NetBSD doing the same and Linux as well as OpenSolaris
  using a similar approach.
  While at it rename a variable and change its type to be more
  appropriate fuer values of PCI properties so the variable can be
  more easily reused.
- Initialize the cache line size register of PCI devices to a
  legal value; the cache line size is limited to 64 bytes by the
  Fireplane/Safari, JBus and UPA interconnection busses. Setting
  it to an unsupported value caused bad performance at least with
  GEM as it causes them to not do cache line bursts and to not
  issue cache line commands on the PCI bus.
2007-10-06 20:50:18 +00:00
marius
d878b028ff - Adhere style(9) (don't use function calls in initializers, use uintXX_t
instead of u_intXX_t).
- Use FBSDID.
2007-10-06 20:34:14 +00:00
jfv
c6a0036075 Couple corrections on the MFC, first POLLING had a 7.0
interface left in, thanks to those that caught this.

Second, there was a 82571 fix in the last delta that
got missed, it has now been converted and added.
2007-10-06 19:36:35 +00:00
scf
06a2eeacf0 MFC:
Add fts_set_clientptr(3), fts_get_clientptr(3) and fts_get_stream(3) man
page links to fts(3).

    src/lib/libc/gen/Makefile.inc: rev 1.127 -> 1.128

Approved by:	wes
2007-10-06 03:15:15 +00:00
jfv
14c3a62891 MFC of Intel driver version 6.6.6
This adds our new modular shared code, support for MSI/MSIX, hardware
support for newer adapters, and a variety of bug fixes.
2007-10-05 22:49:08 +00:00
jhb
8d5360c01e MFC: Handle CPUs with APIC IDs higher than 32. 2007-10-05 15:22:37 +00:00
obrien
818361dec3 MFC: Use uintmax_t to pass around 64-bit quantities, including to printf().
Using uintmax_t is also robust to further extensions in both the C language
and the bitwidth of kernel counters.
2007-10-04 18:27:45 +00:00
yongari
f3bf99948c MFC if_re.c rev. 1.95 to RELENG_6.
Make sure to take PHY out of power down mode in device attach.
  Without this the PHY wouldn't work as expected. This should fix
  dual-boot Windows XP machine where RealTek Windows drivers put the
  PHY in power down mode during shutdown. The magic PHY register
  accesses come from RealTek driver. No datasheets mention the magic
  PHY registers.
  In general, the PHY wakeup code should go into PHY driver. However it
  seems that it only apply to RTL8169S single chip and it would be
  another hack if we have rgephy(4) check what parent driver/chip model
  is attached.
2007-10-04 11:28:25 +00:00
ru
e154741c14 MFC: Updated mdoc (FreeBSD 6.2 added, FreeBSD 5.5 and 7.0 documented,
better names for System V releases [1]).

PR:		docs/68845 [1]
2007-10-04 04:56:41 +00:00
simon
4151293888 Correct a buffer overflow in OpenSSL SSL_get_shared_ciphers(). 2007-10-03 21:39:43 +00:00
jhb
9ad5f6f445 MFC: Always use an exclusive lock on the leaf vnode during an open() when
shared lookups are enabled.  This closes a few races including a race where
concurrent opens of a fifo could result in different v_fifoinfo structures
in different threads.
2007-10-03 21:06:05 +00:00
jhb
1db2bde192 MFC: Use rman_set_rid() to save the rid in new resources when they are
allocated.  This makes 'bus_free_resource()' safe to use in 6.x and also
fixes an issue with the recent PCI MSI code MFCs that caused them to never
update the MSI config registers.

Reported by:	gallatin (MSI breakage)
2007-10-03 20:41:35 +00:00
obrien
a2842c2079 MFC: 2006/07/28 commit achieving WARNS=3
Also fix nlist 'nl' should be terminated by a NULL entry.
2007-10-03 19:56:17 +00:00
obrien
a66443f373 MFC: rev. 1.8's layout changes. 2007-10-03 19:28:57 +00:00
gallatin
ce75f1ca36 MFC: sync the mxge driver with HEAD, modulo some slight differences
due to RELENG_6 limitations.
	(no TSO in RELENG_6, no VLAN tag insertion/removal due to
         vlan differences, etc).
2007-10-02 15:59:54 +00:00
ru
889525161a MFC: Added FreeBSD/arm and FreeBSD 6.3. FreeBSD 5.5 and 7.0 are official. 2007-10-02 08:38:34 +00:00
ru
1251340d68 MFC:
- New Darwin, FreeBSD, and NetBSD versions.
- DragonFly support including the new .Dx macro.
- New .St strings: -isoC-amd1, -isoC-tcor1, -isoC-tcor2, and -ieee1275-94.
2007-10-02 08:17:29 +00:00
ru
e8138dad13 MFC: 1.32: If not compiled for debugging, redirect std{in,out,err}
to /dev/null before becoming a daemon.
2007-10-02 05:44:53 +00:00
mtm
aecc7cf1b9 Partial MFC: rev. 1.6
o Use the --detach option to kdc(8) instead of using the shell
	  background operator '&'.

	  PR: conf/102722
2007-10-01 23:37:39 +00:00
jhb
243f1a073b MFC: Allow the ia32 resource limits to be set via loader tunables. 2007-10-01 20:13:49 +00:00
marius
bfe21aa400 MFC: sys/conf/files.sparc64 1.83; sys/conf/options.sparc64 1.24;
sys/dev/uart/uart_kbd_sun.c 1.10, 1.11 (partial), 1.13;
     sys/dev/uart/uart_kbd_sun.h 1.3; sys/sparc64/conf/NOTES 1.30

- In sunkbd_probe_keyboard() don't bother to determine the keyboard layout
  as we have no use for that info. Instead let this function return the
  keyboard ID and verify at its invocation in sunkbd_configure() that we're
  talking to a Sun type 4/5/6 keyboard, i.e. a keyboard supported by this
  driver.
- Add an option SUNKBD_EMULATE_ATKBD whose code is based on the respective
  code in ukbd(4) and like UKBD_EMULATE_ATSCANCODE causes this driver to
  emit AT keyboard/KB_101 compatible scan codes in K_RAW mode as assumed by
  kbdmux(4). Unlike UKBD_EMULATE_ATSCANCODE, SUNKBD_EMULATE_ATKBD also
  triggers the use of AT keyboard maps and thus allows to use the map files
  in share/syscons/keymaps with this driver at the cost of an additional
  translation (in ukbd(4) this just is the way of operation).
- Implement an option SUNKBD_DFLT_KEYMAP, which like the equivalent options
  of the other keyboard drivers allows to specify the default in-kernel
  keyboard map. For obvious reasons this made to only work when also using
  SUNKBD_EMULATE_ATKBD.
- Implement sunkbd_check(), sunkbd_check_char() and sunkbd_clear_state(),
  which are also required for interoperability with kbdmux(4).
- Implement K_CODE mode and FreeBSD keypad compose.
- As a minor hack define KBD_DFLT_KEYMAP also in the !SUNKBD_EMULATE_ATKBD
  case so we can obtain fkey_tab from <dev/kbd/kbdtables.h> rather than
  having to duplicate it and #ifdef some more code.
- Don't use the TX-buffer for writing the two command bytes for setting the
  keyboard LEDs as this consequently requires a hardware FIFO that is at
  least two bytes in depth, which the NMOS-variant of the Zilog SCCs doesn't
  have. Thus use an inlined version of uart_putc() to consecutively write
  the command bytes (a cleaner approach would be to do this via the soft
  interrupt handler but that variant wouldn't work while in ddb(4)). [1]
- Fix some minor style(9) bugs.

PR:		90316 [1]
2007-09-30 19:33:19 +00:00
marcus
67c6f3c74a Fix a bug that will cause a process that calls the VT_WAITACTIVE ioctl
to become unkillable when that process is sent a termination signal.  The
process will sit in waitvt looping in the kernel, and chewing up all
available CPU until the system is rebooted.

Note: this is not an MFC as this code no longer exists in HEAD.  However,
this is based on the same syscons fix which was just MFC'd after one week
in HEAD.

Reviewed by:	bde
2007-09-30 06:22:13 +00:00
marcus
916a3cb56f MFC: rev 1.452
Fix a bug that will cause a process that calls the VT_WAITACTIVE ioctl
to become unkillable when that process is sent a termination signal.  The
process will sit in waitvt looping in the kernel, and chewing up all
available CPU until the system is rebooted.

Submitted by:	Jilles Tjoelker <jilles@stack.nl>
Reviewed by:	bde
2007-09-30 06:16:20 +00:00
rpaulo
b7f21da0fd MFC r 1.67:
date: 2007/08/30 21:18:42;  author: njl;  state: Exp;  lines: +32 -7
  Evaluate _OSC on boot to indicate our OS capabilities to ACPI.  This is
  needed at least to convince the BIOS to give us access to CPU freq
  control on MacBooks.

Approved by:    njl (mentor)
2007-09-29 23:13:38 +00:00
maxim
65313cbfc7 MFC revs. 1.38, 1.39: need to reboot the system after tuning
softupdates on the root file system.
2007-09-29 16:31:44 +00:00
jhb
f92f6a31e3 Fix another nit in an earlier MFC so that we properly warn if we can't
read the multicast routing stats from a live kernel via sysctl(8).
2007-09-28 19:45:18 +00:00
jhb
f435e446f6 Correct a nit in earlier MFC: the carp stats routine does use sysctl. 2007-09-28 19:38:40 +00:00
maxim
c83514f128 o Update tcp sendcookie stats. HEAD has a different code and does
not have this bug.

Submitted by:	Igor Sysoev
Reviewed by:	silby
2007-09-28 17:39:45 +00:00
des
3beb7cb4f1 Add missing coretemp entry, unbreak LINT and tinderbox 2007-09-28 17:24:53 +00:00
gabor
b157d9f847 MFC rev1.5:
- Fix a declaration example
2007-09-28 11:10:37 +00:00
gabor
86db7f68ec MFC rev1.9:
- Remove references to unexisting man pages
2007-09-28 11:09:11 +00:00
des
6864233f0c MFC: coretemp(4) 2007-09-28 08:54:41 +00:00
des
f8fa33b281 MFC: ICH[678] support, resource allocation fixes 2007-09-28 08:46:10 +00:00