]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoThis commit was generated by cvs2svn to compensate for changes in r159825,
obrien [Wed, 21 Jun 2006 09:28:00 +0000 (09:28 +0000)]
This commit was generated by cvs2svn to compensate for changes in r159825,
which included commits to RCS files with non-trunk default branches.

18 years agoFix segfault when '/etc/malloc.conf@ -> AJ' due to differnce between
obrien [Wed, 21 Jun 2006 09:28:00 +0000 (09:28 +0000)]
Fix segfault when '/etc/malloc.conf@ -> AJ' due to differnce between
calloc & malloc as agreed by vendor.  Also remove an unused variable.

18 years agoCommit the DUMMY stuff (printing messages for missing syscalls) for amd64 too.
netchild [Wed, 21 Jun 2006 08:45:40 +0000 (08:45 +0000)]
Commit the DUMMY stuff (printing messages for missing syscalls) for amd64 too.

Submitted by: rdivacky
Sponsored by: Google SoC 2006
Noticed by: jkim
Pointyhat to: netchild

18 years agoTrack interface department events and detach vlans from
yar [Wed, 21 Jun 2006 07:29:44 +0000 (07:29 +0000)]
Track interface department events and detach vlans from
departing trunk so that we don't get into trouble later
by dereferencing a stale pointer to dead trunk's things.

Prodded by: oleg
Sponsored by: RiNet (Cronyx Plus LLC)
MFC after: 1 week

18 years ago- First initialize ifnet, and then insert it into global
glebius [Wed, 21 Jun 2006 06:02:35 +0000 (06:02 +0000)]
- First initialize ifnet, and then insert it into global
  list.
- First remove from global list, then start destroying.

PR: kern/97679
Submitted by: Alex Lyashkov <shadow itt.net.ru>
Reviewed by: rwatson, brooks

18 years agoCompute physmem so we can print it correctly on boot.
imp [Tue, 20 Jun 2006 23:40:04 +0000 (23:40 +0000)]
Compute physmem so we can print it correctly on boot.
Slightly optimize while I'm here.

18 years agoFix a potential problem when mfi_get_log_state and only
ps [Tue, 20 Jun 2006 23:08:35 +0000 (23:08 +0000)]
Fix a potential problem when mfi_get_log_state and only
release a command if one was allocated.
Also release the command in mfi_shutdown.

18 years agoInstead of using scsi probes to do device discovery, use the firmware
ps [Tue, 20 Jun 2006 22:41:44 +0000 (22:41 +0000)]
Instead of using scsi probes to do device discovery, use the firmware
commands to grab the device listing.  This resolves issues using
multiple volumes, where each volume was actually internally pointing
to target 0.

18 years agoFix a typo when getting the log_state and set the flags on the
ps [Tue, 20 Jun 2006 22:17:54 +0000 (22:17 +0000)]
Fix a typo when getting the log_state and set the flags on the
command to signify it is being polled and expecting data to be dma'd
from the card.

18 years agoo Remove LK_REENABLE and LK_NOPAUSE lockinit(9) flags, add LK_NOSHARE.
maxim [Tue, 20 Jun 2006 21:41:14 +0000 (21:41 +0000)]
o Remove LK_REENABLE and LK_NOPAUSE lockinit(9) flags, add LK_NOSHARE.

MFC after: 1 week

18 years agoConditionally acquire Giant around VFS operations.
jhb [Tue, 20 Jun 2006 21:31:38 +0000 (21:31 +0000)]
Conditionally acquire Giant around VFS operations.

18 years agoAllow gif interfaces to be added as span ports, the user may want to send a
thompsa [Tue, 20 Jun 2006 21:28:18 +0000 (21:28 +0000)]
Allow gif interfaces to be added as span ports, the user may want to send a
copy of all packets to the other side of the world.

18 years agoCleanup dcmd firmware processing into a single function, mfi_dcmd_command
ps [Tue, 20 Jun 2006 21:06:05 +0000 (21:06 +0000)]
Cleanup dcmd firmware processing into a single function, mfi_dcmd_command
to avoid duplication and mistakes when setting up firmware commands
for submission.

Reviewed by: scottl

18 years agoAdd a new section in this file for functions that are only exported by the
jhb [Tue, 20 Jun 2006 20:59:55 +0000 (20:59 +0000)]
Add a new section in this file for functions that are only exported by the
linker for use in the linker class handlers.  Move linker_add_class(),
linker_file_unload(), linker_load_dependencies(), and linker_make_file()
into this section.

18 years ago- Push Giant down into linker_reference_module().
jhb [Tue, 20 Jun 2006 20:54:13 +0000 (20:54 +0000)]
- Push Giant down into linker_reference_module().
- Add a new function linker_release_module() as a more intuitive complement
  to linker_reference_module() that wraps linker_file_unload().
  linker_release_module() can either take the module name and version info
  passed to linker_reference_module() or it can accept the linker file
  object returned by linker_reference_module().

18 years agoChange get_pv_entry() such that the call to vm_page_alloc() specifies
alc [Tue, 20 Jun 2006 20:52:11 +0000 (20:52 +0000)]
Change get_pv_entry() such that the call to vm_page_alloc() specifies
VM_ALLOC_NORMAL instead of VM_ALLOC_SYSTEM when try is TRUE.  In other
words, when get_pv_entry() is permitted to fail, it no longer tries as
hard to allocate a page.

Change pmap_enter_quick_locked() to fail rather than wait if it is
unable to allocate a page table page.  This prevents a race between
pmap_enter_object() and the page daemon.  Specifically, an inactive
page that is a successor to the page that was given to
pmap_enter_quick_locked() might become a cache page while
pmap_enter_quick_locked() waits and later pmap_enter_object() maps
the cache page violating the invariant that cache pages are never
mapped.  Similarly, change
pmap_enter_quick_locked() to call pmap_try_insert_pv_entry() rather
than pmap_insert_entry().  Generally speaking,
pmap_enter_quick_locked() is used to create speculative mappings.  So,
it should not try hard to allocate memory if free memory is scarce.

Add an assertion that the object containing m_start is locked in
pmap_enter_object().  Remove a similar assertion from
pmap_enter_quick_locked() because that function no longer accesses the
containing object.

Remove a stale comment.

Reviewed by: ups@

18 years agoClean up some comments and device printf failures in mfi_get_log_state
ps [Tue, 20 Jun 2006 20:41:54 +0000 (20:41 +0000)]
Clean up some comments and device printf failures in mfi_get_log_state
and mfi_get_controller_info.

18 years agoregen after change to syscalls.master
netchild [Tue, 20 Jun 2006 20:41:29 +0000 (20:41 +0000)]
regen after change to syscalls.master

18 years agoMake linker_find_file_by_name() and linker_find_file_by_id() static to
jhb [Tue, 20 Jun 2006 20:41:15 +0000 (20:41 +0000)]
Make linker_find_file_by_name() and linker_find_file_by_id() static to
simplify linker locking.  The only external consumers now use
linker_file_foreach().

18 years agoSwitch to using the DUMMY infrastructure instead of UNIMPL for the new
netchild [Tue, 20 Jun 2006 20:38:44 +0000 (20:38 +0000)]
Switch to using the DUMMY infrastructure instead of UNIMPL for the new
syscalls. This way there will be a log message printed to the console
(this time for real).

Note: UNIMPL should be used for syscalls we do not implement ever, e.g.
syscalls to load linux kernel modules.

Submitted by: rdivacky
Sponsored by: Goole SoC 2006
P4 IDs: 99600, 99602

18 years agoAdd a missing case for the switch statement in arena_run_reg_dalloc(). [1]
jasone [Tue, 20 Jun 2006 20:38:25 +0000 (20:38 +0000)]
Add a missing case for the switch statement in arena_run_reg_dalloc(). [1]

Fix a leak in chunk_dealloc(). [2]

Reported by: [1] djam8193ah@hotmail.com,
[2] Ville-Pertti Keinonen <will@exomi.com>

18 years ago- Add a new linker_file_foreach() function that walks the list of linker
jhb [Tue, 20 Jun 2006 20:37:17 +0000 (20:37 +0000)]
- Add a new linker_file_foreach() function that walks the list of linker
  file objects calling a user-specified predicate function on each object.
  The iteration terminates either when the entire list has been iterated
  over or the predicate function returns a non-zero value.
  linker_file_foreach() returns the value returned by the last invocation
  of the predicate function.  It also accepts a void * context pointer that
  is passed to the predicate function as well.  Using an iterator function
  avoids exposing linker internals to the rest of the kernel making locking
  simpler.
- Use linker_file_foreach() instead of walking the list of linker files
  manually to lookup ndis files in ndis(4).
- Use linker_file_foreach() to implement linker_hwpmc_list_objects().

18 years agoMake linker_file_add_dependency() and linker_load_module() static since
jhb [Tue, 20 Jun 2006 20:18:42 +0000 (20:18 +0000)]
Make linker_file_add_dependency() and linker_load_module() static since
only the linker uses them.

18 years agoProbe the memory size of the board better. Look at the bus width,
imp [Tue, 20 Jun 2006 20:13:40 +0000 (20:13 +0000)]
Probe the memory size of the board better.  Look at the bus width,
number of banks, rows and columns the SDRAMC is programmed to access
to determine the RAM size for the board, rather than hard-wiring it to
be 32MB.  My company's board with 64MB now probes correctly, as does
the KB9202 with only 32MB.  This means that to detect the right memory
size, our boot loader must correctly initialize these values.  This is
a fairly safe assumption because the boot loader has to initialize
SDRAM already, and it isn't really possible to change this register
after we've accessed SDRAM.

18 years agoDon't check if malloc(M_WAITOK) returns NULL.
jhb [Tue, 20 Jun 2006 20:11:00 +0000 (20:11 +0000)]
Don't check if malloc(M_WAITOK) returns NULL.

18 years agoUse 'else' to remove another goto.
jhb [Tue, 20 Jun 2006 19:49:28 +0000 (19:49 +0000)]
Use 'else' to remove another goto.

18 years ago- Remove some useless variable initializations.
jhb [Tue, 20 Jun 2006 19:32:10 +0000 (19:32 +0000)]
- Remove some useless variable initializations.
- Make some conditional free()'s where the condition was always true
  unconditional.

18 years agoWe no longer need to disable interrupts in MD trap machinery
yar [Tue, 20 Jun 2006 12:44:21 +0000 (12:44 +0000)]
We no longer need to disable interrupts in MD trap machinery
when we're about to call kdb_trap() because the latter MI
function can disable interrupts by itself now.

Pointed out by: bde
X-MFC remark: depends on kern/subr_kdb.c#1.18
Sponsored by: RiNet (Cronyx Plus LLC)

18 years agoProperly cast the values of valsize (the size of the value passed in)
gnn [Tue, 20 Jun 2006 12:36:40 +0000 (12:36 +0000)]
Properly cast the values of valsize (the size of the value passed in)
in setsockopt so that they can be compared correctly against negative
values.  Passing in a negative value had a rather negative effect
on our socket code, making it impossible to open new sockets.

PR: 98858
Submitted by: James.Juran@baesystems.com
MFC after: 1 week

18 years ago+To create quality software, the ability to say no is usually far
phk [Tue, 20 Jun 2006 08:34:36 +0000 (08:34 +0000)]
+To create quality software, the ability to say no is usually far
+more important than the ability to say yes.
+               -- Michi Henning
+%

18 years agoAllocate a zero'ed syncache hashtable. mtx_init() tests the supplied
andre [Tue, 20 Jun 2006 08:11:30 +0000 (08:11 +0000)]
Allocate a zero'ed syncache hashtable.  mtx_init() tests the supplied
memory location for already existing/initialized mutexes.  With random
data in the memory location this fails (ie. after a soft reboot).

Reported by: brueffer, YAMAMOTO Shigeru
Submitted by: YAMAMOTO Shigeru <shigeru-at-iij.ad.jp>

18 years agoDocument that 'bad cksum 0' is expected on NICs with checksum off-loading.
obrien [Tue, 20 Jun 2006 05:04:05 +0000 (05:04 +0000)]
Document that 'bad cksum 0' is expected on NICs with checksum off-loading.

18 years agoipw statistics tool
sam [Tue, 20 Jun 2006 00:26:35 +0000 (00:26 +0000)]
ipw statistics tool

18 years agoAdd variable cpu_mxcsr_mask to save valid bits of mxcsr register.
davidxu [Mon, 19 Jun 2006 22:59:28 +0000 (22:59 +0000)]
Add variable cpu_mxcsr_mask to save valid bits of mxcsr register.

18 years agoMFi386:
davidxu [Mon, 19 Jun 2006 22:36:01 +0000 (22:36 +0000)]
MFi386:
Use the method described in IA-32 Intel Architecture Software
Developer's Manual chapter 11.6.6 to get valid mxcsr bits,
use the mxcsr mask to clear invalid bits passed by user code.

18 years agoImport interface groups from OpenBSD. This allows to group interfaces in
mlaier [Mon, 19 Jun 2006 22:20:45 +0000 (22:20 +0000)]
Import interface groups from OpenBSD.  This allows to group interfaces in
order to - for example - apply firewall rules to a whole group of
interfaces.  This is required for importing pf from OpenBSD 3.9

Obtained from: OpenBSD (with changes)
Discussed on: -net (back in April)

18 years ago- Move the gigabit NICs that use miibus into the miibus section to match
jhb [Mon, 19 Jun 2006 22:11:44 +0000 (22:11 +0000)]
- Move the gigabit NICs that use miibus into the miibus section to match
  GENERIC.
- Add bce(4) and bfe(4).

18 years agoThere is a plenty of arch's out there where sizeof(size_t) != sizeof(int).
yar [Mon, 19 Jun 2006 17:12:25 +0000 (17:12 +0000)]
There is a plenty of arch's out there where sizeof(size_t) != sizeof(int).
A field width in printf(3) must be int, so cast return value from strlen()
to the type.

Noticed by: Andrzej Tobola <ato iem pw edu pl>; tinderbox
Pointy hat to: yar
X-MFC with: the rest of the new asf code

18 years agoAdd a forgotten ","
matteo [Mon, 19 Jun 2006 16:31:58 +0000 (16:31 +0000)]
Add a forgotten ","

18 years agoAdd Hamlet eXagerate XURS232 USB-Serial adapter
matteo [Mon, 19 Jun 2006 16:30:35 +0000 (16:30 +0000)]
Add Hamlet eXagerate XURS232 USB-Serial adapter

PR: usb/98983
Submitted by: Massimo Lusetti
MFC after: 1 week

18 years agoBoji Tony Kannanthanam no longer supports this driver, Achim Leubner
brueffer [Mon, 19 Jun 2006 15:22:34 +0000 (15:22 +0000)]
Boji Tony Kannanthanam no longer supports this driver, Achim Leubner
however still does.  Confirmed by email contact with both of them.

MFC after: 3 days

18 years agoWhen we receive an out-of-window SYN for an "ESTABLISHED" connection,
dwmalone [Mon, 19 Jun 2006 12:33:52 +0000 (12:33 +0000)]
When we receive an out-of-window SYN for an "ESTABLISHED" connection,
ACK the SYN as required by RFC793, rather than ignoring it. NetBSD
have had a similar change since 1999.

PR: 93236
Submitted by: Grant Edwards <grante@visi.com>
MFC after: 1 month

18 years agoFix type casts so that we get at the right response queue.
sos [Mon, 19 Jun 2006 11:47:57 +0000 (11:47 +0000)]
Fix type casts so that we get at the right response queue.

Submitted by: glebius+ru

18 years agoTrival whitespace change.
obrien [Mon, 19 Jun 2006 11:30:36 +0000 (11:30 +0000)]
Trival whitespace change.

18 years agoUpdate for the 'file' 4.17 import.
obrien [Mon, 19 Jun 2006 08:10:23 +0000 (08:10 +0000)]
Update for the 'file' 4.17 import.

18 years agoStyle fix, use low-case.
davidxu [Mon, 19 Jun 2006 07:55:29 +0000 (07:55 +0000)]
Style fix, use low-case.

18 years agoUpdate for the 'file' 4.17 import.
obrien [Mon, 19 Jun 2006 07:53:49 +0000 (07:53 +0000)]
Update for the 'file' 4.17 import.

18 years agoVirgin import of Christos Zoulas's FILE 4.17.
obrien [Mon, 19 Jun 2006 07:52:15 +0000 (07:52 +0000)]
Virgin import of Christos Zoulas's FILE 4.17.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r159764,
obrien [Mon, 19 Jun 2006 07:52:15 +0000 (07:52 +0000)]
This commit was generated by cvs2svn to compensate for changes in r159764,
which included commits to RCS files with non-trunk default branches.

18 years agoClear bit 22 in MSR IA32_MISC_ENABLE, according to Intel document,
davidxu [Mon, 19 Jun 2006 07:51:47 +0000 (07:51 +0000)]
Clear bit 22 in MSR IA32_MISC_ENABLE, according to Intel document,
when the bit 22 is set to 1, CPUID with EAX=0 returns a maximum
value in EAX[7..0] of 3, when set to 0(default), CPUID with EAX=0
returns the number corresponding to the maximum standard function
supported. On my machine, BIOS sets the bit to 1 to make it to be
compatible with old OS, this causes dual-core Pentium-D (two
physical cores) to be identified as hyperthreading (two logical
cores) by function mp_topology().

18 years agoRemove two debugging printfs
ps [Mon, 19 Jun 2006 05:35:56 +0000 (05:35 +0000)]
Remove two debugging printfs

18 years agoVarious wording nits (hopefully resulting in net improvements) to the
bmah [Mon, 19 Jun 2006 02:55:27 +0000 (02:55 +0000)]
Various wording nits (hopefully resulting in net improvements) to the
main kernel section.

18 years agoFix spelling mistake in comment.
thompsa [Mon, 19 Jun 2006 02:25:11 +0000 (02:25 +0000)]
Fix spelling mistake in comment.

18 years agoMake sure the stack is properly aligned.
cognet [Sun, 18 Jun 2006 22:46:30 +0000 (22:46 +0000)]
Make sure the stack is properly aligned.
Enable the MMU when relocating as well, and use write-through cache.

18 years ago- Fail with an understandable error message if we cannot detect the
simon [Sun, 18 Jun 2006 22:02:22 +0000 (22:02 +0000)]
- Fail with an understandable error message if we cannot detect the
  sector size, instead of later failing with an error about /boot/mbr
  not being a multiple of the sector size (since we end up with an
  assumed sector size of MAX_SEC_SIZE * 2).
- We query the sector size via an IOCTL anyway, so if that succeeds
  use that instead of probing for it via read(2) calls.  This fixes
  the problem with fdisk failing to operate on at least graid3 and
  md(4) devices on kernels with src/sys/geom/geom_dev.c before
  rev. 1.90, due to fdisk failing to detect the sector size.
- When detecting the root device allow "/" characters in it, which
  happens with e.g. gmirror devices.

Reviewed by: cperciva
MFC after: 1 week

18 years agoIn g_dev_strategy(), when failing an IO request with EINVAL due to
simon [Sun, 18 Jun 2006 22:01:15 +0000 (22:01 +0000)]
In g_dev_strategy(), when failing an IO request with EINVAL due to
offset or request size which is not a multiple of the sector size, make
sure that the bio is set to indicate that no data has actually been
transferred.

The result of this is that the file offset is no longer incremented for
these requests.  The fact that the file offset was incremented broke
fdisk(8)'s probing of sector size for non-512 byte sector sizes.

Reviewed by: phk, cperciva
Submitted by: mdodd
MFC after: 2 weeks

18 years agoMinor tightening up of release notes:
bmah [Sun, 18 Jun 2006 21:32:26 +0000 (21:32 +0000)]
Minor tightening up of release notes:

Delete two release notes related to the kern.elf*.can_exec_dyn that
seemed to cancel each other out.

Consolidate two notes related to BPF JIT.

Delete note about fixing CHECKSUM.MD5 bug; no released versions of
FreeBSD shipped with it.

18 years agoPut several notes in the right place: Move an arp(8) note from kernel
bmah [Sun, 18 Jun 2006 21:13:28 +0000 (21:13 +0000)]
Put several notes in the right place:  Move an arp(8) note from kernel
to userland.  Move all of the items in the Kernel contrib section to
the top-level contrib section.

All of the moved items are unchanged with respect to their actual
contents.

18 years agoWhen retrieving SO_ERROR via getsockopt(), hold the socket lock around
rwatson [Sun, 18 Jun 2006 19:02:49 +0000 (19:02 +0000)]
When retrieving SO_ERROR via getsockopt(), hold the socket lock around
the retrieval and replacement with 0.

MFC after: 1 week

18 years agoDocument support for the Aceeca Mez1000 RDA.
netchild [Sun, 18 Jun 2006 17:56:37 +0000 (17:56 +0000)]
Document support for the Aceeca Mez1000 RDA.

18 years agoAdd support for the Aceeca Mez1000 RDA.
netchild [Sun, 18 Jun 2006 17:55:29 +0000 (17:55 +0000)]
Add support for the Aceeca Mez1000 RDA.

PR: 82839
Submitted by: Mike Durian <durian@shadetreesoftware.com>

18 years agoAdd support for:
netchild [Sun, 18 Jun 2006 17:54:33 +0000 (17:54 +0000)]
Add support for:
 - Curitel PC5740 Wireless Modem (Verizon's PCMCIA card)
 - Sierra MC5720 Wireless Modem (Built in to Thinkpad X60s)

PR: 98908
Submitted by: Michael Collette <metrol@metrol.net>

18 years agoWe just have one generic sound driver, reflect this.
brueffer [Sun, 18 Jun 2006 17:53:04 +0000 (17:53 +0000)]
We just have one generic sound driver, reflect this.

MFC after: 3 days

18 years agoRemove the insistance on having a device.hints. This was a seat belt
imp [Sun, 18 Jun 2006 17:48:45 +0000 (17:48 +0000)]
Remove the insistance on having a device.hints.  This was a seat belt
for those upgrading from 4.x -> 5.x.  It is therefore no longer
necessary because it is installed on 5.x and 6.x and one has to
upgrade from 6.x -> current, or at the very least 5.x (although not
supported, it can be made to work).

18 years agoo We only have one generic audio driver, reflect this (1)
brueffer [Sun, 18 Jun 2006 17:48:08 +0000 (17:48 +0000)]
o We only have one generic audio driver, reflect this (1)
o Mention the author of the driver
o Minor mdoc improvement

Discussed with: netchild (1)

18 years agoAdd support for:
netchild [Sun, 18 Jun 2006 17:46:40 +0000 (17:46 +0000)]
Add support for:
 - Curitel PC5740 Wireless Modem (Verizon's PCMCIA card)
 - Sierra MC5720 Wireless Modem (Built in to Thinkpad X60s)

Bump the date in the uscanner man page for the update some minutes ago.

18 years agoDon't descend into ${MACHINE} on the arm platforms.
imp [Sun, 18 Jun 2006 17:44:40 +0000 (17:44 +0000)]
Don't descend into ${MACHINE} on the arm platforms.

18 years agoAdd support for:
netchild [Sun, 18 Jun 2006 17:43:38 +0000 (17:43 +0000)]
Add support for:
 - Curitel PC5740 Wireless Modem (Verizon's PCMCIA card)
 - Sierra MC5720 Wireless Modem (Built in to Thinkpad X60s)

The scanner in the PR is already supported.

PR: 98908
Submitted by: Michael Collette <metrol@metrol.net>

18 years agoAdd Epson Perfection 1270 scanner. All other scanners in the PR are already
netchild [Sun, 18 Jun 2006 17:29:16 +0000 (17:29 +0000)]
Add Epson Perfection 1270 scanner. All other scanners in the PR are already
detected, but with a different name.

PR: 98106
Submitted by: Lars Engels <lars.engels@0x20.net>

18 years agoWhen attaching an Xbox 360 gamepad a computer, the LED on the gamepad
netchild [Sun, 18 Jun 2006 17:18:17 +0000 (17:18 +0000)]
When attaching an Xbox 360 gamepad a computer, the LED on the gamepad
blinks by default. When the operating system (read: normally an Xbox
360) initializes the gamepad, the LED stops blinking.

Change our uhid code to do the same.

PR: 97169
Submitted by: Ed Schouten <ed@fxq.nl>

18 years ago2 spelling fixes...
netchild [Sun, 18 Jun 2006 17:02:21 +0000 (17:02 +0000)]
2 spelling fixes...

Noticed by: John E Hein <jhein@timing.com>

18 years agoNew release note: COMPAT_43 removed from GENERIC.
bmah [Sun, 18 Jun 2006 16:36:51 +0000 (16:36 +0000)]
New release note:  COMPAT_43 removed from GENERIC.

Updated release note:  MPSAFE-ness of NFS includes the client code.

18 years agoo sort the HARDWARE list somewhat
brueffer [Sun, 18 Jun 2006 14:45:28 +0000 (14:45 +0000)]
o sort the HARDWARE list somewhat
o mention ATA and SATA support
o mdoc improvements

MFC after: 3 days

18 years agoo Remove FILES section (uninteresting for users)
brueffer [Sun, 18 Jun 2006 14:37:48 +0000 (14:37 +0000)]
o Remove FILES section (uninteresting for users)
o Xref asr(4)

MFC after: 3 days

18 years agoRemove T/TCP RFC1644 Connection Count comparison macros. They are no longer
andre [Sun, 18 Jun 2006 14:24:12 +0000 (14:24 +0000)]
Remove T/TCP RFC1644 Connection Count comparison macros.  They are no longer
used and needed.

Sponsored by:   TCP/IP Optimization Fundraise 2005

18 years ago- Rename hw.snd.unit to hw.snd.default_unit to make the purpose more obvious.
netchild [Sun, 18 Jun 2006 14:14:41 +0000 (14:14 +0000)]
- Rename hw.snd.unit to hw.snd.default_unit to make the purpose more obvious.
- Enable 4 automatic vchan's by default.
- Add some comments which provide ides/questions for improvement.
- Prefix some temporary sysctl's with an underscore to denote that it is not
  an official API but a workaround until the real solution is implemented.

18 years agoo Capitalization fixes
brueffer [Sun, 18 Jun 2006 14:12:27 +0000 (14:12 +0000)]
o Capitalization fixes
o Remove the outdated FILES section

MFC after: 3 days

18 years agoAdd MLINKS:
brueffer [Sun, 18 Jun 2006 14:08:20 +0000 (14:08 +0000)]
Add MLINKS:

ixgb.4 -> if_ixgb.4
mxge.4 -> if_mxge.4

18 years ago- xref linsysfs
netchild [Sun, 18 Jun 2006 13:51:39 +0000 (13:51 +0000)]
- xref linsysfs
- improve the ldconfig part
- tell about pitfalls with the osrelease sysctl

18 years agoAlpha is gone, no need to keep them.
netchild [Sun, 18 Jun 2006 13:44:26 +0000 (13:44 +0000)]
Alpha is gone, no need to keep them.

18 years agoDo not access syncache entry before it was allocated for the TF_NOOPT case
andre [Sun, 18 Jun 2006 13:03:42 +0000 (13:03 +0000)]
Do not access syncache entry before it was allocated for the TF_NOOPT case
in syncache_add().

Found by: Coverity Prevent
CID: 1473

18 years agoAdd a funny sysctl: debug.kdb.trap_code .
yar [Sun, 18 Jun 2006 12:27:59 +0000 (12:27 +0000)]
Add a funny sysctl: debug.kdb.trap_code .
It is similar to debug.kdb.trap, except for it tries to cause a page fault
via a call to an invalid pointer.  This can highlight differences between
a fault on data access vs. a fault on code call some CPUs might have.

This appeared as a test for a work \
Sponsored by: RiNet (Cronyx Plus LLC)

18 years agoMove all syncache related structures to tcp_syncache.c. They are only used
andre [Sun, 18 Jun 2006 12:26:11 +0000 (12:26 +0000)]
Move all syncache related structures to tcp_syncache.c.  They are only used
there.

This unbreaks userland programs that include tcp_var.h.

Discussed with: rwatson

18 years agoFix style while I'm here.
yar [Sun, 18 Jun 2006 12:13:49 +0000 (12:13 +0000)]
Fix style while I'm here.

18 years agoThe i386 "call" instruction works as follows: it pushes
yar [Sun, 18 Jun 2006 12:07:00 +0000 (12:07 +0000)]
The i386 "call" instruction works as follows: it pushes
the return address on the stack and only then "dereferences" %pc.
Therefore, in the case of a call to an invalid address, we arrive
to the trap handler with the invalid value in tf_eip.  This used
to prevent db_backtrace() from assigning the most recent and interesting
frame on the stack to the right spot in the right function, from
which the invalid call was attempted.

Try to detect and work around that by recovering the return address
from the stack.

The work-around requires the fault address be passed to db_backtrace().
Smuggle it as tf_err.

MFC after: 1 month
Sponsored by: RiNet (Cronyx Plus LLC)

18 years agoRemove double lock acquisition in syncookie_lookup() which came from last
andre [Sun, 18 Jun 2006 11:48:03 +0000 (11:48 +0000)]
Remove double lock acquisition in syncookie_lookup() which came from last
minute conversions to macros.

Pointy hat to: andre

18 years ago"clean" of <bsd.prog.mk> no longer removes a.out, Errs,
yar [Sun, 18 Jun 2006 11:26:17 +0000 (11:26 +0000)]
"clean" of <bsd.prog.mk> no longer removes a.out, Errs,
errs, mklog, and ${PROG}.core .

MFC after: 1 week

18 years agoGive a major overhaul to asf(8).
yar [Sun, 18 Jun 2006 11:14:40 +0000 (11:14 +0000)]
Give a major overhaul to asf(8).

The improvements are:

- can get the kld info from core files via kvm(3);
- can use kldstat(2) directly, which is a piece of cake;
- can use .symbols or whatever, which allows for use by
  non-developers when reporting system crashes -- now asf(8)
  can be mentioned in the handbook at last;
- speed (no more double fts(3) per loaded module);
- various bugs fixed.

At the same time, the new asf(8) should stay compatible with
the old one, bar bugs.  Perhaps some defaults may be changed
later to match today's state of affairs.

Reviewed by: grog
MFC after: 1 month
Sponsored by: RiNet (Cronyx Plus LLC)

18 years agoo Convert to our new SYNOPSIS layout
brueffer [Sun, 18 Jun 2006 09:53:00 +0000 (09:53 +0000)]
o Convert to our new SYNOPSIS layout
o Add "device scbus/pci/etc" where needed for consistency

MFC after: 3 days

18 years agoCorrect date for the previous commit.
brueffer [Sun, 18 Jun 2006 07:33:51 +0000 (07:33 +0000)]
Correct date for the previous commit.

18 years agoUnconditionally enable ppc(4) and puc(4).
marcel [Sun, 18 Jun 2006 05:05:46 +0000 (05:05 +0000)]
Unconditionally enable ppc(4) and puc(4).

18 years agoMake this usable for all platforms.
marcel [Sun, 18 Jun 2006 05:04:42 +0000 (05:04 +0000)]
Make this usable for all platforms.

18 years agoNew release notes: SCHED_CORE, snd_envy24(4), better traceroute(8)
bmah [Sun, 18 Jun 2006 04:48:11 +0000 (04:48 +0000)]
New release notes:  SCHED_CORE, snd_envy24(4), better traceroute(8)
ICMP unreachable decoding, Linux emulation now FC4 (+MFC).

MFCs noted:  ipmi(4), cm(4) MPSAFE, nve(4) ALTQ, sk(4) MPSAFE,

18 years agocomment out twi for now: no iicbus in KB920X: it breaks booting
imp [Sat, 17 Jun 2006 23:34:59 +0000 (23:34 +0000)]
comment out twi for now: no iicbus in KB920X: it breaks booting

18 years agoCarefully note the RMII bit in the config register at attach time.
imp [Sat, 17 Jun 2006 23:24:35 +0000 (23:24 +0000)]
Carefully note the RMII bit in the config register at attach time.
The boot loader is supposed to leave this bit set to the right value
for the board.  If this bit was set at attach time, use it to init the
config register correctly.

Note: this means the boot loader has to properly initialize it.

18 years agoimprove reporting of clocks
imp [Sat, 17 Jun 2006 23:22:10 +0000 (23:22 +0000)]
improve reporting of clocks

18 years agoRemove sbinsertoob(), sbinsertoob_locked(). They violate (and have
rwatson [Sat, 17 Jun 2006 22:48:34 +0000 (22:48 +0000)]
Remove sbinsertoob(), sbinsertoob_locked().  They violate (and have
basically always violated) invariannts of soreceive(), which assume
that the first mbuf pointer in a receive socket buffer can't change
while the SB_LOCK sleepable lock is held on the socket buffer,
which is precisely what these functions do.  No current protocols
invoke these functions, and removing them will help discourage them
from ever being used.  I should have removed them years ago, but
lost track of it.

MFC after: 1 week
Prodded almost by accident by: peter

18 years agoPrevent 'mutex not owned' panic on boot if INVARIANTS is in the kernel. This
rink [Sat, 17 Jun 2006 20:10:32 +0000 (20:10 +0000)]
Prevent 'mutex not owned' panic on boot if INVARIANTS is in the kernel. This
makes the GENERIC kernel boot on ppc.

Reviewed by: grehan
Approved by: imp (mentor)
MFC after: 1 week

dCVS: ----------------------------------------------------------------------

18 years ago- Bring the hardware list up to date
brueffer [Sat, 17 Jun 2006 18:45:53 +0000 (18:45 +0000)]
- Bring the hardware list up to date
- Convert to our standard SYNOPSIS layout
- Remove the kld from FILES, it's now mentioned in the SYNOPSIS
- Remove useless .Pp call at eof

MFC after: 3 days

18 years agoCorrect the names or some Adaptec and ICP devices, verified by the
brueffer [Sat, 17 Jun 2006 18:42:26 +0000 (18:42 +0000)]
Correct the names or some Adaptec and ICP devices, verified by the
respective websites.

Reviewed by: scottl
Approved by: rwatson (mentor)
MFC after: 5 days