]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoBetter strfmon(3) conversion specifiers sanity checking.
ru [Sat, 19 Apr 2008 07:18:22 +0000 (07:18 +0000)]
Better strfmon(3) conversion specifiers sanity checking.

There were no checks for left and right precisions at all, and
a check for field width had integer overflow bug.

Reported by: Maksymilian Arciemowicz
Security: http://securityreason.com/achievement_securityalert/53
Submitted by: Maxim Dounin <mdounin@mdounin.ru>
MFC after: 3 days

16 years agong_address_hook() microoptimization. Use local variables as they should be.
mav [Sat, 19 Apr 2008 05:30:49 +0000 (05:30 +0000)]
ng_address_hook() microoptimization. Use local variables as they should be.
It helps compiller to avoid some extra memory accesses.

16 years agoRemove my copyright. This file includes simply i386's one now.
nyan [Sat, 19 Apr 2008 05:07:50 +0000 (05:07 +0000)]
Remove my copyright.  This file includes simply i386's one now.

16 years agoSanitize the malloc types: M_PMAP is not used in pmap.c, so don't
marcel [Sat, 19 Apr 2008 04:56:16 +0000 (04:56 +0000)]
Sanitize the malloc types: M_PMAP is not used in pmap.c, so don't
define it there. Don't use M_PMAP in mp_machdep.c; define M_SMP
instead.

16 years agoremove kdb_backtrace() call
kmacy [Sat, 19 Apr 2008 03:43:06 +0000 (03:43 +0000)]
remove kdb_backtrace() call

16 years agomove tcbinfo lock acquisition in to syncache
kmacy [Sat, 19 Apr 2008 03:39:17 +0000 (03:39 +0000)]
move tcbinfo lock acquisition in to syncache

16 years agomove cxgb_lt2.[ch] from NIC to TOE
kmacy [Sat, 19 Apr 2008 03:22:43 +0000 (03:22 +0000)]
move cxgb_lt2.[ch] from NIC to TOE
move most offload functionality from NIC to TOE
factor out all socket and inpcb direct access
factor out access to locking in incpb, pcbinfo, and sockbuf

16 years agoFix the breakage that caused AHCI devices to vanish. Editor droppings :(
sos [Fri, 18 Apr 2008 15:15:04 +0000 (15:15 +0000)]
Fix the breakage that caused AHCI devices to vanish. Editor droppings :(

Put the ATAPI device numbering back to the old ways.

16 years ago - Add inlines for the monitor and mwait instructions.
jeff [Fri, 18 Apr 2008 05:47:56 +0000 (05:47 +0000)]
 - Add inlines for the monitor and mwait instructions.

Sponsored by: Nokia

16 years agoRemove cruft we got from Alpha, which was probably inherited
marcel [Fri, 18 Apr 2008 02:21:11 +0000 (02:21 +0000)]
Remove cruft we got from Alpha, which was probably inherited
from NetBSD. I.e. make it more like a FreeBSD header.

16 years agoAdd missing function prototype for tcgetsid().
davidxu [Fri, 18 Apr 2008 02:02:33 +0000 (02:02 +0000)]
Add missing function prototype for tcgetsid().

16 years agoAdd support for the 32-bit EFI target.
marcel [Thu, 17 Apr 2008 23:36:35 +0000 (23:36 +0000)]
Add support for the 32-bit EFI target.

16 years agoAdd in check for loopback as well, which was missing from the original patch.
gnn [Thu, 17 Apr 2008 23:24:58 +0000 (23:24 +0000)]
Add in check for loopback as well, which was missing from the original patch.

PR: 120958
Submitted by: James Snow <snow at teardrop.org>
MFC after: 2 weeks

16 years agoAdd the '-u name' option to the env command, which will completely unset
gad [Thu, 17 Apr 2008 23:17:09 +0000 (23:17 +0000)]
Add the '-u name' option to the env command, which will completely unset
the given variable name (removing it from the environment, instead of
just setting it to a null value).

PR: bin/65649
MFC after: 2 weeks

16 years agoChange the 1 in callout_init to CALLOUT_MPSAFE. I made the change in my
cokane [Thu, 17 Apr 2008 22:57:33 +0000 (22:57 +0000)]
Change the 1 in callout_init to CALLOUT_MPSAFE. I made the change in my
tree, but never committed it into git before making my patch!

Submitted by: thompsa
MFC after: 1 month

16 years agoNext stage of stdio cleanup: Retire __sFILEX and merge the fields back into
jhb [Thu, 17 Apr 2008 22:17:54 +0000 (22:17 +0000)]
Next stage of stdio cleanup: Retire __sFILEX and merge the fields back into
__sFILE.  This was supposed to be done in 6.0.  Some notes:
- Where possible I restored the various lines to their pre-__sFILEX state.
- Retire INITEXTRA() and just initialize the wchar bits (orientation and
  mbstate) explicitly instead.  The various places that used INITEXTRA
  didn't need the locking fields or _up initialized.  (Some places needed
  _up to exist and not be off the end of a NULL or garbage pointer, but
  they didn't require it to be initialized to a specific value.)
- For now, stdio.h "knows" that pthread_t is a 'struct pthread *' to
  avoid namespace pollution of including all the pthread types in stdio.h.
  Once we remove all the inlines and make __sFILE private it can go back
  to using pthread_t, etc.
- This does not remove any of the inlines currently and does not change
  any of the public ABI of 'FILE'.

MFC after: 1 month
Reviewed by: peter

16 years agoChange the timeout(9) usage in if_ndis to a callout(9) implementation,
cokane [Thu, 17 Apr 2008 22:01:38 +0000 (22:01 +0000)]
Change the timeout(9) usage in if_ndis to a callout(9) implementation,
as the former is becoming deprecated and exhibits some extraneous
Giant-locking. The new callout(9) is declared MPSAFE, so it may
improve concurrency.

Tested by: matteo
Silence from: wpaul
MFC after: 1 month

16 years agoConvert pcbinfo and inpcb mutexes to rwlocks, and modify macros to
rwatson [Thu, 17 Apr 2008 21:38:18 +0000 (21:38 +0000)]
Convert pcbinfo and inpcb mutexes to rwlocks, and modify macros to
explicitly select write locking for all use of the inpcb mutex.
Update some pcbinfo lock assertions to assert locked rather than
write-locked, although in practice almost all uses of the pcbinfo
rwlock main exclusive, and all instances of inpcb lock acquisition
are exclusive.

This change should introduce (ideally) little functional change.
However, it lays the groundwork for significantly increased
parallelism in the TCP/IP code.

MFC after: 3 months
Tested by: kris (superset of committered patch)

16 years agoAllow linker_search_symbol_name() to be called with KLD lock held.
pjd [Thu, 17 Apr 2008 19:19:40 +0000 (19:19 +0000)]
Allow linker_search_symbol_name() to be called with KLD lock held.
The linker_search_symbol_name() function is used by stack_print()
and stack_print() can be called from kernel module unload method.

MFC after: 1 week

16 years agoSpecifically mark the members of 'FILE' that are accessed via inline
jhb [Thu, 17 Apr 2008 19:06:00 +0000 (19:06 +0000)]
Specifically mark the members of 'FILE' that are accessed via inline
functions or macros since they are part of the public ABI as a result.

MFC after: 1 month

16 years agoAlloc two DMA slots pr default, silly me forgot that slaves still exists.
sos [Thu, 17 Apr 2008 18:11:47 +0000 (18:11 +0000)]
Alloc two DMA slots pr default, silly me forgot that slaves still exists.

16 years agoClean up the code that checks the types of address so that it is
gnn [Thu, 17 Apr 2008 12:50:42 +0000 (12:50 +0000)]
Clean up the code that checks the types of address so that it is
done by understandable macros.

Fix the bug that prevented the system from responding on interfaces with
link local addresses assigned.

PR: 120958
Submitted by: James Snow <snow at teardrop.org>
MFC after: 2 weeks

16 years agoOn sparc64 machines with multiple host-PCI-bridges these bridges
marius [Thu, 17 Apr 2008 12:38:00 +0000 (12:38 +0000)]
On sparc64 machines with multiple host-PCI-bridges these bridges
have separate configuration spaces so by definition they implement
different PCI domains. Thus change psycho(4) to use PCI domains
instead of reenumerating all PCI busses so they have globally unique
bus numbers and drop support for reenumerating busses in the OFW PCI
code.
According to CVS history reenumeration was also required in order to
get some E450 to boot but given that no other open source kernel
changes the PCI bus numbers assigned by the firmware I believe the
real problem was that the old code used the bus number as the device
number for the PCI busses and unlike most of the other machines the
firmwares of the problematic ones don't use disjoint PCI bus numbers
across the host-PCI-bridges.

MFC after: 1 month

16 years agoGo back to preallocating everything possible on init.
sos [Thu, 17 Apr 2008 12:29:35 +0000 (12:29 +0000)]
Go back to preallocating everything possible on init.
This avoids calling busdma in the request processing path which caused a traumatic performance degradation.
Allocation has be postponed to after we know how many devices we possible can have on portmulitpliers to save some space.

16 years ago - Add a metric to describe how busy a processor has been over the last
jeff [Thu, 17 Apr 2008 09:56:01 +0000 (09:56 +0000)]
 - Add a metric to describe how busy a processor has been over the last
   two ticks by counting the number of switches and the load when
   sched_clock() is called.
 - If the busy metric exceeds a threshold allow the idle thread to spin
   waiting for new work for a brief period to avoid using IPIs.  This
   reduces the cost on the sender and receiver as well as reducing wakeup
   latency considerably when it works.

Sponsored by: Nokia

16 years ago - Make SCHED_STATS more generic by adding a wrapper to create the
jeff [Thu, 17 Apr 2008 04:20:10 +0000 (04:20 +0000)]
 - Make SCHED_STATS more generic by adding a wrapper to create the
   variables and sysctl nodes.
 - In reset walk the children of kern_sched_stats and reset the counters
   via the oid_arg1 pointer.  This allows us to add arbitrary counters to
   the tree and still reset them properly.
 - Define a set of switch types to be passed with flags to mi_switch().
   These types are named SWT_*.  These types correspond to SCHED_STATS
   counters and are automatically handled in this way.
 - Make the new SWT_ types more specific than the older switch stats.
   There are now stats for idle switches, remote idle wakeups, remote
   preemption ithreads idling, etc.
 - Add switch statistics for ULE's pickcpu algorithm.  These stats include
   how much migration there is, how often affinity was successful, how
   often threads were migrated to the local cpu on wakeup, etc.

Sponsored by: Nokia

16 years agoMention bzip2 1.0.5 MFC.
delphij [Thu, 17 Apr 2008 01:02:03 +0000 (01:02 +0000)]
Mention bzip2 1.0.5 MFC.

16 years agoSimplify the pmap_zero_page family of functions by making use of
marcel [Thu, 17 Apr 2008 00:37:40 +0000 (00:37 +0000)]
Simplify the pmap_zero_page family of functions by making use of
the fact that we have a 1:1 mapping by virtue of the BATs.
Eliminate the now unused moea_rkva_alloc(), moea_pa_map() and
moea_pa_unmap() functions.

Pointed out by: grehan.

16 years agoAllocate a stack (with optional guard pages) for thread0 and
marcel [Wed, 16 Apr 2008 23:28:12 +0000 (23:28 +0000)]
Allocate a stack (with optional guard pages) for thread0 and
switch to it before calling mi_startup().

16 years ago- Correctly destroy assoiciated ucom device on detach.
stas [Wed, 16 Apr 2008 21:15:10 +0000 (21:15 +0000)]
- Correctly destroy assoiciated ucom device on detach.

MFC after: 2 weeks
Reported by: Ilya Bakulin <webmaster@kibab.com>
Approved by: imp, cognet

16 years agoUse separate UMA zone for data items allocation. It is a partial
mav [Wed, 16 Apr 2008 19:52:29 +0000 (19:52 +0000)]
Use separate UMA zone for data items allocation. It is a partial
rev. 1.149 rework.
It allows to save several percents of CPU time on SMP by using UMA's
internal per-CPU allocation limits instead of own global variable
each time updated with atomics.

Tested with:    Netperf cluster

16 years agoRegenerate.
jkim [Wed, 16 Apr 2008 19:27:36 +0000 (19:27 +0000)]
Regenerate.

16 years agoAdd stubs for syscalls introduced in Linux 2.6.17 kernel.
jkim [Wed, 16 Apr 2008 19:25:39 +0000 (19:25 +0000)]
Add stubs for syscalls introduced in Linux 2.6.17 kernel.
Some GNU libc version started using them before 2.6.17 was officially out.

MFC after: 3 days

16 years agoImplement fdopendir(3) by splitting __opendir2() into two parts, the upper part
delphij [Wed, 16 Apr 2008 18:59:36 +0000 (18:59 +0000)]
Implement fdopendir(3) by splitting __opendir2() into two parts, the upper part
deals with the usual __opendir2() calls, and the rest part with an interface
translator to expose fdopendir(3) functionality.  Manual page was obtained from
kib@'s work for *at(2) system calls.

16 years agoStyle fixes to opendir.c:
delphij [Wed, 16 Apr 2008 18:40:52 +0000 (18:40 +0000)]
Style fixes to opendir.c:
 - Use /*- for copyright block;
 - ANSIfy.

16 years agoFixes typo's in sctp.c
rrs [Wed, 16 Apr 2008 17:40:30 +0000 (17:40 +0000)]
Fixes typo's in sctp.c

16 years agoAllow SCTP to compile without INET6.
rrs [Wed, 16 Apr 2008 17:24:18 +0000 (17:24 +0000)]
Allow SCTP to compile without INET6.
PR: 116816
Obtained from tuexen@fh-muenster.de:
MFC after: 2 weeks

16 years agoReplace callout_init(..., 1) with callout_init(..., CALLOUT_MPSAFE) for
kris [Wed, 16 Apr 2008 16:47:14 +0000 (16:47 +0000)]
Replace callout_init(..., 1) with callout_init(..., CALLOUT_MPSAFE) for
better grep-compliance and to standardize with the rest of the kernel.

Reviewed by:        jhb
MFC after:        1 week

16 years agoSort MAN and MLINKS.
ru [Wed, 16 Apr 2008 14:57:40 +0000 (14:57 +0000)]
Sort MAN and MLINKS.

16 years agoConnect newly added manpages to the build.
ru [Wed, 16 Apr 2008 14:44:43 +0000 (14:44 +0000)]
Connect newly added manpages to the build.

Submitted by: kib

16 years agoFix compilation with LOCKF_DEBUG.
dfr [Wed, 16 Apr 2008 14:08:12 +0000 (14:08 +0000)]
Fix compilation with LOCKF_DEBUG.

16 years agoFix pkg_info when specifying a remote package.
flz [Wed, 16 Apr 2008 13:05:35 +0000 (13:05 +0000)]
Fix pkg_info when specifying a remote package.

MFC after: 1 week

16 years agoMan pages for the openat(2), fexecve(2) and related syscalls.
kib [Wed, 16 Apr 2008 13:03:12 +0000 (13:03 +0000)]
Man pages for the openat(2), fexecve(2) and related syscalls.

Reviewed by: ru

16 years agoMove the head of byte-level advisory lock list from the
kib [Wed, 16 Apr 2008 11:33:32 +0000 (11:33 +0000)]
Move the head of byte-level advisory lock list from the
filesystem-specific vnode data to the struct vnode. Provide the
default implementation for the vop_advlock and vop_advlockasync.
Purge the locks on the vnode reclaim by using the lf_purgelocks().
The default implementation is augmented for the nfs and smbfs.
In the nfs_advlock, push the Giant inside the nfs_dolock.

Before the change, the vop_advlock and vop_advlockasync have taken the
unlocked vnode and dereferenced the fs-private inode data, racing with
with the vnode reclamation due to forced unmount. Now, the vop_getattr
under the shared vnode lock is used to obtain the inode size, and
later, in the lf_advlockasync, after locking the vnode interlock, the
VI_DOOMED flag is checked to prevent an operation on the doomed vnode.

The implementation of the lf_purgelocks() is submitted by dfr.

Reported by: kris
Tested by: kris, pho
Discussed with: jeff, dfr
MFC after: 2 weeks

16 years agoTighten up the error-handling in nlm_get_rpc. While I'm here, fix a
dfr [Wed, 16 Apr 2008 09:09:50 +0000 (09:09 +0000)]
Tighten up the error-handling in nlm_get_rpc. While I'm here, fix a
couple of spelling mistakes in comments.

16 years agoDoh! Extra mips in the path. Remove these and wait until tomorrow
imp [Wed, 16 Apr 2008 05:11:25 +0000 (05:11 +0000)]
Doh!  Extra mips in the path.  Remove these and wait until tomorrow
when I have more brain cells to try again.

16 years agoTurns out the machine/asm.h isn't needed here, since SYS.h already
imp [Wed, 16 Apr 2008 05:08:27 +0000 (05:08 +0000)]
Turns out the machine/asm.h isn't needed here, since SYS.h already
included it.

16 years agoFreeBSD/mips libc support. Merged from perforce mips2-jnpr branch.
imp [Wed, 16 Apr 2008 05:06:11 +0000 (05:06 +0000)]
FreeBSD/mips libc support.  Merged from perforce mips2-jnpr branch.

16 years ago_vfork is not in libthr, remove the reference.
davidxu [Wed, 16 Apr 2008 03:19:11 +0000 (03:19 +0000)]
_vfork is not in libthr, remove the reference.

16 years agoMention support for nForce MCP73.
yongari [Wed, 16 Apr 2008 00:17:24 +0000 (00:17 +0000)]
Mention support for nForce MCP73.
Touch Dd.

16 years agoFix one-byte buffer overflow: NUL gets written to the buffer, but isn't
cperciva [Tue, 15 Apr 2008 23:29:51 +0000 (23:29 +0000)]
Fix one-byte buffer overflow: NUL gets written to the buffer, but isn't
counted in the width specification in scanf.

This is not a security problem, since this function is only used to
parse a user's configuration file.

Submitted by: Joerg Sonnenberger
Obtained from: dragonflybsd
MFC after: 1 week

16 years agoAdd very limited support for the isc-dhclient. It will almostly certaintly
brooks [Tue, 15 Apr 2008 23:03:35 +0000 (23:03 +0000)]
Add very limited support for the isc-dhclient.  It will almostly certaintly
only work if there's just one interface doing dhcp.  This version implements
the same logic as the version in the PR, but uses pgrep to be less verbose.

PR: conf/95905
MFC after: 1 week

16 years agoWhen sending packets directly to the DHCP server, use a socket and send
brooks [Tue, 15 Apr 2008 22:48:56 +0000 (22:48 +0000)]
When sending packets directly to the DHCP server, use a socket and send
directly rather than bogusly sending it out as a link layer broadcast
(which fails to be received on some networks).

PR: bin/96018
MFC after: 2 weeks

16 years agostyle(9).
rpaulo [Tue, 15 Apr 2008 22:47:01 +0000 (22:47 +0000)]
style(9).

Noticed by: jkim

16 years agoSeveral changes breaking netgraph module ABI collected together:
mav [Tue, 15 Apr 2008 21:15:32 +0000 (21:15 +0000)]
Several changes breaking netgraph module ABI collected together:
 - reorder structures fields (XX_refs) a bit to group fields modified
   same time together. According to my tests it gives up to 10%
   SMP performance benefit on real workload due to reduced inter-CPU
   cache trashing.
 - change q_flags from long to int as long is not really needed there and
   it's usage with atomics is argued by some people.
 - move NGF_WORKQ flag into the separate field q_flags2 as it protected by
   queue mutex instead of node writer protection used by the rest of flags.
 - move nd_work queue entry to ng_queue structure to which it is more
   related and make it STAILQ instead of TAILQ as now it is a classic FIFO.
 - remove q_node pointer from ng_queue structure as it is not really needed.
 - reimplement item queue using STAILQ instead of own equal implementation.
   As soon as BT subsystem has own item queues using ng_item.el_next update
   it also.
 - change depth field in ng_item from uintptr_t to u_int. It was made
   uintptr_t to keep ABI compatibility.

Reviewed by: julian, emax
Tested with: Netperf cluster

16 years agoRevert the previous commit and use M_PROMISC flag instead.
jkim [Tue, 15 Apr 2008 17:08:24 +0000 (17:08 +0000)]
Revert the previous commit and use M_PROMISC flag instead.
It is safer because it will never be used for outgoing packets.

16 years agoUse genclock for RTC handling. This eliminates the MD versions for
marcel [Tue, 15 Apr 2008 17:02:23 +0000 (17:02 +0000)]
Use genclock for RTC handling. This eliminates the MD versions for
inittodr() and resettodr(). Have nexus double as the clock device,
because it's the firmware that provides RTC services. We could
create a special (pseudo-) device for it, but that wasn't superior
enough to actually do it. Maybe later...

Requested by: phk

16 years agoFix possible buffer overrun on 64-bit arch when generating MAC
emax [Tue, 15 Apr 2008 16:54:39 +0000 (16:54 +0000)]
Fix possible buffer overrun on 64-bit arch when generating MAC
address for tap interface.

Reported by: Marc Lorner < marc dot loerner at hob dot de >
Reviewed by: bms
MFC after: 3 days

16 years agoImplement POSIX function tcgetsid() which returns session id.
davidxu [Tue, 15 Apr 2008 08:33:32 +0000 (08:33 +0000)]
Implement POSIX function tcgetsid() which returns session id.

PR: stand/107561

16 years agoThis file shows signs of heavy borrowing from NetBSD's cache.c file,
imp [Tue, 15 Apr 2008 05:35:00 +0000 (05:35 +0000)]
This file shows signs of heavy borrowing from NetBSD's cache.c file,
so credit its authors with contributions to this file.  Remove
prototype copyright notice, although one might be warranted if someone
wanted to claim it badly enough.

Noticed by: Simon Burge.

16 years agoAdd copyright notice and license to reflect origin of most of the
imp [Tue, 15 Apr 2008 05:31:19 +0000 (05:31 +0000)]
Add copyright notice and license to reflect origin of most of the
routines in this file.  Remove 'place holder' copyright since the
amount that's actually original is small relative to the length of the
file.  The contents of this file appear to have originated at DECWRL
by way of NetBSD.

Noticed by: Simon Burge

16 years agoBootstrap the build of btxld.
ru [Tue, 15 Apr 2008 05:14:42 +0000 (05:14 +0000)]
Bootstrap the build of btxld.

16 years agoSupport and switch to the ULE scheduler:
marcel [Tue, 15 Apr 2008 05:02:42 +0000 (05:02 +0000)]
Support and switch to the ULE scheduler:
o  Implement IPI_PREEMPT,
o  Set td_lock for the thread being switched out,
o  For ULE & SMP, loop while td_lock points to blocked_lock for
   the thread being switched in,
o  Enable ULE by default in GENERIC and SKI,

16 years agoIf the .inf file did not have a Default entry for the registry key then write
thompsa [Tue, 15 Apr 2008 04:44:32 +0000 (04:44 +0000)]
If the .inf file did not have a Default entry for the registry key then write
out a blank value and close the brackets on the ndis_regvals array.

16 years agoUse a ndis_ prefix on the C variable instead of directly using the .sys
thompsa [Tue, 15 Apr 2008 04:17:13 +0000 (04:17 +0000)]
Use a ndis_ prefix on the C variable instead of directly using the .sys
filename, this would fail if the filename started with a number.

PR: bin/84911
Submitted by: Fredrik Lindberg

16 years agoThis isn't used, so remove it. It isn't relevant to most mips platforms.
imp [Tue, 15 Apr 2008 02:50:07 +0000 (02:50 +0000)]
This isn't used, so remove it.  It isn't relevant to most mips platforms.

16 years agoCopied from amd64, where it wasn't used, into mips, where it wasn't used.
imp [Tue, 15 Apr 2008 02:11:57 +0000 (02:11 +0000)]
Copied from amd64, where it wasn't used, into mips, where it wasn't used.
Remove it.

16 years agoThis file is unused on amd64.
imp [Tue, 15 Apr 2008 02:10:14 +0000 (02:10 +0000)]
This file is unused on amd64.

16 years agoRemove $P4$ tag. Rumor has it that p4 importer hates it.
imp [Tue, 15 Apr 2008 02:09:28 +0000 (02:09 +0000)]
Remove $P4$ tag.  Rumor has it that p4 importer hates it.

16 years agoRemove M_SKIP_FIREWALL abuse and add more appropriate check.
jkim [Tue, 15 Apr 2008 00:50:01 +0000 (00:50 +0000)]
Remove M_SKIP_FIREWALL abuse and add more appropriate check.

Pointyhat to: jkim
Reported by: Eugene Grosbein (eugen at kuzbass dot ru)
MFC after: 3 days

16 years agoDon't touch MSI enable bit in RL_CFG2 register. For unknown reason
yongari [Tue, 15 Apr 2008 00:46:15 +0000 (00:46 +0000)]
Don't touch MSI enable bit in RL_CFG2 register. For unknown reason
clearing MSI enable bit for MSI capable hardwares resulted in Tx
problems. MSI enable bit is set only when MSI is requested from
user.

Tested by: remko

16 years agoRevision 1.9 changes the delivery mode from the magic constant 0
marcel [Mon, 14 Apr 2008 20:34:45 +0000 (20:34 +0000)]
Revision 1.9 changes the delivery mode from the magic constant 0
(i.e. fixed delivery) to SAPIC_DELMODE_LOWPRI. While the commit
log doesn't mention the change in behaviour, it is believed to be
deliberate. In the last 5.5 years this hasn't been a problem. Nor
do I think did it make any difference, but who knows. However, I
do know that it break SMP support for Montecito-based machines.
Switch back to fixed-CPU delivery so that SMP works again. This
gives me some time to look more closely at the problem, as well
as make sure the I-cache validation as it's implemented currently
is sufficient in SMP configurations...

16 years agorestore(8) does not check for write failure while building two temp
mckusick [Mon, 14 Apr 2008 20:15:53 +0000 (20:15 +0000)]
restore(8) does not check for write failure while building two temp
files containing directory and ownership data. If /tmp fills, the
console is blasted with zillions of "file system full" errors, and
restore continues on, even though directory and/or ownership data
has been lost. This is particularly likely to happen when running
from the live CD, which has little /tmp space.

PR:         bin/93603, also probably bin/107213
Fix from:   Ken Lalonde

16 years agoFix problem with slave devices.
sos [Mon, 14 Apr 2008 18:34:24 +0000 (18:34 +0000)]
Fix problem with slave devices.
Fix or rather bring ENOMEM problems back to the state it was before.
Temporarily disable PortMultipliers on AHCI devices.

16 years agoUse the pru_flush infrastructure to avoid a panic
rrs [Mon, 14 Apr 2008 18:13:33 +0000 (18:13 +0000)]
Use the pru_flush infrastructure to avoid a panic

PR: 122710
MFC after: 1 week

16 years ago- Have SCTP use the new pru_flush functionality
rrs [Mon, 14 Apr 2008 18:12:37 +0000 (18:12 +0000)]
- Have SCTP use the new pru_flush functionality

PR: 122710
MFC after: 1 week

16 years agoAdd pru_flush routine so a transport can
rrs [Mon, 14 Apr 2008 18:06:04 +0000 (18:06 +0000)]
Add pru_flush routine so a transport can
flush itself during Shutdown

MFC after: 1 week

16 years agoProtection against errant sender sending a stream
rrs [Mon, 14 Apr 2008 14:34:29 +0000 (14:34 +0000)]
Protection against errant sender sending a stream
seq number out of order with no missing TSN's (a
cisco box has this problem which will make a ssn
be held forever).
MFC after: 1 week

16 years agoNew logging values.
rrs [Mon, 14 Apr 2008 14:33:07 +0000 (14:33 +0000)]
New logging values.

16 years ago1) adds some additional logging
rrs [Mon, 14 Apr 2008 14:32:32 +0000 (14:32 +0000)]
1) adds some additional logging
2) changes to use a inqueue_bytes calculated value in max_len calc's.
MFC after: 1 week

16 years agoWhen calling lf_advlock to unlock a record, make sure that ap->a_fl->l_type
dfr [Mon, 14 Apr 2008 09:22:48 +0000 (09:22 +0000)]
When calling lf_advlock to unlock a record, make sure that ap->a_fl->l_type
is F_UNLCK otherwise we trigger a LOCKF_DEBUG panic.

MFC after: 3 days

16 years agodon't include pthread_np.h, it is not used.
davidxu [Mon, 14 Apr 2008 08:08:40 +0000 (08:08 +0000)]
don't include pthread_np.h, it is not used.

16 years agoConvert amd64 and i386 to share the atrtc device driver.
phk [Mon, 14 Apr 2008 08:00:00 +0000 (08:00 +0000)]
Convert amd64 and i386 to share the atrtc device driver.

16 years agoatrtc.c is a repocopy of the RTC device driver from i386/isa/clock.c
phk [Mon, 14 Apr 2008 07:57:15 +0000 (07:57 +0000)]
atrtc.c is a repocopy of the RTC device driver from i386/isa/clock.c

In addition to the device driver functionality, it exposes a number of
functions which various other bits of code use to fondle the RTC chip.

16 years ago Make this file compile on IPv6 kernels.
qingli [Sun, 13 Apr 2008 23:04:46 +0000 (23:04 +0000)]
 Make this file compile on IPv6 kernels.

16 years agoUse __FBSDID() for $FreeBSD$ IDs in the audit code.
rwatson [Sun, 13 Apr 2008 22:06:56 +0000 (22:06 +0000)]
Use __FBSDID() for $FreeBSD$ IDs in the audit code.

MFC after: 3 days

16 years agofix comments for these files.
imp [Sun, 13 Apr 2008 22:04:56 +0000 (22:04 +0000)]
fix comments for these files.

Noticed by: stass

16 years agoMake naming of include guards for MAC Framework include files more
rwatson [Sun, 13 Apr 2008 21:45:52 +0000 (21:45 +0000)]
Make naming of include guards for MAC Framework include files more
consistent with other kernel include guards (don't start with _SYS).

MFC after: 3 days

16 years agoMake this compile also on non-IPv6 kernels.
phk [Sun, 13 Apr 2008 21:38:05 +0000 (21:38 +0000)]
Make this compile also on non-IPv6 kernels.

16 years agoGet rid of an empty RTC implementation and hook up genclock instead.
phk [Sun, 13 Apr 2008 21:20:26 +0000 (21:20 +0000)]
Get rid of an empty RTC implementation and hook up genclock instead.

16 years agoInitialize the vm object's flags to include OBJ_NOSPLIT, just like the
alc [Sun, 13 Apr 2008 21:08:34 +0000 (21:08 +0000)]
Initialize the vm object's flags to include OBJ_NOSPLIT, just like the
vm objects that are used by System V shared memory segments.

16 years agoAdd the bootcode verb for installing boot code. Boot code
marcel [Sun, 13 Apr 2008 19:54:54 +0000 (19:54 +0000)]
Add the bootcode verb for installing boot code. Boot code
is supported for the MBR, GPT and PC98 schemes, where GPT
installs boot code into the PMBR.

16 years agoFix identify of slave devices.
sos [Sun, 13 Apr 2008 16:05:34 +0000 (16:05 +0000)]
Fix identify of slave devices.

16 years agoAdd support for Asus EeePC backlight control.
rpaulo [Sun, 13 Apr 2008 14:40:02 +0000 (14:40 +0000)]
Add support for Asus EeePC backlight control.

Submitted by: Akira Funahashi <funa at funa.org>
MFC after: 1 week

16 years agoI keep taking timemachines to get back in time. Update the
remko [Sun, 13 Apr 2008 11:05:59 +0000 (11:05 +0000)]
I keep taking timemachines to get back in time. Update the
year to 2008.

Noticed by: ceri

16 years agoFix the build in case RADIX_MPATH is not defined.
bz [Sun, 13 Apr 2008 10:22:59 +0000 (10:22 +0000)]
Fix the build in case RADIX_MPATH is not defined.

16 years agoUse calloc() instaed of zeroing memory ourselves.
delphij [Sun, 13 Apr 2008 08:05:08 +0000 (08:05 +0000)]
Use calloc() instaed of zeroing memory ourselves.

16 years agoAdd missing device in tunefs entry.
remko [Sun, 13 Apr 2008 07:48:05 +0000 (07:48 +0000)]
Add missing device in tunefs entry.

PR: docs/122702
Submitted by: Yoshihiro Ota <ota@j.email.ne.jp>
MFC After: 3 days

16 years agoFreeBSD/mips port. The FreeBSD/mips port targets mips32, mips64,
imp [Sun, 13 Apr 2008 07:44:55 +0000 (07:44 +0000)]
FreeBSD/mips port.  The FreeBSD/mips port targets mips32, mips64,
mips32r2 and mips64r2 (and close relatives) processors.  There
presently is support for ADMtek ADM5120, A mips 4Kc in a malta board,
the RB533 routerboard (based on IDT RC32434) and some preliminary
support for sibtye/broadcom designs.  Other hardware support will be
forthcomcing.

This port boots multiuser under gxemul emulating the malta board and
also bootstraps on the hardware whose support is forthcoming...

Oleksandr Tymoshenko, Wojciech Koszek, Warner Losh, Olivier Houchard,
Randall Stewert and others that have contributed to the mips2 and/or
mips2-jnpr perforce branches.  Juniper contirbuted a generic mips port
late in the life cycle of the misp2 branch.  Warner Losh merged the
mips2 and Juniper code bases, and others list above have worked for
the past several months to get to multiuser.

In addition, the mips2 work owe a debt to the trail blazing efforts of
the original mips branch in perforce done by Juli Mallett.

16 years agoFreeBSD/mips port. The FreeBSD/mips port targets mips32, mips64,
imp [Sun, 13 Apr 2008 07:27:37 +0000 (07:27 +0000)]
FreeBSD/mips port.  The FreeBSD/mips port targets mips32, mips64,
mips32r2 and mips64r2 (and close relatives) processors.  There
presently is support for ADMtek ADM5120, A mips 4Kc in a malta board,
the RB533 routerboard (based on IDT RC32434) and some preliminary
support for sibtye/broadcom designs.  Other hardware support will be
forthcomcing.

This port boots multiuser under gxemul emulating the malta board and
also bootstraps on the hardware whose support is forthcoming...

Oleksandr Tymoshenko, Wojciech Koszek, Warner Losh, Olivier Houchard,
Randall Stewert and others that have contributed to the mips2 and/or
mips2-jnpr perforce branches.  Juniper contirbuted a generic mips port
late in the life cycle of the misp2 branch.  Warner Losh merged the
mips2 and Juniper code bases, and others list above have worked for
the past several months to get to multiuser.

In addition, the mips2 work owe a debt to the trail blazing efforts of
the original mips branch in perforce done by Juli Mallett.