]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoAdd ARP statistics to the kernel and netstat.
gnn [Thu, 3 Sep 2009 21:10:57 +0000 (21:10 +0000)]
Add ARP statistics to the kernel and netstat.

New counters now exist for:
requests sent
replies sent
requests received
replies received
packets received
total packets dropped due to no ARP entry
entrys timed out
Duplicate IPs seen

The new statistics are seen in the netstat command
when it is given the -s command line switch.

MFC after: 2 weeks
In collaboration with: bz

14 years agoRound maxio for ATI SB600 to 64K.
mav [Thu, 3 Sep 2009 19:02:17 +0000 (19:02 +0000)]
Round maxio for ATI SB600 to 64K.

Submitted by: scottl@

14 years agoAdd lv_LV
ache [Thu, 3 Sep 2009 17:37:23 +0000 (17:37 +0000)]
Add lv_LV

14 years agoActually, stable/8 is what was created...
imp [Thu, 3 Sep 2009 17:13:54 +0000 (17:13 +0000)]
Actually, stable/8 is what was created...

14 years agoAdd lv_LV, move lt_LT to common part
ache [Thu, 3 Sep 2009 17:12:45 +0000 (17:12 +0000)]
Add lv_LV, move lt_LT to common part

14 years agoTime for house-cleaning:
imp [Thu, 3 Sep 2009 17:04:42 +0000 (17:04 +0000)]
Time for house-cleaning:
o remove all entries before RELENG_7 was branched, as is tradition[*].
o Update examples...  nobody cares about 5.x upgrades.
o minor format tweaking in a few places.
o update copyright (although at best I hold an editors copyright these days).
o Remove giving people permission to buy me beer.  I don't do enough for
  this document for that anymore...

14 years agoAdd lv_LV, move lt_LT to common part
ache [Thu, 3 Sep 2009 16:53:11 +0000 (16:53 +0000)]
Add lv_LV, move lt_LT to common part

14 years agoDo the first step in removing lukemftpd from the base system. Disconnect
remko [Thu, 3 Sep 2009 16:34:20 +0000 (16:34 +0000)]
Do the first step in removing lukemftpd from the base system. Disconnect
it from the build.

If you are using the FTP daemon, please consider using the port ftp/tnftpd
which is the same FTP server, but newer and might have more/better
functionality.

This results in us providing only one ftp daemon by default.

Reviewed by: bz
Approved by: imp (mentor, implicit)
MFC after: 3 days
Silence from: obrien

14 years agoExpose the TF_REVERSE flag to the console driver.
ed [Thu, 3 Sep 2009 16:31:11 +0000 (16:31 +0000)]
Expose the TF_REVERSE flag to the console driver.

Right now libteken processes TF_REVERSE internally and returns the
toggled colors to the console driver. This isn't entirely correct. This
means that the bold flag is always processed by the foreground color,
while reversing should be done after the foreground color has been set
to a brighter version by the bold flag.

This is no problem with the syscons driver, because with VGA it only
supports 16 foreground and 8 background colors. My WIP console driver
reconfigures the graphics hardware to disable the blink functionality
and uses 16 foreground and 16 background colors. This means that this
driver will handle the TF_REVERSE flag a little different from what
syscons does right now.

14 years agocorrect timeout for doing NOL processing; need a ticks-relative value
sam [Thu, 3 Sep 2009 16:29:02 +0000 (16:29 +0000)]
correct timeout for doing NOL processing; need a ticks-relative value

Obtained from: Marvell
MFC after: 3 days

14 years agoAdd la_LN.ISO8859-13 and lv_LV
ache [Thu, 3 Sep 2009 16:25:25 +0000 (16:25 +0000)]
Add la_LN.ISO8859-13 and lv_LV

14 years agoon transition to SLEEP state mark the station in power save, not awake
sam [Thu, 3 Sep 2009 16:24:21 +0000 (16:24 +0000)]
on transition to SLEEP state mark the station in power save, not awake

MFC after: 3 days

14 years agoAdd intermediate states for attaching and detaching that will be
attilio [Thu, 3 Sep 2009 13:40:41 +0000 (13:40 +0000)]
Add intermediate states for attaching and detaching that will be
reused by the enhached newbus locking once it is checked in.
This change can be easilly MFCed to STABLE_8 at the appropriate moment.

Reviewed by: jhb, scottl
Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>

14 years agoATI SB600 can't handle 256 sectors transfers with FPDMA (NCQ).
mav [Thu, 3 Sep 2009 12:37:17 +0000 (12:37 +0000)]
ATI SB600 can't handle 256 sectors transfers with FPDMA (NCQ).

MFC after: 3 days

14 years agoDocument the need for a cast when passing a char to a ctype function.
des [Thu, 3 Sep 2009 10:06:37 +0000 (10:06 +0000)]
Document the need for a cast when passing a char to a ctype function.

MFC after: 2 weeks

14 years agoMove libteken out of the syscons directory.
ed [Thu, 3 Sep 2009 09:33:57 +0000 (09:33 +0000)]
Move libteken out of the syscons directory.

I initially committed libteken to sys/dev/syscons/teken, but now that
I'm working on a console driver myself, I noticed this was not a good
decision. Move it to sys/teken to make it easier for other drivers to
use a terminal emulator.

Also list teken.c in sys/conf/files, instead of listing it in all the
files.arch files separately.

14 years agoFix regression introduced in r196712 - the 'name' string needs
trasz [Wed, 2 Sep 2009 20:50:39 +0000 (20:50 +0000)]
Fix regression introduced in r196712 - the 'name' string needs
to be rewritten for each file we want to check ACL on.  Without
this change, ls(1) would check only the ACL on the first file
to list.

14 years agoFix some bugs related to adaptive spinning:
attilio [Wed, 2 Sep 2009 17:33:51 +0000 (17:33 +0000)]
Fix some bugs related to adaptive spinning:

In the lockmgr support:
- GIANT_RESTORE() is just called when the sleep finishes, so the current
  code can ends up into a giant unlock problem.  Fix it by appropriately
  call GIANT_RESTORE() when needed.  Note that this is not exactly ideal
  because for any interation of the adaptive spinning we drop and restore
  Giant, but the overhead should be not a factor.
- In the lock held in exclusive mode case, after the adaptive spinning is
  brought to completition, we should just retry to acquire the lock
  instead to fallthrough. Fix that.
- Fix a style nit

In the sx support:
- Call GIANT_SAVE() before than looping. This saves some overhead because
  in the current code GIANT_SAVE() is called several times.

Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>

14 years agoFix confusing comments about default PAT entries.
jkim [Wed, 2 Sep 2009 16:47:10 +0000 (16:47 +0000)]
Fix confusing comments about default PAT entries.

14 years ago- Work around ACPI mode transition problem for recent NVIDIA 9400M chipset
jkim [Wed, 2 Sep 2009 16:02:48 +0000 (16:02 +0000)]
- Work around ACPI mode transition problem for recent NVIDIA 9400M chipset
based Intel Macs.  Since r189055, these platforms started freezing when
ACPI is being initialized for unknown reason.  For these platforms, we just
use the old PAT layout.  Note this change is not enough to boot fully on
these platforms because of other problems but it makes debugging possible.
Note MacBook5,2 may be affected as well but it was not added here because
of lack of hardware to test.
- Initialize PAT MSR fully instead of reading and modifying it for safety.

Reported by: rpaulo, hps, Eygene Ryabinkin (rea-fbsd at codelabs dot ru)
Reviewed by: jhb

14 years agoRemove BSD.{local,x11,x11-4}.dist mtree files as they're either obsolete or
flz [Wed, 2 Sep 2009 14:56:23 +0000 (14:56 +0000)]
Remove BSD.{local,x11,x11-4}.dist mtree files as they're either obsolete or
they've moved to ports.

14 years ago- Remove BSD.{x11,x11-4}.dist as we merged prefixes a while ago and those
flz [Wed, 2 Sep 2009 14:54:47 +0000 (14:54 +0000)]
- Remove BSD.{x11,x11-4}.dist as we merged prefixes a while ago and those
files aren't used anymore.
- Remove BSD.local.dist as the file moved to ports/Templates when we merged
prefixes.

14 years ago- Bump PKG_INSTALL_VERSION to 20090902 after dougb's changes.
flz [Wed, 2 Sep 2009 13:58:15 +0000 (13:58 +0000)]
- Bump PKG_INSTALL_VERSION to 20090902 after dougb's changes.
- Change the comment to say that version must be changed when a
non-cosmetic change is made.

14 years agoImprove HDA controller capabilities logging.
mav [Wed, 2 Sep 2009 11:39:19 +0000 (11:39 +0000)]
Improve HDA controller capabilities logging.

14 years agoAdd NFSv4 ACL support to cp(1) and fix a few memory leaks.
trasz [Wed, 2 Sep 2009 08:08:57 +0000 (08:08 +0000)]
Add NFSv4 ACL support to cp(1) and fix a few memory leaks.

Note that this changes error reporting behaviour somewhat - before,
no error was reported if ACL couldn't be copied because the target
filesystem doesn't support ACLs.  Now, it will be reported - of course,
only if there actually is an ACL to copy.

Reviewed by: rwatson

14 years ago- Don't include both <sys/types.h> and <sys/param.h>
trasz [Wed, 2 Sep 2009 05:26:59 +0000 (05:26 +0000)]
- Don't include both <sys/types.h> and <sys/param.h>

- Keep variables sorted

- Fix logic error with -f and -v options - don't print
  the usual -v output if there was an error, whether or not
  we were passed -f

- Don't call free(3) just before exit(2)

- Whitespace fixes

Submitted by: bde

14 years agoUse (unsigned char) cast for ctype macro
ache [Wed, 2 Sep 2009 04:56:30 +0000 (04:56 +0000)]
Use (unsigned char) cast for ctype macro

14 years agoMove <locale.h> out of NO_CATGETS define too (as setlocale() in prev.
ache [Wed, 2 Sep 2009 04:43:46 +0000 (04:43 +0000)]
Move <locale.h> out of NO_CATGETS define too (as setlocale() in prev.
commit)

14 years ago1) Use isprint() instead of hardcoded values to detect non-printable.
ache [Wed, 2 Sep 2009 04:26:34 +0000 (04:26 +0000)]
1) Use isprint() instead of hardcoded values to detect non-printable.
2) Use (unsigned char) cast in waddch() calls.
It fix highlighting bug: sign extension of 8bit to the attributes area.
3) Use setlocale() in any case.

14 years agoDon't attempt to bind the current thread to the CPU an IRQ is bound to
jhb [Wed, 2 Sep 2009 00:39:59 +0000 (00:39 +0000)]
Don't attempt to bind the current thread to the CPU an IRQ is bound to
when removing an interrupt handler from an IRQ during shutdown.  During
shutdown we are already bound to CPU 0 and this was triggering a panic.

MFC after: 3 days

14 years agoFix regression introduced with NFSv4 ACL support - make acl_to_text(3)
trasz [Tue, 1 Sep 2009 18:30:17 +0000 (18:30 +0000)]
Fix regression introduced with NFSv4 ACL support - make acl_to_text(3)
and acl_calc_mask(3) return error instead of crashing when acl passed
to them is NULL.

Submitted by: markus
Reviewed by: rwatson
MFC after: 3 days

14 years agoAdd counters for the i7 architecture which were accidentally left
gnn [Tue, 1 Sep 2009 17:55:37 +0000 (17:55 +0000)]
Add counters for the i7 architecture which were accidentally left
out of the original commit of i7 support.  These are all the counters
on pages A-32 and A-33 of the _Intel(R) 64 and IA32 Architectures
Software Developer's Manual Vol 3B_, June 2009.  Almost all
of these counters relate to operations on the L2 cache.

Reviewed by: jkoshy
MFC after: 1 month

14 years agoIn case an upper layer protocol tries to send a packet but the
bz [Tue, 1 Sep 2009 17:53:01 +0000 (17:53 +0000)]
In case an upper layer protocol tries to send a packet but the
L2 code does not have the ethernet address for the destination
within the broadcast domain in the table, we remember the
original mbuf in `la_hold' in arpresolve() and send out a
different packet with an arp request.
In case there will be more upper layer packets to send we will
free an earlier one held in `la_hold' and queue the new one.

Once we get a packet in, with which we can perfect our arp table
entry we send out the original 'on hold' packet, should there
be any.
Rather than continuing to process the packet that we received,
we returned without freeing the packet that came in, which
basically means that we leaked an mbuf for every arp request
we sent.

Rather than freeing the received packet and returning, continue
to process the incoming arp packet as well.
This should (a) improve some setups, also proxy-arp, in case it was an
incoming arp request and (b) resembles the behaviour FreeBSD had
from day 1, which alignes with RFC826 "Packet reception" (merge case).

Rename 'm0' to 'hold' to make the code more understandable as
well as diffable to earlier versions more easily.

Handle the link-layer entry 'la' lock comepletely in the block
where needed and release it as early as possible, rather than
holding it longer, down to the end of the function.

Found by: pointyhat, ns1
Bug hunting session with: erwin, simon, rwatson
Tested by: simon on cluster machines
Reviewed by: ratson, kmacy, julian
MFC after: 3 days

14 years agoAdapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now.
trasz [Tue, 1 Sep 2009 15:51:36 +0000 (15:51 +0000)]
Adapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now.

14 years agoDelete whitespace not in i386/pmap.c
adrian [Tue, 1 Sep 2009 12:17:47 +0000 (12:17 +0000)]
Delete whitespace not in i386/pmap.c

14 years agoFix mount reference leak when V_XSLEEP is specified to vn_start_write().
kib [Tue, 1 Sep 2009 12:05:39 +0000 (12:05 +0000)]
Fix mount reference leak when V_XSLEEP is specified to vn_start_write().

Submitted by: tegge

14 years agoReintroduce the r196640, after fixing the problem with my testing.
kib [Tue, 1 Sep 2009 11:41:51 +0000 (11:41 +0000)]
Reintroduce the r196640, after fixing the problem with my testing.

Remove the altkstacks, instead instantiate threads with kernel stack
allocated with the right size from the start. For the thread that has
kernel stack cached, verify that requested stack size is equial to the
actual, and reallocate the stack if sizes differ [1].

This fixes the bug introduced by r173361 that was committed several days
after r173004 and consisted of kthread_add(9) ignoring the non-default
kernel stack size.

Also, r173361 removed the caching of the kernel stacks for a non-first
thread in the process. Introduce separate kernel stack cache that keeps
some limited amount of preallocated kernel stacks to lower the latency
of thread allocation. Add vm_lowmem handler to prune the cache on
low memory condition. This way, system with reasonable amount of the
threads get lower latency of thread creation, while still not exhausting
significant portion of KVA for unused kstacks.

Submitted by: peter [1]
Discussed with: jhb, julian, peter
Reviewed by: jhb
Tested by: pho (and retested according to new test scenarious)
MFC after: 1 week

14 years agoMigrate to use cpuset_t.
adrian [Tue, 1 Sep 2009 06:15:50 +0000 (06:15 +0000)]
Migrate to use cpuset_t.

14 years agoo Document MALLOC_PRODUCTION knob.
maxim [Tue, 1 Sep 2009 05:55:10 +0000 (05:55 +0000)]
o Document MALLOC_PRODUCTION knob.

PR: docs/136029
Submitted by: anonymous
MFC after: 2 weeks

14 years agoMerge in the pat_works work from sys/i386/i386/pmap.c - primarily to reduce
adrian [Tue, 1 Sep 2009 05:15:45 +0000 (05:15 +0000)]
Merge in the pat_works work from sys/i386/i386/pmap.c - primarily to reduce
diff size.

14 years agoFix broken build.
adrian [Tue, 1 Sep 2009 03:44:25 +0000 (03:44 +0000)]
Fix broken build.

14 years agoRevert previous commit; that was left-over junk in the tree.
adrian [Mon, 31 Aug 2009 23:35:59 +0000 (23:35 +0000)]
Revert previous commit; that was left-over junk in the tree.

14 years agoShuffle pagezero() into the same location as in sys/i386/i386/pmap.c.
adrian [Mon, 31 Aug 2009 23:30:39 +0000 (23:30 +0000)]
Shuffle pagezero() into the same location as in sys/i386/i386/pmap.c.

14 years agoMake sure rx descriptor ring align on 16 bytes. I guess the
yongari [Mon, 31 Aug 2009 22:09:48 +0000 (22:09 +0000)]
Make sure rx descriptor ring align on 16 bytes. I guess the
alignment requirement could be multiple of 4 bytes but I think
using descriptor size would make intention clearer.
Previously the size of rx descriptor was not power of 2 so it
caused panic in bus_dmamem_alloc(9).

Reported by: Jeff Blank (jb000003 <> mr-happy dot com)
MFC after: 3 days

14 years agoOn resume in sta mode program the beacon timers so when roaming (and
sam [Mon, 31 Aug 2009 21:25:49 +0000 (21:25 +0000)]
On resume in sta mode program the beacon timers so when roaming (and
the previous ap is no longer in range) the device will deliver bmiss
interrupts and trigger the state machine.  Also arrange to sync the
beacon timers on the next received beacon frame so that when we don't
roam we re-synchronize with the ap.

Tested by: trasz
MFC after: 1 week

14 years agoThis patch fixes the following issues:
qingli [Mon, 31 Aug 2009 21:02:48 +0000 (21:02 +0000)]
This patch fixes the following issues:

- Routing messages are not generated when adding and removing
  interface address aliases.
- Loopback route installed for an interface address alias is
  not deleted from the routing table when that address alias
  is removed from the associated interface.
- Function in_ifscrub() is called extraneously.

Reviewed by: gnn, kmacy, sam
MFC after: 3 days

14 years agoAdd NFSv4 ACL support to ls(1).
trasz [Mon, 31 Aug 2009 20:53:01 +0000 (20:53 +0000)]
Add NFSv4 ACL support to ls(1).

14 years agoMake the code more readable and fix chmod(1) on symlinks with
trasz [Mon, 31 Aug 2009 20:42:07 +0000 (20:42 +0000)]
Make the code more readable and fix chmod(1) on symlinks with
NFSv4 enabled.

14 years agoAdd regression test for ACLs on device files - mostly to make
trasz [Mon, 31 Aug 2009 20:11:35 +0000 (20:11 +0000)]
Add regression test for ACLs on device files - mostly to make
sure we don't crash on attempt to set ACL on them.

14 years agoSimplify pmap_change_attr() a bit:
jhb [Mon, 31 Aug 2009 18:41:13 +0000 (18:41 +0000)]
Simplify pmap_change_attr() a bit:
- Always calculate the cache bits instead of doing it on-demand.
- Always set changed to TRUE rather than only doing it if it is false.

Discussed with: alc
MFC after: 3 days

14 years agoAdd support for INDEX-9 [1]
dougb [Mon, 31 Aug 2009 17:50:33 +0000 (17:50 +0000)]
Add support for INDEX-9 [1]

While I'm here, strip off support for FreeBSD 5.x.

Submitted by: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de> [1]

14 years agoImprove pmap_change_attr() so that it is able to demote a large (2/4MB)
jhb [Mon, 31 Aug 2009 17:42:52 +0000 (17:42 +0000)]
Improve pmap_change_attr() so that it is able to demote a large (2/4MB)
page into 4KB pages as needed.  This should be fairly rare in practice
on i386.  This includes merging the following changes from the amd64 pmap:
180430, 180485, 180845, 181043, 181077, and 196318.
- Add basic support for changing attributes on PDEs to pmap_change_attr()
  similar to the support in the initial version of pmap_change_attr() on
  amd64 including inlines for pmap_pde_attr() and pmap_pte_attr().
- Extend pmap_demote_pde() to include the ability to instantiate a new page
  table page where none existed before.
- Enhance pmap_change_attr().  Use pmap_demote_pde() to demote a 2/4MB page
  mapping to 4KB page mappings when the specified attribute change only
  applies to a portion of the 2/4MB page.  Previously, in such cases,
  pmap_change_attr() gave up and returned an error.
- Correct a critical accounting error in pmap_demote_pde().

Reviewed by: alc
MFC after: 3 days

14 years agoPartially revert 196524: this part of change should not be committed as
delphij [Mon, 31 Aug 2009 17:34:11 +0000 (17:34 +0000)]
Partially revert 196524: this part of change should not be committed as
part of the changeset - it's an unrelated one.

Reported by: danfe

14 years agoBackport the 'dirtying dbuf' panic fix from newer ZFS version.
pjd [Mon, 31 Aug 2009 16:27:00 +0000 (16:27 +0000)]
Backport the 'dirtying dbuf' panic fix from newer ZFS version.

Reported by: Thomas Backman <serenity@exscape.org>
MFC after: 1 week

14 years agoRemove empty directory.
pjd [Mon, 31 Aug 2009 16:25:55 +0000 (16:25 +0000)]
Remove empty directory.

14 years agoMake it easier to find proper manual page for newer ServeRAID controllers.
trasz [Mon, 31 Aug 2009 16:20:06 +0000 (16:20 +0000)]
Make it easier to find proper manual page for newer ServeRAID controllers.

14 years agoManual page for mfiutil(8) is in section 8 now.
trasz [Mon, 31 Aug 2009 16:19:06 +0000 (16:19 +0000)]
Manual page for mfiutil(8) is in section 8 now.

14 years agoPurge some non-useful mergeinfo that is a relic from a temporary USB2 name
jhb [Mon, 31 Aug 2009 14:06:59 +0000 (14:06 +0000)]
Purge some non-useful mergeinfo that is a relic from a temporary USB2 name
for this file.

14 years agoDelete some empty mergeinfo.
jhb [Mon, 31 Aug 2009 13:23:55 +0000 (13:23 +0000)]
Delete some empty mergeinfo.

14 years agoMake the mnt_writeopcount and mnt_secondary_writes counters,
kib [Mon, 31 Aug 2009 10:20:52 +0000 (10:20 +0000)]
Make the mnt_writeopcount and mnt_secondary_writes counters,
used by the suspension code, not greater then mnt_ref reference
counter value. Increment mnt_ref together with write counter
in vn_start_write()/ vn_start_secondary_write(), releasing in
vn_finished_write/vn_finished_secondary_write().

Since r186197, unmount code requires that no writers occured after all
references are expired. We still could get write counter incremented
for freed or reused struct mount, but it seems to be innocent, since
corresponding vnode should be referenced and reclaimed then.

Reported by: pho (last half a year), erwin
Reviewed by: attilio
Tested by: pho, erwin
MFC after: 1 week

14 years agoRemove spurious pfs_unlock().
kib [Mon, 31 Aug 2009 09:26:04 +0000 (09:26 +0000)]
Remove spurious pfs_unlock().

PR: kern/137310
Reviewed by: des
MFC after: 3 days

14 years agoAs part of r196609, a call to "rtalloc" did not take the fib into
qingli [Mon, 31 Aug 2009 00:14:37 +0000 (00:14 +0000)]
As part of r196609, a call to  "rtalloc" did not take the fib into
account. So call the appropriate "rtalloc_ign_fib()" instead of
calling "rtalloc_ign()".

Reviewed by:i pointed out by bz
MFC after: immediately

14 years agoAdd missing mountpoint vnode locking.
pjd [Sun, 30 Aug 2009 21:03:40 +0000 (21:03 +0000)]
Add missing mountpoint vnode locking.

This fixes panic on assertion with DEBUG_VFS_LOCKS and vfs.usermount=1 when
regular user tries to mount dataset owned by him.

MFC after: 1 week

14 years agoadd core dump support to blkfront
kmacy [Sun, 30 Aug 2009 20:45:24 +0000 (20:45 +0000)]
add core dump support to blkfront

Obtained from: Frank Suchomel

14 years agoFix build with INVARIANTS.
mav [Sun, 30 Aug 2009 19:40:09 +0000 (19:40 +0000)]
Fix build with INVARIANTS.

14 years agoShort ATA command format has 28bit address, not 36bit.
mav [Sun, 30 Aug 2009 16:31:25 +0000 (16:31 +0000)]
Short ATA command format has 28bit address, not 36bit.
Rename ata_36bit_cmd() into ata_28bit_cmd(), while it didn't become legacy.

MFC after: 2 days

14 years agoMFp4:
mav [Sun, 30 Aug 2009 16:08:25 +0000 (16:08 +0000)]
MFp4:
 - Tune protocol version reporting,
 - Add supported DMA/PIO modes reporting.
 - Fix IDENTIFY for ATAPI devices.
 - Remove confusing "-" for NCQ status.

14 years agoATA_FLUSHCACHE is a 36bit format command, not 48.
mav [Sun, 30 Aug 2009 15:36:56 +0000 (15:36 +0000)]
ATA_FLUSHCACHE is a 36bit format command, not 48.

14 years agoMFp4:
mav [Sun, 30 Aug 2009 15:20:13 +0000 (15:20 +0000)]
MFp4:
 - Add Command Completion Coalescing support.
 - Add SNTF support.
 - Add two more power management modes (4, 5), implemented on driver level.
 - Fix interface mode setting.
 - Reduce interface reset time.
 - Do not report meaningless protocol/transport versions.
 - Report CAP2 register content.
 - Some performance optimizations.

14 years agoMFp4:
mav [Sun, 30 Aug 2009 15:06:03 +0000 (15:06 +0000)]
MFp4:
 - Add SNTF support.
 - Do not report meaningless transport/protocol versions.

14 years agoFix the reference for the IPV6_V6ONLY option. This option is described
motoyuki [Sun, 30 Aug 2009 14:45:09 +0000 (14:45 +0000)]
Fix the reference for the IPV6_V6ONLY option.  This option is described
in RFC 3493, not 3542.

PR: docs/134127
Submitted by: Kenji Rikitake <kenji.rikitake@acm.org>
MFC after: 2 weeks

14 years agoMake sure FreeBSD binaries without .note.ABI-tag section work
bz [Sun, 30 Aug 2009 14:38:17 +0000 (14:38 +0000)]
Make sure FreeBSD binaries without .note.ABI-tag section work
correctly and do not match a colliding Debian GNU/kFreeBSD
brandinfo statements.
For this mark the Debian GNU/kFreeBSD brandinfo that it must have
an .note.ABI-tag section and ignore the old EI_OSABI brandinfo
when comparing a possibly colliding set of options.

Due to SYSINIT we add the brandinfo in a non-deterministic order,
so native FreeBSD is not always first. We may want to consider
to force native FreeBSD to come first as well.

The only way a problem could currently be noticed is when running an
i386 binary without the .note.ABI-tag on amd64 and the Debian GNU/kFreeBSD
brandinfo  was matched first,  as the fallback to ld-elf32.so.1 does
not exist in that case.

Reported and tested by: ticso
In collaboration with: kib
MFC after: 3 days

14 years agoFix the problem that the entry broke into two lines with multi-byte
ume [Sun, 30 Aug 2009 11:17:42 +0000 (11:17 +0000)]
Fix the problem that the entry broke into two lines with multi-byte
AM/PM format.

Reported by: takawata

14 years agoAM/PM date format for ja_JP.eucJP and ja_JP.SJIS were
ume [Sun, 30 Aug 2009 10:47:00 +0000 (10:47 +0000)]
AM/PM date format for ja_JP.eucJP and ja_JP.SJIS were
localized by r193869.  However, ja_JP.UTF-8 wasn't.
So, reflect it to ja_JP.UTF-8 as well.

14 years agoPrevents pam_lastlog from segfaulting on session close when tty is null.
jon [Sun, 30 Aug 2009 05:12:37 +0000 (05:12 +0000)]
Prevents pam_lastlog from segfaulting on session close when tty is null.

MFC after: 1 month

14 years agoPrefix on-link verification is being performed on statically
qingli [Sun, 30 Aug 2009 02:07:23 +0000 (02:07 +0000)]
Prefix on-link verification is being performed on statically
configured prefixes. Since these statically configured prefixes
do not have any associated advertising routers, these prefixes
are treated as unreachable and those prefix routes are deleted
from the routing table. Therefore bypass prefixes that are not
learned from router advertisements during prefix on-link check.

Reviewed by: hrs

14 years agoReverse r196640 and r196644 for now.
kib [Sat, 29 Aug 2009 21:53:08 +0000 (21:53 +0000)]
Reverse r196640 and r196644 for now.

14 years agoDispose the kernel stack of the proper thread.
kib [Sat, 29 Aug 2009 18:01:02 +0000 (18:01 +0000)]
Dispose the kernel stack of the proper thread.

Submitted by: alc
MFC after: 1 week

14 years agoSwap the start/end virtual addresses in pmap_invalidate_cache_range().
rnoland [Sat, 29 Aug 2009 16:01:21 +0000 (16:01 +0000)]
Swap the start/end virtual addresses in pmap_invalidate_cache_range().

This fixes the functionality on non SelfSnoop hardware.

Found by: rnoland
Submitted by: alc
Reviewed by: kib
MFC after: 3 days

14 years agoRemove the altkstacks, instead instantiate threads with kernel stack
kib [Sat, 29 Aug 2009 13:28:02 +0000 (13:28 +0000)]
Remove the altkstacks, instead instantiate threads with kernel stack
allocated with the right size from the start. For the thread that has
kernel stack cached, verify that requested stack size is equial to the
actual, and reallocate the stack if sizes differ [1].

This fixes the bug introduced by r173361 that was committed several days
after r173004 and consisted of kthread_add(9) ignoring the non-default
kernel stack size.

Also, r173361 removed the caching of the kernel stacks for a non-first
thread in the process. Introduce separate kernel stack cache that keeps
some limited amount of preallocated kernel stacks to lower the latency
of thread allocation. Add vm_lowmem handler to prune the cache on
low memory condition. This way, system with reasonable amount of the
threads get lower latency of thread creation, while still not exhausting
significant portion of KVA for unused kstacks.

Submitted by: peter [1]
Discussed with: jhb, julian, peter
Reviewed by: jhb
Tested by: pho
MFC after: 1 week

14 years agoStyle: Remove trailing whitespace.
kientzle [Sat, 29 Aug 2009 03:17:24 +0000 (03:17 +0000)]
Style: Remove trailing whitespace.

14 years agoMark the fake pages constructed by the OBJT_SG pager valid. This was
jhb [Sat, 29 Aug 2009 02:17:40 +0000 (02:17 +0000)]
Mark the fake pages constructed by the OBJT_SG pager valid.  This was
accidentally lost at one point during the PAT development.  Without this
fix vm_pager_get_pages() was zeroing each of the pages.

Submitted by: czander @ NVidia
MFC after: 3 days

14 years agoConnect bwi up to the build. While there are some problems with this
imp [Sat, 29 Aug 2009 01:34:42 +0000 (01:34 +0000)]
Connect bwi up to the build.  While there are some problems with this
driver still, it generally works well for most people most of the
time.  It is still too green for GENERIC, however.

Submitted by: many (latest being kwm@)
MFC after: 2 days (before RC1 if possible)

14 years agoFix a few panics in linuxulator + VIMAGE due to curvnet not being set.
zec [Fri, 28 Aug 2009 22:51:07 +0000 (22:51 +0000)]
Fix a few panics in linuxulator + VIMAGE due to curvnet not being set.

This change affects only options VIMAGE builds.

Reviewed by: julian
MFC after: 3 days

14 years agosh: Fix crash with empty functions (f() { }) introduced in r196483
jilles [Fri, 28 Aug 2009 22:41:25 +0000 (22:41 +0000)]
sh: Fix crash with empty functions (f() { }) introduced in r196483

Empty pairs of braces are represented by a NULL node pointer, just like
empty lines at the top level.

Support for empty pairs of braces may be removed later. They make the code
more complex, have inconsistent behaviour (may or may not change $?), are
not specified by POSIX and are not allowed by some other shells like bash,
dash and ksh93.

Reported by: kan

14 years agoIntroduce a separate sx lock for protecting lists of vnet sysinit
zec [Fri, 28 Aug 2009 22:30:55 +0000 (22:30 +0000)]
Introduce a separate sx lock for protecting lists of vnet sysinit
and sysuninit handlers.

Previously, sx_vnet, which is a lock designated for protecting
the vnet list, was (ab)used for protecting vnet sysinit / sysuninit
handler lists as well.  Holding exclusively the sx_vnet lock while
invoking sysinit and / or sysuninit handlers turned out to be
problematic, since some of the handlers may attempt to wake up
another thread and wait for it to walk over the vnet list, hence
acquire a shared lock on sx_vnet, which in turn leads to a deadlock.
Protecting vnet sysinit / sysuninit lists with a separate lock
mitigates this issue, which was first observed with
flowtable_flush() / flowtable_cleaner() in sys/net/flowtable.c.

Reviewed by: rwatson, jhb
MFC after: 3 days

14 years agoExtend the device pager to support different memory attributes on different
jhb [Fri, 28 Aug 2009 14:06:55 +0000 (14:06 +0000)]
Extend the device pager to support different memory attributes on different
pages in an object.
- Add a new variant of d_mmap() currently called d_mmap2() which accepts
  an additional in/out parameter that is the memory attribute to use for
  the requested page.
- A driver either uses d_mmap() or d_mmap2() for all requests but not both.
  The current implementation uses a flag in the cdevsw (D_MMAP2) to indicate
  that the driver provides a d_mmap2() handler instead of d_mmap().  This
  is done to make the change ABI compatible with existing drivers and
  MFC'able to 7 and 8.

Submitted by: alc
MFC after: 1 month

14 years agoHook up the pty(4) module to the build.
ed [Fri, 28 Aug 2009 10:23:40 +0000 (10:23 +0000)]
Hook up the pty(4) module to the build.

14 years agoFix a bug where vlan interfaces are not supported by SCTP.
tuexen [Fri, 28 Aug 2009 08:41:59 +0000 (08:41 +0000)]
Fix a bug where vlan interfaces are not supported by SCTP.

Approved by: rrs (mentor)
MFC after: 3 days

14 years agoIn ip_output(), the flow-table module must not try to cache L2/L3
qingli [Fri, 28 Aug 2009 07:01:09 +0000 (07:01 +0000)]
In ip_output(), the flow-table module must not try to cache L2/L3
information for interface of IFF_POINTOPOINT or IFF_LOOPBACK type.
Since the L2 information (rt_lle) is invalid for these interface
types, accidental caching attempt will trigger panic when the invalid
rt_lle reference is accessed.

When installing a new route, or when updating an existing route, the
user supplied gateway address may be an interface address (this is
particularly true for point-to-point interface related modules such
as ppp, if_tun, if_gif). Currently the routing command handler always
set the RTF_GATEWAY flag if the gateway address is given as part of the
command paramters. Therefore the gateway address must be verified against
interface addresses or else the route would be treated as an indirect
route, thus making that route unusable.

Reviewed by: kmacy, julia, rwatson
Verified by: marcus
MFC after: 3 days

14 years agoDo not try to free the rt_lle entry of the cached route in
qingli [Fri, 28 Aug 2009 05:37:31 +0000 (05:37 +0000)]
Do not try to free the rt_lle entry of the cached route in
ip_output() if the cached route was not initialized from the
flow-table. The rt_lle entry is invalid unless it has been
initialized through the flow-table.

Reviewed by: kmacy, rwatson
MFC after: immediately

14 years agoAdd some tests for a fixed bug in an uncommitted patch.
jilles [Thu, 27 Aug 2009 22:23:23 +0000 (22:23 +0000)]
Add some tests for a fixed bug in an uncommitted patch.
(Trying to get syntax errors for sh -c ':; do' and `:; do`.)

14 years agorevert r196600; didn't notice it'd been done already
sam [Thu, 27 Aug 2009 17:55:44 +0000 (17:55 +0000)]
revert r196600; didn't notice it'd been done already

Submitted by: jhay

14 years agochange default regdomain for thailand
sam [Thu, 27 Aug 2009 17:42:37 +0000 (17:42 +0000)]
change default regdomain for thailand

Obtained from: linux-wireless@kernel.org

14 years agoenable mesh by default
sam [Thu, 27 Aug 2009 17:33:44 +0000 (17:33 +0000)]
enable mesh by default

14 years agorecognie invalid register names
sam [Thu, 27 Aug 2009 17:32:58 +0000 (17:32 +0000)]
recognie invalid register names

14 years agoFix a LOR between allprison_lock and vnode locks by releasing
jamie [Thu, 27 Aug 2009 16:15:51 +0000 (16:15 +0000)]
Fix a LOR between allprison_lock and vnode locks by releasing
allprison_lock before releasing a prison's root vnode.

PR: kern/138004
Reviewed by: kib
Approved by: bz (mentor)
MFC after: 3 days

14 years agoIn the loop through the list of interfaces in network6_interface_setup()
dougb [Thu, 27 Aug 2009 15:24:26 +0000 (15:24 +0000)]
In the loop through the list of interfaces in network6_interface_setup()
rtsol_interface gets reset to "yes" each time through the loop, but
rtsol_available does not. If a user has lo0 first in their list of
interfaces rtsol_available will get set to "no" the first time through
the loop and subsequent interfaces will not get rtsol'ed when they should.

Therefore change the conditional for the is_wired() test to _interface.

Noticed by: Dimitry Andric <dimitry@andric.com>

14 years agoUpdate some comments to match the removal of the docset compilation
blackend [Thu, 27 Aug 2009 13:18:59 +0000 (13:18 +0000)]
Update some comments to match the removal of the docset compilation
during the release build.

14 years agoMFV of r195794
edwin [Thu, 27 Aug 2009 12:36:15 +0000 (12:36 +0000)]
MFV of r195794

MFV of tzcode2009k

zic.c:
    Do not end a binary file with a POSIX-style time zone string
    for locations that end up in permanent DST (thanks to Andreas
    Schwab).