197967 Commits

Author SHA1 Message Date
ian
cea961188c r276026:
Allow whitspace to appear between device name and unit number in loaderdev.
2014-12-27 05:10:07 +00:00
ian
def901a53c MFC r275951: Log mmc and sd command failures. 2014-12-27 04:55:45 +00:00
ian
3714a75ff6 MFC r275944, r275946, r275949, r275950:
Add code to set and reset open-drain mode on the bus when requested.

  When command and data interrupts have been aggregated together, don't do
  the data-completed processing if a command-error interrupt is also asserted.

  Add a new sdhci quirk, SDHCI_QUIRK_WAITFOR_RESET_ASSERTED, to work around
  TI OMAP controllers which will return the reset-in-progress bit as zero if
  you read the status register too fast after setting the reset bit.
2014-12-27 04:54:36 +00:00
ian
02a7e72b74 MFC r275660: Fix the watchdog timeout calculation to prevent wrap. 2014-12-27 04:51:21 +00:00
ian
2226c9830e MFC r274967:
Add busdma sync ops before reading and after modifying the descriptor rings
2014-12-27 04:35:18 +00:00
ian
aa8c824e74 MFC r274941: The arm PJ4B cpu is armv7 architecture, not v6. 2014-12-27 04:33:35 +00:00
ian
ff2ddbadb6 MFC r274937:
Add ARMV6 as an arm option.  This will cause obscure magic in config(8)
  to automatically set the armv6 option when MACHINE_ARCH is armv6.  That
  allows replacing ever-growing lists of cpu names as options to compile
  a given file with the using either "optional armv6" or "optional !armv6".
2014-12-27 04:30:42 +00:00
ian
03177641a0 MFC r265840: Eliminate spurious warnings when grep doesn't find NO_UNIVERSE 2014-12-27 03:20:34 +00:00
ian
6c9b54c869 MFC r274924, r274936:
Consider the negation operator (!) to be a word even if it is not followed
  by whitespace.  This allows "optional !foo" which is what most programmers
  are naturally going to tend to do as opposed to "optional ! foo".

  Fix the negation (!) operator so that it binds only to the word that
  immediately follows it.
2014-12-27 03:19:04 +00:00
ian
d082e488cb MFC r274641, r274644, r274822, r276049:
Allow i2c bus speed to be configured via hints, FDT data, and sysctl.

  Implement bus speed setting for OMAP4, AM335x, and imx5/6.

  Fix the i2c bus speed divisors for TI OMAP4 and AM335x to give the
  advertised 100, 400, and 1000 KHz speeds.

PR:		195009
2014-12-27 02:37:52 +00:00
jamie
799361e237 MFC r275906:
Setgid before running a command as a specified user.  Previously only
  initgroups(3) was called, what isn't quite enough.  This brings jail(8)
  in line with jexec(8), which was already doing the right thing.

PR:		195984
2014-12-27 02:17:35 +00:00
ian
dda8b6a9a4 MFC r274412, r274413, r274414: Bugfixes for imx5/6 pinctrl driver. 2014-12-27 01:35:03 +00:00
ian
832ee5dfbd MFC r274538, r274545, r274596, r274602, r274603, r274604, r274605, r274839:
When doing busdma sync ops for BUSDMA_COHERENT memory, there is no need
  for cache maintenance operations, but ensure that all prior writes have
  reached memory when doing a PREWRITE sync.

  Do not do a cache invalidate on a PREREAD sync that is also a PREWRITE sync.

  Do the cache invalidate sequence from the outermost to innermost, required
  for correct operation.

  Correct the sequence of busdma sync ops involved with PRE/POSTREAD syncs.

  When doing a PREREAD sync of an mbuf-type dma buffer, do a writeback of
  the first cacheline if the buffer start address is not on a cacheline
  boundary.
2014-12-27 01:28:52 +00:00
kib
38f7dd4bb8 MFC r275745:
Add facility to stop all userspace processes.

MFC r275753:
Fix gcc build.

MFC r275820:
Add missed break.
2014-12-27 00:55:14 +00:00
kib
e8e2e634b5 MFC r275960:
Increase allowed size of the microcode blob to 32KB.
2014-12-27 00:44:33 +00:00
ian
b2f7ab039b MFC r274926: Squelch a (bogus) gcc used before init warning 2014-12-27 00:01:28 +00:00
scottl
8e470958f3 MFC 276174:
Fix tunable and sysctl handling of the fail_on_task_timeout knob.

Reviewed by:    emax
Obtained from:  Netflix, Inc.
2014-12-26 23:18:09 +00:00
ian
be077139af MFC r274188, r274189:
DMA tag alignment should be 1 (not 0) when a device can dma at any address.
2014-12-26 22:56:02 +00:00
markj
f296437898 MFC r272671:
Treat D keywords as identifiers in certain postfix expressions. This allows
one to, for example, access the "provider" field of a struct g_consumer,
even though "provider" is a D keyword.

PR:	169657
2014-12-26 22:52:44 +00:00
markj
73aece4781 MFC r275011:
The module load address always needs to be included when setting the dm_*_va
fields of dt_module_t. Previously, this was only done on architectures where
kernel modules have type ET_REL; this change fixes that. As a result, symbol
name resolution in the stack() action now works properly for kernel modules
on i386.
2014-12-26 22:50:34 +00:00
ian
fe75b90da9 MFC r270190: Don't kill parallel jobs on (expected) failure of make_check. 2014-12-26 21:40:45 +00:00
hselasky
e0931ed2a0 MFC r275790 and r275791:
Resolve USB driver identification conflict.
Regenerate etc/devd/usb.conf.
2014-12-26 11:32:34 +00:00
hselasky
d93f2ea3b7 MFC r259675, r262128, r262129, r275605, r276239 and r276240:
Add more USB quirks.

PR:	178771
PR:	180617
PR:	195372
2014-12-26 11:16:59 +00:00
mav
8b298a2978 MFC r275920, r276127: Pass real optimal transfer size supported by backend.
For files and ZVOLs that is 1MB now, not 128K.
2014-12-26 09:44:32 +00:00
mav
270e05ae8c MFC r275925: Slightly polish iSCSI parameters negotiation. 2014-12-26 09:12:19 +00:00
mav
529f85a6e8 MFC r275118: Some microoptimizations. 2014-12-26 09:11:26 +00:00
mav
28baac29e7 MFC r275112:
Make isp_find_pdb_by_*() search for targets in portdb in reverse order.

Records with target_mode == 1 are allocated from the end of portdb, so it
seems logical to start search from the end not traverse whole array.
2014-12-26 09:09:50 +00:00
mav
5d78bffe2b MFC r275865:
Add configuration options to override physical and UNMAP blocks geometry.

While in most cases CTL should correctly fetch those values from backing
storages, there are some initiators (like MS SQL), that may not like large
physical block sizes, even if they are true.  For such cases allow override
fetched values with supported ones (like 4K).
2014-12-24 13:49:40 +00:00
ae
7a82e24551 MFC r273087 (with modifications):
Overhaul if_gif(4):
   o convert to if_transmit;
   o use rmlock to protect access to gif_softc;
   o use sx lock to protect from concurrent ioctls;
   o remove a lot of unneeded and duplicated code;
   o remove cached route support (it won't work with concurrent io);
   o style fixes.

MFC r273090:
  Move memset under ifdef INET6.

MFC r273091:
  Add more ifdefs. SIOC*_IN6 are defined only with INET6.

MFC r273121:
  Add inet/inet6 to the dependency list. Without them if_gif is useless.

MFC r273209 by bz:
  After r273087,r273090,r273091,r273121 changes to gif(4) try to fix
  NOIP builds for real.

MFC r273587:
  Remove redundant check and m_pullup() call.
2014-12-23 16:33:44 +00:00
mav
9cec814411 MFC r275959: Report initiator id in portlist XML in more formalized way. 2014-12-23 12:45:29 +00:00
mav
be31195072 MFC r275958: Report XML parsing errors. 2014-12-23 12:44:16 +00:00
mav
69ac340493 MFC r275842: Do not count RCTD bit set as an error.
We can not really implement it, but specification tells that it "shall"
work, so it can be safely ignored.
2014-12-23 12:41:28 +00:00
nyan
f42424055b MFC: r272492
Merge pc98's machdep.c into i386/i386/machdep.c.
2014-12-23 12:13:31 +00:00
kib
d2f5d57eaa MFC r271208:
Add a define for index of IA32_XSS MSR.
2014-12-23 12:04:23 +00:00
kib
10220d0061 MFC r271206:
Adjust the definition of struct xstate_hdr according to SDM rev. 50.
2014-12-23 12:00:41 +00:00
kib
5a03dd693d MFC r271197:
Add more bits for the XSAVE features from CPUID 0xd, sub-function 1
%eax report.  Print the XSAVE features 0xd/1 in the boot banner.
2014-12-23 11:55:53 +00:00
nyan
8ae47063b1 MFC: r272491
Reduce diffs against i386.
2014-12-23 10:59:15 +00:00
nyan
84499dcf21 MFC: r272490 (partial)
- MFi386: Add compile-with option for tau32-ddk.c.
  - Whitespace change.
2014-12-23 09:46:23 +00:00
ae
57be9990bd Add if_inc_counter() and if_get_counter_default() functions that do
access to ifnet counters for code compatibility with FreeBSD 11.

This is direct commit to stable/10.

Discussed with:	glebius@, arch@
2014-12-23 09:39:40 +00:00
pfg
5b60997187 MFC r274437;
ifdef ext2_print_inode which is not really used.

ext2_print_inode was nice to have for initial development work but
is not really used anymore. #ifdef it under a new EXT2FS_DEBUG knob
so that we don't spend time compiling it.
2014-12-23 03:24:16 +00:00
pfg
7b207849cb MFC r275838;
sed: Bounds check the file path used in the 'w' command.

Modified version of a diff from Sebastien Marie to prevent a crash found
with the afl fuzzer.

Obtained from:	OpenBSD (CVS Rev. 1.37)
2014-12-23 02:46:00 +00:00
des
347db77978 Strip trailing / characters from paths in "not present" index entries.
Errata:		FreeBSD-EN-14:13.freebsd-update
Approved by:	so@
2014-12-22 22:11:39 +00:00
jhb
3f04bf5b7c MFC 275035:
MFamd64: Check for invalid flags in the machine context in sigreturn()
and setcontext().
2014-12-22 21:46:35 +00:00
jhb
5ae50f92a8 MFC 273988,273989,273995,274057:
MFamd64: Add support for extended FPU states on i386.  This includes
support for AVX on i386.
2014-12-22 21:32:39 +00:00
delphij
2194e37061 MFC r275530:
Use %d instead of %u for error number.  This way we see ERESTART as -1
not 4294967295 when doing DTrace.
2014-12-22 21:06:26 +00:00
delphij
1ad38ed4f0 MFC r274337,r274673,274681,r275515:
ZFS large block support.  The default recordsize remains at 128KB.

A new tunable/sysctl variable, vfs.zfs.max_recordsize is added to
allow adjusting the permitted maximum record size, or
zfs_max_recordsize, with a default of 1MB.  ZFS will not allow
setting recordsize greater than zfs_max_recordsize as a safety
belt, because larger recordsize means greater read and write
latency and more memory usage.

Please note that booting from datasets that have recordsize greater
than 128KB is not supported (but it's Okay to enable the feature on
the pool).

Limited safety belt is provided for mounted root filesystem but use
caution when using a larger value.

Illumos issue:
    5027 zfs large block support
2014-12-22 20:58:51 +00:00
jhb
af2ee162da MFC 273991:
MFamd64: Move extern declaration of _ucodesel and _udatasel to
<machine/md_var.h>
2014-12-22 20:53:45 +00:00
jhb
71f9e38fa2 MFC 271405,271408,271409,272658:
MFamd64: Use initializecpu() to set various model-specific registers on
AP startup and AP resume (it was already used for BSP startup and BSP
resume).
2014-12-22 19:53:55 +00:00
delphij
77f68eb34a MFC r276071:
Fix multiple ntp vulnerabilities.

Reviewed by:	roberto (earlier revision), philip
Security:	CVE-2014-9293, CVE-2014-9294
Security:	CVE-2014-9295, CVE-2014-9296
Security:	FreeBSD-SA-14:31.ntp
2014-12-22 19:07:16 +00:00
jhb
2b345a08ed MFC 260557,271076,271077,271082,271083,271098:
- Remove spaces from boot messages when we print the CPU ID/Family/Stepping
- Move prototypes for various functions into out of C files and into
  <machine/md_var.h>.
- Reduce diffs between i386 and amd64 initcpu.c and identcpu.c files.
- Move blacklists of broken TSCs out of the printcpuinfo() function
  and into the TSC probe routine.
- Merge the amd64 and i386 identcpu.c into a single x86 implementation.
2014-12-22 18:40:59 +00:00