]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoRevert the mechanical change from 'file system' to 'filesystem', committed
trasz [Tue, 28 Jun 2011 19:59:46 +0000 (19:59 +0000)]
Revert the mechanical change from 'file system' to 'filesystem', committed
in r223429.  As bde@ pointed out, it was mostly backwards.

13 years agoFix typo in r223648 which was accidentally committed
marius [Tue, 28 Jun 2011 16:44:02 +0000 (16:44 +0000)]
Fix typo in r223648 which was accidentally committed

13 years ago- In gem_reset_rx() also reset the RX MAC which is necessary in order to
marius [Tue, 28 Jun 2011 16:16:43 +0000 (16:16 +0000)]
- In gem_reset_rx() also reset the RX MAC which is necessary in order to
  get it out of a stuck condition that can be caused by GEM_MAC_RX_OVERFLOW.
- In gem_reset_rxdma() call gem_setladrf() in order to reprogram the RX
  filter and restore the previous content of GEM_MAC_RX_CONFIG. While at it
  consistently use the newly introduced sc_mac_rxcfg throughout the driver
  instead of reading the its old content.
- Increment if_iqdrops instead of if_ierrors in case of RX buffer allocation
  failure.
- According to the GEM datasheet the RX MAC should also be disabled in
  gem_setladrf() before changing its configuration.
- Add error messages to gem_disable_{r,t}x() and take advantage of these
  throughout the driver instead of duplicating their functionality all over
  the place.

In joint forces with: yongari

13 years agoRun load_rc_config before stop_cmd definition, so that ${quotaoff_flags}
pluknet [Tue, 28 Jun 2011 14:26:34 +0000 (14:26 +0000)]
Run load_rc_config before stop_cmd definition, so that ${quotaoff_flags}
is correctly expanded inside stop_cmd instead of getting nothing.

PR: conf/157687
Reported by: Dmitry Banschikov <d.banschikov peterhost ru>
MFC after: 1 week

13 years agoLibUSB v1.0: Need at least one frame when doing the dummy open
hselasky [Tue, 28 Jun 2011 14:07:28 +0000 (14:07 +0000)]
LibUSB v1.0: Need at least one frame when doing the dummy open
else clear stall won't work in that case.

13 years agoRemove needless file due to Russia scraps DST in 2011.
osa [Tue, 28 Jun 2011 12:32:24 +0000 (12:32 +0000)]
Remove needless file due to Russia scraps DST in 2011.
> Description of fields to fill in above:                     76 columns --|
> PR:            If a GNATS PR is affected by the change.
> Submitted by:  If someone else sent in the change.
> Reviewed by:   If someone else reviewed your modification.
> Approved by:   If you needed approval for this commit.
> Obtained from: If the change is from a third party.
> MFC after:     N [day[s]|week[s]|month[s]].  Request a reminder email.
> Security:      Vulnerability reference (one per line) or description.
> Empty fields above will be automatically removed.

M    calendars/ru_RU.KOI8-R/calendar.all
D    calendars/ru_RU.KOI8-R/calendar.msk

13 years agoUpdate packet filter (pf) code to OpenBSD 4.5.
bz [Tue, 28 Jun 2011 11:57:25 +0000 (11:57 +0000)]
Update packet filter (pf) code to OpenBSD 4.5.

You need to update userland (world and ports) tools
to be in sync with the kernel.

Submitted by: mlaier
Submitted by: eri

13 years agoRemove AN again now that tzdata2011h has been imported.
edwin [Tue, 28 Jun 2011 10:38:12 +0000 (10:38 +0000)]
Remove AN again now that tzdata2011h has been imported.

13 years agoMFV of tzdata2011h, r223627
edwin [Tue, 28 Jun 2011 10:24:01 +0000 (10:24 +0000)]
MFV of tzdata2011h, r223627

- Russia scraps DST in 2011
- Remove Netherlands Antilles, add Bonaire, Curacao, Sint Maarten

13 years agoCompare port numbers correctly. They are stored by SRCPORT()
bz [Tue, 28 Jun 2011 09:46:25 +0000 (09:46 +0000)]
Compare port numbers correctly.  They are stored by SRCPORT()
in host byte order, so we need to compare them as such.
Properly compare IPv6 addresses as well.

This allows the, by default, 8 badaddrs slots per address
family to work correctly and only print sendto() errors once.

The change is no longer applicable to any latest upstream versions.

Approved by: roberto
Sponsored by: Sandvine Incorporated
MFC after: 1 week

13 years agoUpdate ifc_len field of struct ifconf passed for the ioctl SIOCGIFCONF32
pluknet [Tue, 28 Jun 2011 08:41:44 +0000 (08:41 +0000)]
Update ifc_len field of struct ifconf passed for the ioctl SIOCGIFCONF32
(i.e. under COMPAT_FREEBSD32) in case ifconf() returned success to match
the native SIOCGIFCONF behavior.

PR: kern/158369
Reported by: Paul Procacci <pprocacci att gmail com>
MFC after: 1 week

13 years agoRemove duplicate header includes
kevlo [Tue, 28 Jun 2011 08:36:48 +0000 (08:36 +0000)]
Remove duplicate header includes

13 years agoAdd a new "REFCOMPRESSRATIO" property.
mm [Tue, 28 Jun 2011 07:52:01 +0000 (07:52 +0000)]
Add a new "REFCOMPRESSRATIO" property.

For snapshots, this is the same as COMPRESSRATIO, but for
filesystems/volumes, the COMPRESSRATIO is based on the data "USED" (ie,
includes blocks in children, but not blocks shared with the origin).

This is needed to figure out how much space a filesystem would use if it
were not compressed (ignoring snapshots).

Illumos-gate revision: 13387

Obtained from: Illumos (Feature #1092)
MFC after: 2 weeks

13 years agoDisable vdev cache (readahead) by default.
mm [Tue, 28 Jun 2011 06:32:35 +0000 (06:32 +0000)]
Disable vdev cache (readahead) by default.

The vdev cache is very underutilized (hit ratio 30%-70%) and may consume
excessive memory on systems with many vdevs.

Illumos-gate revision: 13346

Obtained from: Illumos (Bug #175)
MFC after: 1 week

13 years agoAllow mountpoints as arguments for the 'zfs get' command.
mm [Tue, 28 Jun 2011 06:16:33 +0000 (06:16 +0000)]
Allow mountpoints as arguments for the 'zfs get' command.

Illumos-gate revision: 13295

Obtained from: Illumos (Feature #510)
MFC after: 1 week

13 years agoIncorporate vendor commit ecdc5c0a7f7591a7cd4a:
delphij [Tue, 28 Jun 2011 00:58:12 +0000 (00:58 +0000)]
Incorporate vendor commit ecdc5c0a7f7591a7cd4a:

In userland, sign extend the offset for JA instructions.

We currently use that to implement "ip6 protochain", and "pc" might be
wider than "pc->k", in which case we need to arrange that "pc->k" be
sign-extended, by casting it to bpf_int32.

PR: kern/157188
Submitted by: plosher
MFC after: 2 weeks

13 years agoMake sure the extended regdomain word is initialised.
adrian [Tue, 28 Jun 2011 00:01:55 +0000 (00:01 +0000)]
Make sure the extended regdomain word is initialised.

As with the AR9285, the AR9287 has a default word of 0x1F which means
all the various bits in that field are set on by default.

13 years agoAdd support for SCTP_PR_SCTP_NONE which I misded to add.
tuexen [Mon, 27 Jun 2011 22:03:33 +0000 (22:03 +0000)]
Add support for SCTP_PR_SCTP_NONE which I misded to add.
This constant is defined in the socket API ID.

MFC after: 2 months.

13 years agoRevert the entry point label to 'start' to unbreak the build.
jhb [Mon, 27 Jun 2011 21:43:56 +0000 (21:43 +0000)]
Revert the entry point label to 'start' to unbreak the build.

Pointy hat to: jhb

13 years agoEnable CPUSaver D102 E-step microcode loading for 82551 revision
yongari [Mon, 27 Jun 2011 21:37:38 +0000 (21:37 +0000)]
Enable CPUSaver D102 E-step microcode loading for 82551 revision
0x10.

13 years agoDisable microcode loading for 82550 and 82550C controllers. Loading
yongari [Mon, 27 Jun 2011 21:27:12 +0000 (21:27 +0000)]
Disable microcode loading for 82550 and 82550C controllers. Loading
the microcode caused SCB timeouts. Linux driver does not allow
microcode loading for these controllers and jfv also confirmed that
there is no need to do and it shouldn't.

PR: kern/103332
Additional confirmation from: jfv
MFC after: 1 week

13 years agoRegenerate usb.conf after r223566.
hselasky [Mon, 27 Jun 2011 20:32:19 +0000 (20:32 +0000)]
Regenerate usb.conf after r223566.

13 years agoBuild Scrt.o on powerpc64. Its introduction on other platforms got lost
nwhitehorn [Mon, 27 Jun 2011 16:24:36 +0000 (16:24 +0000)]
Build Scrt.o on powerpc64. Its introduction on other platforms got lost
during the period of time the powerpc64 port was on a project branch.

13 years ago- Remove the fake BPB from zfsldr. zfsldr doesn't support booting from
jhb [Mon, 27 Jun 2011 13:58:24 +0000 (13:58 +0000)]
- Remove the fake BPB from zfsldr.  zfsldr doesn't support booting from
  floppies, so it will not be used as the start of an emulated floppy
  image on a bootable CD which is what the fake BPB was used for.
- Only check that EDD packet mode is available once at the start of
  zfsldr rather than for each disk sector now that we read data in one
  sector at a time.  As a result, collapse the remaining bits of read
  up into nread and rename nread to read.
- Restore a return at the end of putstr that I removed in the previous
  revision.

Tested by: Henri Hennebert (earlier version)
MFC after: 1 week

13 years agoAdd macros to specify owner, group and mode of config files for installation.
se [Mon, 27 Jun 2011 13:23:51 +0000 (13:23 +0000)]
Add macros to specify owner, group and mode of config files for installation.

Submitted by: Chris Rees (crees)

13 years agoEBR could contain an early stage of boot code. But we do not support it.
ae [Mon, 27 Jun 2011 12:42:48 +0000 (12:42 +0000)]
EBR could contain an early stage of boot code. But we do not support it.
Remove message about non empty bootcode, we can not break something
while GEOM_PART_EBR_COMPAT is defined.

But without GEOM_PART_EBR_COMPAT any changes in EBR are allowed and we
can accidentally wipe the boot code. To do not break anything save
the first EBR chunk and keep it untouched each time when we are
changing EBR. Note that we are still not support boot code for EBR.

PR: kern/141235
MFC after: 1 month

13 years agoAdd possibility to pass IPv6 packets to a divert(4) socket.
glebius [Mon, 27 Jun 2011 12:21:11 +0000 (12:21 +0000)]
Add possibility to pass IPv6 packets to a divert(4) socket.

Submitted by: sem

13 years agoMS Windows NT+ uses 4 bytes at offset 0x1b8 in the MBR to identify
ae [Mon, 27 Jun 2011 10:42:06 +0000 (10:42 +0000)]
MS Windows NT+ uses 4 bytes at offset 0x1b8 in the MBR to identify
disk drive. The boot0cfg(8) utility preserves these 4 bytes when is
writing bootcode to keep a multiboot ability.
Change gpart's bootcode method to keep DSN if it is not zero. Also
do not allow writing bootcode with size not equal to MBRSIZE.

PR: kern/157819
Tested by: Eir Nym
MFC after: 1 month

13 years agoCompile hastd and hastctl with capsicum support.
pjd [Mon, 27 Jun 2011 09:15:41 +0000 (09:15 +0000)]
Compile hastd and hastctl with capsicum support.

X-MFC after: capsicum merge

13 years agoCompile capsicum support only if HAVE_CAPSICUM is defined.
pjd [Mon, 27 Jun 2011 09:14:25 +0000 (09:14 +0000)]
Compile capsicum support only if HAVE_CAPSICUM is defined.

MFC after: 3 days

13 years agoLog a warning if we cannot sandbox using capsicum, but only under debug level 1.
pjd [Mon, 27 Jun 2011 09:10:48 +0000 (09:10 +0000)]
Log a warning if we cannot sandbox using capsicum, but only under debug level 1.
It would be too noisy to log it as a proper warning as CAPABILITIES are not
compiled into GENERIC by default.

MFC after: 3 days

13 years agoPrint out a big warning if DFS can't find a channel to use.
adrian [Mon, 27 Jun 2011 05:57:14 +0000 (05:57 +0000)]
Print out a big warning if DFS can't find a channel to use.
This way people debugging DFS won't be surprised when their
AP stops talking.

13 years agoRewrite HISTORY: The SHA256 code first appeared in 6.0, and the SHA512
cperciva [Mon, 27 Jun 2011 02:10:10 +0000 (02:10 +0000)]
Rewrite HISTORY: The SHA256 code first appeared in 6.0, and the SHA512
code in 9.0; neither existed in FreeBSD 4.0.

13 years agosh: Include <limits.h> instead of non-standard <sys/limits.h>.
jilles [Sun, 26 Jun 2011 20:12:05 +0000 (20:12 +0000)]
sh: Include <limits.h> instead of non-standard <sys/limits.h>.

13 years agoFor some reason, contrib/traceroute/traceroute.c ensures MAXHOSTNAMELEN
dim [Sun, 26 Jun 2011 19:03:33 +0000 (19:03 +0000)]
For some reason, contrib/traceroute/traceroute.c ensures MAXHOSTNAMELEN
is defined, but then proceeds to use a hardcoded maximum hostname length
of 64 anyway.  Fix this by checking against MAXHOSTNAMELEN instead.

PR: bin/157732
MFC after: 3 days

13 years agoFix whitespace inconsistencies in libc in files copyrighted by me.
ed [Sun, 26 Jun 2011 18:27:17 +0000 (18:27 +0000)]
Fix whitespace inconsistencies in libc in files copyrighted by me.

13 years agoFix whitespace inconsistencies in the TTY layer and its drivers owned by me.
ed [Sun, 26 Jun 2011 18:26:20 +0000 (18:26 +0000)]
Fix whitespace inconsistencies in the TTY layer and its drivers owned by me.

13 years agoFix various whitespace inconsistencies in sys/teken.
ed [Sun, 26 Jun 2011 18:25:10 +0000 (18:25 +0000)]
Fix various whitespace inconsistencies in sys/teken.

13 years agoThe --newer-than test should descend into old
kientzle [Sun, 26 Jun 2011 17:54:11 +0000 (17:54 +0000)]
The --newer-than test should descend into old
directories to look for new files.

PR: bin/150890
Submitted by: Tobias Herre
MFC after: 3 weeks

13 years agoAdd better error handling for RTAS calls. These can potentially cause
nwhitehorn [Sun, 26 Jun 2011 16:11:36 +0000 (16:11 +0000)]
Add better error handling for RTAS calls. These can potentially cause
machine checks (e.g. invalid PCI configuration cycles), but these can
be caught and recovered from. This change also the RTAS PCI driver to
work without modification as a replacement for the Grackle driver on
Grackle-based Powermacs.

13 years agoRevert r223479. It is unnecessary and served only to slightly ameliorate
nwhitehorn [Sun, 26 Jun 2011 15:08:14 +0000 (15:08 +0000)]
Revert r223479. It is unnecessary and served only to slightly ameliorate
some manifestations of the bug actually fixed in r223485.

13 years ago.. this wasn't supposed to be committed! sorry.
adrian [Sun, 26 Jun 2011 14:29:49 +0000 (14:29 +0000)]
.. this wasn't supposed to be committed! sorry.

13 years agoFix beacon transmission after a channel set.
adrian [Sun, 26 Jun 2011 13:53:24 +0000 (13:53 +0000)]
Fix beacon transmission after a channel set.

The DFS code was tickling the channel set directly whilst going
through the state RUN -> CSA -> RUN. This only changed the channel;
it didn't go via ath_reset(). However in this driver, a channel
change always causes a chip reset, which resets the beacon timer
configuration and interrupt setup. This meant that data would go
out but as the beacon timers never fired, beacons would never
be queued.

The confusing part is that sometimes the state transition was
RUN -> SCAN -> CAC -> RUN (with CSA being in there sometimes);
going via SCAN would clear sc_beacons and thus the transition
to RUN would reprogram beacon transmission.

In case someone tries debugging why suspending a device currently
beaconing (versus just RX'ing beacons which is what occurs in STA
mode), add a silly comment which should hopefully land them at
this commit message. The call to ath_hal_reset() will be clearing
the beacon config and it may not be always reset.

13 years agoAdd ATH_ENABLE_DFS which enables the DFS flag so the DFS code
adrian [Sun, 26 Jun 2011 13:43:15 +0000 (13:43 +0000)]
Add ATH_ENABLE_DFS which enables the DFS flag so the DFS code
can be tested.

This doesn't at all actually do radar detection! It's just
so developers who wish to test the net80211 DFS code can easily
do so. Without this flag, the DFS channels are never marked
DFS and thus the DFS stuff doesn't run.

13 years agoThe SMCWUSBG is a zyd(4) device, not an uath(4) device. Remove from the
gavin [Sun, 26 Jun 2011 11:37:24 +0000 (11:37 +0000)]
The SMCWUSBG is a zyd(4) device, not an uath(4) device.  Remove from the
latter.

It appears that the addition to uath(4) came in through PR kern/135009,
which had tested another device, the SMCWUSBTG2, successfully with uath(4)
and included the SMCWUSBG as it "has the same chipset".  I can find no
other evidence that these two do actually share the same chipset.  Moreover,
Linux treats the SMCWUSBG as a zyd(4) device also.

This reverts r223537.

Discussed with: hselasky, kevlo
MFC after: 1 week

13 years agoI think 23dBm is the correct value to use here. CRDA uses 20dBm + 3dB max antenna
adrian [Sun, 26 Jun 2011 10:34:01 +0000 (10:34 +0000)]
I think 23dBm is the correct value to use here. CRDA uses 20dBm + 3dB max antenna
gain; I believe net80211 doesn't take antenna gain into account and leaves it
up to the driver to enforce. (ath_hal(4) certainly tries to do this.)

13 years agoAdd a couple more frequency ranges to the FCC3 (FCC + DFS) regulatory domain.
adrian [Sun, 26 Jun 2011 10:32:09 +0000 (10:32 +0000)]
Add a couple more frequency ranges to the FCC3 (FCC + DFS) regulatory domain.

The frequency range 5490MHz -> 5710MHz was opened up sometime in 2009, but
regdomain.xml wasn't updated.

FCC reference: (Section 15.407): http://louise.hallikainen.org/FCC/FccRules/2009/15/407/

The hole between 5600-5650MHz is due to a request from Airports using
a weather radar system which also utilises this range.
The GIT commit explaining this hole in more detail can be found here:

http://git.kernel.org/?p=linux/kernel/git/linville/wireless-regdb.git;a=commit;h=fcbf9225d56e82d9a4e506187d42285e76d81523

13 years agoRemove duplicate header includes
kevlo [Sun, 26 Jun 2011 10:07:48 +0000 (10:07 +0000)]
Remove duplicate header includes

13 years agoReplace tab with 8 spaces, bringing it in line with the rest of the file.
adrian [Sun, 26 Jun 2011 09:32:46 +0000 (09:32 +0000)]
Replace tab with 8 spaces, bringing it in line with the rest of the file.

13 years agocam/scsi/scsi_cd.c:
gibbs [Sun, 26 Jun 2011 01:32:46 +0000 (01:32 +0000)]
cam/scsi/scsi_cd.c:
In cdregister(), hold the periph lock semaphore during changer
probe/configuration.  This removes a window where an open of the
cd device may succeed before probe processing has completed.

13 years agocam/cam_xpt.c:
gibbs [Sun, 26 Jun 2011 01:14:54 +0000 (01:14 +0000)]
cam/cam_xpt.c:
In camisr_runqueue(), we need to run the sims queue regardless of
whether or not the current peripheral has more work to do.  This
reverts a change mistakenly made in revision 223081.

Reported by: ache

13 years agoTurn the minimum PWM fan speed down to 30 from 40. It turns out the burning
nwhitehorn [Sun, 26 Jun 2011 00:49:17 +0000 (00:49 +0000)]
Turn the minimum PWM fan speed down to 30 from 40. It turns out the burning
smell that caused me to turn this up was due to a failed fan burning, not
a CPU (plus a healthy dose of paranoia).

Submitted by: Paul Mather <paul at gromit dot dlib dot vt dot edu>

13 years agoDo not attach to the sound device on G5 Xserves, which is actually an
nwhitehorn [Sun, 26 Jun 2011 00:35:11 +0000 (00:35 +0000)]
Do not attach to the sound device on G5 Xserves, which is actually an
LED controller used to run the load graph on the server's front panel.

Reported by: Paul Mather <paul at gromit dot dlib dot vt dot edu>
MFC after: 3 days

13 years agosh: Test that '!' is literal if quoted and first char of bracket expression
jilles [Sat, 25 Jun 2011 20:37:43 +0000 (20:37 +0000)]
sh: Test that '!' is literal if quoted and first char of bracket expression

This also works on stable/8.

13 years agoMore accurate birthplace.
joel [Sat, 25 Jun 2011 19:21:54 +0000 (19:21 +0000)]
More accurate birthplace.

13 years agoOops. The sec field of struct bintime is *not* a 32-bit type.
marcel [Sat, 25 Jun 2011 17:58:35 +0000 (17:58 +0000)]
Oops. The sec field of struct bintime is *not* a 32-bit type.
It's time_t, which is 64 bits on ia64.

13 years ago- Move bus_auto.conf back into /etc/devd/
hselasky [Sat, 25 Jun 2011 17:01:46 +0000 (17:01 +0000)]
- Move bus_auto.conf back into /etc/devd/
- Rename bus_auto.conf into usb.conf

Requested by: imp @
MFC after: 14 days

13 years agoDefine the minimum fractional period in terms of hz. We know hz is
marcel [Sat, 25 Jun 2011 16:35:43 +0000 (16:35 +0000)]
Define the minimum fractional period in terms of hz. We know hz is
a magnitude smaller than itc_freq. A minimum period of 10*hz is
sufficient precision. As a side-effect, the number of clocks per
second, when the machine is idle, dropped by more than 50%.
Be anal and define the maximum period to be at least 4G seconds.
With a 64-bit counter and an ITC frequency that's expected to be
always less than 4Ghz, it takes longer than that to wrap around.

13 years agoIf there is a read error reading Y/N confirmation from the keyboard,
kientzle [Sat, 25 Jun 2011 16:27:49 +0000 (16:27 +0000)]
If there is a read error reading Y/N confirmation from the keyboard,
exit immediately with an error.

If there is an error opening or reading a file to put into the archive,
set the return value for a deferred error exit.

PR: bin/154407

13 years agoThe kerberos5 tools are only used as build tools but not otherwise and
marius [Sat, 25 Jun 2011 16:13:56 +0000 (16:13 +0000)]
The kerberos5 tools are only used as build tools but not otherwise and
didn't get installed either.

MFC after: 1 week

13 years agoAs with EFI, OFW and U-Boot etc only compile FDT support on those
marius [Sat, 25 Jun 2011 16:01:45 +0000 (16:01 +0000)]
As with EFI, OFW and U-Boot etc only compile FDT support on those
architectures that actually use it.

13 years ago- Export the USB device ID format to userspace tools.
hselasky [Sat, 25 Jun 2011 15:51:44 +0000 (15:51 +0000)]
- Export the USB device ID format to userspace tools.

MFC after: 14 days

13 years ago- Remove duplicate USB ID.
hselasky [Sat, 25 Jun 2011 15:46:24 +0000 (15:46 +0000)]
- Remove duplicate USB ID.

MFC after: 3 days

13 years ago- Move auto-load devd config file into etc/defaults folder.
hselasky [Sat, 25 Jun 2011 15:42:33 +0000 (15:42 +0000)]
- Move auto-load devd config file into etc/defaults folder.
- Regenerate file after bugfix in the generator.

Suggested by: Jeremy Messenger
MFC after: 14 days

13 years ago- Need to respect the module name and the USB mode when accumulating device ID's.
hselasky [Sat, 25 Jun 2011 15:22:44 +0000 (15:22 +0000)]
- Need to respect the module name and the USB mode when accumulating device ID's.
- Be more verbose on file seek failures. Allow a file size of zero.
- Improve the wrapper shell.

MFC after: 14 days

13 years ago- Improve bus_autoconf tool.
hselasky [Sat, 25 Jun 2011 13:44:05 +0000 (13:44 +0000)]
- Improve bus_autoconf tool.
- Implement simple and generic language which can
be used to describe any kind of device ID structures.
- Fix endian issues.
- Add an example format file.

Suggested by: imp @
MFC after: 14 days

13 years agoRemove redundant Capsicum sysctl.
jonathan [Sat, 25 Jun 2011 12:37:06 +0000 (12:37 +0000)]
Remove redundant Capsicum sysctl.

Since we're now declaring FEATURE(security_capabilities), there's no need for an explicit SYSCTL_NODE.

Approved by: rwatson

13 years agoAdd missing libkvm and libutil dependencies.
pluknet [Sat, 25 Jun 2011 11:21:23 +0000 (11:21 +0000)]
Add missing libkvm and libutil dependencies.
Now libprocstat takes care of its own dependencies and does not
require applications to specify them.

Reviewed by: stas, jilles

13 years agounconditionally stop other cpus when entering kdb in smp system
avg [Sat, 25 Jun 2011 10:28:16 +0000 (10:28 +0000)]
unconditionally stop other cpus when entering kdb in smp system

... and thus retire debug.kdb.stop_cpus tunable/sysctl.
The knob was to work around CPU stopping issues, which since have been
either fixed or greatly reduced.  kdb should really operate in a special
environment with scheduler stopped and interrupts disabled to provide
deterministic debugging.

Discussed with: attilio, rwatson
X-MFC after: 2 months or never

13 years agogeneric_stop_cpus: pull timeout logic from under DIAGNOSTIC
avg [Sat, 25 Jun 2011 10:01:43 +0000 (10:01 +0000)]
generic_stop_cpus: pull timeout logic from under DIAGNOSTIC

... and also increase the timeout.
It's better to try to proceed somehow despite stuck CPUs than to hang
indefinitely.  Especially so during shutdown and when entering kdb or panic.

Timeout value is still an aribitrary value.
Timeout diagnostic is just a printf; the work on something more
debuggable is planned by attilio.  Need to be careful here as
stop_cpus_hard is called very early while enetering kdb and soon(-ish)
it may become called very early when entering panic.

Reviewed by: attilio
MFC after: 2 months

13 years agoReplace the original copyright notice with my own. Everything in
marcel [Sat, 25 Jun 2011 03:43:58 +0000 (03:43 +0000)]
Replace the original copyright notice with my own. Everything in
this file is written by me and has no bearing on the initial or
original version.

13 years agoUpdate copyright.
marcel [Sat, 25 Jun 2011 03:37:40 +0000 (03:37 +0000)]
Update copyright.

13 years agoNow that ia64 has been switched to the event timers, remove the
marcel [Sat, 25 Jun 2011 02:49:47 +0000 (02:49 +0000)]
Now that ia64 has been switched to the event timers, remove the
conditional compilation work-arounds.

13 years agoSwitch to the event timers infrastructure. This includes:
marcel [Sat, 25 Jun 2011 02:15:14 +0000 (02:15 +0000)]
Switch to the event timers infrastructure. This includes:
o   Setting td_intr_frame to the XIVs trap frame because it's referenced
    by the ET event handler.
o   Signal EOI to the CPU before calling the registered XIV handlers.
    This prevents lost ITC interrupts, which cause starvation in one-shot
    mode.
o   Adding support for IPI_HARDCLOCK with corresponding per-CPU counters.
o   Have the APs call cpu_initclocks() so as to limited the scattering of
    clock related initialization. cpu_initclocks() calls the <self>_bsp()
    or <self>_ap() version accordingly.
o   Uncomment the ET clock handling in cpu_idle().
o   Update the DDB 'show pcpu' output for the new MD fields.
o   Entirely rewritten ia64_ih_clock(). Note that we don't create as many
    clock XIVs as we have CPUs, as is done on PowerPC. It doesn't scale.
    We can only have 240 XIVs and we can have more CPUs than that. There's
    a single intrcnt index for the cumulative clock ticks and we keep per
    CPU counts in the PCPU stats structure.
o   Register the ITC by hooking SI_SUB_CONFIGURE (2nd order).

Open issues:
o   Clock interrupts can still be lost. Some tweaking is still necessary.

Thanks to: mav@ for his support, feedback and explanations.

ET stats while committing:
eris% sysctl machdep.cpu | grep nclks

machdep.cpu.0.nclks: 24007
machdep.cpu.1.nclks: 22895
machdep.cpu.2.nclks: 13523
machdep.cpu.3.nclks: 9342
machdep.cpu.4.nclks: 9103
machdep.cpu.5.nclks: 9298
machdep.cpu.6.nclks: 10039
machdep.cpu.7.nclks: 9479
eris% vmstat -i | grep clock
clock                      108599         50

13 years agoCommit missing piece from a couple days ago - re-add ath_hal_debug.
adrian [Sat, 25 Jun 2011 00:34:40 +0000 (00:34 +0000)]
Commit missing piece from a couple days ago - re-add ath_hal_debug.

13 years agoSmall fix to bring the non-debug definitions of HALDEBUG/HALDEBUG_G in line
adrian [Fri, 24 Jun 2011 23:59:14 +0000 (23:59 +0000)]
Small fix to bring the non-debug definitions of HALDEBUG/HALDEBUG_G in line
with the debug definitions.

13 years agoComment out AH_DEBUG, to get this kernel to compile, until AH_DEBUG is fixed.
cognet [Fri, 24 Jun 2011 23:26:45 +0000 (23:26 +0000)]
Comment out AH_DEBUG, to get this kernel to compile, until AH_DEBUG is fixed.

13 years agosh(1): Improve documentation of shell patterns:
jilles [Fri, 24 Jun 2011 22:08:26 +0000 (22:08 +0000)]
sh(1): Improve documentation of shell patterns:

* Shell patterns are also for ${var#pat} and the like.
* An '!' by itself will not trigger pathname generation so do not call it a
  meta-character, even though it has a special meaning directly after an
  '['.
* Character ranges are locale-dependent.
* A '^' will complement a character class like '!' but is non-standard.

MFC after: 1 week

13 years ago- Export more USB device ID's.
hselasky [Fri, 24 Jun 2011 22:01:56 +0000 (22:01 +0000)]
- Export more USB device ID's.
- Update bus_auto.conf accordingly.

MFC after: 3 days

13 years agoSplit out host_pcib_get_busno() from the generic PCI-PCI bridge driver to
jhb [Fri, 24 Jun 2011 21:39:38 +0000 (21:39 +0000)]
Split out host_pcib_get_busno() from the generic PCI-PCI bridge driver to
start a new file that will hold utility APIs used by various Host-PCI
bridge drivers and drivers that provide PCI domains.

13 years ago- Add auto-load devd config file for USB kernel modules.
hselasky [Fri, 24 Jun 2011 21:32:03 +0000 (21:32 +0000)]
- Add auto-load devd config file for USB kernel modules.

MFC after: 14 days

13 years ago- We need to sort all USB device ID's together. Else the matching order will
hselasky [Fri, 24 Jun 2011 21:27:33 +0000 (21:27 +0000)]
- We need to sort all USB device ID's together. Else the matching order will
be wrong. This is required because devd only executes one entry.

MFC after: 14 days

13 years agosh(1): Document the case command better.
jilles [Fri, 24 Jun 2011 20:23:50 +0000 (20:23 +0000)]
sh(1): Document the case command better.

Suggested by: netchild
Reviewed by: gjb

13 years ago- Export more USB device ID's.
hselasky [Fri, 24 Jun 2011 19:32:29 +0000 (19:32 +0000)]
- Export more USB device ID's.

MFC after: 3 days

13 years ago- Ensure that we get all the required nomatch devd events.
hselasky [Fri, 24 Jun 2011 19:02:56 +0000 (19:02 +0000)]
- Ensure that we get all the required nomatch devd events.

MFC after: 3 days

13 years ago- Move execution of event handlers into the probe and attach function so that
hselasky [Fri, 24 Jun 2011 18:14:43 +0000 (18:14 +0000)]
- Move execution of event handlers into the probe and attach function so that
dynamically loaded device drivers get a chance to run their event hooks.

- Decouple the USB suspend and resume lock from witness. It produces some
false warnings due to reusing the lock name among multiple devices.

MFC after: 3 days

13 years ago- Export the URIO USB device ID's.
hselasky [Fri, 24 Jun 2011 18:11:55 +0000 (18:11 +0000)]
- Export the URIO USB device ID's.
- Add checks for configuration and interface index.

MFC after: 3 days

13 years agoDon't die if either of INET or INET6 aren't in the running kernel.
jhb [Fri, 24 Jun 2011 17:54:45 +0000 (17:54 +0000)]
Don't die if either of INET or INET6 aren't in the running kernel.
Instead, report "protocol not supported" errors at runtime if a user
attempts to use a protocol that the kernel doesn't support.

Reviewed by: bz
MFC after: 1 week

13 years agoAdd support for string values with white spaces for ifconfig(8)
pluknet [Fri, 24 Jun 2011 14:56:38 +0000 (14:56 +0000)]
Add support for string values with white spaces for ifconfig(8)
parameters accepting them (such as description, group).

Changes discussed on freebsd-rc.

PR: conf/156675
Reported by: "Alexander V. Chernikov" <melifaro att ipfw ru>
Suggested by: hrs
Analyzed with: Alexander V. Chernikov via IRC
MFC after: 2 weeks

13 years agoTidy up a capabilities-related comment.
jonathan [Fri, 24 Jun 2011 14:40:22 +0000 (14:40 +0000)]
Tidy up a capabilities-related comment.

This comment refers to an #ifdef that hasn't been merged [yet?]; remove it.

Approved by: rwatson

13 years agoFix another broken HT40 channel band reference.
adrian [Fri, 24 Jun 2011 14:31:30 +0000 (14:31 +0000)]
Fix another broken HT40 channel band reference.

13 years agoTypo.
jhb [Fri, 24 Jun 2011 13:58:56 +0000 (13:58 +0000)]
Typo.

13 years agoActually, if code had followed style(9), there would be less stupid errors
glebius [Fri, 24 Jun 2011 12:55:16 +0000 (12:55 +0000)]
Actually, if code had followed style(9), there would be less stupid errors
like the one fixed in r223416.

Noticed by: julian

13 years agoMore incorrect HT/40 setups in FCC.
adrian [Fri, 24 Jun 2011 12:50:18 +0000 (12:50 +0000)]
More incorrect HT/40 setups in FCC.

Noticed-by: bschmidt@

13 years agoFix an incorrect frequency band for HT/40 in the FCC SKU.
adrian [Fri, 24 Jun 2011 12:31:36 +0000 (12:31 +0000)]
Fix an incorrect frequency band for HT/40 in the FCC SKU.

Noticed by: bschmidt@

13 years agoImport one of the two missing US FCC DFS bands to FCC3.
adrian [Fri, 24 Jun 2011 12:30:43 +0000 (12:30 +0000)]
Import one of the two missing US FCC DFS bands to FCC3.

The FCC opened up this band sometime in 2009 (and ath was updated);
but regdomain.xml wasn't updated.

13 years ago- Add two new API's to libusb20 which can be used to retrive information
hselasky [Fri, 24 Jun 2011 11:14:09 +0000 (11:14 +0000)]
- Add two new API's to libusb20 which can be used to retrive information
about the parent USB device:
  - libusb20_dev_get_parent_address
  - libusb20_dev_get_parent_port

- Rename libusb20_compat01.c into libusb01.c

MFC after: 3 days

13 years agoRemove duplicated header files
kevlo [Fri, 24 Jun 2011 07:29:04 +0000 (07:29 +0000)]
Remove duplicated header files

13 years agoRemove duplicated header files
kevlo [Fri, 24 Jun 2011 07:18:44 +0000 (07:18 +0000)]
Remove duplicated header files

13 years agoRemove duplicated header files
kevlo [Fri, 24 Jun 2011 07:05:20 +0000 (07:05 +0000)]
Remove duplicated header files