]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC some fixes to IPI_PREEMPT:
jhb [Mon, 8 Oct 2007 21:51:01 +0000 (21:51 +0000)]
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.

16 years agoLast delta confused shared code API in the fix, this
jfv [Sun, 7 Oct 2007 03:11:31 +0000 (03:11 +0000)]
Last delta confused shared code API in the fix, this
corrects it.

16 years agoMFC: 1.15; 1.16
marius [Sat, 6 Oct 2007 20:50:18 +0000 (20:50 +0000)]
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.

16 years ago- Adhere style(9) (don't use function calls in initializers, use uintXX_t
marius [Sat, 6 Oct 2007 20:34:14 +0000 (20:34 +0000)]
- Adhere style(9) (don't use function calls in initializers, use uintXX_t
  instead of u_intXX_t).
- Use FBSDID.

16 years agoCouple corrections on the MFC, first POLLING had a 7.0
jfv [Sat, 6 Oct 2007 19:36:35 +0000 (19:36 +0000)]
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.

16 years agoMFC:
scf [Sat, 6 Oct 2007 03:15:15 +0000 (03:15 +0000)]
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

16 years agoMFC of Intel driver version 6.6.6
jfv [Fri, 5 Oct 2007 22:49:08 +0000 (22:49 +0000)]
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.

16 years agoMFC: Handle CPUs with APIC IDs higher than 32.
jhb [Fri, 5 Oct 2007 15:22:37 +0000 (15:22 +0000)]
MFC: Handle CPUs with APIC IDs higher than 32.

16 years agoMFC: Use uintmax_t to pass around 64-bit quantities, including to printf().
obrien [Thu, 4 Oct 2007 18:27:45 +0000 (18:27 +0000)]
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.

16 years agoMFC if_re.c rev. 1.95 to RELENG_6.
yongari [Thu, 4 Oct 2007 11:28:25 +0000 (11:28 +0000)]
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.

16 years agoMFC: Updated mdoc (FreeBSD 6.2 added, FreeBSD 5.5 and 7.0 documented,
ru [Thu, 4 Oct 2007 04:56:41 +0000 (04:56 +0000)]
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]

16 years agoCorrect a buffer overflow in OpenSSL SSL_get_shared_ciphers().
simon [Wed, 3 Oct 2007 21:39:43 +0000 (21:39 +0000)]
Correct a buffer overflow in OpenSSL SSL_get_shared_ciphers().

16 years agoMFC: Always use an exclusive lock on the leaf vnode during an open() when
jhb [Wed, 3 Oct 2007 21:06:05 +0000 (21:06 +0000)]
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.

16 years agoMFC: Use rman_set_rid() to save the rid in new resources when they are
jhb [Wed, 3 Oct 2007 20:41:35 +0000 (20:41 +0000)]
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)

16 years agoMFC: 2006/07/28 commit achieving WARNS=3
obrien [Wed, 3 Oct 2007 19:56:17 +0000 (19:56 +0000)]
MFC: 2006/07/28 commit achieving WARNS=3
     Also fix nlist 'nl' should be terminated by a NULL entry.

16 years agoMFC: rev. 1.8's layout changes.
obrien [Wed, 3 Oct 2007 19:28:57 +0000 (19:28 +0000)]
MFC: rev. 1.8's layout changes.

16 years agoMFC: sync the mxge driver with HEAD, modulo some slight differences
gallatin [Tue, 2 Oct 2007 15:59:54 +0000 (15:59 +0000)]
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).

16 years agoMFC: Added FreeBSD/arm and FreeBSD 6.3. FreeBSD 5.5 and 7.0 are official.
ru [Tue, 2 Oct 2007 08:38:34 +0000 (08:38 +0000)]
MFC: Added FreeBSD/arm and FreeBSD 6.3.  FreeBSD 5.5 and 7.0 are official.

16 years agoMFC:
ru [Tue, 2 Oct 2007 08:17:29 +0000 (08:17 +0000)]
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.

16 years agoMFC: 1.32: If not compiled for debugging, redirect std{in,out,err}
ru [Tue, 2 Oct 2007 05:44:53 +0000 (05:44 +0000)]
MFC: 1.32: If not compiled for debugging, redirect std{in,out,err}
to /dev/null before becoming a daemon.

16 years agoPartial MFC: rev. 1.6
mtm [Mon, 1 Oct 2007 23:37:39 +0000 (23:37 +0000)]
Partial MFC: rev. 1.6
o Use the --detach option to kdc(8) instead of using the shell
  background operator '&'.

  PR: conf/102722

16 years agoMFC: Allow the ia32 resource limits to be set via loader tunables.
jhb [Mon, 1 Oct 2007 20:13:49 +0000 (20:13 +0000)]
MFC: Allow the ia32 resource limits to be set via loader tunables.

16 years agoMFC: sys/conf/files.sparc64 1.83; sys/conf/options.sparc64 1.24;
marius [Sun, 30 Sep 2007 19:33:19 +0000 (19:33 +0000)]
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]

16 years agoFix a bug that will cause a process that calls the VT_WAITACTIVE ioctl
marcus [Sun, 30 Sep 2007 06:22:13 +0000 (06:22 +0000)]
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

16 years agoMFC: rev 1.452
marcus [Sun, 30 Sep 2007 06:16:20 +0000 (06:16 +0000)]
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

16 years agoMFC r 1.67:
rpaulo [Sat, 29 Sep 2007 23:13:38 +0000 (23:13 +0000)]
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)

16 years agoMFC revs. 1.38, 1.39: need to reboot the system after tuning
maxim [Sat, 29 Sep 2007 16:31:44 +0000 (16:31 +0000)]
MFC revs. 1.38, 1.39: need to reboot the system after tuning
softupdates on the root file system.

16 years agoFix another nit in an earlier MFC so that we properly warn if we can't
jhb [Fri, 28 Sep 2007 19:45:18 +0000 (19:45 +0000)]
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).

16 years agoCorrect a nit in earlier MFC: the carp stats routine does use sysctl.
jhb [Fri, 28 Sep 2007 19:38:40 +0000 (19:38 +0000)]
Correct a nit in earlier MFC: the carp stats routine does use sysctl.

16 years agoo Update tcp sendcookie stats. HEAD has a different code and does
maxim [Fri, 28 Sep 2007 17:39:45 +0000 (17:39 +0000)]
o Update tcp sendcookie stats.  HEAD has a different code and does
not have this bug.

Submitted by: Igor Sysoev
Reviewed by: silby

16 years agoAdd missing coretemp entry, unbreak LINT and tinderbox
des [Fri, 28 Sep 2007 17:24:53 +0000 (17:24 +0000)]
Add missing coretemp entry, unbreak LINT and tinderbox

16 years agoMFC rev1.5:
gabor [Fri, 28 Sep 2007 11:10:37 +0000 (11:10 +0000)]
MFC rev1.5:

- Fix a declaration example

16 years agoMFC rev1.9:
gabor [Fri, 28 Sep 2007 11:09:11 +0000 (11:09 +0000)]
MFC rev1.9:

- Remove references to unexisting man pages

16 years agoMFC: coretemp(4)
des [Fri, 28 Sep 2007 08:54:41 +0000 (08:54 +0000)]
MFC: coretemp(4)

16 years agoMFC: ICH[678] support, resource allocation fixes
des [Fri, 28 Sep 2007 08:46:10 +0000 (08:46 +0000)]
MFC: ICH[678] support, resource allocation fixes

16 years agoMFC: whitespace changes from HEAD
des [Fri, 28 Sep 2007 08:43:54 +0000 (08:43 +0000)]
MFC: whitespace changes from HEAD

16 years agoMFC: synch with HEAD, minus whitespace changes.
des [Fri, 28 Sep 2007 08:42:04 +0000 (08:42 +0000)]
MFC: synch with HEAD, minus whitespace changes.

16 years agoMFC: remove confusing boot message, add feature bits
des [Fri, 28 Sep 2007 08:26:16 +0000 (08:26 +0000)]
MFC: remove confusing boot message, add feature bits

16 years agoMFC rev. 1.129,1.132
mav [Fri, 28 Sep 2007 07:33:01 +0000 (07:33 +0000)]
MFC rev. 1.129,1.132

Fix misspellings in comments.

16 years agoMFC: rev. 1.8
brueffer [Fri, 28 Sep 2007 07:10:36 +0000 (07:10 +0000)]
MFC: rev. 1.8

Fix typo.

16 years agoMFC: (1.6) childerr needs to be volatile.
des [Fri, 28 Sep 2007 07:04:35 +0000 (07:04 +0000)]
MFC: (1.6) childerr needs to be volatile.

PR: bin/85830

16 years agoMFC: Synch with HEAD.
des [Fri, 28 Sep 2007 06:35:14 +0000 (06:35 +0000)]
MFC: Synch with HEAD.

16 years agoMFC: (1.5) use sprintf() rather than (unportable) strlcpy().
des [Fri, 28 Sep 2007 06:34:22 +0000 (06:34 +0000)]
MFC: (1.5) use sprintf() rather than (unportable) strlcpy().
Also bobbit some unused variables.

16 years agoMFC:
jinmei [Fri, 28 Sep 2007 06:23:03 +0000 (06:23 +0000)]
MFC:
ensure the head entry of addrinfo chain has non-NULL ai_canonname to be
compliant with RFC3493.

PR: standards/114910
Approved by:   ume (mentor)
lib/libc/net/getaddrinfo.c: 1.86

16 years agoMFC: camcontrol(8) readcap.
bmah [Fri, 28 Sep 2007 05:08:34 +0000 (05:08 +0000)]
MFC:  camcontrol(8) readcap.

16 years agoMFCs
edwin [Fri, 28 Sep 2007 02:51:26 +0000 (02:51 +0000)]
MFCs

Dutch calendar
    More dates: Sint Maarten, Dierendag, Trinitatis
    Fix spelling: Carnaval
    Add more of the Royal Family.

Croation calendars:
    Update to calendar/calendars/hr_HR.ISO_8859-2/calendar.praznici
    with fixes and new dates.

PR:             conf/26658
Submitted by:   Josip Rodin <joy@gkvk.hr>

16 years agoMFC: Fix man(1) to allow .so to reference a compressed file
edwin [Fri, 28 Sep 2007 02:31:57 +0000 (02:31 +0000)]
MFC: Fix man(1) to allow .so to reference a compressed file

        Original PR description:

        man(1) can't handle compressed included files.

        Some ports will install with compressed manpages. man handles
        this by looking for the .gz version of a man source file.
        It is also common to include other files with the .so
        directive where commands or functions share a man page.
        Traditionally ports have had to handle this by either not
        compressing the manpages, or using the _MLINKS macro in the
        port makefile to create symlinks to the actual source file,
        rather than using .so versions. Notably, the current version
        of Xorg port breaks. See ports/113096 and ports/115845.

PR:             bin/115850
Submitted by:   Callum Gibson <callumgibson@optusnet.com.au>

16 years agoRemove the *_queue() variants of various sleepq and turnstile functions
jhb [Thu, 27 Sep 2007 20:24:56 +0000 (20:24 +0000)]
Remove the *_queue() variants of various sleepq and turnstile functions
and always require the queue to be specified to reduce diffs with HEAD.
These APIs are internal APIs only used to implement higher level primitives
such as locks and condition variables.

Approved by: alfred

16 years agoMFC some comment updates to account for multi-queue support missed earlier
jhb [Thu, 27 Sep 2007 18:44:16 +0000 (18:44 +0000)]
MFC some comment updates to account for multi-queue support missed earlier
as well as a few other changes (whitespace, style, etc.) to reduce diffs
with HEAD.

16 years ago- Remove some debugging nits in the MFC of rwlocks that looked for cases
jhb [Thu, 27 Sep 2007 18:39:18 +0000 (18:39 +0000)]
- Remove some debugging nits in the MFC of rwlocks that looked for cases
  where a reader blocked on a lock with no owner and just assert that it
  never happens like HEAD.
- Actually set td->td_tsqueue to the sub-queue of a turnstile that a
  thread is actually enqueued to.  Otherwise, the kernel would always
  think that threads were on the queue for exclusive (write) waiters
  (queue 0).  Thus, if the priority of a thread waiting on a read lock
  was adjusted while it was waiting it could result in corrupting the
  queue of waiting threads.

16 years agoMFC 1.167: Use a UMA zone to handle the turnstile objects rather than
jhb [Thu, 27 Sep 2007 18:23:44 +0000 (18:23 +0000)]
MFC 1.167: Use a UMA zone to handle the turnstile objects rather than
malloc(9).

16 years agoMake td_sqqueue a char and move it into a pre-existing "hole" from
jhb [Thu, 27 Sep 2007 18:12:25 +0000 (18:12 +0000)]
Make td_sqqueue a char and move it into a pre-existing "hole" from
alignment padding to restore the ABI of 'struct thread' in 6.x.

16 years ago- Restore the 'show sleepq' DDB command.
jhb [Thu, 27 Sep 2007 18:10:40 +0000 (18:10 +0000)]
- Restore the 'show sleepq' DDB command.
- Trim some extra includes.

16 years agoUse lock_init() and lock_destroy().
jhb [Thu, 27 Sep 2007 18:08:09 +0000 (18:08 +0000)]
Use lock_init() and lock_destroy().

16 years agoA few tweaks to reduce diffs with HEAD including using lock_init() and
jhb [Thu, 27 Sep 2007 18:06:49 +0000 (18:06 +0000)]
A few tweaks to reduce diffs with HEAD including using lock_init() and
lock_destroy() and adding a missing #include so that NO_ADAPTIVE_RWLOCKS
is honored.

16 years agoMFC: rev. 1.23: Fix the CPU usage display.
ru [Thu, 27 Sep 2007 06:35:27 +0000 (06:35 +0000)]
MFC: rev. 1.23: Fix the CPU usage display.

16 years agoMFC spelling correction.
kientzle [Thu, 27 Sep 2007 03:47:26 +0000 (03:47 +0000)]
MFC spelling correction.

16 years agoMFC 1.17: Make return values from archive_write_data()
kientzle [Thu, 27 Sep 2007 03:45:24 +0000 (03:45 +0000)]
MFC 1.17: Make return values from archive_write_data()
consistent whether you're writing to an archive or to disk.

16 years agoMFC 1.77: Support --posix as a synonym for --format=pax, for
kientzle [Thu, 27 Sep 2007 03:42:59 +0000 (03:42 +0000)]
MFC 1.77:  Support --posix as a synonym for --format=pax, for
GNU tar compatibility.

16 years agoMFC rev. 1.82-1.84
mav [Wed, 26 Sep 2007 19:15:14 +0000 (19:15 +0000)]
MFC rev. 1.82-1.84
Fix thread unsafe usage of global pkt_hdr variable.
Optimize ether and debug hooks determination.
Remove some dead code.

16 years agoMFC: Properly look for neighbor USB 1.x controllers and fix a memory leak.
jhb [Wed, 26 Sep 2007 17:33:18 +0000 (17:33 +0000)]
MFC: Properly look for neighbor USB 1.x controllers and fix a memory leak.

16 years agoMFC:
mtm [Wed, 26 Sep 2007 11:02:28 +0000 (11:02 +0000)]
MFC:
  Revision  Path
  1.82      src/etc/rc.d/Makefile
  1.16      src/etc/rc.d/lockd
  1.17      src/etc/rc.d/lockd
  1.18      src/etc/rc.d/lockd
  1.15      src/etc/rc.d/nfslocking
  1.16      src/etc/rc.d/statd
  1.17      src/etc/rc.d/statd

Split rc.d/nfslocking into two separate scripts: rc.d/lockd
and rc.d/statd. Keep rc.d/nfslocking for POLA reasons but do
not run it during system startup.

PR: conf/107316

  Revision  Path
  1.14      src/etc/rc.d/nfslocking

The precmd routine does not need to check whether the comman
should be "forced". If some pre-condition is not met, it should
fail as it normally does and rc.subr(8) will make the appropriate
decision. Incidentally, the previous behaviour had a bug where
the "force" flag was respected only when checking rc.conf(5) knobs.
The flag was ignored when verifying the rpcbind(8) dependency.

16 years agoMFC rev. 1.147
bz [Mon, 24 Sep 2007 13:39:06 +0000 (13:39 +0000)]
MFC rev. 1.147
  Fix a DIV0 in case a large value for fs_avgfilesize or fs_avgfpdir
  is given (with newfs or tunefs) and dirsize overflows.

  In case dirsize is <= 0 because of an overflow set maxcontigdirs
  to 0 so it will be 1 later. This is what would happen for large
  fs_avgfilesize. [1]

  Submitted by:                   pjd [1]

16 years agoMFC:
scf [Sat, 22 Sep 2007 02:46:13 +0000 (02:46 +0000)]
MFC:
Sync usage() with reality.

    src/usr.bin/locate/locate/locate.c: rev 1.16 -> 1.17

Approved by: wes

16 years agoMFC: flopen(3), expand_number(3), kld_isloaded(3)
obrien [Fri, 21 Sep 2007 21:23:04 +0000 (21:23 +0000)]
MFC: flopen(3), expand_number(3), kld_isloaded(3)

16 years agoMFC: rev. 1.4: consume flopen(3).
obrien [Fri, 21 Sep 2007 17:27:48 +0000 (17:27 +0000)]
MFC: rev. 1.4: consume flopen(3).

16 years agoMFC: consume kld_isloaded(3).
obrien [Fri, 21 Sep 2007 17:25:03 +0000 (17:25 +0000)]
MFC: consume kld_isloaded(3).

16 years agoMFC: 1.51
ambrisko [Fri, 21 Sep 2007 16:43:31 +0000 (16:43 +0000)]
MFC: 1.51
  Fix an incorrect PCI device id.  The current value conflicts with
  the mfi(4) LSI MegaSAS RAID card.  Looking at the Linux driver for the
  mpt(4) it should be 0x0062 and not 0x0060.  Tested with an mfi card
  of this device id.

Reviewed by: scottl

16 years agoBump for libutil(3) MFC's (and any others around this time).
obrien [Fri, 21 Sep 2007 15:33:38 +0000 (15:33 +0000)]
Bump for libutil(3) MFC's (and any others around this time).

16 years agoMFC: kld(3)
obrien [Fri, 21 Sep 2007 14:52:31 +0000 (14:52 +0000)]
MFC: kld(3)

16 years agostyle.Makefile(9)
obrien [Fri, 21 Sep 2007 14:49:38 +0000 (14:49 +0000)]
style.Makefile(9)

16 years agoMFC: flopen(3)
obrien [Fri, 21 Sep 2007 14:41:55 +0000 (14:41 +0000)]
MFC: flopen(3)

16 years agoLogically, this now first appeared in FreeBSD 6.3.
obrien [Fri, 21 Sep 2007 14:39:46 +0000 (14:39 +0000)]
Logically, this now first appeared in FreeBSD 6.3.

16 years agoMFC: refer to expand_number(3) and markup fixes
obrien [Fri, 21 Sep 2007 14:35:34 +0000 (14:35 +0000)]
MFC: refer to expand_number(3) and markup fixes

16 years agoMFC: expand_number(3)
obrien [Fri, 21 Sep 2007 14:35:02 +0000 (14:35 +0000)]
MFC: expand_number(3)

16 years agoDisable the module building of the linux bits on alpha and remove them
netchild [Thu, 20 Sep 2007 06:33:26 +0000 (06:33 +0000)]
Disable the module building of the linux bits on alpha and remove them
from the corresponding NOTES. [1]

There's no corresponding linux_base in the Ports Collection since years,
and no linux distribution which is up-to-date and suitable (security,
widespread, ...) for us. The only complain regarding linux & alpha
we got so far is that the linuxulator doesn't build anymore. This
complaint came from wilko -- the alhpa-part of re@ -- only. As the
alpha platform is dead (no support from the manufacturer / linux
distributions) and deprecated (removed in -current) it was decided to
disable the linux bits from the build instead of trying to fix the
problems on alpha.

The alpha parts in the source are not removed so far, in case there are
1-2 people which actually still make use of this and are interested to
use the linuxulator (and fix the problems). Additionally this prevents
regressions on i386/amd64 when removing the alpha bits in shared code
(the people which care about those code parts don't have enough time ATM
to do extensive testing). This decission may be revisited at a later
point in time.

Discussed with: wilko [1]

16 years agoMFC: extract.c:1.45
krion [Wed, 19 Sep 2007 08:41:27 +0000 (08:41 +0000)]
MFC: extract.c:1.45

  date: 2007/08/23 13:05:10;  author: krion;  state: Exp;  lines: +1 -1
  Fix pkg_add behaviour to preserve pathnames.

  PR:             bin/93915 bin/109134
  Submitted by:   Jason Heiss <heissj@yahoo-inc.com>, Constantin Stefanov<cstef@mail.ru>
  Approved by:    re@ (kensmith)
  MFC after:      7 days

16 years agoMFC:
ken [Tue, 18 Sep 2007 01:26:28 +0000 (01:26 +0000)]
MFC:
camcontrol/Makefile: rev 1.17
camcontrol.8: rev 1.44
camcontrol.c: rev 1.58

Add SCSI READ CAPACITY support to camcontrol.  The new 'readcap' subcommand
will automatically issue the 16 byte verison of read capacity if the device
in question is larger than 2TB.

There are also a number of output options here (last block, number of
blocks, human readable) that should meet most needs, and also aid in
scripting.

16 years agoMFC in revs 192-194 of the man page.
julian [Mon, 17 Sep 2007 23:59:54 +0000 (23:59 +0000)]
MFC in revs 192-194 of the man page.
The actual code has been in for a while. (Allow tablearg to be used with 'fwd'
and allow it to take an IP address as a value).

16 years agoMFC:
julian [Mon, 17 Sep 2007 17:50:49 +0000 (17:50 +0000)]
MFC:
  remove test that fails POLA.

16 years agoMake life with "makeoptions INSTALL_DEBUG" easier.
obrien [Mon, 17 Sep 2007 16:19:02 +0000 (16:19 +0000)]
Make life with "makeoptions INSTALL_DEBUG" easier.

16 years agoMFC rev. 1.70
mav [Sun, 16 Sep 2007 13:33:32 +0000 (13:33 +0000)]
MFC rev. 1.70
Fix typo which brokes VJ decompression
when VJC negotiated in only one direction.

16 years agoMFC Revision 1.61:
danger [Sun, 16 Sep 2007 10:53:04 +0000 (10:53 +0000)]
MFC Revision 1.61:

- Sweep the boot(8) man page after addition of boot.config(5).

16 years agoMFC the boot.config.5 manual page.
danger [Sun, 16 Sep 2007 10:47:52 +0000 (10:47 +0000)]
MFC the boot.config.5 manual page.

16 years agoEnable 'LD_LIBRARY_PATH=/foo:/bar ld -lfooz'
obrien [Sun, 16 Sep 2007 03:41:47 +0000 (03:41 +0000)]
Enable 'LD_LIBRARY_PATH=/foo:/bar ld -lfooz'

PR: 96481

16 years agoMFC: am7990.c 1.4; am79900.c 1.4; if_le_ledma.c 1.3; if_le_pci.c 1.5, 1.6;
marius [Sat, 15 Sep 2007 10:56:00 +0000 (10:56 +0000)]
MFC: am7990.c 1.4; am79900.c 1.4; if_le_ledma.c 1.3; if_le_pci.c 1.5, 1.6;
     lance.c 1.3, 1.4; lancevar.h 1.3

- Use our own callout instead of if_slowtimo() for driving lance_watchdog()
  in order to avoid races accessing if_timer.
- Use bus_get_dma_tag() to obtain the parent DMA tag so le(4) works on
  platforms requiring this.
- Remove BUS_DMA_WAITOK from bus_dma_tag_create() invocations as it's
  no valid flag there.
- For setting the port PCnet chips must be powered down or stopped and
  unlike documented may not take effect without an initialization. So
  don't invoke (*sc_mediachange) directly in lance_mediachange() but
  go through lance_init_locked(). It's suboptimal to impose this for
  all chips but given that besides the affected PCI bus front-end the
  only other front-end which supports media selection is and likely
  ever will be the 'ledma' front-end I see not enough reason to break
  the in-driver API for this (though one could argue both ways here).

16 years agoMFC: if_gem.c 1.37, 1.39, 1.40, 1.43; if_gemvar.h 1.12
marius [Sat, 15 Sep 2007 10:49:57 +0000 (10:49 +0000)]
MFC: if_gem.c 1.37, 1.39, 1.40, 1.43; if_gemvar.h 1.12

- Fix -Wundef warnings found when compiling i386 LINT, GENERIC and
  custom kernels.
- Use bus_get_dma_tag() so gem(4) works on platforms requiring it.
- Use the gem_tick() callout instead of if_slowtimo() for driving
  gem_watchdog() in order to avoid races accessing if_timer.
  While at it relax the watchdog a bit by reloading it in gem_tint()
  if there are still packets enqueued.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
- Fix inconsistencies in prototypes.

16 years agoMFC: if_hme.c 1.50, 1.51, 1.52, 1.53; if_hmevar.h 1.10
marius [Sat, 15 Sep 2007 10:45:34 +0000 (10:45 +0000)]
MFC: if_hme.c 1.50, 1.51, 1.52, 1.53; if_hmevar.h 1.10

o Revised MII support:
  - In hme_stop() mask all interrupts.
  - In hme_eint() print MIF register contents on MIF interrupts.
  - In hme_mifinit() don't bother to preserve the previous MIF config.
    This was mainly done in order to preserve the PHY select bit (external
    or internal PHY) but which only needs to be set as appropriate when
    reading from or writing to the desired PHY in hme_mii_{read,write}reg().
    Similarly don't bother to set the PHY select bit in hme_mii_statchg().
  - In hme_mii_{read,write}reg() ignore requests to PHYs other than the
    external and internal PHY one.
  - Move enabling/disabling the MII drivers of the external transceiver from
    hme_init_locked() and based on the sheer presence of an external one
    to hme_mifinit() and based on the currently selected media, defaulting
    to the internal transceiver when the media hasn't been set, yet.
    Invoke hme_mifinit() from the newly added hme_mediachange_locked() so
    the setting of the MII drivers is updated when changing media.
    These changes keep the MII bus from wedging (which manifests in the HME
    and the PHYs no longer being able to communicate with each other) when
    the PHY device drivers isolate the unused PHY in two-PHY configurations
    as present in f.e. Netra t1 100 while changing media, either from
    hme_init_locked() (see also below) or via ifconfig(8) (not with the
    RELENG_6 ifconfig(8) and miibus(4) though). They also allow for using
    both transceivers/PHYs.
  - In the newly added hme_mediachange_locked() also reset the PHYs in two-
    PHY configurations before invoking mii_mediachg(). This is required
    for successfully unisolating the previously unused PHY when switching
    between PHYs.
  - Now that changing media should no longer cause problems back out rev.
    1.27 and re-enable setting the current media in hme_init_locked() (see
    the commit message of rev. 1.23 for more info).
  These changes are roughly a merge of NetBSD hme.c rev. 1.32 - 1.35 (1.30
  was already fixed differently in our 1.36; 1.31 and 1.32 were wrong) with
  some parts reworked and things that don't make sense like setting the MII
  drivers and restoring the previous MIF and XIF settings in hme_mii_{read,
  write}reg() omitted.
o Use the hme_tick() callout instead of if_slowtimo() for driving
  hme_watchdog() in order to avoid races accessing if_timer.
o Use bus_get_dma_tag() so hme(4) works on platforms requiring it.
o Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
o Remove invalid BUS_DMA_ALLOCNOW when creating a tag which is used for
  a "static" memory allocation only.

16 years agoMFC: 1.20
marius [Sat, 15 Sep 2007 10:41:33 +0000 (10:41 +0000)]
MFC: 1.20

- Don't set MIIF_NOISOLATE so ukphy(4) can be used in configurations with
  multiple PHYs. In case some PHYs currently driven by ukphy(4) exhibit
  problems when isolating due to incomplete implementations or silicon bugs
  we'll need to add specific drivers for these. Looking at NetBSD and
  OpenBSD I don't expect problems here though (quite the contrary; we still
  seem to set MIIF_NOISOLATE without good reason in a bunch of PHY drivers).
- Fix a style(9) whitespace nit.

16 years agoMFC: if_dc.c 1.166 1.171, 1.189 (partial), 1.190, 1.192; if_dcreg.h 1.54
marius [Sat, 15 Sep 2007 10:00:51 +0000 (10:00 +0000)]
MFC: if_dc.c 1.166 1.171, 1.189 (partial), 1.190, 1.192; if_dcreg.h 1.54

- In detach method, move if_free() after bus_teardown_intr().
- Use our own callout (the dc_tick() callout uses varying periods
  depending on the NIC and isn't used at all with HomePNA links)
  instead of if_slowtimo() for driving dc_watchdog() in order to
  avoid races accessing if_timer.
- Use bus_get_dma_tag() so dc(4) works on platforms requiring it.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
- Fix a bug originally introduced in rev. 1.74; don't reloaded the
  watchdog timer in dc_txeof() in case there are still unhandled
  descriptors as dc_poll() invokes dc_poll() unconditionally.
  Otherwise this would result in the watchdog timer constantly being
  being reloaded and thus circumvent that the watchdog ever fires in
  the DEVICE_POLLING case.

16 years agoMFC: if_xl.c 1.192, 1.199, 1.206, 1.207, 1.208; if_xlreg.h 1.57, 1,58, 1.59
marius [Sat, 15 Sep 2007 09:57:01 +0000 (09:57 +0000)]
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.

16 years agoMFC: if_re.c 1.77, 1.86, 1.94
marius [Sat, 15 Sep 2007 09:52:19 +0000 (09:52 +0000)]
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).

16 years agosys/lock.h must precede sys/sx.h these days or the kernel won't build.
wilko [Sat, 15 Sep 2007 09:40:38 +0000 (09:40 +0000)]
sys/lock.h must precede sys/sx.h these days or the kernel won't build.

Looks like no-one builds Alpha kernels anymore?

16 years agoMFC: remove -T from getopt() spec and usage string.
philip [Sat, 15 Sep 2007 07:04:04 +0000 (07:04 +0000)]
MFC: remove -T from getopt() spec and usage string.

Forgotten by: des

16 years agoMFC
thompsa [Sat, 15 Sep 2007 01:11:26 +0000 (01:11 +0000)]
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.

16 years agoMFC: sys/dev/fdc/fdc.c 1.310-1.313
jkim [Fri, 14 Sep 2007 23:44:11 +0000 (23:44 +0000)]
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

17 years agoMFC: new kernel config option, VERBOSE_SYSINIT.
obrien [Fri, 14 Sep 2007 22:44:37 +0000 (22:44 +0000)]
MFC: new kernel config option, VERBOSE_SYSINIT.
(kern/init_main.c rev. 1.263)

17 years agoMassive MFC for all calendar files which have been updated in the
edwin [Fri, 14 Sep 2007 01:33:53 +0000 (01:33 +0000)]
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

17 years agoMFC:
brueffer [Thu, 13 Sep 2007 16:25:43 +0000 (16:25 +0000)]
MFC:

Autogenerate hardware notes for ral(4) and ural(4).

17 years agoMFC: rev. 1.320 + 1.324
brueffer [Thu, 13 Sep 2007 16:23:27 +0000 (16:23 +0000)]
MFC: rev. 1.320 + 1.324

- Sort wlan entries by driver name.
- Add information about hardware supported by ipw(4) and iwi(4).