aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* sfxge(4): regenerate files with genfwdef after ID updateAndrew Rybchenko2018-11-261-1/+8
| | | | | | | | | | | Add security level to image boot header. Submitted by: Andrew Jackson <ajackson at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18289 Notes: svn path=/head/; revision=340929
* sfxge(4): add API to control UDP tunnel portsAndrew Rybchenko2018-11-2610-5/+600
| | | | | | | | | | | | | HW needs to know which UDP packets should be treated as tunnel encapsulation to do inner packet recognition, classification and offloads. Submitted by: Ivan Malov <ivan.malov at oktetlabs.ru> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18134 Notes: svn path=/head/; revision=340928
* Move the check for the filesystem having been run on a kernel thatKirk McKusick2018-11-262-3/+6
| | | | | | | | | | | predates metadata check hashes so that it is done before deciding whether to compute a check-hash of the superblock. Reported by: Rick Macklem <rmacklem@uoguelph.ca> Sponsored by: Netflix Notes: svn path=/head/; revision=340927
* evdev: Fix pause key release event in AT keyboard set 1 to evdev xlat-or.Vladimir Kondratyev2018-11-251-2/+5
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=340926
* Properly recover from superblock check-hash failures. Specifically,Kirk McKusick2018-11-251-5/+3
| | | | | | | | | | | | | report the check-hash failure and offer to search for and use alternate superblocks. Prior to this fix fsck_ffs would simply report the check-hash failure and exit. Reported by: Julian H. Stacey <jhs@berklix.com> Tested by: Peter Holm Sponsored by: Netflix Notes: svn path=/head/; revision=340925
* Calculate updated superblock check-hash before writing it into the snapshot.Kirk McKusick2018-11-253-5/+7
| | | | | | | | | | | | This corrects a bug that prevented snapshots from being mounted due to a superblock check-hash failure. Reported by: Brennan Vincent <brennan@umanwizard.com> Tested by: Peter Holm (pho@) Sponsored by: Netflix Notes: svn path=/head/; revision=340924
* Avoid unneeded check in vmspace_alloc().Konstantin Belousov2018-11-251-7/+3
| | | | | | | | | | | | All vmspace_alloc() callers know which kind of pmap they allocate. Reviewed by: alc, markj (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D18329 Notes: svn path=/head/; revision=340922
* Update pxeboot(8) manual page to reflect the next-server change in the ISC ↵Guangyuan Yang2018-11-251-3/+5
| | | | | | | | | | | | DHCP v3 server. PR: 123484 Submitted by: edwin@mavetju.org Reviewed by: AllanJude MFC after: 1 week Notes: svn path=/head/; revision=340917
* blist_meta_alloc assumes that mask=scan->bm_bitmap is nonzero. But if theAlan Cox2018-11-241-0/+2
| | | | | | | | | | | | | | | | cursor lies in the middle of the space that the meta node represents, then blanking the low bits of mask may make it zero, and break later code that expects a nonzero value. Add a test that returns failure if the mask has been cleared. Submitted by: Doug Moore <dougm@rice.edu> Reported by: pho Tested by: pho X-MFC with: r340402 Differential Revision: https://reviews.freebsd.org/D18058 Notes: svn path=/head/; revision=340914
* psm(4): Add minimal support for active AUX port multiplexersVladimir Kondratyev2018-11-243-3/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Active PS/2 multiplexing is a method for attaching up to four PS/2 pointing devices to a computer. Enabling of multiplexed mode allows commands to be directed to individual devices using routing prefixes. Multiplexed mode reports input with each byte tagged to identify its source. This method differs from one currently supported by psm(4) where so called guest device (trackpoint) is attached to special interface located on the host device (touchpad) and latter performs guest protocol conversion to special encapsulation packet format. At present time active PS/2 multiplexing is used in some models of HP laptops e.g. EliteBook 8560w, 9470m. Enabling of absolute operation mode on such touchpads is connected with following problems: 1. Touchpad's port priority is lower than trackpoint's. That blocks information queries thus prevents touchpad detection and configuration. 2. Touchpad and trackpoint have different protocol packet sizes and sync bytes. As PS/2 usage is on decline only minimal possible set of changes to support Synaptics touchpad and generic mouses is implemented. Active multiplexing mode is enabled only at probe stage to scan through attached PS/2 devices to query and configure Synaptics touchpad. After touchpad has been configured, mux is switched back to legacy (hidden multiplexing) mode to perform normal interrupt-driven input data processing. Overflow bit values rather than tags are used to separate packets produced by different devices. Switching back to legacy mode allows to avoid psm(4) and atkbd(4) rework to support 4 instances of mouse driver. Note: While in hidden multiplexing mode KBC does some editing of the packet stream. It remembers the button bits from the last packet received from each device, and replaces the button bits of every packet with the logical OR of all devices’ most recent button bits. This sort of button crosstalk results in spurious button events which are inhibitted with various tricks. E.g. trackpoint middle button events are suppressed while trackpad surface is touched and touchpad left and right button events are suppressed if corresponding trackpoint buttons are pressed. PR: 231058 Reported by: Michael Figiel <mifigiel@gmail.com> Tested by: Michael Figiel <mifigiel@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=340913
* Revert r328640: Add kludge for 0x46 identity middle byte Synaptics touchpads.Vladimir Kondratyev2018-11-241-58/+20
| | | | | | | | | It appeared that "0x46 identity middle byte" response is caused by so called "Active PS/2 multiplexing controller" presence. Support for it will be added in next commit. Notes: svn path=/head/; revision=340912
* Re-enable the dynamiclib tests. These should be fixed by r340910.Andrew Turner2018-11-241-1/+1
| | | | Notes: svn path=/head/; revision=340911
* Add the missing 0 at the end of the .jcr section.Andrew Turner2018-11-241-0/+3
| | | | | | | | Without this the dynamic library test was failing as it was calling _Jv_RegisterClasses multiple times. Notes: svn path=/head/; revision=340910
* Combine two lines into one following unifdef for r255332.Cy Schubert2018-11-241-2/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=340909
* sfxge(4): allow to request inner classes for Rx packetsAndrew Rybchenko2018-11-242-2/+20
| | | | | | | | | | | | | | If HW/FW supports tunnel encapsulations, Rx event may contain either inner or outer packet classes. By default outer classes are requested. Make it possible to request inner classes to have more information about packet type and allow to interpret inner frame checksum validation results correctly. Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18133 Notes: svn path=/head/; revision=340908
* sfxge(4): add function to create packed stream RxQAndrew Rybchenko2018-11-246-34/+104
| | | | | | | | | | | | | | | Encoding packed stream buffer size in RxQ type is not a future-proof idea taking into account a new RxQ types with extra parameters. To be consistent make packet stream buffer size a separate parameter. In order to avoid blowing of the default RxQ create function prototype add a dedicated function to create packed stream RxQ without not applicable paramters. Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18132 Notes: svn path=/head/; revision=340907
* sfxge(4): control RxQ scatter using flag instead of typeAndrew Rybchenko2018-11-246-14/+32
| | | | | | | | | | Rx scatter may be applicable to different Rx queue types. Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18131 Notes: svn path=/head/; revision=340906
* Pass malloc flags directly through kevent(2) subroutines.Mark Johnston2018-11-244-28/+26
| | | | | | | | | | | | | | | | | Some kevent functions have a boolean "waitok" parameter for use when calling malloc(9). Replace them with the corresponding malloc() flags: the desired behaviour is known at compile-time, so this eliminates a couple of conditional branches, and makes the code easier to read. No functional change intended. Reviewed by: kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18318 Notes: svn path=/head/; revision=340900
* Plug some kernel memory disclosures via kevent(2).Mark Johnston2018-11-242-1/+4
| | | | | | | | | | | | | | | The kernel may register for events on behalf of a userspace process, in which case it must be careful to zero the kevent struct that will be copied out to userspace. Reviewed by: kib MFC after: 3 days Security: kernel stack memory disclosure Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18317 Notes: svn path=/head/; revision=340899
* Ensure that knotes do not get registered when KQ_CLOSING is set.Mark Johnston2018-11-241-9/+19
| | | | | | | | | | | | | | | | | KQ_CLOSING is set before draining the knotes associated with a kqueue, so we must ensure that new knotes are not added after that point. In particular, some kernel facilities may register for events on behalf of a userspace process and race with a close of the kqueue. PR: 228858 Reviewed by: kib Tested by: pho MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18316 Notes: svn path=/head/; revision=340898
* Lock the knlist before releasing the in-flux state in knote_fork().Mark Johnston2018-11-241-1/+1
| | | | | | | | | | | | | | | | Otherwise there is a window, before iteration is resumed, during which the knote may be freed. The in-flux state ensures that the knote will not be removed from the knlist while locks are dropped. PR: 228858 Reviewed by: kib Tested by: pho MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18316 Notes: svn path=/head/; revision=340897
* sfxge(4): remove Falcon-specific concurrency checkAndrew Rybchenko2018-11-243-11/+0
| | | | | | | | | | | | | | | | | Falcon support has been withdrawn from libefx, however, there is still an obsolete Falcon-specific assertion that efx_mac_stats_upload() and efx_port_poll() aren't concurrent. To be consistent with an overall Falcon support revocation it's desirable to remove it. Fix debug build invalid assertion failure. Submitted by: Ivan Malov <ivan.malov at oktetlabs.ru> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18130 Notes: svn path=/head/; revision=340896
* sfxge(4): move BIU test code into Siena-specific fileAndrew Rybchenko2018-11-243-77/+72
| | | | | | | | | Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18129 Notes: svn path=/head/; revision=340895
* sfxge(4): fix PreFAST static analysis warning (C6001)Andrew Rybchenko2018-11-241-3/+10
| | | | | | | | | | | | | | | Fix warning "C6001: Using uninitialized memory '*sensor_maskp'" which could occur when the npages argument to efx_mcdi_sensor_info() is less than or equal to zero. Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18128 Notes: svn path=/head/; revision=340894
* sfxge(4): expand on comment on number of queues fieldAndrew Rybchenko2018-11-241-1/+7
| | | | | | | | | | | Expand on comment on RSS_CONTEXT_ALLOC_IN_NUM_QUEUES field. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18127 Notes: svn path=/head/; revision=340893
* sfxge(4): remove obsolete check for pre-Siena hardwareAndrew Rybchenko2018-11-241-4/+0
| | | | | | | | | | | The fail4 label was used twice, so it doesn't need removing. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18126 Notes: svn path=/head/; revision=340892
* sfxge(4): fix warnings from VS2015 C compiler (C4214)Andrew Rybchenko2018-11-241-17/+17
| | | | | | | | | | | | | | Fix multiple level 4 warnings "C4214: nonstandard extension used: bit field types other than int"; no functional changes. Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18125 Notes: svn path=/head/; revision=340891
* sfxge(4): fix warnings from VS2015 C compiler (C4057)Andrew Rybchenko2018-11-242-5/+5
| | | | | | | | | | | | | | Fix two level 4 warnings "C4057: 'function': 'const uint8_t *' differs in indirection to slightly different base types from 'caddr_t'"; no functional changes. Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18124 Notes: svn path=/head/; revision=340890
* sfxge(4): fix warnings from VS2015 C compiler (C4189)Andrew Rybchenko2018-11-244-12/+14
| | | | | | | | | | | | | | Fix multiple level 4 warnings "C4189: 'xxx': local variable is initialized but not referenced"; no functional changes. Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18123 Notes: svn path=/head/; revision=340889
* sfxge(4): fix warnings from VS2015 C compiler (C4100)Andrew Rybchenko2018-11-246-3/+20
| | | | | | | | | | | | | | | | | | | | Fix multiple level 4 warnings "C4100: 'xxx': unreferenced formal parameter" no functional changes. The _NOTE(ARGUNUSED(xxx)) annotations are being exposed to the Visual Studio 2015 C compiler with the following: #define _NOTE_ARGUNUSED(...) UNREFERENCED_PARAMETER((__VA_ARGS__)); #define _NOTE(_annotation) _NOTE_ ## _annotation Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18122 Notes: svn path=/head/; revision=340888
* sfxge(4): fix warnings from VS2015 C compiler (C4245)Andrew Rybchenko2018-11-242-24/+32
| | | | | | | | | | | | | | Fix level 4 warning "C4245: 'initializing': conversion from 'int' to 'uint32_t', signed/unsigned mismatch" warning; no functional changes. Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18121 Notes: svn path=/head/; revision=340887
* sfxge(4): fix warnings from VS2015 C compiler (C4244)Andrew Rybchenko2018-11-241-1/+1
| | | | | | | | | | | | | | Fix level 4 warning "C4244: '+=': conversion from 'unsigned int' to 'uint16_t', possible loss of data"; no functional changes. Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18120 Notes: svn path=/head/; revision=340886
* sfxge(4): fix warnings from VS2015 C compiler (C4310)Andrew Rybchenko2018-11-241-1/+1
| | | | | | | | | | | | | | Fix level 4 warning "C4310: cast truncates constant value"; no functional changes. Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18119 Notes: svn path=/head/; revision=340885
* sfxge(4): fix probes in licensing supportAndrew Rybchenko2018-11-241-3/+3
| | | | | | | | | | | | | | | | EFSYS_PROBE1 takes one typed value (in addition to the probe name), whereas EFSYS_PROBE has just the probe name. Which to use is determined by the probe name - "fail1" probes are expected to include the function result. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18118 Notes: svn path=/head/; revision=340884
* sfxge(4): fix diagnostics support build without SienaAndrew Rybchenko2018-11-244-166/+150
| | | | | | | | | | | | | | | | | | | | | | | The compilation failed because __efx_sram_pattern_fns was used in efx_nic.c, but defined in efx_sram.c which is only needed when supporting Siena. To fix it move all the code using __efx_sram_pattern_fns into Siena-specific files (except for the definition in efx_sram.c itself, as that file only needs to be included in Siena-supporting builds anyway). The functions to test registers and tables are unlikely to apply to any new hardware and so can be moved into Siena files. Since Huntington such tests have been implemented in firmware. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18117 Notes: svn path=/head/; revision=340883
* sfxge(4): allow to use PHY stats on Huntington/MedfordAndrew Rybchenko2018-11-241-2/+2
| | | | | | | | | | | EFSYS_OPT_PHY_STATS can be used with Huntington or Medford, not just Siena. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18116 Notes: svn path=/head/; revision=340882
* Disable the dynamiclib test until a failure can be debuggedAndrew Turner2018-11-241-1/+1
| | | | Notes: svn path=/head/; revision=340881
* sfxge(4): fix coding styleAndrew Rybchenko2018-11-249-173/+126
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18115 Notes: svn path=/head/; revision=340880
* sfxge(4): remove unused defined for WPTR alignmentAndrew Rybchenko2018-11-241-8/+0
| | | | | | | | | | | MEDFORD_RX_WPTR_ALIGN is not used. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18114 Notes: svn path=/head/; revision=340879
* sfxge(4): support new sensorsAndrew Rybchenko2018-11-241-0/+2
| | | | | | | | | Submitted by: Andrew Jackson <ajackson at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18113 Notes: svn path=/head/; revision=340878
* sfxge(4): add new sensorsAndrew Rybchenko2018-11-242-2/+6
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18112 Notes: svn path=/head/; revision=340877
* sfxge(4): move Siena-specific defs to right headerAndrew Rybchenko2018-11-243-7/+10
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18111 Notes: svn path=/head/; revision=340876
* sfxge(4): fix build issue with PHY LED control enabledAndrew Rybchenko2018-11-244-2/+8
| | | | | | | | | | | | | Fixed build issue with the EFSYS_OPT_PHY_LED_CONTROL for Huntigton and Medford. Submitted by: Vijay Srivastava <vijays at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18110 Notes: svn path=/head/; revision=340875
* sfxge(4): improve names for TXQ descriptor countsAndrew Rybchenko2018-11-244-87/+87
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18109 Notes: svn path=/head/; revision=340874
* sfxge(4): improve names for RXQ descriptor countsAndrew Rybchenko2018-11-244-63/+65
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18108 Notes: svn path=/head/; revision=340873
* sfxge(4): improve names for EVQ descriptor countsAndrew Rybchenko2018-11-244-13/+16
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18107 Notes: svn path=/head/; revision=340872
* sfxge(4): remove assertion on no longer used defineAndrew Rybchenko2018-11-241-2/+0
| | | | | | | | | | | MC_CMD_INIT_RXQ_OUT_LEN is not used any more. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18106 Notes: svn path=/head/; revision=340871
* An OSF/1 ifdef makes absolutley no sense in a FreeBSD specific sourceCy Schubert2018-11-241-3/+0
| | | | | | | | file. MFC after: 1 week Notes: svn path=/head/; revision=340868
* FreeBSD 7 has been history for many moons. Remove some dead code.Cy Schubert2018-11-241-8/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=340867
* MFV r340865:Martin Matuska2018-11-2411-39/+104
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sync libarchive with vendor. Relevant vendor changes: PR #1080: Spelling fixes PR #1084: RAR5 reader bugfixes PR #1091: fix use-after-free in delayed newc link processing PR #1092: Fix a few obvious resource leaks and strcpy() misuses MFC after: 1 week Notes: svn path=/head/; revision=340866