]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAdds gpioiic.4 and gpioled.4 man pages. Moves some of the information that
loos [Tue, 12 Nov 2013 12:44:59 +0000 (12:44 +0000)]
Adds gpioiic.4 and gpioled.4 man pages.  Moves some of the information that
was previously available on gpio.4 to their respectives pages.  Add the
cross references on gpioctl.8.

Approved by: adrian (mentor)

10 years agoFix typo.
trasz [Tue, 12 Nov 2013 12:23:54 +0000 (12:23 +0000)]
Fix typo.

Sponsored by: The FreeBSD Foundation

10 years agoFix description to actually make sense.
trasz [Tue, 12 Nov 2013 12:22:52 +0000 (12:22 +0000)]
Fix description to actually make sense.

Sponsored by: The FreeBSD Foundation

10 years agoMention acl_get_brand_np(3).
trasz [Tue, 12 Nov 2013 10:44:41 +0000 (10:44 +0000)]
Mention acl_get_brand_np(3).

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

10 years agoAvoid overflow for the page counts.
kib [Tue, 12 Nov 2013 08:47:58 +0000 (08:47 +0000)]
Avoid overflow for the page counts.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoAdd IDs for the ASIX 88179 and 88178A USB to GigE adapters.
markj [Tue, 12 Nov 2013 06:14:12 +0000 (06:14 +0000)]
Add IDs for the ASIX 88179 and 88178A USB to GigE adapters.

10 years agoCommit over some work to prepare the iwn(4) driver for further chipset
adrian [Tue, 12 Nov 2013 05:58:23 +0000 (05:58 +0000)]
Commit over some work to prepare the iwn(4) driver for further chipset
support.

* Extend the hardware base_params structure to include a bunch of hardware
  flags indicating what is and isn't supported.

* Convert a bunch of the initial hardware configuration conditionals to
  consult the base_params structure.

* Add new calibration code for temperature calibration for the Centrino 2xxx
  series NICs.

* Add new bluetooth coexistence code for Centrino 2xxx series NICs.

* For NICs that support PAN (personal area networking), use a different
  transmit queue and command queue setup, in preparation for said
  PAN support.

* Extend the calibration array in iwn_softc to include enough space for
  the new calibration types.

Tested (by myself, if not mentioned):

* Intel 4965
* Intel 5100
* Intel 6150
* Intel 2230
* Intel 2200 (eadler)
* Intel 1030
* Intel 6200
* Intel 6230
* Intel 6250
* Intel 6150
* Intel 100

What doesn't work:

* Intel 6235 - fails in calibration at startup

TODO:

* Testing on Intel 53xx series hardware

Submitted by: Cedric Gross <cg@cgross.info>

10 years agoFix up the link quality lookup and re-enable multi-rate retry.
adrian [Tue, 12 Nov 2013 05:49:01 +0000 (05:49 +0000)]
Fix up the link quality lookup and re-enable multi-rate retry.

This is a terrible solution that at least behaves mostly correctly.

It walks the currently active rate table looking for rates to match.
It assumes that the code matches the setup path in the link quality
setup code (much like the previous, much simpler but even more hackish
math did.)

It's O(n), but n<15, so we're okay for the time being.

Tested:

* Intel 5100, STA - 11a, 11n, 11bg modes.

10 years agoGrr. For some odd reason, setting this to a single antenna on my 5100
adrian [Tue, 12 Nov 2013 05:08:24 +0000 (05:08 +0000)]
Grr. For some odd reason, setting this to a single antenna on my 5100
(which is a 1x2 device) panics the firmware.

But, for some 6xxx devices that require IWN_ANT_BC for the TX chainmask,
the link quality entries need to represent _that_.

So, revert this for now until I can figure out what is supposed to be
going on.

10 years agoUse the negotiated HT rate set when generating the link quality table.
adrian [Tue, 12 Nov 2013 05:00:18 +0000 (05:00 +0000)]
Use the negotiated HT rate set when generating the link quality table.

10 years agoComment what 'mimo' does in the link quality table.
adrian [Tue, 12 Nov 2013 04:57:31 +0000 (04:57 +0000)]
Comment what 'mimo' does in the link quality table.

10 years agoDon't default to antennas A+B; some NICs use Antennas B+C to transmit.
adrian [Tue, 12 Nov 2013 04:56:00 +0000 (04:56 +0000)]
Don't default to antennas A+B; some NICs use Antennas B+C to transmit.

10 years agoComments.
dteske [Tue, 12 Nov 2013 04:02:51 +0000 (04:02 +0000)]
Comments.

10 years agoUse the real product name for Edimax rsu(4) id.
kevlo [Tue, 12 Nov 2013 02:34:48 +0000 (02:34 +0000)]
Use the real product name for Edimax rsu(4) id.

10 years agoFix two return values damaged by copy/paste.
nwhitehorn [Tue, 12 Nov 2013 01:28:38 +0000 (01:28 +0000)]
Fix two return values damaged by copy/paste.

10 years agoIndicate that expand_number is case-insensitive.
eadler [Tue, 12 Nov 2013 00:56:22 +0000 (00:56 +0000)]
Indicate that expand_number is case-insensitive.

Reviewed by: -scsi

10 years agoSilence more 'make {check,delete-old{,libs}}' output if $DESTDIR/usr/tests
gjb [Tue, 12 Nov 2013 00:25:07 +0000 (00:25 +0000)]
Silence more 'make {check,delete-old{,libs}}' output if $DESTDIR/usr/tests
does not exist.

Sponsored by: The FreeBSD Foundation

10 years agoUse the same implementation of copyinout.c for both AIM and Book-E. This
nwhitehorn [Mon, 11 Nov 2013 23:37:16 +0000 (23:37 +0000)]
Use the same implementation of copyinout.c for both AIM and Book-E. This
fixes some bugs in both implementations related to validity checks on
mapping bounds.

10 years agoSwitch default MBR bootcode from /boot/boot0 to /boot/mbr.
dteske [Mon, 11 Nov 2013 21:42:56 +0000 (21:42 +0000)]
Switch default MBR bootcode from /boot/boot0 to /boot/mbr.

Reviewed by: Allan Jude, nwhitehorn
Discussed on: -current

10 years agoRemove useless checks for NULL pointer before free(3)
bdrewery [Mon, 11 Nov 2013 21:42:31 +0000 (21:42 +0000)]
Remove useless checks for NULL pointer before free(3)

Reported by: eadler
Approved by: eadler

10 years agoRemove stray MK_PKGTOOLS leftover from r257444.
gjb [Mon, 11 Nov 2013 21:19:18 +0000 (21:19 +0000)]
Remove stray MK_PKGTOOLS leftover from r257444.

Sponsored by: The FreeBSD Foundation

10 years agocxxfilt: small changes from Apple's developer tools
pfg [Mon, 11 Nov 2013 21:18:02 +0000 (21:18 +0000)]
cxxfilt: small changes from Apple's developer tools

From Apple's Developer Tools 4.0 [1]:

demangle.patch
2007-05-05  Geoffrey Keating
(d_name): Detect local-source-name.
(d_prefix): Likewise.
(d_unqualified_name): Implement local-source-name.

libiberty-printf.patch

MFC after: 1 month

[1] http://opensource.apple.com/source/cxxfilt/cxxfilt-9/patches/

10 years agoDisable building the ctl module for the i386 XEN kernel configuration
dim [Mon, 11 Nov 2013 21:16:55 +0000 (21:16 +0000)]
Disable building the ctl module for the i386 XEN kernel configuration
for now, since it causes gcc warnings about casting 64 bit bus_addr_t's
to 32 bit pointers, and vice versa.

Reviewed by: ken
MFC after: 3 days

10 years agoRegen after r258014.
gjb [Mon, 11 Nov 2013 21:14:03 +0000 (21:14 +0000)]
Regen after r258014.

Sponsored by: The FreeBSD Foundation

10 years agoDocument WITH_TESTS src.conf(5) option.
gjb [Mon, 11 Nov 2013 21:13:14 +0000 (21:13 +0000)]
Document WITH_TESTS src.conf(5) option.

Sponsored by: The FreeBSD Foundation

10 years agoRegen after r258012.
gjb [Mon, 11 Nov 2013 21:02:57 +0000 (21:02 +0000)]
Regen after r258012.

Sponsored by: The FreeBSD Foundation

10 years agoRemove WITH_LIBICONV_COMPAT file to chase after r257583.
gjb [Mon, 11 Nov 2013 21:02:26 +0000 (21:02 +0000)]
Remove WITH_LIBICONV_COMPAT file to chase after r257583.

10 years agoMerge upstream LLVM r192118:
emaste [Mon, 11 Nov 2013 19:06:12 +0000 (19:06 +0000)]
Merge upstream LLVM r192118:

  Formally added an explicit enum for DWARF TLS support. No functionality
  change.

Reviewed by: dim@
Sponsored by: DARPA, AFRL

10 years agoMerge upstream LLVM r182803:
emaste [Mon, 11 Nov 2013 19:00:20 +0000 (19:00 +0000)]
Merge upstream LLVM r182803:

  [Mips] Add Mips specific dynamic table entry tags.

This is to support an upcoming LLDB snapshot update.

Reviewed by: dim@
Sponsored by: DARPA, AFRL

10 years agoFollow up r223485, which made AIM use the ABI thread pointer instead of
nwhitehorn [Mon, 11 Nov 2013 17:37:50 +0000 (17:37 +0000)]
Follow up r223485, which made AIM use the ABI thread pointer instead of
PCPU fields for curthread, by doing the same to Book-E. This closes
some potential races switching between CPUs. As a side effect, it turns out
the AIM and Book-E swtch.S implementations were the same to within a few
registers, so move that to powerpc/powerpc.

MFC after: 3 months

10 years agoAdd a brief comment about VM_GUEST and vm_guest_sysctl_names relationship.
pluknet [Mon, 11 Nov 2013 17:07:02 +0000 (17:07 +0000)]
Add a brief comment about VM_GUEST and vm_guest_sysctl_names relationship.

Suggested by: Roger Pau Monne
Reviewed by: Roger Pau Monne

10 years agoConsistently add the relocation offset only when the ELF type is not
markj [Mon, 11 Nov 2013 16:57:57 +0000 (16:57 +0000)]
Consistently add the relocation offset only when the ELF type is not
ET_EXEC. This fixes several problems with the DTrace pid provider not
being able to match probes.

Reviewed by: rpaulo
MFC after: 2 weeks

10 years agoMerge nvi-2.1.1 -> 2.1.2
peter [Mon, 11 Nov 2013 16:52:02 +0000 (16:52 +0000)]
Merge nvi-2.1.1 -> 2.1.2

10 years agoSet description string for VM_GUEST_HV (HyperV guest).
pluknet [Mon, 11 Nov 2013 16:14:33 +0000 (16:14 +0000)]
Set description string for VM_GUEST_HV (HyperV guest).
This fixes fallout from r256425.

Reported by: Pavel Timofeev <timp87@gmail com>
Tested by: Pavel Timofeev <timp87@gmail com>
Reviewed by: Roger Pau Monnц╘
MFC after: 3 days

10 years agoRename the "bare" platform "mpc85xx", which is what it actually is, and
nwhitehorn [Mon, 11 Nov 2013 16:14:25 +0000 (16:14 +0000)]
Rename the "bare" platform "mpc85xx", which is what it actually is, and
add actual platform probing based on PVR. Still needs a little more work:
in particular, the CCRS setup should move here.

Also turn "bare" into a truly bare platform that doesn't pretend to know how
to do anything except get the memory map. This should also be enhanced to
process the FDT reserved memory list, but that is for another day.

10 years agoBe more flexible about which compatible strings to accept. This brings up
nwhitehorn [Mon, 11 Nov 2013 15:44:20 +0000 (15:44 +0000)]
Be more flexible about which compatible strings to accept. This brings up
the PCI Express bus on the RB800 using the firmware device tree.

10 years agoMake tsec work with the device tree present on the RB800. The previous code
nwhitehorn [Mon, 11 Nov 2013 15:43:21 +0000 (15:43 +0000)]
Make tsec work with the device tree present on the RB800. The previous code
assumed that the MDIO bus was a direct child of the Ethernet interface. It
may not be and indeed on many device trees is not. While here, add proper
locking for MII transactions, which may be on a bus shared by several MACs.

Hardware donated by: Benjamin Perrault

10 years agoAllow OF_decode_addr() to also be able to map resources on big-endian
nwhitehorn [Mon, 11 Nov 2013 15:23:35 +0000 (15:23 +0000)]
Allow OF_decode_addr() to also be able to map resources on big-endian
devices. To this end, make PCI device detection rely on the device_type
field rather than name, as per the standard.

10 years agoConsolidate Apple firmware hacks and improve them by switching on the
nwhitehorn [Mon, 11 Nov 2013 15:00:33 +0000 (15:00 +0000)]
Consolidate Apple firmware hacks and improve them by switching on the
presence of mac-io devices in the tree, which uniquely identifies Apple
hardware.

MFC after: 6 weeks

10 years agoInitialize prot variable.
ae [Mon, 11 Nov 2013 13:19:55 +0000 (13:19 +0000)]
Initialize prot variable.

PR: 177417
MFC after: 1 week

10 years agoFix panic with RADIX_MPATH, when RTFREE_LOCKED() called for already
ae [Mon, 11 Nov 2013 12:49:00 +0000 (12:49 +0000)]
Fix panic with RADIX_MPATH, when RTFREE_LOCKED() called for already
unlocked route. Use in6_rtalloc() instead of in6_rtalloc1. This helps
simplify the code and remove several now unused variables.

PR: 156283
MFC after: 2 weeks

10 years agoAdd missing line breaks.
ae [Mon, 11 Nov 2013 11:13:12 +0000 (11:13 +0000)]
Add missing line breaks.

PR: 181900
MFC after: 1 week

10 years agoUpdate log message. Picobsd stopped using kgzip a while ago.
pluknet [Mon, 11 Nov 2013 10:54:06 +0000 (10:54 +0000)]
Update log message.  Picobsd stopped using kgzip a while ago.

10 years agoRemove r257748 by accident.
kevlo [Mon, 11 Nov 2013 10:00:19 +0000 (10:00 +0000)]
Remove r257748 by accident.

10 years agoMention the RT5370/RT5372 chipset.
kevlo [Mon, 11 Nov 2013 09:48:57 +0000 (09:48 +0000)]
Mention the RT5370/RT5372 chipset.

10 years agoAdd support for the MediaTek/Ralink RT5370/RT5372 chipset.
kevlo [Mon, 11 Nov 2013 09:47:33 +0000 (09:47 +0000)]
Add support for the MediaTek/Ralink RT5370/RT5372 chipset.

Tested with the TP-Link TL-WN727N (RT5370) and the D-Link DWA-140 (RT5372)
on i386/amd64/arm with WPA.

10 years agoMFV r257952:
delphij [Mon, 11 Nov 2013 09:19:58 +0000 (09:19 +0000)]
MFV r257952:

Upgrade to OpenSSH 6.4p1.

Bump VersionAddendum.

Approved by: des

10 years agoIf A-MPDU transmission fails entirely, then no BA is received from the
adrian [Mon, 11 Nov 2013 09:08:22 +0000 (09:08 +0000)]
If A-MPDU transmission fails entirely, then no BA is received from the
NIC and pushed up to the driver.  Unfortunately this means there's
no rate control notification done.  Thus, if the rate control code
makes a decision that hits a crappy rate that can't succeed, the
rate code would never lower the rate and packet loss would continue.

So, fake some rate control notification in this case.

10 years agoReplace the hard-coded RX queue value check with IWN_UNSOLICITED_RX_NOTIF.
adrian [Mon, 11 Nov 2013 08:56:40 +0000 (08:56 +0000)]
Replace the hard-coded RX queue value check with IWN_UNSOLICITED_RX_NOTIF.

10 years agoFix off-by-one. Sorry!
adrian [Mon, 11 Nov 2013 08:55:38 +0000 (08:55 +0000)]
Fix off-by-one. Sorry!

10 years agoUse IWN_NBANDS rather than a hard-coded limit.
adrian [Mon, 11 Nov 2013 08:54:45 +0000 (08:54 +0000)]
Use IWN_NBANDS rather than a hard-coded limit.

Tested:

* Intel 5100, STA

10 years agoSend EAPOL frames at the management rate, not the data rate.
adrian [Mon, 11 Nov 2013 08:53:20 +0000 (08:53 +0000)]
Send EAPOL frames at the management rate, not the data rate.

Without this, a far away station with low signal strength would
associate using the management rate (by default the lowest rate)
and then the EAPOL frames would go out at the current AMRR best
guess.  This would result in association failing authentication.

Tested:

* Intel 5100, STA
* Intel 2230, STA

10 years agoIntroduce seperate mutex lock to protect protect CTL I/O pools, slightly
mav [Mon, 11 Nov 2013 08:27:20 +0000 (08:27 +0000)]
Introduce seperate mutex lock to protect protect CTL I/O pools, slightly
reducing global CTL lock scope and congestion.

While there, simplify CTL I/O pools KPI, hiding implementation details.

10 years agoDo not use just freed memory.
glebius [Mon, 11 Nov 2013 07:44:09 +0000 (07:44 +0000)]
Do not use just freed memory.

Sponsored by: Nginx, Inc.

10 years agoRemove never used ioctls that originate from KAME. The proof
glebius [Mon, 11 Nov 2013 05:39:42 +0000 (05:39 +0000)]
Remove never used ioctls that originate from KAME. The proof
of their zero usage was exp-run from misc/183538.

10 years agoFix a few style nits.
gjb [Mon, 11 Nov 2013 03:30:14 +0000 (03:30 +0000)]
Fix a few style nits.

MFC after: 3 days
X-MFC-After: 10.0-RELEASE
Sponsored by: The FreeBSD Foundation

10 years agoAdd the necessary bits for dumps on ppc64.
jhibbits [Mon, 11 Nov 2013 03:17:38 +0000 (03:17 +0000)]
Add the necessary bits for dumps on ppc64.

MFC after: 2 weeks

10 years agoSilence bmake(1) errors if TEST_DIRS evaluation is empty.
gjb [Mon, 11 Nov 2013 03:12:43 +0000 (03:12 +0000)]
Silence bmake(1) errors if TEST_DIRS evaluation is empty.

10 years agoCheck the partition scheme before blowing away disks, instead of after.
dteske [Mon, 11 Nov 2013 02:13:47 +0000 (02:13 +0000)]
Check the partition scheme before blowing away disks, instead of after.
The effects of this patch would only be noticeable if you were purposefully
setting a bad value and trying to see what happens; and leaving the disks
intact if a bad value has been set seems fair.

10 years agoRemove the env(1) but keep the var.
dteske [Mon, 11 Nov 2013 02:02:05 +0000 (02:02 +0000)]
Remove the env(1) but keep the var.

10 years agoUnbreak the installer on head/:
gjb [Mon, 11 Nov 2013 01:42:59 +0000 (01:42 +0000)]
Unbreak the installer on head/:

  When bsdinstall(8) sources the bsdconfig(8) common.subr file,
  PKG_ABI is set by calling 'pkg -vv' and searching for the ABI
  pkg(8) will use.

  When pkg(8) is run for the first time, the bootstrap process
  is run, which prompts for 'y/N' input from stdin if running with
  TERM set.

  Since TERM is set and it is the first time pkg(8) is run, which
  happens automatically, bsdinstall(8) hangs waiting for user input
  which is never displayed since a specific line is expected by
  awk(1), and stdin is expected by pkg(8).

  Set ASSUME_ALWAYS_YES=1, which will cause pkg(8) to assume the
  '-y' flag is also used for the bootstrap process, allowing
  bsdinstall(8) to proceed to the keymap lookup, otherwise
  bsdinstall(8) appears to hang after selecting 'Install' from the
  menu on first boot from CDROM.

10 years agoUpdate svn from 1.8.1 to 1.8.4 - minor security fixes and client side
peter [Mon, 11 Nov 2013 01:14:58 +0000 (01:14 +0000)]
Update svn from 1.8.1 to 1.8.4 - minor security fixes and client side
merge handling bug fixes (reintegrate, mergeinfo etc)

10 years agox86 platforms that use an IOAPIC route the legacy timer interrupt (IRQ0) to
neel [Mon, 11 Nov 2013 00:45:17 +0000 (00:45 +0000)]
x86 platforms that use an IOAPIC route the legacy timer interrupt (IRQ0) to
pin 2 of the IOAPIC.

Add an 'Interrupt Source Override' entry to the MADT to describe this
and start asserting interrupts on pin 2 in the 8254 device model.

Submitted by: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com)

10 years agoUse relaxed (write-only) memory barriers when writing some of queue index
mav [Sun, 10 Nov 2013 23:48:16 +0000 (23:48 +0000)]
Use relaxed (write-only) memory barriers when writing some of queue index
registers (for now on ISP2400+).  We never read those registers back and
AFAIK their semantics does not require any immediate reaction on write.

10 years agoSome more registers access optimizations:
mav [Sun, 10 Nov 2013 23:34:32 +0000 (23:34 +0000)]
Some more registers access optimizations:
 - Process ATIO queue only if interrupt status tells so;
 - Do not update queue out pointers after each processed command, do it
only once at the end of the loop.

10 years agosh: Properly quote alias output from command -v.
jilles [Sun, 10 Nov 2013 23:00:39 +0000 (23:00 +0000)]
sh: Properly quote alias output from command -v.

An alias should be printed by command -v as a command line; therefore, make
the alias definition suitable for re-input to the shell.

10 years agoPrepare for 64-bit. Iow, use Elf_*hdr instead of the 32-bit ones.
andreast [Sun, 10 Nov 2013 22:42:56 +0000 (22:42 +0000)]
Prepare for 64-bit. Iow, use Elf_*hdr instead of the 32-bit ones.

10 years agoApparently with "const uint32_t foo = 0x60;" gcc doesn't consider 'foo'
ian [Sun, 10 Nov 2013 21:12:42 +0000 (21:12 +0000)]
Apparently with "const uint32_t foo = 0x60;" gcc doesn't consider 'foo'
to be a constant integer suitable for use in a case label, so use #defines.

10 years ago- Add myself as port committer and my mentor's relationship.
alexey [Sun, 10 Nov 2013 20:24:41 +0000 (20:24 +0000)]
- Add myself as port committer and my mentor's relationship.
- Add myself to calendar.freebsd.

Approved:   wg (mentor)

10 years agoRB_FOREACH_[REVERSE_]FROM() do not require the head pointer. Reword.
bms [Sun, 10 Nov 2013 19:49:18 +0000 (19:49 +0000)]
RB_FOREACH_[REVERSE_]FROM() do not require the head pointer. Reword.

10 years agoDocument the RB_FOREACH_FROM() and RB_FOREACH_REVERSE_FROM() macros.
bms [Sun, 10 Nov 2013 19:41:04 +0000 (19:41 +0000)]
Document the RB_FOREACH_FROM() and RB_FOREACH_REVERSE_FROM() macros.

These are largely syntactic sugar. However, they improve code
readability where an RB_FOREACH() or RB_FOREACH_REVERSE()
traversal has been interrupted and must be resumed. Performance
is improved by avoiding unnecessary traversal from the head node.

10 years agosh: Add a test case for would-be assignments that are not due to quoting.
jilles [Sun, 10 Nov 2013 18:46:59 +0000 (18:46 +0000)]
sh: Add a test case for would-be assignments that are not due to quoting.

10 years agoFix typo in "iscsictl -v".
trasz [Sun, 10 Nov 2013 14:18:05 +0000 (14:18 +0000)]
Fix typo in "iscsictl -v".

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoSave one more register read per command by not reading rqstoutrp register
mav [Sun, 10 Nov 2013 13:37:44 +0000 (13:37 +0000)]
Save one more register read per command by not reading rqstoutrp register
every time.  The purpose of that register is unlikely output queue overflow
detection, so read it only when its last known (and probably stale now)
value signals overflow.

This reduces CPU load and lock congestion and rises bottleneck in CTL
while doing target mode via two 8Gbps ports from 100K to 120K IOPS.

10 years agoFix typo.
trasz [Sun, 10 Nov 2013 13:16:28 +0000 (13:16 +0000)]
Fix typo.

Submitted by: feld@
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoSome CAM locks polishing:
mav [Sun, 10 Nov 2013 12:16:09 +0000 (12:16 +0000)]
Some CAM locks polishing:
 - Fix LOR and possible lock recursion when handling high-power commands.
Introduce new lock to protect left power quota and list of frozen devices.
 - Correct locking around xpt periph creation.
 - Remove seems never used XPT_FLAG_OPEN xpt periph flag.

10 years agoFix typo in r257515.
glebius [Sun, 10 Nov 2013 09:36:51 +0000 (09:36 +0000)]
Fix typo in r257515.

Submitted by: az

10 years agopkill - Optimize pgrep -F
eadler [Sun, 10 Nov 2013 05:22:29 +0000 (05:22 +0000)]
pkill - Optimize pgrep -F

 Ask for a specific process instead of pulling down all processes when
 -F <pidfile> is specified.  This is much much faster.

 Obtained from: DragonflyBSD

10 years agoDon't enable interrupts before we call sched_throw(). Interrupts
marcel [Sun, 10 Nov 2013 04:22:40 +0000 (04:22 +0000)]
Don't enable interrupts before we call sched_throw(). Interrupts
are expected to be disabled by virtue of md_spinlock_count=1.

10 years agoFix typo: site_t -> size_t
eadler [Sun, 10 Nov 2013 04:06:46 +0000 (04:06 +0000)]
Fix typo: site_t -> size_t

Obtained From: DragonflyBSD (1ac92c8c857a15dc010924c5f066da404e568640)

10 years agoRemove dead link
eadler [Sun, 10 Nov 2013 03:28:36 +0000 (03:28 +0000)]
Remove dead link

10 years agoMinor spelling correction.
hiren [Sun, 10 Nov 2013 02:43:09 +0000 (02:43 +0000)]
Minor spelling correction.

10 years agoHide MNT_SHARED_WRITES() and MNT_EXTENDED_SHARED() under the #ifdef
kib [Sat, 9 Nov 2013 22:28:04 +0000 (22:28 +0000)]
Hide MNT_SHARED_WRITES() and MNT_EXTENDED_SHARED() under the #ifdef
_KERNEL braces.  Struct mount is only defined for the kernel build.

Reported and tested by: andreast
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agoFix gcc warning about an uninitialized bool in sys/x86/iommu/intel_drv.c.
dim [Sat, 9 Nov 2013 22:05:29 +0000 (22:05 +0000)]
Fix gcc warning about an uninitialized bool in sys/x86/iommu/intel_drv.c.

Reviewed by: kib

10 years agoFix gcc warning about an empty device_printf() format string in
dim [Sat, 9 Nov 2013 22:00:44 +0000 (22:00 +0000)]
Fix gcc warning about an empty device_printf() format string in
sys/x86/iommu/intel_fault.c.

Reviewed by: kib

10 years agoFix an NFSv4.1 client specific case where a forced dismount would hang.
rmacklem [Sat, 9 Nov 2013 21:24:56 +0000 (21:24 +0000)]
Fix an NFSv4.1 client specific case where a forced dismount would hang.
The hang occurred in nfsv4_setsequence() when it couldn't find an
available session slot and is fixed by checking for a forced dismount
in progress and just returning for this case.

MFC after: 1 month

10 years agoFix (erroneous) gcc warnings about usage of uninitialized variables in
dim [Sat, 9 Nov 2013 20:36:52 +0000 (20:36 +0000)]
Fix (erroneous) gcc warnings about usage of uninitialized variables in
sys/x86/iommu/intel_idpgtbl.c.

Reviewed by: kib

10 years agoIf filesystem declares that it supports shared locking for writes, use
kib [Sat, 9 Nov 2013 20:36:29 +0000 (20:36 +0000)]
If filesystem declares that it supports shared locking for writes, use
shared vnode lock for VOP_PUTPAGES() as well.  The only such
filesystem in the tree is ZFS, and it uses
vnode_pager_generic_putpages(), which performs the pageout with
VOP_WRITE().

Reviewed by: alc
Discussed with: avg
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agoBoth vn_close() and VFS_PROLOGUE() evaluate vp->v_mount twice, without
kib [Sat, 9 Nov 2013 20:30:13 +0000 (20:30 +0000)]
Both vn_close() and VFS_PROLOGUE() evaluate vp->v_mount twice, without
holding the vnode lock; vp->v_mount is checked first for NULL
equiality, and then dereferenced if not NULL.  If vnode is reclaimed
meantime, second dereference would still give NULL.  Change
VFS_PROLOGUE() to evaluate the mp once, convert MNTK_SHARED_WRITES and
MNTK_EXTENDED_SHARED tests into inline functions.

Reviewed by: alc
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agoFix gcc warnings about casting away const in sys/x86/iommu/intel_drv.c.
dim [Sat, 9 Nov 2013 20:09:02 +0000 (20:09 +0000)]
Fix gcc warnings about casting away const in sys/x86/iommu/intel_drv.c.

Reviewed by: kib

10 years agoo Add ONFI signature check.
br [Sat, 9 Nov 2013 18:46:11 +0000 (18:46 +0000)]
o Add ONFI signature check.
o Add Micron chip found in Freescale Vybrid Family
  Phytec COSMIC board.

Approved by: cognet (mentor)

10 years agopkg_install has been removed on 20131031.
pluknet [Sat, 9 Nov 2013 16:20:42 +0000 (16:20 +0000)]
pkg_install has been removed on 20131031.

Approved by: portmgr (bdrewery)

10 years agoUse system libiconv, instead of trying to dlopen() it.
glebius [Sat, 9 Nov 2013 14:48:50 +0000 (14:48 +0000)]
Use system libiconv, instead of trying to dlopen() it.

PR: 183153
Submitted by: Dominic Fandrey <kamikaze bsdforen.de>

10 years agoAdd missed DPADD
eadler [Sat, 9 Nov 2013 09:05:50 +0000 (09:05 +0000)]
Add missed DPADD

Reported by: swildner@DragonflyBSD.org

10 years agoChange manual string conversion to expand_number
eadler [Sat, 9 Nov 2013 08:57:21 +0000 (08:57 +0000)]
Change manual string conversion to expand_number

Reviewed by: adrian

10 years agoAdd support for SIIG x1 pci-e single parallel port card (JJ-E01211-S1)
eadler [Sat, 9 Nov 2013 08:27:55 +0000 (08:27 +0000)]
Add support for SIIG x1 pci-e single parallel port card (JJ-E01211-S1)

PR: kern/182217
Submitted by: Craig Leres <leres@ee.lbl.gov>
MFC After: 1 week

10 years agoStrip out this cruft; people should be making modules with a complete
adrian [Sat, 9 Nov 2013 08:11:24 +0000 (08:11 +0000)]
Strip out this cruft; people should be making modules with a complete
kernel config environment anyway.

10 years agoFix AMRR to correctly select the initial rate.
adrian [Sat, 9 Nov 2013 07:30:13 +0000 (07:30 +0000)]
Fix AMRR to correctly select the initial rate.

There were two bugs:

* If the initial lowest rate didn't go through the loop at least once,
  the AMRR rate index would be the highest rate in the table
  (eg the rix mapping to MCS15) but rate would stay at the default
  value, namely 0.

  This meant that the initial rate selection would be MCS15 _but_ the
  node ni_txrate value would be MCS0.

* If the node is 11n, then break out of the loop correctly.  Beforehand,
  my initial 11n AMRR commit would immediately exit out as it would
  fail the 11n check, then it would always fall through to the non-11n
  rate which would then see if it was < 36mbit (ie, "72"), which would
  always match.  Hence, it'd always return MCS15.

Tested:

* Intel Centrino 2230 STA (local changes), STA mode
* Intel Wifi 5100, STA

10 years agoAdd some new driver definitions as part of the chip support updates:
adrian [Sat, 9 Nov 2013 06:30:09 +0000 (06:30 +0000)]
Add some new driver definitions as part of the chip support updates:

This is a no-op for now!

* Add a new flag value for "there are no extra bits" for some random
  field;

* Add a definition for the maximum number of calibration entries in
  the calibration data cache in iwn_softc.  It's not yet used.

* Add regulatory bands for the 2030 NIC.

Submitted by: Cedric Gross <cg@cgross.info>

10 years agoFix typo in r256646: We want to generate lists of directories in INDEX-OLD
cperciva [Sat, 9 Nov 2013 04:50:05 +0000 (04:50 +0000)]
Fix typo in r256646: We want to generate lists of directories in INDEX-OLD
and INDEX-NEW and compare them, not generate the same list of directories
from INDEX-OLD twice...

Pointy hats to: cperciva & everybody who didn't proofread EN-13:04 enough