a9b0e78c yuripv Oct. 21, 2019, 3:01 a.m.
While it's rarely used target, more so a one not used during the
buildworld, it helps when it's not taking hours (literally).
cgit ViewVC
022b70f5 kevans Oct. 21, 2019, 12:52 a.m.
Notices appear both in picobsd(8) (near the top for easy notice) and are
also printed to stderr on every invocation of picobsd for visibility.

The tentative date for removal is October 31st, as no volunteers have
stepped forward at all from postings to -arch@ at least.

No objection from:	-arch@
MFC after:	3 days
cgit ViewVC
60250777 kevans Oct. 20, 2019, 10:55 p.m.
cdevpriv dtors will be called when the reference count on the associated
struct file drops to 0, while d_close can be unreliable for cleaning up
state at "last close" for a number of reasons. As far as tunclose/tundtor is
concerned the difference is minimal, so make the switch.
cgit ViewVC
6869d530 kevans Oct. 20, 2019, 10:39 p.m.
This allows us to avoid some dance in tunopen for dealing with the
possibility of dev->si_drv1 being NULL as it's set prior to the devfs node
being created in all cases.

There's still the possibility that the tun device hasn't been fully
initialized, since that's done after the devfs node was created. Alleviate
this by returning ENXIO if we're not to that point of tuncreate yet.

This work is what sparked r353128, full initialization of cloned devices
w/ specified make_dev_args.
cgit ViewVC
486c0b22 kevans Oct. 20, 2019, 9:06 p.m.
This is now the only flag we set in this loop, terminate early.
cgit ViewVC
6041d76e kevans Oct. 20, 2019, 9:03 p.m.
This flag appears to have been effectively unused since introduction to
if_tun(4) -- drop it now.
cgit ViewVC
17019bff brueffer Oct. 20, 2019, 8:57 p.m.
Submitted by:	Lutz Donnerhacke <lutz_donnerhacke.de>
Reviewed by:	bcr (previous version)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D22067
cgit ViewVC
e9dfc15a asomers Oct. 20, 2019, 8:29 p.m.
This corrects an oversight from r351423.

Submitted by:	Ján Sučan <sucanjan@gmail.com>
MFC after:	Never
Differential Revision:	https://reviews.freebsd.org/D22093
cgit ViewVC
cd1cf2fc marius Oct. 20, 2019, 5:40 p.m.
- In em_msix_link(), properly handle IGB-class devices after the iflib(4)
  conversion again by only setting EM_MSIX_LINK for the EM-class 82574
  and by re-arming link interrupts unconditionally, i. e. not only in
  case of spurious interrupts. This fixes the interface link state change
  detection for the IGB-class. [1]
- In em_if_update_admin_status(), only re-arm the link state change
  interrupt for 82574 and also only if such a device uses MSI-X, i. e.
  takes advantage of autoclearing. In case of INTx and MSI as well as
  for LEM- and IGB-class devices, re-arming isn't appropriate here and
  setting EM_MSIX_LINK isn't either.
  While at it, consistently take advantage of the hw variable.

PR:	236724 [1]
Differential Revision:	https://reviews.freebsd.org/D21924
cgit ViewVC
1cf56858 jhibbits Oct. 20, 2019, 3:50 p.m.
MAS8 is hypervisor privileged, defining the logical partition (VM) to
operate on for TLB accesses.  It's already guaranteed to be cleared when
booting bare metal (bootloader needs it zeroed to work), and we can't touch
it from a guest.  Assume that if/when we eventually port bhyve to PowerPC
(and Book-E) the hypervisor module will take care of managing MAS8.  This
saves several (tens) of clocks on each TLB miss.

MFC after:	2 weeks
cgit ViewVC
760fa2ab vmaffione Oct. 20, 2019, 2:15 p.m.
- use ring->head rather than ring->cur in lb(8)
 - use strlcat() rather than strncat()
 - fix bandwidth computation in pkt-gen(8)

MFC after:	1 week
cgit ViewVC
26abae3f mmel Oct. 20, 2019, 11:11 a.m.
MFC after:	3 weeks
cgit ViewVC
4b84206b mmel Oct. 20, 2019, 10:48 a.m.
in simple multifunction driver.
- follow interrupt changes in DT. Split old ICU driver to function oriented
  parts and add drivers for newly defined parts (system error interrupts).
- Many drivers are children of simple multifunction driver. But after r349596
  simple MF driver doesn't longer exports memory resources, and all children
  must use syscon interface to access their registers. Adapt affected
  drivers to this fact.

MFC after:	3 weeks
cgit ViewVC
8b2d097c behlendorf1 Oct. 20, 2019, 12:08 a.m.
We don't need to include stdio_ext.h

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9483
49ccbde1 bdrewery Oct. 19, 2019, 9:44 p.m.
Submitted by:	vangyzen
Sponsored by:	DellEMC
MFC after:	2 weeks
cgit ViewVC