198702 Commits

Author SHA1 Message Date
kib
571ee1f33d MFC r277487:
An update for the i915 GPU driver, which brings the code up to Linux
commit 4d93914ae3db4a897ead4b.

MFC r277959 (by adrian):
Fix backlight for ivybridge based laptops (and whatever else comes through
this codepath.)

MFC r278146:
Do not attach to the unsupported chipsets, unless magic tunable is
frobbed.

MFC r278147, r278148:
Fix sign for the error code returned from the driver-specific code.

MFC r278152:
Do not access gmbus_ports array past its end.

MFC r278159 (by emaste):
Remove duplicate intel_fbc_enabled prototype.
2015-03-23 13:38:33 +00:00
mav
07b059e689 MFC r280293: Add missing variable initialization.
Reported by:	Coverity
CID:		1288938
2015-03-23 11:48:25 +00:00
ngie
105c9ecc59 Defeat race with texinfo tools built with make bootstrap-tools
This is a direct commit to stable/10 because texinfo has been removed from
head
2015-03-22 22:00:29 +00:00
jah
cc715d0ecb MFC r279919: Using parent DMA tag in drm_pci_alloc(). This can allow
drm2 devices to work with Intel DMAR enabled for the system, as long as
DMAR is disabled for the drm2 device.

Reviewed by:	kib (mentor)
2015-03-22 18:32:37 +00:00
scottl
845bbce416 MFC r279842, r279875
Implement basic reporting of cpuset info via the -S option

Obtained from:	Netflix, Inc.
2015-03-22 12:49:57 +00:00
kib
5186484c7d MFC r280253:
Fix syntax error.
2015-03-22 09:12:44 +00:00
ngie
f0ad206868 Remove dependency between usr.bin/m4 and lib/libohash
libohash doesn't exist on stable/10 (only head)

Not sure why my make buildworld didn't catch any issues

This is a direct commit to stable/10 as a followup to r280340
2015-03-22 08:47:35 +00:00
ngie
74e10c6f1a MFC r279197,r279198:
r279197:

Parallelize building bootstrap-tools

Differential Revision: https://reviews.freebsd.org/D1901
Reviewed by: ian
No serious objections from: imp

r279198:

Fill in missing dependencies for dtrace related tools so the bootstrap-tools
compiles properly on older hosts

Pointyhat to: me
2015-03-22 08:42:44 +00:00
ngie
987a0e7bf1 MFC r278888:
Some minor style(9) fixes (whitespace + comment)
2015-03-22 05:54:48 +00:00
dim
4c1f391878 MFC r279980:
Allow relative pathnames in SRCS, so as to enable building software
which includes more than one file with the same name, in different
directories.

For example, setting:

SRCS+=	foo/foo.c bar/foo.c baz/foo.c

will now create separate objdirs 'foo', 'bar' and 'baz' for each of the
sources in the list, and use those objdirs for the corresponding object
files.

Reviewed by:	brooks, imp
Differential Revision: https://reviews.freebsd.org/D1984
2015-03-21 19:20:15 +00:00
kib
48a0d48fb5 MFC r279390:
Change umtx_lock to be the sleepable mutex.
2015-03-21 01:39:44 +00:00
jkim
fe7bfd6646 MFC: r280297
Merge OpenSSL 1.0.1m.

Relnotes:	yes
2015-03-20 21:54:45 +00:00
mav
3886296967 MFC r279963: Fix SATA Gen3 speed constants. 2015-03-20 08:28:11 +00:00
delphij
880dc4d329 Fix issues with original SA-15:06.openssl commit:
- Revert a portion of ASN1 change per suggested by OpenBSD
   and OpenSSL developers.  The change was removed from the
   formal OpenSSL release and does not solve security issue.
 - Properly fix CVE-2015-0209 and CVE-2015-0288.

Pointy hat to:	delphij
2015-03-20 07:11:20 +00:00
markj
bf5cc57879 MFC r278655:
Add support for decoding multibyte NOPs.
2015-03-19 23:13:19 +00:00
markj
3ea05b558b MFC r279896:
Document m_collapse().
2015-03-19 23:07:04 +00:00
delphij
fc2b8b3929 Fix multiple OpenSSL vulnerabilities.
Security:	FreeBSD-SA-15:06.openssl
Security:	CVE-2015-0209
Security:	CVE-2015-0286
Security:	CVE-2015-0287
Security:	CVE-2015-0288
Security:	CVE-2015-0289
Security:	CVE-2015-0293
2015-03-19 17:40:43 +00:00
ae
c07681e98f MFC r269854:
Remove duplicate entry.

MFC r279935:
  Add GUID and alias for Apple Core Storage partition.

  PR:		196241
2015-03-19 14:09:27 +00:00
rwatson
6102a34d38 Merge r263233 from HEAD to stable/10:
Update kernel inclusions of capability.h to use capsicum.h instead; some
  further refinement is required as some device drivers intended to be
  portable over FreeBSD versions rely on __FreeBSD_version to decide whether
  to include capability.h.

Sponsored by:	Google, Inc.
2015-03-19 13:37:36 +00:00
ae
24836ef695 MFC r279920:
Add if_input_default() method, that will be used for if_input
  initialization, when no input method specified before if_attach().

  This prevents panics when if_input() method called directly e.g.
  from bpf(4) code.

  PR:		192426
2015-03-19 13:10:09 +00:00
jhb
a81d6ed0b7 MFC 278327:
Change ktrdump to use the more standard -M/-N flags to specify the path
to a crash dump and kernel, respectively.  The existing -m/-e flags are
still supported for backwards compatiblity but are no longer documented.
2015-03-19 13:08:17 +00:00
ae
7fe0fee3eb MFC r279910:
Reset mbuf pointer to NULL in fastroute case to indicate that mbuf was
  consumed by filter. This fixes several panics due to accessing to mbuf
  after free.
2015-03-19 12:49:55 +00:00
rwatson
bcbbcda0f2 Merge an applicable subset of r263234 from HEAD to stable/10:
Update most userspace consumers of capability.h to use capsicum.h instead.

  auditdistd is not updated as I will make the change upstream and then do a
  vendor import sometime in the next week or two.

Note that a significant fraction does not apply, as FreeBSD 10 doesn't
contain a Capsicumised ping, casperd, libcasper, etc.  When these features
are merged, the capsicum.h change will need to be merged with them.

Sponsored by:	Google, Inc.
2015-03-19 12:32:48 +00:00
rwatson
b9b03fb7e3 Merge r263842 from HEAD to stable/10:
Update system man pages for s/capability.h/capsicum.h/.

Sponsored by:	Google, Inc.
2015-03-19 11:24:07 +00:00
rwatson
dbc7cd6406 Bump __FreeBSD_version to 1001511 reflecting the capability.h -> capsicum.h
rename.

Sponsored by:	Google, Inc.
2015-03-19 11:20:12 +00:00
mav
6a65b273d8 MFC r279658, r279673, r279675:
Implement cache flush for ahci-hd and for virtio-blk over device.
2015-03-19 09:56:38 +00:00
mav
207f5e4d98 MFC r279654: Report logical/physical sector sizes for virtual SATA disk. 2015-03-19 09:54:48 +00:00
mav
a4ce980fef MFC r279651, r279652, r279657:
Add support for TOPOLOGY feature of virtio block device.

Passing through physical block size/offset from underlying storage allows
guest to manage proper data and I/O alignment to improve performance.
2015-03-19 09:53:00 +00:00
mav
cb8ecb44ad MFC r279642: Reenable VIRTIO_BLK_F_TOPOLOGY feature. 2015-03-19 09:47:57 +00:00
rwatson
e61ce7a670 Merge r263232 from head to stable/10:
Rename capability.h to capsicum.h: the original name conflicts with the
  draft POSIX.1e capability.h used on some systems (e.g., Linux).  On
  FreeBSD, leave a wrapper header so that current code continues to compile.

  We will eventually want to deprecate the old header as the presence of a
  capability.h may be confusing some configure scripts.

  Suggested by:   David Drysdale <drysdale at google.com>
  Discussed on:   cl-capsicum-discuss
  MFC after:      3 weeks

Sponsored by:	Google, Inc.
2015-03-18 15:20:08 +00:00
markj
9e983ced1b MFC r280125:
Add a missing format string argument.

PR:		197391
2015-03-18 02:29:51 +00:00
marck
ea1877af60 MFC r279783, r279785:
Reword phrase a bit to decrease possible misleading meaning.
2015-03-15 19:33:40 +00:00
kib
f9bb5551a4 MFC r279936:
Remove write-only variable.
2015-03-15 18:42:19 +00:00
kib
98c5385f47 MFC r279764:
Fix function name in the panic message.
2015-03-15 18:40:06 +00:00
jilles
06654ae5cb MFC r279779: env: Fix crash when -S string is not empty but no operand
follows.

split_spaces() set argc in main() incorrectly, which caused trouble for
getopt().

Examples:
  env -S '\c'
  env -S -i

PR:		197769
2015-03-15 11:43:51 +00:00
ed
3cc419d834 MFC r279016:
Make syslogd work in case shutdown() is POSIX-ly correct.

  On POSIX conformant systems, shutdown() should return ENOTCONN when not
  connected. We attempted to fix this once (kern/84761), but this change
  got backed out because it 'breaks code' (r150155).

  I just reapplied the patch and indeed, syslogd fails on startup. Make it
  easier to re-enable this change in the future by paching up syslogd to
  do the right thing.

Sponsored by: Nuxi
2015-03-15 09:15:11 +00:00
hselasky
56bfc41fb1 MFC r279865:
Ensure setting promiscious mode when a network interface is up, is
always non-blocking by not locking a SX type of mutex.

Sponsored by:	Mellanox Technologies
2015-03-15 09:05:26 +00:00
jilles
1e6b99e844 MFC r279722: env: Fix testsuite for additional variables set by sh. 2015-03-14 20:40:04 +00:00
ae
96d5981c36 MFC r279735:
Remove extra '&'. sin6 is already a pointer.

PR:		195011
2015-03-14 14:38:25 +00:00
ae
783dfdc075 MFC r279730:
lla_lookup() can directly call llentry_free() for static entries
  and the last one requires to hold afdata's wlock.

PR:		197096
2015-03-14 14:35:07 +00:00
kib
f934422af1 MFC r270571 (by dumbbell):
drm/i915: Add opt_acpi.h and acpi_if.h to the source files
2015-03-14 11:36:47 +00:00
kib
7379a65eb4 MFC r279401:
Some fixes for fdescfs lookup code Do not ever return doomed vnode from.
lookup. Reuse the vn_vget_ino_gen() helper to handle parallel unmounts .
2015-03-14 08:42:40 +00:00
jhb
78e2d91db9 MFC 270516:
i915 driver - enable opregion handle; program CADL.

add opregion handling for drm2 - which exposes some ACPI video configuration
pieces that some Lenovo laptop models use to flesh out which video device
to speak to.  This enables the brightness control in ACPI to work these models.

The CADL bits are also important - it's used to figure out which ACPI
events to hook the brightness buttons into.  It doesn't yet seem to work
for me, but it does for the OP.

PR:		190186, 198551
Submitted by:	Henry Hu <henry.hu.sh@gmail.com>
2015-03-13 18:38:02 +00:00
jhb
60a7481f46 MFC 278682:
Make the extra dependencies in DPADD be dependencies of PROG_FULL and
SHLIB_NAME_FULL so that the full binary is relinked when a dependency
changes.  Right now the existing full binary is left as-is and only
the objcopy to remove debug symbols is run.
2015-03-13 17:45:34 +00:00
delphij
7c0c64012e MFC r279366:
Set altroot if the user have specified it via -o altroot.
2015-03-13 01:18:46 +00:00
sjg
3dbd30e102 MFC r278729
sbspace: size of bleft, mleft must match sockbuf fields to avoid
overflow on amd64

Submitted by:   anshukla@juniper.net
Obtained from:  Juniper Networks
2015-03-12 17:07:45 +00:00
kib
df6775dbed MFC r272566:
Convert -1 from sbuf_bcat() to ENOMEM.
2015-03-12 16:05:52 +00:00
jhb
b3716d5321 MFC 278292:
Add the device ID for the AMT serial port on my Thinkpad T400.
2015-03-12 15:48:25 +00:00
jhb
fa9df7fb76 MFC 277713:
If the boot-time memory test is enabled, output a dot ('.') for
each GB of RAM tested so people watching the console can see that
the machine is making progress and not hung.

PR:		196650
2015-03-12 15:08:23 +00:00
mav
24b691f711 MFC r271146,271201,271207,271261,271457,272606,277100,277126,278034,279320,
279573:  Sync AHCI driver with HEAD.

Due to code reorganization in r271146 and many previous reordered merges it
is problematic to merge those revisions separately.
2015-03-12 13:40:02 +00:00