Commit Graph

197964 Commits

Author SHA1 Message Date
ae
45e30f880b MFC r276901:
Move the recursion detection code into separate function
  gif_check_nesting(). Also make MTAG_GIF definition private to if_gif.c.

MFC r276907:
  Restore Ethernet-within-IP Encapsulation support that was broken after
  r273087. Move all checks from gif_output() into gif_transmit(). Previously
  they were checked always, because if_start always called gif_output.
  Now gif_transmit() can be called directly from if_bridge() code and we need
  do checks here.

  PR:		196646
2015-01-17 11:43:13 +00:00
dim
f4d39872ad MFC r277147:
Since the merge of file 5.21 in r276415 and r276416, stable/9 and
stable/10 cannot be built from FreeBSD 8.x.  This is because the
build-tools stage requires libmagic, but lib/libmagic/config.h was
generated on head, and it now enables using the xlocale.h APIs, which
are not supported on 8.x (and on 9.x before __FreeBSD_version 900506).

See also the start of this thread on -stable:
https://lists.freebsd.org/pipermail/freebsd-stable/2015-January/081521.html

To fix this, conditionalize the use of xlocale.h APIs to make
bootstrapping from older FreeBSD versions work correctly.

Reviewed by:	delphij
Differential Revision: https://reviews.freebsd.org/D1518
2015-01-17 11:41:04 +00:00
dchagin
af01cd2f74 MFC r276906:
Allow clock_getcpuclockid() on the CPU-time clock for zombie process.
Posix does not prohibit this.
2015-01-17 06:18:45 +00:00
pfg
de8bceaa35 MFC r272947, r272950:
tcpd: complete function prototypes.
tcpd.h: add prototype for hosts_ctl

This clears up at least a build issues on mysql-server
ports. While here also replace some spaces with tabs
in our headers.

PR:	32808
PR:	42336
2015-01-17 01:20:28 +00:00
jamie
fe94e6fed3 MFC r277158:
Don't set prison's pr_ip4s or pr_ip6s to -1.

PR:		196474
2015-01-17 01:16:03 +00:00
nwhitehorn
612ef79eb0 MFC r276412:
Fix loader's ability to read the 10.1 release PowerPC ISOs. There appears to
be some kind of problem with the version of makefs used for these disks.
There may be a better way to handle this problem, so I've set the MFC
timer for a fairly long time period.
2015-01-14 21:23:46 +00:00
trasz
b93020e9d5 MFC r275752:
Fix quick_exit(3) manual page to match reality - the status was missing.

Sponsored by:	The FreeBSD Foundation
2015-01-14 11:31:31 +00:00
trasz
45a21be73d MFC r275510:
Move iscsi.conf.5 from sbin/iscontrol/ to usr.bin/iscsictl/, as the
former is obsolete.

Sponsored by:	The FreeBSD Foundation
2015-01-14 11:29:16 +00:00
hselasky
94c8d66297 MFC r276981:
Fix support for ConnectX2 hardware.

Sponsored by:	Mellanox Technologies
2015-01-14 05:29:35 +00:00
wblock
8a30c78f53 MFC r276419:
Move the explanation for examples before the example itself.  Add
numerous QEMU examples and explanations supplied by sbruno, with thanks
to Ingo Schwarze for help with the mdoc markup.  Code, text, testing,
proofreading, cinematography, stunts, and the haunting theme song
supplied by sbruno.
2015-01-13 22:51:44 +00:00
wblock
b9ff855f5a MFC r276426:
Remove the svn:executable property from iscsi.4.
2015-01-13 22:41:38 +00:00
hselasky
5c6e5d81e9 MFC r276749:
Fixes and updates for the Linux compatibility layer:
- Remove unsupported "bus" field from "struct pci_dev".
- Fix logic inside "pci_enable_msix()" when the number of allocated
  interrupts are less than the number of available interrupts.
- Update header files included from "list.h".
- Ensure that "idr_destroy()" removes all entries before destroying
  the IDR root node(s).
- Set the "device->release" function so that we don't leak memory at
  device destruction.
- Use FreeBSD's "log()" function for certain debug printouts.
- Put parenthesis around arguments inside the min, max, min_t and max_t macros.
- Make sure we don't leak file descriptors by dropping the extra file
  reference counts done by the FreeBSD kernel when calling falloc()
  and fget_unlocked().

MFC after:	1 week
Sponsored by:	Mellanox Technologies
2015-01-13 17:07:30 +00:00
hselasky
ca95da9368 MFC r276879:
Don't mask the IP-address when doing multicast IP over infiniband.

PR:		196631
Sponsored by:	Mellanox Technologies
2015-01-13 16:57:02 +00:00
ganbold
8307a66f60 MFC:
Allow timer0 to run at full 24MHz not at 24MHz/16 by setting prescale to 1.

Approved by:    stas (mentor)
2015-01-13 07:45:16 +00:00
dchagin
427a8ba83f MFC r273048 by jhb:
Fix most of the warnings in kdump(1).

    r276758:

Eliminate new clang warnings.
2015-01-13 06:23:38 +00:00
jkim
64d1cbe697 Bump version after r277086. yacc(1) is now built with maximum MAXTABLE. 2015-01-12 20:27:06 +00:00
jkim
b42ae9a022 MFC: r274460, r274475
Increase MAXTABLE to the maxmimum possible value and regen test cases.
2015-01-12 20:14:31 +00:00
brueffer
e8b8983d0d MFH: r276695
Add a very basic manpage for the Etherswitch framework.
2015-01-12 10:43:40 +00:00
smh
f596acca20 MFC r276012:
Add a constant AHCI_MAX_IRQS removing magic number

MFC r276013:
Clamp ahci max irq's to AHCI_MAX_IRQS

MFC r276016:
Return the error from ahci_setup_interrupt in ahci_attach

MFC r276019:
style (9) nits

Sponsored by:	Multiplay
2015-01-12 10:25:07 +00:00
des
0d480bf6b4 MFH (r273114, r273124): disable SSLv3 by default. 2015-01-12 10:02:23 +00:00
gjb
174dee1760 Document r276991, Remove termcap(5) entry reordering; install
termcap(5) verbatim instead.

Sponsored by:	The FreeBSD Foundation
2015-01-12 03:14:54 +00:00
gjb
234ac35f3c Document r276986, hint.acpi_throttle.0.disabled="1" and
hint.p4tcc.0.disabled="1" by default.

Sponsored by:	The FreeBSD Foundation
2015-01-12 02:50:22 +00:00
ngie
0a1f910d39 MFC discussed with: jilles, -developers
MFC r266971:

  - Return NULL and set errno to EINVAL if size is 0 (as required by POSIX).
  Update the manpage to reflect this change.
  - Always set the current position to the first null-byte when opening in append
  mode. This makes the implementation compatible with glibc's. Update the test
  suite.

  Reported by:	pho
  Approved by:	cognet
2015-01-11 19:15:28 +00:00
ume
addcd434f9 Correct comparison of IPv6 wildcard address.
MFH:		r276814
2015-01-11 18:39:27 +00:00
ngie
50b3937987 MFC r275687,r275692:
Relnotes: yes

r275687:

  Remove termcap entry reordering; install the file verbatim instead

  termcap entry reordering requires ex (which is available via usr.bin/vi), which
  breaks on build hosts where installworld is run with MK_VI == no (or when
  make delete-old is run on ^/projects/building-blocks as vi, et al, are
  removed on the branch when the knob is tweaked to => "no")

  Reordering termcap was believed to improve performance, but the file is now
  accessed via /etc/termcap.db, so /etc/termcap (and /usr/share/misc/termcap by
  proxy) access is less preferred.

  Reordering the file broke the historical comment <-> entry mapping as well,
  which could muddle the purpose of entries in the file, so it could be
  potentially harmful to readers in its reordered state.

  Discussion took place on hackers@ here:
  https://lists.freebsd.org/pipermail/freebsd-hackers/2014-December/046657.html

  Discussed with: -hackers, mp
  Sponsored by: EMC / Isilon Storage Division

r275692:

  Fix building termcap.db when make obj is run beforehand from a clean tree by
  using make variables for the filenames, which helps resolve pathing
  appropriately when running cap_mkdb

  Pointyhat to: me
2015-01-11 18:13:56 +00:00
nwhitehorn
d454042db9 MFC r265329:
Disable ACPI and P4TCC throttling by default, following discussion on
freebsd-current. These CPU speed control techniques are usually unhelpful
at best. For now, continue building the relevant code into GENERIC so that
it can trivially be re-enabled at runtime if anyone wants it.

Relnotes:	yes
2015-01-11 17:10:07 +00:00
hselasky
a1a2ff06ed MFC r276815:
Fix for compilation issue. Don't use the "abs()" function for unsigned
computations.

PR:		196597
Sponsored by:	Mellanox Technologies
2015-01-11 14:36:26 +00:00
hselasky
490d9ace1c MFC r276823:
Add makefile for the "osmtest" utility. While at it:
- Fix depend target by removing a space after an "-I" inclusion option.
- Fix some minor compile issues in the "osmtest" utility.

PR:		196580
2015-01-11 14:22:00 +00:00
hselasky
66c12db3df MFC r276611:
Make sure an error case exits unlocked.
2015-01-11 13:59:25 +00:00
hselasky
dd1bd8c591 MFC r276534:
The "vt_suspend_flush_timer()" function is sometimes called locked
which prevents us from doing a "callout_drain()" call. The callout in
question has a lock associated with it and we are not freeing the
callout. That means we can use the "callout_stop()" function to
atomically stop the callback iff the "callout_stop()" function is
called locked. This patch applies proper locking to "callout_stop()"
and replaces a "callout_drain()" with a "callout_stop()".
2015-01-11 12:25:10 +00:00
hselasky
f17550e390 MFC r276532 and r276626:
The "cnputs_mtx" mutex must be allowed to recurse. Debug prints and/or
witness printouts in the console driver clients can cause this mutex
to recurse by calls to "printf()" from witness for example. In
particular this can happen if "debug.witness.skipspin=0" is set in the
boot environment.
2015-01-11 12:17:27 +00:00
hselasky
3a6d6794aa MFC r271156 and r273376:
- Add IDs for Intel Patsburg USB 2.0 controller.
- Add the Intel BayTrail USB device which needs port routing for USB 3.0.
2015-01-11 12:08:17 +00:00
hselasky
0ee44a5ce1 MFC r276321, r276404, r276407 and r276799:
Various XHCI fixes and improvements:
- Improve and fix MSI interrupt allocation, setup and release.
- Add missed flushing of data which can happen when "xhci_configure_mask()"
  is called from "xhci_configure_reset_endpoint()". Ensure the 3-strikes
  error feature is always enabled except for ISOCHRONOUS transfers.
- Allow systems having a page size greater than 4K to use fewer
  scatter-gather XHCI TRB entries for its payload data. The XHCI
  controller can handle at least 65536 bytes per scatter-gather list
  entry.
2015-01-11 11:28:03 +00:00
marck
0669b1a982 MFH r276083:
Add VAMI (VMware Appliance Management Interface) port.
2015-01-11 08:36:11 +00:00
dchagin
f5dd178d9f Regen for r276955 (__getcwd path bug). 2015-01-11 07:04:18 +00:00
dchagin
4f4ad9e7dd MFC r276564, r276654:
Cast *path to silence clang -Wpointer-sign warning.

Indeed, instead of hiding the kern___getcwd() bug by bogus cast
in r276564, change path type to char * (pathnames are always char *).
And remove bogus casts of malloc().
kern___getcwd() internally doesn't actually use or support u_char *
paths, except to copy them to a normal char * path.

These changes are not visible to libc as libc/gen/getcwd.c misdeclares
__getcwd() as taking a plain char * path.

While here remove _SYS_SYSPROTO_H_ for __getcwd() syscall as
we always have sysproto.h.
2015-01-11 07:02:03 +00:00
gjb
11947f9f2c MFC r276765, r276766, r276820, r276822, r276827, r276828:
r276765:
  Update pkg-stage.sh to be compatible with pkg-1.4.x.

  In 1.3.x and earlier, ABI format is, for example,
  freebsd:11:x86:64.

  In 1.4.x, ABI format is FreeBSD:11:amd64, and a new
  configuration entry, ALTABI, is: freebsd:11:x86:64.

  Export PKG_ABI and PKG_ALTABI accordingly, and if
  PKG_ALTABI is set, create a symlink within the dvd
  PKG_CACHEDIR so both new and old ABI directories
  exist.

r276766:
  Properly change directories before creating the
  PKG_ALTABI -> PKG_ABI symlink.

r276820:
  Print informational output when NOPORTS is set,
  which would otherwise cause pkg-stage.sh to
  silently exit.

r276822:
  Ensure /var/run/ld-elf.so.hints exists before building
  pkg(8).

r276827:
  Ensure the ports directories exist for the list of
  packages intended to be included on the DVD, and
  remove any nonexistent ports from the final list.

  Print the list of missing paths, and ensure that
  DVD_PACKAGES is non-zero length (which should never
  happen).

r276828:
  Switch to x11/gnome3 now that x11/gnome2 no longer
  exists in the ports tree.

Sponsored by:	The FreeBSD Foundation
2015-01-11 01:38:32 +00:00
kib
375caa6c5f MFC r276627:
Add rtld private interface for dso to detect dynamic loading
vs. static linking.
2015-01-10 09:22:17 +00:00
delphij
fc4ca1ce31 MFC r265218 (smh):
Removed pointless / duplicated call to trim_map_first.
2015-01-10 01:05:12 +00:00
delphij
e6623583d1 MFC r264392 (davide):
Fix a panic in zfs_rename().
this is due to a wrong dereference of a vnode when it's not locked and
can be (potentially) recycled. 'sdvp' cannot be locked on zfs_rename()
entry point because the VFS can't be sure that this scenario is
LOR-free (it might violate the parent->child lock acquisition rule).
Dereference 'tdvp' instead, which is already locked on entry, and access
'sdvp' fields only when it's safe, i.e. under ZFS_ENTER scope.

While at it, remove the usage of VOP_REALVP, as long as this is a NOP
on FreeBSD.
2015-01-10 01:01:12 +00:00
dchagin
1009c8aa89 MFC r276550:
Remove Giant from linux_getcwd() due to VFS is MPSAFE now.
2015-01-09 07:32:43 +00:00
loos
669637a75a MFC r276589:
puc(4): Add an entry for the Feasso PCI FPP-02 2S1P card.
2015-01-09 03:35:19 +00:00
loos
3897d680e7 MFC r276249:
Fix the musb initialization sequence on AM335x.

According to http://e2e.ti.com/support/arm/sitara_arm/f/791/t/210729 the
USB reset pulse has an undocumented duration of 200ns and during this
period the module must not be acessed.

We wait for 100us to take into account for some imprecision of the early
DELAY() loop.

This fixes the eventual 'External Non-Linefetch Abort (S)' that happens at
boot while resetting the musb subsystem.

While here, enable the USB subsystem clock before the first access.
2015-01-09 03:32:51 +00:00
loos
baf17b5b91 MFC r274416:
Fix a few cases of use of uninitialized variables.  Found with -Wall.
2015-01-09 03:26:18 +00:00
loos
6b19132d69 MFC r273606:
Fix cpsw_detach() to not panic when called from cpsw_attach().

For an unkown reason (at moment), sometimes if_cpsw cannot read from PHY
and fails to attach calling cpsw_detach() which end up in a panic.

Fix it by doing the proper check before detach the miibus and also fix the
leak of few variables.

And to actually make it work, ether_ifattach() has to be moved to the end
of cpsw_attach() to avoid a race where calling ether_ifdetach() before
domain_init() (which will only run later on) would make it crash at
INP_INFO_RLOCK() on in_pcbpurgeif0().

Tested on:    BBB (am335x)
2015-01-09 02:51:06 +00:00
loos
5eabc7cb67 MFC r273599:
Fix a bug where DMA maps created with bus_dmamap_create() won't increment
the map count and without being able to keep track of the current map
allocation, bus_dma_tag_destroy() will fail to proceed and will return
EBUSY even after all the maps have been correctly destroyed with
bus_dmamap_destroy().

Found while testing the detach method of a NIC.
2015-01-09 02:47:57 +00:00
loos
544e0536f8 MFC: r273546
Fix a bug where some DTS layouts could cause the premature ending of the
search (i.e. without returning any result) and you would end up with a
random MAC address.

Change the search algorithm to a recursive one to ensure that all the nodes
on DTS will be verified.

The previous algorithm could not keep up if the DTS has too many sub-nodes.

While here, fix the punctuation on comments.
2015-01-09 02:43:17 +00:00
loos
eee196bd33 MFC r276314:
Convert the BSC (i2c) driver to use the new iicbus_get_frequency().

Tested on:    Raspberry pi
2015-01-09 02:38:12 +00:00
kib
a47e5e5116 MFC r276523:
Restore access to the page at zero through /dev/mem after r263475.
2015-01-09 02:35:19 +00:00
kib
b085354527 MFC r276522:
Actually remove GIANT_REQUIRED, declared but not done in r263475.
Style.
2015-01-09 02:33:12 +00:00