]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoMFp4: //depot/projects/usb@155807
thompsa [Tue, 13 Jan 2009 19:02:17 +0000 (19:02 +0000)]
MFp4: //depot/projects/usb@155807

Fix a typo.
Reported by Alexander Best.

Submitted by: Hans Petter Selasky

15 years agoMFp4: //depot/projects/usb@155759
thompsa [Tue, 13 Jan 2009 19:02:07 +0000 (19:02 +0000)]
MFp4: //depot/projects/usb@155759

Optimise: Remove extra flush calls.

Submitted by: Hans Petter Selasky

15 years agoMFp4: //depot/projects/usb@155755
thompsa [Tue, 13 Jan 2009 19:01:56 +0000 (19:01 +0000)]
MFp4: //depot/projects/usb@155755

Fix a race causing the explore thread to
hang when tearing down USB transfers at
detach.

Submitted by: Hans Petter Selasky

15 years agoMFp4: //depot/projects/usb@155754
thompsa [Tue, 13 Jan 2009 19:01:46 +0000 (19:01 +0000)]
MFp4: //depot/projects/usb@155754

Make sure that the cancelled error code
is always checked and result in a return
from the USB callback.

Submitted by: Hans Petter Selasky

15 years agoMFp4: //depot/projects/usb@155750
thompsa [Tue, 13 Jan 2009 19:01:35 +0000 (19:01 +0000)]
MFp4: //depot/projects/usb@155750

Patch to resolve problems with power mode off.
Reported by Alexander Best.

Submitted by: Hans Petter Selasky

15 years agoMFp4: //depot/projects/usb@155748
thompsa [Tue, 13 Jan 2009 19:01:25 +0000 (19:01 +0000)]
MFp4: //depot/projects/usb@155748

Umass module quirk from Alexander Best
to support Meizu Electronics MiniPlayer.

Submitted by: Hans Petter Selasky

15 years agoMFp4: //depot/projects/usb@155731
thompsa [Tue, 13 Jan 2009 19:01:14 +0000 (19:01 +0000)]
MFp4: //depot/projects/usb@155731

Make printout more informative. Reported by:
Volker

Submitted by: Hans Petter Selasky

15 years agoMFp4: //depot/projects/usb@155730
thompsa [Tue, 13 Jan 2009 19:01:03 +0000 (19:01 +0000)]
MFp4: //depot/projects/usb@155730

Config index should be zero. Reported by:
Stanislav Sedov

Submitted by: Hans Petter Selasky

15 years agoMFp4: //depot/projects/usb@155869
thompsa [Tue, 13 Jan 2009 18:49:35 +0000 (18:49 +0000)]
MFp4: //depot/projects/usb@155869

Initial version of ATMEGA USB device controller
driver. Has not been tested on real hardware yet.
The driver is based upon the AT91DCI driver.

Submitted by: Hans Petter Selasky

15 years agoo Fix a typo. Bump .Dd for the previous delta.
maxim [Tue, 13 Jan 2009 18:25:56 +0000 (18:25 +0000)]
o Fix a typo.  Bump .Dd for the previous delta.

15 years agoEnable MSI support for VIA Nano processors on i386 (missing in r187118).
jkim [Tue, 13 Jan 2009 16:48:01 +0000 (16:48 +0000)]
Enable MSI support for VIA Nano processors on i386 (missing in r187118).

15 years agoAdd support for two new event source types:
jhb [Tue, 13 Jan 2009 16:44:18 +0000 (16:44 +0000)]
Add support for two new event source types:
- Callwheels traced via KTR_CALLOUT.  Each CPU is assigned a callwheel
  source.  The events on this source are the execution of individual callout
  routines.  Each routine shows up as a green rectangle while it is executed
  and the event details include the function pointer and argument.
- Locks traced via KTR_LOCK.  Currently, each lock name is assigned an event
  source (since the existing KTR_LOCK traces only include lock names and
  not pointers).  This does mean that if multiple locks of the same name are
  manipulated, the source line for that name may be confusing.  However, for
  many cases this can be useful.  Locks are blue when they are held and
  purple when contested.  The contention support is a bit weak due to
  limitations in the rw_rlock() and mtx_lock_spin() logging messages
  currently.  I also have not added support for contention on lockmgr,
  sx, or rmlocks yet.  What is there now can be profitably used to examine
  activity on Giant however.
- Expand the width of the event source names column a bit to allow for some
  of the longer names of these new source types.

15 years ago- Add some rudimentary support for sorting the list of event sources
jhb [Tue, 13 Jan 2009 16:33:10 +0000 (16:33 +0000)]
- Add some rudimentary support for sorting the list of event sources
  (threads, CPU load counters, etc.).  Each source is tagged with a group
  and an order similar to the SYSINIT SI_SUB_* and SI_ORDER_*.  After
  the file is parsed, all the sources are then sorted.  Currently, the only
  affects of this are that the CPU loads are now sorted by CPU ID (so
  CPU 0 is always first).  However, this makes it easier to add new types
  of event sources in the future and have them all clustered together
  instead of intertwined with threads.
- Python lists perform insertions at the tail much faster than insertions
  at the head.  For a trace that had a lot of events for a single event
  source, the constant insertions of new events to the head of the
  per-source event list caused a noticable slow down.  To compensate,
  append new events to the end of the list during parsing and then
  reverse the list prior to drawing.
- Somewhere in the tkinter internals the coordinates of a canvas are
  stored in a signed 32-bit integer.  As a result, if an the box for
  an event spans 2^31, it would actually end up having a negative
  X offset at one end.  The result was a single box that covered the
  entire event source.  Kris worked around this for some traces by
  bumping up the initial ticks/pixel ratio from 1 to 10.  However, a
  divisor of 10 can still be too small for large tracefiles (e.g.
  with 4 million entries).  Instead of hardcoding the initial scaling
  ratio, calculate it from the time span of the trace file.
- Add support for using the mouse wheel to scroll the graph window
  up and down.

15 years agoChange configuration order to enable output only after codec is configured.
mav [Tue, 13 Jan 2009 16:27:04 +0000 (16:27 +0000)]
Change configuration order to enable output only after codec is configured.
Mute all mixer controllable amplifiers initially to let mixer to unmute
only some of them later. This should reduce clicks and noises during boot.

15 years agoClean up BookE low-level exceptions code.
raj [Tue, 13 Jan 2009 16:19:58 +0000 (16:19 +0000)]
Clean up BookE low-level exceptions code.

Improve comments, fix style(9) and typos, unify separators.

Obtained from: Freescale, Semihalf

15 years agoClean up BookE pmap.
raj [Tue, 13 Jan 2009 16:15:49 +0000 (16:15 +0000)]
Clean up BookE pmap.

Improve comments, eliminate redundant debug output, fix style(9) and other
minor tweaks for code readability.

Obtained from: Freescale, Semihalf

15 years agoAdd a new KTR tracepoint in the KTR_CALLOUT class to note when a callout
jhb [Tue, 13 Jan 2009 15:56:53 +0000 (15:56 +0000)]
Add a new KTR tracepoint in the KTR_CALLOUT class to note when a callout
routine finishes executing.

MFC after: 1 week

15 years agoRework BookE pmap towards multi-core support.
raj [Tue, 13 Jan 2009 15:41:58 +0000 (15:41 +0000)]
Rework BookE pmap towards multi-core support.

o Eliminate tlb0[] (a s/w copy of TLB0)
  - The table contents cannot be maintained reliably in multiple MMU
    environments, where asynchronous events (invalidations from other cores)
    can change our local TLB0 contents underneath.
  - Simplify and optimize TLB flushing: system wide invalidations are
    performed using tlbivax instruction (propagates to other cores), for
    local MMU invalidations a new optimized routine (assembly) is introduced.

o Improve and simplify TID allocation and management.
  - Let each core keep track of its TID allocations.
  - Simplify TID recycling, eliminate dead code.
  - Drop the now unused powerpc/booke/support.S file.

o Improve page tables management logic.

o Simplify TLB1 manipulation routines.

o Other improvements and polishing.

Obtained from: Freescale, Semihalf

15 years agoClean up a bit of confusing language and improve .Nd.
trhodes [Tue, 13 Jan 2009 15:24:35 +0000 (15:24 +0000)]
Clean up a bit of confusing language and improve .Nd.

PR: 47818
Reviewed by: keramida

15 years agoDocument that ffsll(3) and flsll(3) functions first appeared in
kib [Tue, 13 Jan 2009 13:19:42 +0000 (13:19 +0000)]
Document that ffsll(3) and flsll(3) functions first appeared in
FreeBSD 7.1

Submitted by: Jan Henrik Sylvester <me janh de>
MFC after: 3 days

15 years agoFix broken URL and use the same base directory as the
trhodes [Tue, 13 Jan 2009 12:47:59 +0000 (12:47 +0000)]
Fix broken URL and use the same base directory as the
example files.

PR: 123035
Submitted by: Lawrence Mayer <lawmay3@i12.com> (original version)

15 years agofix typo
luigi [Tue, 13 Jan 2009 12:37:02 +0000 (12:37 +0000)]
fix typo

Submitted by: Colin Percival

15 years agoDocumentation-only change:
luigi [Tue, 13 Jan 2009 12:35:33 +0000 (12:35 +0000)]
Documentation-only change:

- add a reference to the config(5) manpage;
- hopefully clarify the format of the 'env FILENAME' directive.

I am putting these notes in sys/${arch}/conf/GENERIC and not
in sys/conf/NOTES because:

1. i386/GENERIC already had reference to a similar option (hints..)
   and to documentation (handbook)

2. GENERIC is what most users look at when they have to modify or
   create a new kernel config, so having the suggestion there is
   more effective.

I am only touching i386 and amd64 because the other GENERIC files
are already out of sync, and I am not sure what is the overall plan.

MFC after: 3 days

15 years agocomment out some debugging messages that slipped in by mistake.
luigi [Tue, 13 Jan 2009 12:28:14 +0000 (12:28 +0000)]
comment out some debugging messages that slipped in by mistake.

MFC after: 3 days

15 years agoDocument how kernel environment can be statically compiled in,
luigi [Tue, 13 Jan 2009 12:19:43 +0000 (12:19 +0000)]
Document how kernel environment can be statically compiled in,
and reference a few related manpages.

MFC after: 3 days

15 years agoo Respect -ss flags (suppress zero counters) for icmp6 "histogram
maxim [Tue, 13 Jan 2009 07:58:57 +0000 (07:58 +0000)]
o Respect -ss flags (suppress zero counters) for icmp6 "histogram
of error messages" section.

Submitted by: naddy
MFC after: 1 week

15 years agoAdd several HP OEM parts' PCI IDs.
delphij [Tue, 13 Jan 2009 07:12:32 +0000 (07:12 +0000)]
Add several HP OEM parts' PCI IDs.

MFC after: 2 months

15 years agoDon't enable -Q by default - I've fixed the rescue build issue.
obrien [Tue, 13 Jan 2009 06:53:53 +0000 (06:53 +0000)]
Don't enable -Q by default - I've fixed the rescue build issue.

15 years agoSet .POSIX mode, along with disable parallel mode. Crunchgen parses the
obrien [Tue, 13 Jan 2009 06:52:51 +0000 (06:52 +0000)]
Set .POSIX mode, along with disable parallel mode.  Crunchgen parses the
output from make(1) and its picky what it should look like.
Also use make's conditional assignment operator rather than test and set.

15 years agor187093 failed to keep the lifetime of the pointer suitable for reentrancy.
obrien [Tue, 13 Jan 2009 06:08:37 +0000 (06:08 +0000)]
r187093 failed to keep the lifetime of the pointer suitable for reentrancy.
Fix that.  Also move the current buffer size into the 'cpa' structure.

15 years agoOn some platforms touching the bb registers when the phy is powered
sam [Tue, 13 Jan 2009 05:50:22 +0000 (05:50 +0000)]
On some platforms touching the bb registers when the phy is powered
down will cause a fault.  Check the phy power state before possibly
reading from the bb, this can happen as ar5212Reset intentionally
calls ar5212GetRfgain before bringing the bb out of reset (but we
do it here and not in the caller to guard against other possible uses).

15 years agoUse __gnu89_inline so that these files will compile with newer versions
das [Tue, 13 Jan 2009 05:13:20 +0000 (05:13 +0000)]
Use __gnu89_inline so that these files will compile with newer versions
of gcc, where the meaning of 'inline' was changed to match C99.

Noticed by: rdivacky

15 years ago"The first part is just to give more info, the latter part fixes
kientzle [Tue, 13 Jan 2009 04:56:41 +0000 (04:56 +0000)]
"The first part is just to give more info, the latter part fixes
an error to read files past the 32bit byte offset, for instance
on DVDs."

Submitted by: phk@
MFC after: 10 days

15 years agoFix a cut/paste bug which prevents us from setting the average
gnn [Tue, 13 Jan 2009 00:10:50 +0000 (00:10 +0000)]
Fix a cut/paste bug which prevents us from setting the average
latency tunable.

Reviewed by: jfv
MFC after: 1 day

15 years agoadd tool to calculate air time for 802.11 packets
sam [Mon, 12 Jan 2009 22:50:55 +0000 (22:50 +0000)]
add tool to calculate air time for 802.11 packets

15 years agoAdd basic i386 support for VIA Nano processors.
jkim [Mon, 12 Jan 2009 22:01:49 +0000 (22:01 +0000)]
Add basic i386 support for VIA Nano processors.

15 years agoReplace more strcmp(cpu_vendor, "foo") with cpu_vendor_id.
jkim [Mon, 12 Jan 2009 21:58:19 +0000 (21:58 +0000)]
Replace more strcmp(cpu_vendor, "foo") with cpu_vendor_id.

15 years agoIf running with "-K" really do not information about symbols from the a.out
obrien [Mon, 12 Jan 2009 21:49:42 +0000 (21:49 +0000)]
If running with "-K" really do not information about symbols from the a.out
argument.  Before this fix, after searching the currently-running kernel,
we would still search the a.out argument - completely override the in-kernel
list, essentially defeating the K flag's purpose.

PR: 47387
Submitted by: Ryan Beasley <ryanb@goddamnbastard.org>

15 years agoMore usb2 foma driver update.
takawata [Mon, 12 Jan 2009 20:13:14 +0000 (20:13 +0000)]
More usb2 foma driver update.
1. Export usb serial port unit number as sysctl.
2. Fix bug on handsfree port.

15 years agoConnect padlock(4) to amd64 build for VIA Nano processors.
jkim [Mon, 12 Jan 2009 19:23:46 +0000 (19:23 +0000)]
Connect padlock(4) to amd64 build for VIA Nano processors.

15 years agonetcat is "now" in base, so point people at nc(1) instead of the port.
simon [Mon, 12 Jan 2009 19:17:43 +0000 (19:17 +0000)]
netcat is "now" in base, so point people at nc(1) instead of the port.

MFC after: 1 week

15 years agoAdd basic amd64 support for VIA Nano processors.
jkim [Mon, 12 Jan 2009 19:17:35 +0000 (19:17 +0000)]
Add basic amd64 support for VIA Nano processors.

15 years agoVi got me in trouble in r187102 - fix typo of duplicate output filename.
obrien [Mon, 12 Jan 2009 17:26:52 +0000 (17:26 +0000)]
Vi got me in trouble in r187102 - fix typo of duplicate output filename.

Submitted by: several

15 years agoFix issue where ata_atapicmd() can never really return EBUSY which is
obrien [Mon, 12 Jan 2009 17:18:58 +0000 (17:18 +0000)]
Fix issue where ata_atapicmd() can never really return EBUSY which is
expected in acd_fixate().

This should fix various problems folks are having with 'burncd' reporting
"burncd: ioctl(CDRIOCFIXATE): Input/output error" during the fixate phase
when "fixate" is issued together with the "data" command.

PR: 95979
Submitted by: Jaakko Heinonen <jh@saunalahti.fi>

15 years agoProvide a NDIS tx power level converstion to/from net80211, this uses a loookup
thompsa [Mon, 12 Jan 2009 17:15:09 +0000 (17:15 +0000)]
Provide a NDIS tx power level converstion to/from net80211, this uses a loookup
table to approximate mW<->dBM.

Submitted by: Paul B. Mahol

15 years agoFix CTF based builds to that if the debug build is being used we get
gnn [Mon, 12 Jan 2009 16:54:41 +0000 (16:54 +0000)]
Fix CTF based builds to that if the debug build is being used we get
debug symbols.

Reviewed by: jhb

15 years agoUpdate fech URL.
obrien [Mon, 12 Jan 2009 16:31:27 +0000 (16:31 +0000)]
Update fech URL.

Submitted by: Alexander Best <alexbestms@math.uni-muenster.de>

15 years agoAllow VIA Nano processors to boot FreeBSD/amd64.
jkim [Mon, 12 Jan 2009 16:28:19 +0000 (16:28 +0000)]
Allow VIA Nano processors to boot FreeBSD/amd64.

PR: amd64/130303
MFC after: 1 week

15 years agoAdd support for AMD64 Family 10h processors.
jkim [Mon, 12 Jan 2009 16:07:03 +0000 (16:07 +0000)]
Add support for AMD64 Family 10h processors.

PR: kern/128331
MFC after: 3 days

15 years ago- add missing include
danger [Mon, 12 Jan 2009 13:12:02 +0000 (13:12 +0000)]
- add missing include
- fix struct memeber's name [1]

PR: docs/130413 [1]
Submitted by: Thomas Mueller <tmueller@sysgo.com> [1]
MFC after: 3 days

15 years agoRevive the RTF_LLINFO flag in route.h. The kernel code is guarded
qingli [Mon, 12 Jan 2009 11:24:32 +0000 (11:24 +0000)]
Revive the RTF_LLINFO flag in route.h. The kernel code is guarded
by the new kernel option COMPAT_ROUTE_FLAGS for binary backward
compatibility. The RTF_LLDATA flag maps to the same value as RTF_LLINFO.
RTF_LLDATA is used by the arp and ndp utilities. The RTF_LLDATA flag is
always returned to the userland regardless whether the COMPAT_ROUTE_FLAGS
is defined.

15 years agoUse a dynamically grown buffer for building the argv for the sub-mounts.
obrien [Mon, 12 Jan 2009 08:22:36 +0000 (08:22 +0000)]
Use a dynamically grown buffer for building the argv for the sub-mounts.
Also fix RCSid spamage.

Inspired by patch from: Christoph Mallon <christoph.mallon@gmx.de>

15 years agoo Sort .Xr.
maxim [Mon, 12 Jan 2009 07:45:03 +0000 (07:45 +0000)]
o Sort .Xr.

15 years ago o Language improvements from OpenBSD;
delphij [Mon, 12 Jan 2009 06:10:48 +0000 (06:10 +0000)]
 o Language improvements from OpenBSD;
 o Use an ISC-style license as did by the author.

Obtained from: OpenBSD

15 years ago o ANSIfy.
delphij [Mon, 12 Jan 2009 06:09:34 +0000 (06:09 +0000)]
 o ANSIfy.
 o Use ISC style copyright as did by the author.

Obtained from: OpenBSD

15 years agoFix typo.
delphij [Mon, 12 Jan 2009 03:33:48 +0000 (03:33 +0000)]
Fix typo.

Submitted by: Ben Kaduk <minimarmot gmail com>
MFC after: 3 days

15 years agoSome early Macintosh GPIO controllers don't provide reg properties for
nwhitehorn [Mon, 12 Jan 2009 01:36:01 +0000 (01:36 +0000)]
Some early Macintosh GPIO controllers don't provide reg properties for
interrupt-only GPIOs. Honor this, and allow interrupt attachment, but not
read/write access for such devices.

Reported by: Niels Eliasen

15 years ago- improve readability
danger [Sun, 11 Jan 2009 22:36:45 +0000 (22:36 +0000)]
- improve readability

Reviewed by: trhodes, keramida
MFC after: 3 days

15 years agoQuote the "u" as it's the name of the union, this may prevent
trhodes [Sun, 11 Jan 2009 21:59:42 +0000 (21:59 +0000)]
Quote the "u" as it's the name of the union, this may prevent
some confusion when reading the manual page.

PR: 117798
Discussed with: keramida, brueffer
Recommended by: phk

15 years agoSince we allow conditional allocation of labels on syncache entries,
rwatson [Sun, 11 Jan 2009 20:01:43 +0000 (20:01 +0000)]
Since we allow conditional allocation of labels on syncache entries,
remove historic assertion that labels are always present.

15 years agoRemove unneeded includes.
thompsa [Sun, 11 Jan 2009 19:41:38 +0000 (19:41 +0000)]
Remove unneeded includes.

15 years agoadd missing return that broke WPA1+2 support
sam [Sun, 11 Jan 2009 18:59:14 +0000 (18:59 +0000)]
add missing return that broke WPA1+2 support

Submitted by: "Jared Go" <jared@hobnob.com>

15 years agoAdd a short section talking about jails and file systems; mention the
bz [Sun, 11 Jan 2009 18:40:56 +0000 (18:40 +0000)]
Add a short section talking about jails and file systems; mention the
mountand jail-aware file systems as well as quota.

PR: kern/68192
Reviewed by: simon
MFC after: 2 weeks

15 years agoFix msdosfs_print(), which in turn fixes "show lockedvnods" for msdosfs
trasz [Sun, 11 Jan 2009 17:11:01 +0000 (17:11 +0000)]
Fix msdosfs_print(), which in turn fixes "show lockedvnods" for msdosfs
vnodes.

Reviewed by: kib
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation

15 years agoUse full name (noticed by: ru@
chinsan [Sun, 11 Jan 2009 13:56:55 +0000 (13:56 +0000)]
Use full name (noticed by: ru@

15 years agoPrevent a panic that happens on SMP machines when removing a disk with
trasz [Sun, 11 Jan 2009 13:51:04 +0000 (13:51 +0000)]
Prevent a panic that happens on SMP machines when removing a disk with
many writes queued up.

Reviewed by: phk, scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation

15 years agoFix unwanted crosschannel mixing, possible on some codecs like
mav [Sun, 11 Jan 2009 12:04:18 +0000 (12:04 +0000)]
Fix unwanted crosschannel mixing, possible on some codecs like
VIA VT1708B and Realtek ALC268.

15 years agoo Tweak comments a bit.
maxim [Sun, 11 Jan 2009 11:36:00 +0000 (11:36 +0000)]
o Tweak comments a bit.

15 years agoDo invoke mac_ifnet_check_transmit() and mac_ifnet_create_mbuf()
rwatson [Sat, 10 Jan 2009 23:50:23 +0000 (23:50 +0000)]
Do invoke mac_ifnet_check_transmit() and mac_ifnet_create_mbuf()
in the loopback and synthetic loopback code so that packets are
access control checked and relabeled.  Previously, the MAC
Framework enforced that packets sent over the loopback weren't
relabeled, but this will allow policies to make explicit choices
about how and whether to relabel packets on the loopback.  Also,
for SIMPLEX devices, this produces more consistent behavior for
looped back packets to the local MAC address by labeling those
packets as coming from the interface.

Discussed with: csjp
Obtained from: TrustedBSD Project

15 years agoFix usage() with SYNOPSIS.
ru [Sat, 10 Jan 2009 22:49:02 +0000 (22:49 +0000)]
Fix usage() with SYNOPSIS.

15 years agoFix markup and spelling.
ru [Sat, 10 Jan 2009 22:48:12 +0000 (22:48 +0000)]
Fix markup and spelling.

15 years agoOSS tools expect EINVAL for unsupported ioctls, but not ENXIO.
mav [Sat, 10 Jan 2009 21:38:37 +0000 (21:38 +0000)]
OSS tools expect EINVAL for unsupported ioctls, but not ENXIO.

15 years agoExplicitly check each mount argv building assignment for buffer over flowing.
obrien [Sat, 10 Jan 2009 20:54:47 +0000 (20:54 +0000)]
Explicitly check each mount argv building assignment for buffer over flowing.

Reviewed by: imp (earlier version of patch)

15 years agoMake devnode include full device path.
mav [Sat, 10 Jan 2009 20:49:15 +0000 (20:49 +0000)]
Make devnode include full device path.
This makes OSSv4 osstest tool work.

15 years agoRemove debug slipped with the previous commit.
mav [Sat, 10 Jan 2009 19:01:29 +0000 (19:01 +0000)]
Remove debug slipped with the previous commit.

15 years agoImport some new constants and structures fields from OSSv4.
mav [Sat, 10 Jan 2009 18:19:22 +0000 (18:19 +0000)]
Import some new constants and structures fields from OSSv4.
Implement some OSSv4 ioctls to make ossinfo tool work and print
something reasonable.

15 years agoDon't call destroy_dev(9) with a mutex held. While here, shuffle
trasz [Sat, 10 Jan 2009 17:22:49 +0000 (17:22 +0000)]
Don't call destroy_dev(9) with a mutex held.  While here, shuffle
things around so the periph destructors look alike.  Based on a patch
by Jaakko Heinonen.

Submitted by: Jaakko Heinonen
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation

15 years agoAdd the possibility to specify "-o force" with "mdconfig -du".
trasz [Sat, 10 Jan 2009 17:17:18 +0000 (17:17 +0000)]
Add the possibility to specify "-o force" with "mdconfig -du".

Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation

15 years agoCorrect description for the Marvell 88SE6101.
kib [Sat, 10 Jan 2009 16:24:58 +0000 (16:24 +0000)]
Correct description for the Marvell 88SE6101.

Submitted by: Andriy Gapon <avg icyb net ua>
MFC after: 3 days

15 years agoAdd one more bunch of controller and codec IDs.
mav [Sat, 10 Jan 2009 14:14:00 +0000 (14:14 +0000)]
Add one more bunch of controller and codec IDs.

15 years agoA bit of rewording for clarity, taken from OpenBSD.
trhodes [Sat, 10 Jan 2009 12:47:22 +0000 (12:47 +0000)]
A bit of rewording for clarity, taken from OpenBSD.

Submitted by: jmc@OpenBSD.org

15 years agoFix crash with "netstat -m -N foo".
ru [Sat, 10 Jan 2009 12:39:12 +0000 (12:39 +0000)]
Fix crash with "netstat -m -N foo".

PR: bin/124724
MFC after: 3 days

15 years agoRather than having MAC policies explicitly declare what object types
rwatson [Sat, 10 Jan 2009 10:58:41 +0000 (10:58 +0000)]
Rather than having MAC policies explicitly declare what object types
they label, derive that information implicitly from the set of label
initializers in their policy operations set.  This avoids a possible
class of programmer errors, while retaining the structure that
allows us to avoid allocating labels for objects that don't need
them.  As before, we regenerate a global mask of labeled objects
each time a policy is loaded or unloaded, stored in mac_labeled.

Discussed with:   csjp
Suggested by:     Jacques Vidrine <nectar at apple.com>
Obtained from:    TrustedBSD Project
Sponsored by:     Apple, Inc.

15 years agoUse MPC_OBJECT_IP6Q to indicate labeling of struct ip6q rather than
rwatson [Sat, 10 Jan 2009 09:17:16 +0000 (09:17 +0000)]
Use MPC_OBJECT_IP6Q to indicate labeling of struct ip6q rather than
MPC_OBJECT_IPQ; it was already defined, just not used.

Obtained from: TrustedBSD Project
Sponsored by: Apple, Inc.

15 years agoRather than using the cred from curthread, take it from the thread
bz [Fri, 9 Jan 2009 23:57:59 +0000 (23:57 +0000)]
Rather than using the cred from curthread, take it from the thread
referenced in the sysctl req argument.

Reviewed by: rwatson
MFC after: 2 weeks

15 years agoremove license ack requirement; this was never needed
sam [Fri, 9 Jan 2009 22:35:25 +0000 (22:35 +0000)]
remove license ack requirement; this was never needed

Reviewed by: core

15 years agoFix a deadlock which can occur due to a pseudofs vnode not getting unlocked.
marcus [Fri, 9 Jan 2009 22:06:48 +0000 (22:06 +0000)]
Fix a deadlock which can occur due to a pseudofs vnode not getting unlocked.

Reported by: Richard Todd <rmtodd@ichotolot.servalan.com>
Reviewed by: kib
Approved by: kib

15 years agoRestrict arp, ndp and theoretically the FIB listing (if not
bz [Fri, 9 Jan 2009 21:57:49 +0000 (21:57 +0000)]
Restrict arp, ndp and theoretically the FIB listing (if not
read with libkvm) to the addresses of a prison, when inside a
jail. [1]
As the patch from the PR was pre-'new-arp', add checks to the
llt_dump handlers as well.

While touching RTM_GET in route_output(), consistently use
curthread credentials rather than the creds from the socket
there. [2]

PR: kern/68189
Submitted by: Mark Delany <sxcg2-fuwxj@qmda.emu.st> [1]
Discussed with: rwatson [2]
Reviewed by: rwatson
MFC after: 4 weeks

15 years agoexample configurations for cross-building to Gateworks 2348 and 2358 boards;
sam [Fri, 9 Jan 2009 21:39:44 +0000 (21:39 +0000)]
example configurations for cross-building to Gateworks 2348 and 2358 boards;
probably needs cleanups to be less specific to my needs/uses

MFC after: 2 weeks

15 years agoRecognize et(4), igb(4), iwn(4), ixgbe(4) and nxge(4) devices.
brueffer [Fri, 9 Jan 2009 19:49:32 +0000 (19:49 +0000)]
Recognize et(4), igb(4), iwn(4), ixgbe(4) and nxge(4) devices.
Correct some minor whitespace in the ae(4) entry.

Reported by: Mars G Miro
Approved by: rwatson (mentor)
MFC after: 1 week

15 years agoFix fat-fingered comment.
adrian [Fri, 9 Jan 2009 18:38:57 +0000 (18:38 +0000)]
Fix fat-fingered comment.

Noticed-by: julian
15 years agoFix indentation; add FALLTHROUGH.
adrian [Fri, 9 Jan 2009 17:21:22 +0000 (17:21 +0000)]
Fix indentation; add FALLTHROUGH.

Thanks Max!

15 years agoBetter comment what the socket option does. Thanks to Sam Leffler
adrian [Fri, 9 Jan 2009 17:18:17 +0000 (17:18 +0000)]
Better comment what the socket option does. Thanks to Sam Leffler
for suggesting this.

15 years agoComment some potentially confusing logic.
adrian [Fri, 9 Jan 2009 17:16:18 +0000 (17:16 +0000)]
Comment some potentially confusing logic.

Nitpicking by: mlaier

MFC after: 2 weeks

15 years agoSort MLINKS.
ru [Fri, 9 Jan 2009 16:24:10 +0000 (16:24 +0000)]
Sort MLINKS.

15 years agoTake the cred from curthread rather than curproc as curproc would need
bz [Fri, 9 Jan 2009 16:22:32 +0000 (16:22 +0000)]
Take the cred from curthread rather than curproc as curproc would need
locking but the credential from curthread (usually) never changes.

Discussed with: jhb
MFC after: 2 weeks

15 years agoImplement a new IP option (not compiled/enabled by default) to allow
adrian [Fri, 9 Jan 2009 16:02:19 +0000 (16:02 +0000)]
Implement a new IP option (not compiled/enabled by default) to allow
applications to specify a non-local IP address when bind()'ing a socket
to a local endpoint.

This allows applications to spoof the client IP address of connections
if (obviously!) they somehow are able to receive the traffic normally
destined to said clients.

This patch doesn't include any changes to ipfw or the bridging code to
redirect the client traffic through the PCB checks so TCP gets a shot
at it. The normal behaviour is that packets with a non-local destination
IP address are not handled locally. This can be dealth with some IPFW hackery;
modifications to IPFW to make this less hacky will occur in subsequent
commmits.

Thanks to Julian Elischer and others at Ironport. This work was approved
and donated before Cisco acquired them.

Obtained from: Julian Elischer and others
MFC after: 2 weeks

15 years agoDEBUG_REDZONE needs DDB which needs KDB.
brueffer [Fri, 9 Jan 2009 14:41:36 +0000 (14:41 +0000)]
DEBUG_REDZONE needs DDB which needs KDB.

PR: 130324
Submitted by: Jaakko Heinonen <jh@saunalahti.fi>
MFC after: 3 days

15 years agoMake SIOCGIFADDR and related, as well as SIOCGIFADDR_IN6 and related
bz [Fri, 9 Jan 2009 13:06:56 +0000 (13:06 +0000)]
Make SIOCGIFADDR and related, as well as SIOCGIFADDR_IN6 and related
jail-aware. Up to now we returned the first address of the interface
for SIOCGIFADDR w/o an ifr_addr in the query. This caused problems for
programs querying for an address but running inside a jail, as the
address returned usually did not belong to the jail.
Like for v6, if there was an ifr_addr given on v4, you could probe
for more addresses on the interfaces that you were not allowed to see
from inside a jail. Return an error (EADDRNOTAVAIL) in that case
now unless the address is on the given interface and valid for the
jail.

PR: kern/114325
Reviewed by: rwatson
MFC after: 4 weeks

15 years agoCheck PCIE link status before accessing the bus.
raj [Fri, 9 Jan 2009 12:38:41 +0000 (12:38 +0000)]
Check PCIE link status before accessing the bus.

Some 88F5182-based systems (Linkstation) have problems when PCIE is
accessed without any peripherals present.