195228 Commits

Author SHA1 Message Date
ian
bd2b096941 MFC r257210, r258527: No hardfloat in ubldr, save/restore r9 for api calls. 2014-04-28 23:46:04 +00:00
ian
faf1fb2259 MFC r264018: update list of supported FTDI chips. 2014-04-28 13:18:30 +00:00
ian
1fa6b5cd9c MFC r264800: fixes for problems found by Coverity scan...
- Get transmit loop more in line with the other serial drivers.
  - Add a comment about FTDI and ZLPs.
  - Correctly check odditiy of baud rate divisor.
  - Correct IOCTL handling for "error" and "event" char.
2014-04-28 13:12:19 +00:00
ian
cb4d7c77b6 MFC uftdi(4) driver changes...
r264010: Support speeds up to 12mbaud on newer chips.
  r264031: Use 2K IO buffers for improved throughput.
  r264149: Add ioctl(2) calls to access bitbang, MPSSE, CPU_FIFO,
           and other modes.
2014-04-28 12:46:23 +00:00
delphij
e852cd6938 MFC r264467:
Take into account when zpool history block grows exceeding 128KB in zpool(8)
and zdb(8) by growing the buffer on demand with a cap of 1GB (specified in
spa_history_create_obj()).

PR:		bin/186574
Submitted by:	Andrew Childs <lorne cons org nz> (with changes)
2014-04-28 06:11:03 +00:00
jmmv
797209d767 MFC r264741: Add placeholder Kyuafiles for various top-level hierarchies.
This is "make tinderbox" clean.
2014-04-28 04:20:14 +00:00
mm
5b89692b00 MFC r264689:
De-virtualize UMA zone pf_mtag_z and move to global initialization part.

The m_tag struct does not know about vnet context and the pf_mtag_free()
callback is called unaware of current vnet. This causes a panic.

PR:		kern/182964
2014-04-27 09:05:34 +00:00
jmmv
1e4589b921 MFC various moves of tools/regressions/ tests to the new infrastructure.
- r263220 Migrate tools/regression/sbin/ to the new tests layout.
- r263222 Add Makefile missed in r263220.
- r263226 Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.
- r263227 Migrate most of tools/regression/usr.bin/ to the new tests layout.
- r263345 Expand tabs that sneaked in into spaces.
- r263346 Migrate tools/regression/usr.bin/make/ to the new tests layout.
- r263348 Add Makefiles missed in r263346.
- r263351 Migrate tools/regression/usr.bin/pkill/ to the new tests layout.
- r263388 Mark multi_test as requiring /usr/share/dict/words.
- r263814 Fix path to the run.pl script to let these tests run.
- r264742 Prevent building tests when bootstrapping make.

This is 'make tinderbox' clean.
2014-04-27 01:15:10 +00:00
marius
5b12da65bf MFC: r264832
- Sprinkle const and static as appropriate.
- Convert the remainder of snd_hda(4) to take advantage of nitems().
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
2014-04-26 01:00:28 +00:00
gjb
c3fb610485 MFC r264794:
Move xdev knobs from release/arm/release.sh and into an
  XDEV_FLAGS variable in ${KERNCONF}.conf file.

Local changes:
  Fix XDEV_FLAGS for stable/10 branch, in particular, remove
  WITH_GCC_BOOTSTRAP=1 and add WITH_GNUCXX=1.

Sponsored by:	The FreeBSD Foundation
2014-04-26 00:51:07 +00:00
marius
7d037e3a60 MFC: r264831
Add quirk to configure headphones redirection on Intel DH87RL boards.
2014-04-26 00:40:16 +00:00
marius
ad9e466c20 MFC: r260064
- Probe with BUS_PROBE_DEFAULT instead of 0.
- Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0
  devices.
- There's no need to keep track of resource IDs.
- Quiesce the interrupt before actually detaching.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
2014-04-25 22:23:38 +00:00
marius
ebc043d66b MFC: r260063
- Probe with BUS_PROBE_DEFAULT instead of 0.
- Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0
  devices.
- Use PCIR_BAR instead of a homegrown macro.
- There's no need to keep track of resource IDs.
- Quiesce the interrupt before actually detaching.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
2014-04-25 22:19:18 +00:00
marius
20ee9198c9 MFC: r260061
- Add support for using MSI instead of INTx, controllable via the tunable
  hw.ral.msi_disable (defaulting to using MSI).
- Probe with BUS_PROBE_DEFAULT instead of 0.
- Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0
  devices.
- Use PCIR_BAR instead of a homegrown macro.
- There's no need to keep track of resource IDs.
- Release resources again in case attaching fails.
- Quiesce the interrupt before detaching.
- Sprinkle const.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
- Trim headers.
- Nuke dupe $FreeBSD$.
2014-04-25 22:04:40 +00:00
marius
9fecd67a52 MFC: r260058
- Remove a redundant variable in mpt_pci_attach().
- #if 0 the currently unused paired port linking and unlinking of dual
  adapters.
- Simplify MSI/MSI-X allocation and release. For a single one, we don't need
  to fiddle with the MSI/MSI-X count and pci_release_msi(9) is smart enough
  to just do nothing in case of INTx.
- Canonicalize actions taken on attach failure and detach.
- Remove the remainder of incomplete support for older FreeBSD versions.
2014-04-25 22:01:02 +00:00
marius
d0bdbe8092 MFC: r260086
- Probe with BUS_PROBE_DEFAULT instead of 0.
- Remove clearing PCIM_CMD_INTxDIS; pci(4) will do that as appropriate since
  r189367.
2014-04-25 21:58:28 +00:00
marius
6fda5991f6 MFC: r260053
- There's no need to keep track of resource IDs.
- Simplify MSI allocation and release. For a single one, we don't need to
  fiddle with the MSI count and pci_release_msi(9) is smart enough to just
  do nothing in case of INTx.
- Don't allocate MSI as RF_SHAREABLE.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
2014-04-25 21:42:52 +00:00
marius
195efbca74 MFC: r260050, r261528
- Switch to using the common MII bitbang'ing code instead of duplicating it.
- Based on lessons learnt with dc(4) (see r185750), add bus space barriers to
  the MII bitbang read and write functions as well as to instances of page
  switching.
- Add missing locking to ed_ifmedia_{upd,sts}().
- Canonicalize some messages.
- Based on actual functionality, ED_TC5299J_MII_DIROUT should be rather named
  ED_TC5299J_MII_DIRIN.
- Remove unused headers.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
2014-04-25 21:32:34 +00:00
marius
74997a8fe2 MFC: r260045
- Simplify MSI allocation and release. For a single one, we don't need to
  fiddle with the MSI count and pci_release_msi(9) is smart enough to just
  do nothing in case of INTx.
- Don't allocate MSI as RF_SHAREABLE.
2014-04-25 21:28:39 +00:00
marius
68e83c58d9 MFC: r260044
Free the MSI again on detach if allocated. Arguably, this code would be
better off living in aac_pci.c, but it doesn't seem worth creating a
aac_pci_detach() and it's also not the first PCI-specific bit in aac.c
2014-04-25 21:24:33 +00:00
marius
0adda65533 MFC: r260041
Record the IEEE P1282 Rock Ridge version 1.12 POSIX File Serial Number,
i. e. the POSIX:5.6.1 st_ino field, which can be used to detect hard links
in the file system. This is also the default in mkisofs(8) and according to
its man page, no system only being able to cope with Rock Ridge version 1.10
is known to exist.

PR:		185138
Submitted by:	Kurt Lidl
2014-04-25 21:20:22 +00:00
hselasky
ed891fed44 MFC r264653:
Add new USB quirk.
2014-04-25 09:53:15 +00:00
delphij
110f39bda3 MFC r258195+r264361:
nc from OpenBSD 5.5.
2014-04-25 04:49:27 +00:00
ae
94eabd9f66 MFC r264582:
Remove unused variable.

PR:		173521
2014-04-24 11:12:53 +00:00
brueffer
95bfeaca5a MFC: r264585
Add a missing break in the TCP case.

Reviewed by:	bms
2014-04-24 10:23:35 +00:00
mav
c2e3819ca8 MFC r264318:
Fix wrong sizes used to access PD_Type and PD_State DDF metadata fields.

This caused incorrect behavior of arrays with big-endian DDF metadata.
Little-endian (like used by Adaptec controllers) should not be harmed.
Add workaround should be enough to manage compatibility.
2014-04-24 10:22:00 +00:00
bryanv
7f430de4a1 MFC r263259
Add Tx/Rx multiqueue support to vmx(4)

    As a prerequisite for multiple queues, the guest must have MSIX enabled.
    Unfortunately, to work around device passthrough bugs, FreeBSD disables
    MSIX when running as a VMWare guest due to the hw.pci.honor_msi_blacklist
    tunable; this tunable must be disabled for multiple queues.

    Also included is various minor changes from the projects/vmxnet branch.

MFC r264865
    Update the date that was missed in r263259
2014-04-24 04:43:50 +00:00
gjb
3422a8357a MFC r264731:
urndis(4) will first appear in 9.3-RELEASE.

Sponsored by:	The FreeBSD Foundation
2014-04-24 00:29:02 +00:00
mav
825aecc9cf MFC r264550:
Fix VIRTUAL and PROF interval timers for short intervals, broken at r247903.

Due to the way those timers are implemented, we can't handle very short
intervals.  In addition to that mentioned patch caused math overflows
for short intervals.  To avoid that round those intervals to 1 tick.

PR:		kern/187668
2014-04-23 12:46:27 +00:00
brueffer
d9c1f7d446 MFC: r264422, r264471
Set buf to NULL only when we don't allocate memory,
and free buf unconditionally.

Found with:	Coverity Prevent(tm)
Requested by:	kib (r264471)
2014-04-23 12:15:14 +00:00
brueffer
031977611b MFC: r264507
Mention Capsicum.
2014-04-23 12:11:14 +00:00
brueffer
0cbc420487 MFC: r264482
Re-indent break statement.
2014-04-23 12:08:20 +00:00
ae
a243d13ce7 MFC r264124:
Remove dead code.

MFC r264125:
  Remove unused variable.

MFC r264126:
  The check for local address spoofing lacks ifaddr locking.
  Remove these loops and use in_localip() and in6_localip()
  functions instead.

MFC r264520:
  Remove _IP_VHL* macros and related ifdefs.
2014-04-23 11:22:54 +00:00
ae
8057942ba8 MFC r264540:
Set oif only for outgoing packets.

  PR:		188543
2014-04-23 09:56:17 +00:00
brueffer
d9a1a7c7fb MFC: r264460
Document the xdev* targets.

PR:		188519
Submitted by:	Idwer Vollering <vidwer at gmail.com>
Reviewed by:	bapt
2014-04-23 09:27:11 +00:00
brueffer
3483d57e80 MFC: r264489
Add a missing break in option parsing.

CID:		1011452
Found with:	Coverity Prevent(tm)
2014-04-23 09:22:24 +00:00
brueffer
53a0ec56bb MFC: r264479
Fix double fclose() in an error case.

CID:		1006120
Found with:	Coverity Prevent(tm)
2014-04-23 07:33:51 +00:00
brueffer
4bf359bbbf MFC: r264421
Free resources in error cases; re-indent a curly brace while here.

CID:		1199366
Found with:	Coverity Prevent(tm)
2014-04-23 07:22:40 +00:00
markj
ec059ac886 MFC r262596:
4478 dtrace_dof_maxsize is far too small

illumos/illumos-gate@d339a29bb4
2014-04-23 03:26:29 +00:00
gjb
55b80a1d2e MFC r264518, r264697, r264698, r264703:
r264518:
  Fix armv6 build failure: "armv6-freebsd-gcc: not found"

r264697:
  When building the 'xdev' target when WITH_GCC=1 and
  WITHOUT_CLANG_IS_CC=1, it appears WITHOUT_CLANG=1 must
  also be set.

  While here, reorder the lines to put the WITH_* and
  WITHOUT_* entries on the same line.

r264698:
  Fix EOL escape.

r264703:
  Apply a slightly different color hammer to arm/release.sh:

   - gcc(1) fails to build usr.bin/dtc
   - lack of WITH_GNUCXX=1 causes cc1plus(1) calls to fail
   - u-boot fails to build with clang (hard-coded gcc(1) calls)

  Implement the proper incantation of WITH_/WITHOUT_ knobs
  to get arm snapshot builds working again.

  Since the cc(1) binary no longer needs to be cc(1) instead of
  clang(1), remove the chroot(8) post-install cc(1) overwrite.

Sponsored by:	The FreeBSD Foundation
2014-04-23 01:27:53 +00:00
brueffer
47b4d0222c MFC: r264419
Avoid double close() of a file descriptor.

CID:		1006089
Found with:	Coverity Prevent(tm)
2014-04-22 21:25:03 +00:00
brueffer
daa5b9ec25 MFC: r264418
Avoid double free in f_acl().

CID:		1018508
Found with:	Coverity Prevent(tm)
2014-04-22 21:13:25 +00:00
brueffer
37a4748dfc MFC: r264416
Add a missing comma between error message definitions.

CID:		1199266
Found with:	Coverity Prevent(tm)
MFC after:	1 week
2014-04-22 21:02:02 +00:00
brueffer
07ce3d4ba6 MFC: r264386
Improve markup and remove contractions.
2014-04-22 20:55:46 +00:00
brueffer
e6b15123de MFC: r264384, r264415
mdoc and language improvements.
2014-04-22 20:51:07 +00:00
marius
f2fa870ceb MFC: r264257, r264327, r264514
Distinguish between the different variants and configurations of Sunix
{MIO,SER}5xxxx chips instead of treating all of them as PUC_PORT_2S.
Among others, this fixes the hang seen when trying to probe the none-
existent second UART on an actually 1-port chip.

Obtained from:	NetBSD (BAR layouts)
Sponsored by:	Bally Wulff Games & Entertainment GmbH
2014-04-22 13:02:03 +00:00
yongari
353e3008f5 MFC r264293:
Add workaround for MCP61 Ethernet controller found on MSI K9
  motherboard.  PHY hardware used for the controller responded at
  all possible addresses which in turn resulted in having 32 PHYs
  for the controller.  If driver detects "MSI K9N6PGM2-V2 (MS-7309)"
  motherboard, tell miibus(4) PHY is located at 0.
2014-04-22 04:35:07 +00:00
yongari
e9b36215b6 MFC r264062:
Correct endianness handling in getting station address from EEPROM.
  While I'm here, remove aue_eeprom_getword() as its only usage is to
  read station address and make it more readable.  This change is
  inspired by NetBSD.
  With this change, aue(4) should work on big endian architectures.

  PR:	188177
2014-04-22 04:30:24 +00:00
emax
e8052c13e8 MFC r264621
use correct (integer) type for the temperature sysctl

Reviewed by:	np, scottl
Obtained from:	Netflix
2014-04-21 17:17:23 +00:00
sbruno
6771e94c82 MFC r264127
Add PCI-IDs for TBD Gen9 RAID controller HBAs from HP to ciss(4)

Submitted by:	Benesh, Scott <scott.benesh@hp.com>
Sponsored by:	Yahoo! Inc.
2014-04-21 16:54:38 +00:00