]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoTeach G_PART_GPT class to handle g_resize_provider event.
ae [Mon, 8 Jun 2015 12:52:41 +0000 (12:52 +0000)]
Teach G_PART_GPT class to handle g_resize_provider event.

MFC after: 10 days

9 years agobackout remove of -q option for pw [user|group] next
bapt [Mon, 8 Jun 2015 05:27:34 +0000 (05:27 +0000)]
backout remove of -q option for pw [user|group] next

While the return code is broken, some corner case usage depends on the
functionnality, so backout until we get better regression tests covering those
corner case usage.

9 years agoFix typo
bapt [Mon, 8 Jun 2015 05:06:17 +0000 (05:06 +0000)]
Fix typo

9 years agoRetire VM_FREEPOOL_CACHE as the next step in eliminating PG_CACHE pages.
alc [Mon, 8 Jun 2015 04:59:32 +0000 (04:59 +0000)]
Retire VM_FREEPOOL_CACHE as the next step in eliminating PG_CACHE pages.

Differential Revision: https://reviews.freebsd.org/D2712
Reviewed by: kib
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd busdma_mem_alloc & busdma_mem_free.
marcel [Mon, 8 Jun 2015 03:23:20 +0000 (03:23 +0000)]
Add busdma_mem_alloc & busdma_mem_free.

9 years agoCope with .. less memory.
adrian [Mon, 8 Jun 2015 03:01:19 +0000 (03:01 +0000)]
Cope with .. less memory.

9 years agoAdd DMA memory allocation and freeing.
marcel [Mon, 8 Jun 2015 03:00:36 +0000 (03:00 +0000)]
Add DMA memory allocation and freeing.
Slightly rework the tag handling.

9 years agoBreak out the current 802.11 software scan methods into an indirect table.
adrian [Mon, 8 Jun 2015 02:35:43 +0000 (02:35 +0000)]
Break out the current 802.11 software scan methods into an indirect table.

In order for drivers to provide an alternate set of scan methods,
these have to finally use an indirection table and all of the calls
in ieee80211_scan.c need to use said table.

For all existing drivers - this is basically a glorified, KBI-breaking
functional no-op.

This is also not the final form - too much functionality is currently
hiding in ieee80211_scan_sw.c that should be in ieee80211_scan.c.
That'll be the target of some follow-up commits.

Note:

* You have to recompile your kernel/drivers after this - the net80211 KBI has
  changed.
* I'm not yet planning on bumping any versioning - I have a few more things
  to shuffle around.

Tested:

* urtwn(4) - STA mode
* Intel 7260 in local repo - overriding the methods and table at
  attach time has the desired effect (ie, all the methods are called,
  but nothing is ever performed.)

9 years agoRevert my previoius commit as it explicit pollute the ficl on other
araujo [Mon, 8 Jun 2015 02:31:46 +0000 (02:31 +0000)]
Revert my previoius commit as it explicit pollute the ficl on other
architectures. It will be reworked by GSoC students.

Requested by: ngie, bms and pfg.

9 years agoRemove the start-scan call and re-inline it for now.
adrian [Mon, 8 Jun 2015 00:30:58 +0000 (00:30 +0000)]
Remove the start-scan call and re-inline it for now.

9 years agoFix mistakes than came along with r284139
bapt [Sun, 7 Jun 2015 21:59:43 +0000 (21:59 +0000)]
Fix mistakes than came along with r284139

9 years agoRemove '-q' support for pw [user|group] next
bapt [Sun, 7 Jun 2015 21:57:20 +0000 (21:57 +0000)]
Remove '-q' support for pw [user|group] next

the intent of -q in this command is to return as exit status the value of the
next group/user id, which does not make sense given exit status are limited to
values between 0 and 255.

9 years agoFix setting uid/gid min/max via pw
bapt [Sun, 7 Jun 2015 20:59:59 +0000 (20:59 +0000)]
Fix setting uid/gid min/max via pw

9 years agoFix generating configuration file
bapt [Sun, 7 Jun 2015 20:44:06 +0000 (20:44 +0000)]
Fix generating configuration file

9 years agoFix duplicate checking
bapt [Sun, 7 Jun 2015 19:59:01 +0000 (19:59 +0000)]
Fix duplicate checking

9 years agoRemove uneeded code (already done by pw_make_v7)
bapt [Sun, 7 Jun 2015 19:39:06 +0000 (19:39 +0000)]
Remove uneeded code (already done by pw_make_v7)

9 years agoIn case of rename validate the length of the new name
bapt [Sun, 7 Jun 2015 19:33:25 +0000 (19:33 +0000)]
In case of rename validate the length of the new name

Check early that the new name fits MAXLOGNAME and store it in pwconf

9 years agoRefactor input validation
bapt [Sun, 7 Jun 2015 19:03:41 +0000 (19:03 +0000)]
Refactor input validation

Mutualize code to validate inputs of both 'user' and 'group' command
Test that the input name fits into MAXLOGNAME

9 years agowitness: don't warn about matrix inconsistencies without holding the mutex
markj [Sun, 7 Jun 2015 18:59:47 +0000 (18:59 +0000)]
witness: don't warn about matrix inconsistencies without holding the mutex

Lock order checking is done without the witness mutex held, so multiple
threads that are racing to establish a new lock order may read matrix
entries that are in an inconsistent state. Don't print a warning in this
case, but instead just redo the check after taking the witness lock.

Differential Revision: https://reviews.freebsd.org/D2713
Reviewed by: jhb
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoFinish converting -7 to pwconf
bapt [Sun, 7 Jun 2015 15:54:57 +0000 (15:54 +0000)]
Finish converting -7 to pwconf

9 years agoAdd new USB quirk.
hselasky [Sun, 7 Jun 2015 15:47:58 +0000 (15:47 +0000)]
Add new USB quirk.

PR: 200693
MFC after: 1 week

9 years agoHandle -7 via gloval pwconf
bapt [Sun, 7 Jun 2015 15:33:08 +0000 (15:33 +0000)]
Handle -7 via gloval pwconf

9 years agoInitialize conf using menset(3)
bapt [Sun, 7 Jun 2015 15:29:58 +0000 (15:29 +0000)]
Initialize conf using menset(3)

9 years agoHandle pretty print (-P) via global pwconf
bapt [Sun, 7 Jun 2015 15:27:17 +0000 (15:27 +0000)]
Handle pretty print (-P) via global pwconf

9 years agoHandle dryrun (-N) via global pwconf
bapt [Sun, 7 Jun 2015 15:09:53 +0000 (15:09 +0000)]
Handle dryrun (-N) via global pwconf

9 years agoSort headers
bapt [Sun, 7 Jun 2015 14:57:16 +0000 (14:57 +0000)]
Sort headers

9 years agoHandle -C and -Y locally and stop adding them to arglist
bapt [Sun, 7 Jun 2015 14:54:07 +0000 (14:54 +0000)]
Handle -C and -Y locally and stop adding them to arglist

9 years agoAdd a new global struct pwconf to store etcpath, rootdir and struct userconf
bapt [Sun, 7 Jun 2015 14:34:38 +0000 (14:34 +0000)]
Add a new global struct pwconf to store etcpath, rootdir and struct userconf

Do not add anymore -R and -V to arglist
Add an error message if both -V and -R are set in arguments

9 years agoFix pw userdel -r not deleting homedir
bapt [Sun, 7 Jun 2015 14:32:52 +0000 (14:32 +0000)]
Fix pw userdel -r not deleting homedir

9 years agoInclude header libi386.h to silence the clang warning of implicit declaration
araujo [Sun, 7 Jun 2015 14:20:48 +0000 (14:20 +0000)]
Include header libi386.h to silence the clang warning of implicit declaration
of functions biospci_*.

Differential Revision: D2668
Reviewed by: rodrigc

9 years agoStop checking for ARM_TP_ADDRESS when we mean to check if building for
andrew [Sun, 7 Jun 2015 13:59:02 +0000 (13:59 +0000)]
Stop checking for ARM_TP_ADDRESS when we mean to check if building for
ARMv6 or later.

9 years agoTest explicitly the result of strcmp to be consistent with the rest of the code
bapt [Sun, 7 Jun 2015 11:38:26 +0000 (11:38 +0000)]
Test explicitly the result of strcmp to be consistent with the rest of the code

9 years agoImprove readability by reducing indentations levels
bapt [Sun, 7 Jun 2015 11:35:34 +0000 (11:35 +0000)]
Improve readability by reducing indentations levels

9 years agoRemove one level of indentation
bapt [Sun, 7 Jun 2015 11:30:33 +0000 (11:30 +0000)]
Remove one level of indentation

9 years agoMove user deletion code into a separate function to improve readability
bapt [Sun, 7 Jun 2015 11:26:28 +0000 (11:26 +0000)]
Move user deletion code into a separate function to improve readability

9 years agoInstead of always casting the pw_checkname input to u_char * and casting it back
bapt [Sun, 7 Jun 2015 10:57:02 +0000 (10:57 +0000)]
Instead of always casting the pw_checkname input to u_char * and casting it back
to char *, change pw_checkname to directly take char * in input

9 years agoRemove pc_cpu, it was duplicating pc_cpuid so was unneeded.
andrew [Sun, 7 Jun 2015 10:50:15 +0000 (10:50 +0000)]
Remove pc_cpu, it was duplicating pc_cpuid so was unneeded.

9 years agoSync with NetBSD:
bapt [Sun, 7 Jun 2015 10:01:59 +0000 (10:01 +0000)]
Sync with NetBSD:

- fix types of rl_completion_entry_function and rl_add_defun
- call update pos before completion to refresh the screen
From Thomas Eriksson

Adjust API to a more modern readline (Ryo Onodera)

remove duplicate declaration

9 years agocompat nvpair.h: make sure that the names are mangled only for kernel
avg [Sun, 7 Jun 2015 08:54:25 +0000 (08:54 +0000)]
compat nvpair.h: make sure that the names are mangled only for kernel

Currently there is no good reason to mangle the userland API.
The change was introduced in eac1d566b46edef765754203bef22c75c1699966,
r279437.  Also see https://reviews.freebsd.org/D1881.

I am still convinced that nv should not have introduced intentionally
conflicting API.

Discussed with: rstone
X-MFC with: r279437
Sponsored by: ClusterHQ

9 years agoImplement '-s' to copy as symlink, similar to the current -l link(2) handling.
bdrewery [Sun, 7 Jun 2015 06:30:25 +0000 (06:30 +0000)]
Implement '-s' to copy as symlink, similar to the current -l link(2) handling.

This is also implemented in at least GNU coreutils cp.

While here also improve the '-l' handling to not open(2) the source file as
it does not actually need the descriptor.

Sponsored by: EMC / Isilon Storage Division

9 years agoCleanup some indentation issues.
bdrewery [Sun, 7 Jun 2015 03:49:41 +0000 (03:49 +0000)]
Cleanup some indentation issues.

9 years agoUpdate print_INTEL_TLB() by the tag values from the Intel SDM
kib [Sat, 6 Jun 2015 22:03:24 +0000 (22:03 +0000)]
Update print_INTEL_TLB() by the tag values from the Intel SDM
rev. 55.  The modern CPUs cache and TLB descriptions looked quite
questionable without the update, e.g. Haswell i7 4770S reported:
Data TLB: 4 KB pages, 4-way set associative, 64 entries
L2 cache: 256 kbytes, 8-way associative, 64 bytes/line
After the update, the report is:
Data TLB: 1 GByte pages, 4-way set associative, 4 entries
Data TLB: 4 KB pages, 4-way set associative, 64 entries
Instruction TLB: 2M/4M pages, fully associative, 8 entries
Instruction TLB: 4KByte pages, 8-way set associative, 64 entries
64-Byte prefetching
Shared 2nd-Level TLB: 4 KByte/2MByte pages, 8-way associative, 1024 entries
L2 cache: 256 kbytes, 8-way associative, 64 bytes/line
Some tags were apparently removed from the table 3-21, Vol. 2A.  Keep
them around, but add a comment stating the removal.

Update the format line for cpu_stdext_feature according to the bits
from the SDM rev.55.  It appears that Haswells do not store %cs and
%ds values in the FPU save area.

Store content of the %ecx register from the CPUID leaf 0x7
subleaf 0 as cpu_stdext_feature2 and print defined bits from it,
again acording to SDM rev. 55.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoRework exception entry to help with DTrace. We now store the stack pointer
andrew [Sat, 6 Jun 2015 21:52:46 +0000 (21:52 +0000)]
Rework exception entry to help with DTrace. We now store the stack pointer
before adjusting it to store any registers. This is needed as DTrace may
need to adjust the kernel stack pointer, and previously the new stack
pointer would have needed to be checked incase it was changed.

9 years agoSet the correct UBLDR_LOADADDR for the Wandboard and
gjb [Sat, 6 Jun 2015 21:11:17 +0000 (21:11 +0000)]
Set the correct UBLDR_LOADADDR for the Wandboard and
Cubox/Hummingboard images.

Submitted by: ian
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoReadd the warning level gcc 4.2 still complains
bapt [Sat, 6 Jun 2015 19:43:41 +0000 (19:43 +0000)]
Readd the warning level gcc 4.2 still complains

9 years agoRe-introduce this - it doesn't compile clean on a mips target
adrian [Sat, 6 Jun 2015 19:15:08 +0000 (19:15 +0000)]
Re-introduce this - it doesn't compile clean on a mips target
(eg CARAMBOLA2.)

9 years agoChange BUS_PROBE_HOOVER from -500 to -1000000. We have PCI bus drivers
marcel [Sat, 6 Jun 2015 17:25:45 +0000 (17:25 +0000)]
Change BUS_PROBE_HOOVER from -500 to -1000000. We have PCI bus drivers
return -1000 and -10000 to establish a pecking order and we don't want
catch-all or match-all drivers to attach instead of them.

With this change poto(4) can be compiled into the kernel (or preloaded
from the loader), without impact.

9 years agoTurns out amd64 is hit too by ix. When it works, turn it back on.
imp [Sat, 6 Jun 2015 17:08:06 +0000 (17:08 +0000)]
Turns out amd64 is hit too by ix. When it works, turn it back on.

9 years agoRevert previous change. The magical constants can't be changed
marcel [Sat, 6 Jun 2015 17:04:36 +0000 (17:04 +0000)]
Revert previous change. The magical constants can't be changed
(easily) without having to go to other drivers to change the
magical return values. This wouldn't be so bad if there were
proper defines for these constants.

In particular dev/acpica/acpi_pcib_pci.c returns -1000 as the
probe priority and it's expected that this driver gets to
attach over the common PCI bus drivers.

9 years agolibdtrace: allow D libraries to declare dependencies on kernel modules
markj [Sat, 6 Jun 2015 16:47:45 +0000 (16:47 +0000)]
libdtrace: allow D libraries to declare dependencies on kernel modules

The "depends_on module" pragma can be used to declare a dependency on a
DTrace module, which for kernel probes corresponds to a KLD. Such
dependencies cannot be checked if the KLD is compiled into the kernel.
Therefore, allow a module dependency to be satisfied if either a kernel
module or a KLD with the specified name is loaded.

Differential Revision: https://reviews.freebsd.org/D2653
Reviewed by: gnn, rpaulo
Reported by: gnn

9 years agoix module doesn't compile on i386, so remove it from the build.
imp [Sat, 6 Jun 2015 16:45:59 +0000 (16:45 +0000)]
ix module doesn't compile on i386, so remove it from the build.
It can be restored when it builds again.

9 years agoMap the LAW for the RouterBoard's NAND LBC memory.
jhibbits [Sat, 6 Jun 2015 16:38:40 +0000 (16:38 +0000)]
Map the LAW for the RouterBoard's NAND LBC memory.

Without creating a LAW entry, any access to the NAND hangs the CPU.

The original intent was to add a quirk to map all of the RouterBoard's LBC
address space in one shot, which would fix it for both NAND and the CF, and
that's probably still in the cards.  However, for now, this makes NAND usable
without a separate hack.

Things left before the RouterBoard can run standalone:
* Add partitions to the NAND (not specified by the FDT, which we currently
  require).
* Create a YAFFS partition for the kernel.  The Mikrotik boot loader requires a
  4MB partition at the beginning of NAND, with a file called 'kernel' in the
  root.

9 years agounionfs: fix suspendability check bugs
markj [Sat, 6 Jun 2015 16:36:13 +0000 (16:36 +0000)]
unionfs: fix suspendability check bugs

- MNTK_SUSPENDABLE is set in mnt_kern_flag, not mnt_flag.
- The lower layer of a unionfs mount is read-only, so the mount should
  be suspendable iff the upper layer is suspendable.
- Remove a couple of superfluous comments.

Differential Revision: https://reviews.freebsd.org/D2714
Reviewed by: kib, mjg

9 years agoAdd proto_busdma.c to the module.
marcel [Sat, 6 Jun 2015 16:20:39 +0000 (16:20 +0000)]
Add proto_busdma.c to the module.

9 years agoAdd DMA tag management to the C library and Python binding.
marcel [Sat, 6 Jun 2015 16:14:03 +0000 (16:14 +0000)]
Add DMA tag management to the C library and Python binding.

9 years agoDMA support part 1: DMA tag create & destroy
marcel [Sat, 6 Jun 2015 16:09:25 +0000 (16:09 +0000)]
DMA support part 1: DMA tag create & destroy

Create a special resource (= device special file) for management
of tags and maps, as well as for mapping memory into the address
space. DMA resources are managed using the PROTO_IOC_BUSDMA ioctl.
Part 1 implements tag creation, derivation and destruction.

9 years agoDon't return -10000 as the probe priority. That's lower than what
marcel [Sat, 6 Jun 2015 15:51:11 +0000 (15:51 +0000)]
Don't return -10000 as the probe priority. That's lower than what
BUS_PROBE_HOOVER is. Drivers like proto(4), when compiled into the
kernel or preloaded, will render your system useless by virtue of
attaching to your PCI busses.

Return BUS_PROBE_GENERIC instead. It's just the next priority up
from BUS_PROBE_HOOVER. No other meaning has been give to its use.
While BUS_PROBE_DEFAULT seems like a better candidate, it's hard
not to think that there must be some reason why these drivers
return -10000 in the first place.

Differential Revision: D2705

9 years agoInclude a header required for vtophys().
br [Sat, 6 Jun 2015 14:26:40 +0000 (14:26 +0000)]
Include a header required for vtophys().

9 years agoRemove useless WARNS
bapt [Sat, 6 Jun 2015 13:49:54 +0000 (13:49 +0000)]
Remove useless WARNS

9 years agoRemove WARNS atrun builds fine with clang and gcc
bapt [Sat, 6 Jun 2015 13:20:02 +0000 (13:20 +0000)]
Remove WARNS atrun builds fine with clang and gcc

9 years agoAdd const to the copyright variable
bapt [Sat, 6 Jun 2015 13:13:39 +0000 (13:13 +0000)]
Add const to the copyright variable
Bump WARNS to level 2

9 years agoRemove WARNS keylogin build fine with clang and gcc
bapt [Sat, 6 Jun 2015 13:09:49 +0000 (13:09 +0000)]
Remove WARNS keylogin build fine with clang and gcc

9 years agoBump WARNS level to 1
bapt [Sat, 6 Jun 2015 13:08:48 +0000 (13:08 +0000)]
Bump WARNS level to 1

9 years agoRemove unused variable
bapt [Sat, 6 Jun 2015 13:08:31 +0000 (13:08 +0000)]
Remove unused variable

9 years agoMake global variables static
bapt [Sat, 6 Jun 2015 12:43:05 +0000 (12:43 +0000)]
Make global variables static
Remove WARNS from Makefile

9 years agoBump level WARNINGS to 3
bapt [Sat, 6 Jun 2015 12:41:25 +0000 (12:41 +0000)]
Bump level WARNINGS to 3

9 years agoMake global variables static
bapt [Sat, 6 Jun 2015 12:39:00 +0000 (12:39 +0000)]
Make global variables static
Remove WARNS from Makefile

9 years agoRemove WARNS vtfontcvt builds find with clang and gcc with maximum level warning
bapt [Sat, 6 Jun 2015 12:34:59 +0000 (12:34 +0000)]
Remove WARNS vtfontcvt builds find with clang and gcc with maximum level warning

9 years agoFix history
bapt [Sat, 6 Jun 2015 12:10:10 +0000 (12:10 +0000)]
Fix history

9 years agoFix HISTORY and add AUTHORS section
bapt [Sat, 6 Jun 2015 12:08:10 +0000 (12:08 +0000)]
Fix HISTORY and add AUTHORS section

Obtained from: OpenBSD (by schwarze@)

9 years agoFix history, add AUTHORS section
bapt [Sat, 6 Jun 2015 12:04:38 +0000 (12:04 +0000)]
Fix history, add AUTHORS section

Obtained from: OpenBSD (by schwarze@)

9 years agoComplete documenting the HISTORY
bapt [Sat, 6 Jun 2015 12:01:35 +0000 (12:01 +0000)]
Complete documenting the HISTORY

Obtained from: OpenBSD (by schwarze@)

9 years agoFix history (appeared in 1BSD)
bapt [Sat, 6 Jun 2015 11:58:19 +0000 (11:58 +0000)]
Fix history (appeared in 1BSD)

Obtained from: OpenBSD (by schwarze@)

9 years agoComplete documenting the HISTORY of what remains of the 1BSD heritage
bapt [Sat, 6 Jun 2015 11:55:35 +0000 (11:55 +0000)]
Complete documenting the HISTORY of what remains of the 1BSD heritage

Obtained from: OpenBSD (by schwarze@)

9 years agoFix history: colrm(1) appeared in 1BSD not 3.0BSD
bapt [Sat, 6 Jun 2015 11:42:43 +0000 (11:42 +0000)]
Fix history: colrm(1) appeared in 1BSD not 3.0BSD
Add Author section

Obtained from: OpenBSD (change by schwarze@)

9 years agoAdd myself (brnrd / Bernard Spil) to committers docs
brnrd [Sat, 6 Jun 2015 11:19:21 +0000 (11:19 +0000)]
Add myself (brnrd / Bernard Spil) to committers docs

- Add myself and vsevolod (mentor) to committers-ports.dot
- Add koobs and vsevolod as mentors to committers-ports.dot

Submitted by: brnrd@freebsd.org
Approved by: vsevolod (mentor), koobs (mentor)
Differential Revision: https://reviews.freebsd.org/D2648

9 years agoSet the correct register when calling sigprocmask in longjmp.
andrew [Sat, 6 Jun 2015 10:28:38 +0000 (10:28 +0000)]
Set the correct register when calling sigprocmask in longjmp.

Submitted by: Patrick Wildt <patrick@bitrig.org>
Obtained from: drahn@bitrig.org

9 years agoFinish r283544. In exec case properly detach threads from user space
dchagin [Sat, 6 Jun 2015 06:12:14 +0000 (06:12 +0000)]
Finish r283544. In exec case properly detach threads from user space
before suicide.

9 years agoAdd support for dependent options
sjg [Sat, 6 Jun 2015 01:18:28 +0000 (01:18 +0000)]
Add support for dependent options

Reviewed by: imp

9 years agoUpdate SW4 to the Intel ixl/ixlv drivers. This is primarily a shared
jfv [Fri, 5 Jun 2015 22:52:42 +0000 (22:52 +0000)]
Update SW4 to the Intel ixl/ixlv drivers. This is primarily a shared
code update, with supporting changes in the CORE. Changes for the extended
media types, VF driver has virtual channel protocol changes, and some
register use corrections.  This software change should be coordinated with
Firmware updates to your hardware, contact your support channels for that.

MFC after: 1 week

9 years agoFix some clang warnings:
bapt [Fri, 5 Jun 2015 21:45:35 +0000 (21:45 +0000)]
Fix some clang warnings:
Add missing headers
Add parenthesis when using the result of an assignment as a condition

9 years agoFix typos
bapt [Fri, 5 Jun 2015 21:35:20 +0000 (21:35 +0000)]
Fix typos

9 years agoThe 'verify_gla()' function is used to ensure that the effective address
neel [Fri, 5 Jun 2015 21:22:26 +0000 (21:22 +0000)]
The 'verify_gla()' function is used to ensure that the effective address
after decoding the instruction matches the one provided by hardware.

Prior to r283293 'vie->num_valid' used to contain the actual length of
the instruction whereas now it contains the maximum instruction length
possible. This introduced a bug when calculating a RIP-relative base address.

Fix this by using 'vie->num_processed' rather than 'vie->num_valid' as the
length of the emulated instruction.

Reported and tested by: tychon
MFC after: 1 week

9 years agoFix wrong function name in error message.
mav [Fri, 5 Jun 2015 20:30:36 +0000 (20:30 +0000)]
Fix wrong function name in error message.

MFC after: 3 days

9 years agoRevert 284029, update imgact_binmisctl.c change mtx to reader count, at the
sbruno [Fri, 5 Jun 2015 18:16:10 +0000 (18:16 +0000)]
Revert 284029, update imgact_binmisctl.c change mtx to reader count, at the
request of the submitter.

Will attempt to use an sx_lock for this fix to WITNESS crashes in a later
revision.

Submitted by: sson

9 years agoSilence clang warning about extraneous parenthesis
sbruno [Fri, 5 Jun 2015 17:18:10 +0000 (17:18 +0000)]
Silence clang warning about extraneous parenthesis

Verified that this exists upstream already:
https://git.kernel.org/cgit/utils/dtc/dtc.git/tree/checks.c#n628

Differential Revision: https://reviews.freebsd.org/D913
Reviewed by: imp

9 years agodnode_read: fixup r284025, BP_IS_HOLE macro expects a pointer
avg [Fri, 5 Jun 2015 17:02:21 +0000 (17:02 +0000)]
dnode_read: fixup r284025, BP_IS_HOLE macro expects a pointer

PR: 199804
Reported by: sbruno
Pointyhat to: avg
MFC after: 10 days
X-MFC with: r284025

9 years agoThis change uses a reader count instead of holding the mutex for the
sbruno [Fri, 5 Jun 2015 16:21:43 +0000 (16:21 +0000)]
This change uses a reader count instead of holding the mutex for the
interpreter list to avoid the problem of holding a non-sleep lock during
a page fault as reported by witness.  In addition, it consistently uses
memset()/memcpy() instead of bzero()/bcopy() except in the case where
bcopy() is required (i.e. overlapping copy).

Differential Revision: https://reviews.freebsd.org/D2123
Submitted by: sson
MFC after: 2 weeks
Relnotes: Yes

9 years agodnode_read: handle hole blocks in zfs boot code
avg [Fri, 5 Jun 2015 15:32:04 +0000 (15:32 +0000)]
dnode_read: handle hole blocks in zfs boot code

A hole block pointer can be encountered at any level and the hole
can cover multiple data blocks, but we are reading the data blocks
one by one, so we care only about the current one.

PR: 199804
Reported by: Toomas Soome <tsoome@me.com>
Submitted by: Toomas Soome <tsoome@me.com> (earlier version)
Tested by: Toomas Soome <tsoome@me.com>
MFC after: 11 days

9 years agobhyve/vmrun.sh: pass all existing readable disks to bhyveload(8)
avg [Fri, 5 Jun 2015 15:16:26 +0000 (15:16 +0000)]
bhyve/vmrun.sh: pass all existing readable disks to bhyveload(8)

This is done if the installation mode is not requested or auto-detected.
This is useful when a kernel has to be loaded from multiple disks.
For example from a RAID-Z pool or a ZFS pool with multiple top level
vdevs.

Differential Revision: https://reviews.freebsd.org/D2723
Reviewed by: neel
MFC after: 8 days

9 years agobhyve/vmrun.sh: support passing disk options same as for bhyve(8)
avg [Fri, 5 Jun 2015 15:14:54 +0000 (15:14 +0000)]
bhyve/vmrun.sh: support passing disk options same as for bhyve(8)

Differential Revision: https://reviews.freebsd.org/D2723
Reviewed by: neel
MFC after: 8 days

9 years agoaic7xxx: Do not support device IDs 0x8081, 0x8088 and 0x8089 to avoid
achim [Fri, 5 Jun 2015 11:37:54 +0000 (11:37 +0000)]
aic7xxx: Do not support device IDs 0x8081, 0x8088 and 0x8089 to avoid
conflicts with the new PMC Adaptec controller families supported by aacraid

9 years agoFor now, just default to presenting "found" channels as 11g, not 11b.
adrian [Fri, 5 Jun 2015 06:49:08 +0000 (06:49 +0000)]
For now, just default to presenting "found" channels as 11g, not 11b.

The intel 7260 driver under development requires this - the scans come
in as normal frames but with the frequency provided.  The correct method
is to have the driver provide flags (so we can determine if it's 11b
or 11g); this will have to do in the meantime.

Without this, the channel found is 11b, and no ERP (ie "11g") bits
are negotiated with the AP.

This allows the 7260 in 2ghz mode to operate in 11bg, rather than
just 11b.

Tested:

* intel 7260 driver, 11bg channels

9 years agoAllow setting only WWNN or only WWPN.
mav [Fri, 5 Jun 2015 06:46:11 +0000 (06:46 +0000)]
Allow setting only WWNN or only WWPN.

MFC after: 2 weeks

9 years agoDisable VGA PCI interrupts until a chipset driver is loaded for VGA
hselasky [Fri, 5 Jun 2015 06:23:03 +0000 (06:23 +0000)]
Disable VGA PCI interrupts until a chipset driver is loaded for VGA
PCI devices. Else unhandled display adapter interrupts might freeze
the CPU or consume a lot of CPU.

PR: 156596
MFC after: 1 week

9 years agoDon't wait forever for USB data to be flushed.
hselasky [Fri, 5 Jun 2015 06:06:07 +0000 (06:06 +0000)]
Don't wait forever for USB data to be flushed.

MFC after: 1 week

9 years agoWork around a potential bug in pw(8) when '-m' is specified.
gjb [Fri, 5 Jun 2015 02:22:04 +0000 (02:22 +0000)]
Work around a potential bug in pw(8) when '-m' is specified.
According to the manual page, '-m' should create the user home
directory, however rigorous testing suggests it does not, and
it is unclear if this is an implementation or expectation issue.

Sponsored by: The FreeBSD Foundation

9 years agocxgbe: set the minimum burst size when fetching fl buffers to 128B for
np [Fri, 5 Jun 2015 00:37:46 +0000 (00:37 +0000)]
cxgbe: set the minimum burst size when fetching fl buffers to 128B for
netmap rx queues too.  This should have gone in as part of r283858.

9 years agoMake sure /home exists within the DESTDIR before creating the
gjb [Thu, 4 Jun 2015 23:11:24 +0000 (23:11 +0000)]
Make sure /home exists within the DESTDIR before creating the
'freebsd' user account.

Sponsored by: The FreeBSD Foundation

9 years agoSome hostap setups may result in raw frames being transmitted with
adrian [Thu, 4 Jun 2015 23:07:21 +0000 (23:07 +0000)]
Some hostap setups may result in raw frames being transmitted with
no parameters set.  So, don't unconditionally call things.

Thanks to jkim@ for pointing this out!

MFC after: 2 weeks
Sponsored by: Norse Corp, Inc.