Commit Graph

194794 Commits

Author SHA1 Message Date
hselasky
8f7a749525 MFC r261827:
- Remove not needed definitions from driver.
- Get USB input report length from HID descriptor.
- Use 1 finger TAP for devices which has no integrated button.
- Move data buffer to softc instead of allocating it.
2014-02-23 13:33:21 +00:00
hselasky
c1fc12c38e MFC r261981:
Add new PCI ID for hardware which needs port routing for USB 3.0.

PR:		usb/186811
2014-02-23 13:25:43 +00:00
hselasky
71ac16ef7a MFC r261541, r261543 and r261544:
Import USB RNDIS driver to FreeBSD from OpenBSD.
Useful for so-called USB tethering.
- Imported code from OpenBSD
- Adapted code to FreeBSD
- Removed some unused functions
- Fixed some buffer encoding and decoding issues
- Optimised data transport path a bit, by sending multiple packets at a time
- Increased receive buffer to 16K
2014-02-23 13:22:04 +00:00
hselasky
874b6a4865 MFC r261795:
Issue doorbell twice before finally freeing the DMA descriptors. This
should fix DMA descriptor caching issues seen with the EHCI controller
found in Google Chromebook C720 during removal and insertion of USB
devices.
2014-02-23 13:11:33 +00:00
brueffer
94cbf3e7dc MFC: r262243
Fix a cross-reference.
2014-02-23 09:44:30 +00:00
jhb
92ff5e5bfb MFC 259542:
Use vmcs_read() and vmcs_write() in preference to vmread() and vmwrite()
respectively. The vmcs_xxx() functions provide inline error checking of
all accesses to the VMCS.
2014-02-23 01:34:40 +00:00
jhb
69d17427ca MFC 258859,259081,259085,259205,259213,259275,259482,259537,259702,259779:
Several changes to the local APIC support in bhyve:
- Rename 'vm_interrupt_hostcpu()' to 'vcpu_notify_event()'.
- If a vcpu disables its local apic and then executes a 'HLT' then spin
  down the vcpu and destroy its thread context. Also modify the 'HLT'
  processing to ignore pending interrupts in the IRR if interrupts have
  been disabled by the guest.  The interrupt cannot be injected into the
  guest in any case so resuming it is futile.
- Use callout(9) to drive the vlapic timer instead of clocking it on each
  VM exit.
- When the guest is bringing up the APs in the x2APIC mode a write to the
  ICR register will now trigger a return to userspace with an exitcode of
  VM_EXITCODE_SPINUP_AP.
- Change the vlapic timer lock to be a spinlock because the vlapic can be
  accessed from within a critical section (vm run loop) when guest is using
  x2apic mode.
- Fix the vlapic version register.
- Add a command to bhyvectl to inject an NMI on a specific vcpu.
- Add an API to deliver message signalled interrupts to vcpus. This allows
  callers to treat the MSI 'addr' and 'data' fields as opaque and also lets
  bhyve implement multiple destination modes: physical, flat and clustered.
- Rename the ambiguously named 'vm_setup_msi()' and 'vm_setup_msix()' to
  'vm_setup_pptdev_msi()' and 'vm_setup_pptdev_msix()' respectively.
- Consolidate the virtual apic initialization in a single function:
  vlapic_reset()
- Add a generic routine to trigger an LVT interrupt that supports both
  fixed and NMI delivery modes.
- Add an ioctl and bhyvectl command to trigger local interrupts inside a
  guest.  In particular, a global NMI similar to that raised by SERR# or
  PERR# can be simulated by asserting LINT1 on all vCPUs.
- Extend the LVT table in the vCPU local APIC to support CMCI.
- Flesh out the local APIC error reporting a bit to cache errors and
  report them via ESR when ESR is written to.  Add support for asserting
  the error LVT when an error occurs.  Raise illegal vector errors when
  attempting to signal an invalid vector for an interrupt or when sending
  an IPI.
- Export table entries in the MADT and MP Table advertising the stock x86
  config of LINT0 set to ExtInt and LINT1 wired to NMI.
2014-02-23 00:46:05 +00:00
jhb
04e37d68ee MFC 257297:
Remove unnecessary includes of <machine/pmap.h>
2014-02-22 23:34:39 +00:00
peter
92739d7a0b MFC r262324: serf 1.3.4 - improve SSL handling with svn-1.8.8 and other
speedups and quality of life fixes.
2014-02-22 18:55:49 +00:00
delphij
30ff5acc63 MFC r261620: MFV r261619:
4574 get_clones_stat does not call zap_count in non-debug kernel

zap_count(...) is never called in non-DEBUG kernel.
As result "count" variable is always 0, and "goto fail" is always
reached.  This means get_clones_stat function never makes up list
of clones for "clones" properties.
2014-02-22 00:57:55 +00:00
delphij
4d10945810 MFC r261618:
In g_eli_crypto_hmac_init(), zero out after using the ipad buffer,
k_ipad.

Note that the two consumers in geli(4) are not affected by this
issue because the way the code is constructed and as such, we
believe there is no security impact with or without this change
with geli(4)'s usage.

Reported by:	Serge van den Boom <serge vdboom.org>
Reviewed by:	pjd
2014-02-22 00:30:33 +00:00
mav
6e3a96834a MFC r261538:
Make CTL block backend return proper error code for operations unsupposed
by the underlying device.
2014-02-21 18:32:45 +00:00
attilio
cf0fa484f9 MFC r261867:
Use the right index to free swapspace after vm_page_rename().
2014-02-21 09:43:34 +00:00
brueffer
9f9257101a MFC: r261900
In chat_UpdateSet(), initialize the input buffer to prevent stale data
from previous timed out commands.

PR:		186530
Submitted by:	Alexander Zagrebin <alexz at visp.ru>
Reviewed by:	brian
2014-02-21 09:25:52 +00:00
brueffer
ffebb434a5 MFC: r261885
In sgetpwnam(), save and free pw_class like all other char members
of struct passwd.  This fixes spurious "login_getclass: unknown class"
errors.

PR:		186439
Submitted by:	UEMURA Tetsuya <t_uemura at macome.co.jp>
2014-02-21 09:19:16 +00:00
mjg
7a394d25ec MFC r259330,r259331:
rlimit: add and utilize lim_shared

rlimit: avoid unnecessary copying of rlimits

If refcount is 1 just modify rlimits in place.
2014-02-20 21:52:39 +00:00
mjg
c581d5764a MFC r260233:
Plug a memory leak in dup2 when both old and new fd have ioctl caps.
2014-02-20 21:36:05 +00:00
ae
9d77623944 MFC r261835:
Drop packets to multicast address whose scop field contains the
  reserved value 0.

Sponsored by:	Yandex LLC
2014-02-20 21:01:59 +00:00
peter
2cdcb70a20 MFC r262253: hack to prevent concurrent runs of asn1_compile in the Heimdal
build with high -j concurrency.
2014-02-20 20:51:27 +00:00
peter
7cfbe47f25 MFC r257129,257936,258084,258569,258602,262250,262251
svn-1.8.4, 1.8.5, 1.8.8 and self-contained private support libraries
2014-02-20 20:34:01 +00:00
brueffer
c34a480545 MFC: r261858
Fix a bug in be_uuid_dec(); it called le16dec() instead of be16dec(),
probably due to copy+pasting le_uuid_dec().

PR:		146588
Submitted by:	Erwin Rol <erwin at erwinrol.com>
Reviewed by:	marcel
2014-02-20 08:55:59 +00:00
eadler
43b7c0ee21 MFC r257883:
Add support for SIIG x1 pci-e single parallel port card (JJ-E01211-S1)

PR:		kern/182217
2014-02-19 19:38:25 +00:00
jhb
a6891855d7 MFC 261512,261514:
- Partially revert r52493 and change client side interval statistics to
  report the actual number of RPCs issued, not the theoretical number
  that would be issued if all caching was disabled.
- Use the DELTA() macro to tidy the server-side interval stats code a bit.
2014-02-19 19:28:49 +00:00
jhb
459448a934 MFC 261780:
Expose OBJT_MGTDEVICE VM objects used for GEM/TTM with drm2 as an
explicit object type.
2014-02-19 19:11:14 +00:00
jhb
f840747a6b MFC 261607:
Mark the I/O ports used by the bhyve console and debug devices as system
resources.
2014-02-19 18:36:53 +00:00
jhb
169a4e8371 MFC 261524,261526,261527:
- Properly set the alignment flags when allocating the initial range for a
  BAR.  This only really matters when pci_do_realloc_bars is enabled and
  the initial allocation of a specific range fails.
- Simplify pci_reserve_map() by calling resource_list_reserve() to allocate
  the resource after creating a resource list entry rather than reimplementing
  it by hand.
- Add two tunables to ignore certain firmware-assigned resources.  These
  are mostly useful for debugging.
  - hw.pci.clear_bars ignores all firmware-assigned ranges for BARs when
    set.
  - hw.pci.clear_pcib ignores all firmware-assigned ranges for PCI-PCI
    bridge I/O windows when set.
2014-02-19 18:34:47 +00:00
luigi
690ab44de3 allow building without INET 2014-02-19 08:15:09 +00:00
dim
a406a87ade MFC r261977:
In sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
being unused, by adding it to the part that handles getting descriptors.

Reviewed by:	hselasky
2014-02-19 08:05:42 +00:00
dim
d3f2366e84 MFC r261916:
In sys/dev/xen/console/console.c, #if 0 an unused static function.
2014-02-19 07:59:50 +00:00
dim
4c23858008 MFC r261914:
In sys/fs/nandfs/nandfs_vfsops.c, #if 0 an unused static function.
2014-02-19 07:55:28 +00:00
dim
591aab5d2a MFC r261915:
Under sys/netpfil/ipfw, surround two IPv6-specific static functions with
#ifdef INET6, since they are unused when INET6 is disabled.
2014-02-19 07:51:58 +00:00
jhb
5b0bab6d24 MFC 261517,261520:
Convert the license on files where I am the sole copyright holder to
2 clause BSD licenses.
2014-02-18 20:27:17 +00:00
jhb
efa52be477 MFC 261518:
- Update a few places to account for va_copy().
- Create a separate 'return values' section and move some statements about
  return values to that section.
- Note that each invocation of va_start() and va_copy() must be paired with
  va_end() in the same function.
2014-02-18 20:16:32 +00:00
avg
db526c6842 MFC r259052: Expose spa_asize_inflation 2014-02-18 15:39:59 +00:00
mav
afa027f3f5 MFC r260236:
In dmu_zfetch_stream_reclaim() replace division with multiplication and
move it out of the loop and lock.
2014-02-18 14:56:44 +00:00
luigi
c9f2fff1da missing files from previous commit... 2014-02-18 05:46:19 +00:00
luigi
5bacc3bb87 MFH: sync the netmap code with the one in HEAD
(enhanced VALE switch, netmap pipes, emulated netmap mode).
See details in the log for svn 261909.
2014-02-18 05:01:04 +00:00
wblock
dd5bb071cd MFC r261895:
Remove mention of minimum password length and upper/lower case checking,
patch supplied by Allan Jude <freebsd@allanjude.com>.  Add xref to
pam_passwdqc(8), where that testing is now done.
2014-02-18 03:39:20 +00:00
wblock
13fea399b5 MFC r261800:
Remove obsolete vnode(9) man page references.
2014-02-18 03:33:51 +00:00
jhb
8e8bf4982f MFC 259140:
Move constants for indices in the local APIC's local vector table from
apicvar.h to apicreg.h.
2014-02-18 01:15:32 +00:00
markj
a3fafc30d3 MFC r258036:
Add IDs for the ASIX 88179 and 88178A USB to GigE adapters.

MFC r258331:
Import the axge(4) driver for the ASIX AX88178A and AX88179 USB Ethernet
adapters. Both devices support Gigabit Ethernet and USB 2.0, and the AX88179
supports USB 3.0.

MFC r258617 (by lwhsu):
Also note to add xhci(4) to kernel configuration to utilize USB 3.0

MFC r258618 (by lwhsu):
Mention axge(4)
2014-02-17 22:40:05 +00:00
jhb
6e1e8b0ada MFC 260926:
Add support for displaying VPD for PCI devices via pciconf.
- Store the length of each read-only VPD value since not all values are
  guaranteed to be ASCII values (though most are).
- Add a new pciio ioctl to fetch VPD for a single PCI device.  The values
  are returned as a list of variable length records, one for the device
  name and each keyword.
- Add a new -V flag to pciconf's list mode which displays VPD data for
  each device.
2014-02-17 22:19:49 +00:00
dim
547b2fb503 MFC r261907:
In cxgbe, conditionalize the t4_pgprot_wc() function, since it is only
used when DOT5 is defined.

Reviewed by:	np
2014-02-17 20:45:39 +00:00
dim
28dda36c5e MFC r261903:
Disable warning about unused static const variables for sys/pci/ncr.c.
2014-02-17 20:37:15 +00:00
dim
427b51912c MFC r261902:
In r260111, in sys/conf/files, I disabled warning about unused functions
for the wrong mcg.c, the one in ofed/drivers/infiniband/hw/mlx4.
Disable the warning for ofed/drivers/net/mlx4/mcg.c instead.
2014-02-17 20:31:54 +00:00
dim
28bc8939f8 MFC r261896:
After r251709, avoid a clang 3.4 warning about an unused static const
variable (uma_max_ipers), when asserts are disabled.

Reviewed by:	glebius
2014-02-17 20:25:17 +00:00
dim
7e788192f1 MFC r261899:
Similar to r260026, disable warning about unused functions for
ieee80211_adhoc.c, ieee80211_hostap.c and ieee80211_sta.c.
2014-02-17 20:19:34 +00:00
mav
3a850f3c10 MFC r260486:
Remove very low default limit of 4 nfsd threads.  nfsd's own default is
8 * hw.ncpu, that sounds more appropriate for these SMP/NCQ/... days.
2014-02-17 20:04:16 +00:00
avg
489e919946 MFC r260185: MFV r260155: 4391 panic system rather than corrupting pool if we hit bug 4390 2014-02-17 18:25:41 +00:00
avg
b0a4129370 MFC r260835: MFV r260834: Fix memory leak of compressed buffers in l2arc_write_done 2014-02-17 18:16:25 +00:00