aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update the spelling of my nameEnji Cooper2019-04-2211-22/+13
| | | | | | | | | | | | Previous spellings of my name (NGie, Ngie) weren't my legal spelling. Use Enji instead for clarity. While here, remove "All Rights Reserved" from copyrights I "own". MFC after: 1 week Notes: svn path=/head/; revision=346571
* cxgbe/t4_tom: Add a "TCB history" feature that samples hardware stateNavdeep Parhar2019-04-223-46/+422
| | | | | | | | | | for a tid and maintains a running history of some interesting events. Service TCP_INFO queries from the history when the tid is being tracked there. Notes: svn path=/head/; revision=346570
* ar: use array notation to access s_soEd Maste2019-04-221-4/+4
| | | | | | | | | | | This is somewhat more readable than pointer arithmetic. Also remove an unnecessary cast while here. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=346569
* ar: test for writing 64-bit format only if symbol count is nonzeroEd Maste2019-04-221-3/+0
| | | | | | | | | | | This is a minor simplification; if we do not have any symbols the empty symbol table can be in 32-bit format. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=346568
* cxgbe(4): Make sure bundled_fw is always initialized before use.Navdeep Parhar2019-04-221-13/+14
| | | | | | | | | | | | | This fixes a bug that prevented the driver from auto-flashing the firmware when it didn't see one on the card. This feature was introduced in r321390 and this bug was introduced in r343269. Reported by: gallatin@ MFC after: 1 week Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=346567
* random.3: Remove obsolete BUGS sectionConrad Meyer2019-04-221-9/+1
| | | | | | | | | | | | | Relative performance to rand(3) is sort of irrelevant; they do different things and a user with sensitivity to RNG performance won't use libc random(3) anyway. The historical note about bad seeding is long obsolete, referring to a 1996 or earlier version of FreeBSD. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=346566
* rand.3: Match better recommendation language from random.3Conrad Meyer2019-04-221-2/+2
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=346565
* r297225 move the assignment of sin from add to the top of the function.Bjoern A. Zeeb2019-04-221-1/+0
| | | | | | | | | sin is not changed after the initial assignment, so no need to set it again. MFC after: 10 days Notes: svn path=/head/; revision=346556
* Remove some excessive brackets.Bjoern A. Zeeb2019-04-221-6/+6
| | | | | | | | | No functional change. MFC after: 10 days Notes: svn path=/head/; revision=346554
* Use separate descriptors in bhyve's stdio uart backend.Mark Johnston2019-04-221-61/+71
| | | | | | | | | | | | | | | | | | | | | bhyve was previously using stdin for both reading and writing to the console, which made it difficult to redirect console output. Use stdin for reading and stdout for writing. This makes it easier to use bhyve as a backend for syzkaller. As a side effect, the change fixes a minor bug which would cause bhyve to fail with ENOTCAPABLE if configured to use nmdm for com1 and stdio for com2. bhyveload already uses separate descriptors, as does the bvmcons driver. Reviewed by: jhb MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D19788 Notes: svn path=/head/; revision=346550
* libbe(3): Add a test for be creationKyle Evans2019-04-225-0/+259
| | | | | | | | | Submitted by: Rob Fairbanks <rob.fx907 gmail com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18564 Notes: svn path=/head/; revision=346546
* libbe(3): allow creation of arbitrary depth boot environmentsKyle Evans2019-04-224-64/+134
| | | | | | | | | | | | | | libbe currently only provides an API to create a recursive boot environment, without any formal support for intentionally limiting the depth. This changeset adds an API, be_create_depth, that may be used to arbitrarily restrict the depth of the new BE. Submitted by: Rob Fairbanks <rob.fx907 gmail com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18564 Notes: svn path=/head/; revision=346545
* Clarify the relationship between INVARIANTS and DIAGNOSTIC a bit.Mark Johnston2019-04-221-2/+4
| | | | | | | | MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=346544
* Disable vm map consistency checking by default on INVARIANTS kernels.Mark Johnston2019-04-221-1/+12
| | | | | | | | | | | | | | | The checks are too expensive for a general-purpose kernel. Enable the checks when DIAGNOSTIC is defined and provide a sysctl to enable the checks in a non-DIAGNOSTIC INVARIANTS kernel. Reviewed by: kib Discussed with: Doug Moore <dougm@rice.edu> MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D19999 Notes: svn path=/head/; revision=346543
* Fix sys.kern.coredump_phnum_test.coredump_phnum on i386Enji Cooper2019-04-221-1/+1
| | | | | | | | | | | | | | The zero-padding when printing out the Size field is on 32-bit architectures is 5, not 15. Adjust the regular expression to work with both the 32-bit and 64-bit case. MFC after: 1 week Reviewed by: lwhsu, markj Approved by: emaste (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D20005 Notes: svn path=/head/; revision=346542
* Fix `get_int_via_sysctlbyname(..)` on JenkinsEnji Cooper2019-04-221-0/+2
| | | | | | | | | | | | | | | | Initialize `oldlen` to the size of the value, instead of leaving the value unitialized. Leaving it unitialized seems to work by accident on amd64 when running 64-bit programs, but not on i386. This matches patterns in use in other programs. PR: 237458 Approved by: emaste (mentor; implicit) MFC after: 1 week Tested on: ^/head (amd64), ^/stable/11 (i386) Notes: svn path=/head/; revision=346539
* Fix build for mips and powerpc after r346530.Hans Petter Selasky2019-04-222-0/+2
| | | | | | | | | | | Need to include sys/kernel.h to define SYSINIT() which is used by sys/eventhandler.h . MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=346535
* Fix panic in network stack due to memory use after free in relation toHans Petter Selasky2019-04-222-9/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fragmented packets. When sending IPv4 and IPv6 fragmented packets and a fragment is lost, the mbuf making up the fragment will remain in the temporary hashed fragment list for a while. If the network interface departs before the so-called slow timeout clears the packet, the fragment causes a panic when the timeout kicks in due to accessing a freed network interface structure. Make sure that when a network device is departing, all hashed IPv4 and IPv6 fragments belonging to it, get freed. Backtrace: panic() icmp6_reflect() hlim = ND_IFINFO(m->m_pkthdr.rcvif)->chlim; ^^^^ rcvif->if_afdata[AF_INET6] is NULL. icmp6_error() frag6_freef() frag6_slowtimo() pfslowtimo() softclock_call_cc() softclock() ithread_loop() Differential Revision: https://reviews.freebsd.org/D19622 Reviewed by: bz (network), adrian MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=346530
* gnop(8): Nopify configuration as a kernel dump deviceConrad Meyer2019-04-221-5/+48
| | | | | | | | | | As a dummy / no-op dump device, to facilitate dumpon(8) testing. Reviewed by: markj (earlier version) Differential Revision: https://reviews.freebsd.org/D19991 Notes: svn path=/head/; revision=346516
* Report DIF protection type the disk is formatted with.Alexander Motin2019-04-222-4/+27
| | | | | | | | | | Some disks formatted with protection report errors if written without protection used. This should help to diagnose the problem. MFC after: 2 weeks Notes: svn path=/head/; revision=346511
* Add #ifdef INET as requested by bz@.Rick Macklem2019-04-211-0/+4
| | | | Notes: svn path=/head/; revision=346506
* Polish SCSI sense data validity checks.Alexander Motin2019-04-212-66/+50
| | | | | | | | | | | | | | | | According to specs and common sense, all sense data reported in descriptor format should be valid. But practice shows different, some devices return descriptors with invalid data, resulting in error messages looking worse. Decouple block/stream commands sense data and information field printing. Looking on present specs, there are much more cases when those fields are not related, and incomplete old code was not printing valid sense data and leaving empty lines for invalid. MFC after: 2 weeks Notes: svn path=/head/; revision=346491
* Typo fix in ipfw.8: amd -> andBenedict Reuschling2019-04-211-2/+2
| | | | | | | | | | | | | | | There is an (obvious) typo in the following sentence: "Please note, that keep-state amd limit imply implicit check-state for ..." Replace the "amd" with "and", bump .Dd. PR: 237438 Submitted by: michael@galassi.us MFC after: 3 days Notes: svn path=/head/; revision=346490
* Move the reporting of spurious interrupts under bootverbose control, becauseIan Lepore2019-04-212-4/+4
| | | | | | | | | | | occasional spurious interrupts are a normal thing on this hardware. Also, change the name of the cpu-local interrupt controller driver from local_intc to lintc, because the name gets built into interrupt names, which have to fit into a 19-byte field for stats reporting (so this allows 5 more bytes of the actual interrupt name to be displayed). Notes: svn path=/head/; revision=346489
* Use a shadow buffer and never read from the frame buffer. Remove large slowBruce Evans2019-04-215-314/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | code for reading from the frame buffer. Reading from the frame buffer is usually much slower than writing to the frame buffer. Typically 10 to 100 times slower. It old modes, it takes many more PIOs, and in newer modes with no PIOs writes are often write-combined while reads remain uncached. Reading from the frame buffer is not very common, so this change doesn't give speedups of 10 to 100 times. My main test case is a floodfill() function that reads about as many pixels as it writes. The speedups are typically a factor of 2 to 4. Duplicating writes to the shadow buffer is slower when no reads from the frame buffer are done, but reads are often done for the pixels under the mouse cursor, and doing these reads from the shadow buffer more than compensates for the overhead of writing the shadow buffer in at least the slower modes. Management of the mouse cursor also becomes simpler. The shadow buffer doesn't take any extra memory, except twice as much in old 4-plane modes. A buffer for holding a copy of the frame buffer was allocated up front for use in the screen switching signal handler. This wasn't changed when the handler was made async-signal safe. Use the same buffer the shadow (but make it twice as large in the 4-plane modes), and remove large special code for writing it as well as large special code for reading ut. It used to have a rawer format in the 4-plane modes. Now it has a bitmap format which takes twice as much memory but can be written almost as fast without special code. VIDBUFs that are not the whole frame buffer were never supported, and the change depends on this. Check for invalid VIDBUFs in some places and do nothing. The removed code did something not so good. Notes: svn path=/head/; revision=346488
* Fix missing restoring of the mouse cursor position, the border color and theBruce Evans2019-04-214-0/+38
| | | | | | | blank state after a screen switch. Notes: svn path=/head/; revision=346486
* [ath] [ath_hal] [ath_hal_9300] Extend the start PCU receive to handle ↵Adrian Chadd2019-04-2115-29/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resetting ANI. One of the fun issues with scanning has been how the existing ANI values were programmed into the hardware when channels were changed. If you're on a really crappy channel and ANI has made you deaf then when you scan you continue to be deaf on all channels. This code passes in a flag to startpcureceive which in AR5416 and later is also used to enable ANI. This allows it to know if it's a normal operation or a scan operation. This fixes my situation at home where a temporary spot of a device going deaf due to interference starts scanning and .. can't hear anything until I restart. Now, this isn't the full fix - ideally: (a) all the ANI config and per-channel information would be migrated to the shared HAL stuff and enabled for all of the NICs; (b) when a station reassociates and some other error conditions (like missed beacons, NF calibration failures, etc) a knob to reset ANI parameters would likely help recovery. But hey, I'm committing bits of code again! woo! Tested: * AR9344 (2G), STA operation Notes: svn path=/head/; revision=346470
* dtc(1): Pull in fix for segfault-upon-error conditionKyle Evans2019-04-211-1/+4
| | | | | | | | | | | Specifically, parse errors within a node would lead to a segfault due to an unconditional dereference after emitting the error. Obtained from: https://github.com/davidchisnall/dtc/commit/e5ecf9319fd3f MFC after: 3 days Notes: svn path=/head/; revision=346469
* MFV r346450:Cy Schubert2019-04-206-207/+195
|\ | | | | | | | | | | | | | | | | Update sqlite3-3.27.1 (3270100) --> sqlite3-3.27.2 (3270200) MFC after: 11 days Notes: svn path=/head/; revision=346459
| * Import sqlite3-3.27.2 (3270200)vendor/sqlite3/sqlite-3270200Cy Schubert2019-04-206-207/+195
| | | | | | | | | | Notes: svn path=/vendor/sqlite3/dist/; revision=346450 svn path=/vendor/sqlite3/sqlite-3270200/; revision=346453; tag=vendor/sqlite3/sqlite-3270200
* | psm(4): give names to synaptics commandsVladimir Kondratyev2019-04-201-11/+31
| | | | | | | | | | | | | | | | Submitted by: Ben LeMasurier <ben@crypt.ly> MFC after: 2 weeks Notes: svn path=/head/; revision=346458
* | psm(4): respect tap_disabled configuration with enabled Extended supportVladimir Kondratyev2019-04-202-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where, even when hw.psm.tap_enabled=0, touchpad taps were processed. tap_enabled has three states: unconfigured, disabled, and enabled (-1, 0, 1). To respect PR kern/139272, taps are ignored only when explicity disabled. Submitted by: Ben LeMasurier <ben@crypt.ly> (initial version) MFC after: 2 weeks Notes: svn path=/head/; revision=346457
* | psm(4): do not process gestures when palm is presentVladimir Kondratyev2019-04-201-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | Ignoring of gesture processing when the palm is detected helps to reduce some of the erratic pointer behavior. This fixes regression introduced in r317814 Reported by: Ben LeMasurier <ben@crypt.ly> MFC after: 2 weeks Notes: svn path=/head/; revision=346456
* | psm(4): Add support for 4 and 5 finger touches in synaptics driverVladimir Kondratyev2019-04-201-1/+10
| | | | | | | | | | | | | | | | | | | | While 4-th and 5-th finger positions are not exported through PS/2 interface, total number of touches is reported by MT trackpads. MFC after: 2 weeks Notes: svn path=/head/; revision=346455
* | Make libvgl mostly work without superuser privilege in direct modes byBruce Evans2019-04-203-20/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not doing any unnecessary PIO instructions or refusing to start when the i/o privilege needed for these instructions cannot be acquired. This turns off useless palette management in direct modes. Palette management had no useful effect since the hardware palette is not used in these modes. This transiently acquires i/o privilege if possible as needed to give VGLSetBorder() and VGLBlankDisplay() a chance of working. Neither has much chance of working. I was going to drop support for them in direct modes, but found that VGLBlankDisplay() still works with an old graphics card on a not so old LCD monitor. This has some good side effects: reduce glitches for managing the palette for screen switches, and speed up and reduce async-signal-unsafeness in mouse cursor drawing. Notes: svn path=/head/; revision=346454
* | Revert r346443Enji Cooper2019-04-202-729/+729
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My wide sweeping stylistic change (while well intended) is impeding others from working on `tests/sys/opencrypto`. The plan is to revert the change in ^/head, then reintroduce the changes after the other changes get merged into ^/head . Approved by: emaste (mentor; implicit) Requested by: jhb MFC after: 2 months Notes: svn path=/head/; revision=346452
* | netdump: Fix 11 compatibility DIOCSKERNELDUMP ioctlConrad Meyer2019-04-201-2/+14
| | | | | | | | | | | | | | | | | | | | | | The logic was present for the 11 version of the DIOCSKERNELDUMP ioctl, but had not been updated for the 12 ABI. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D19980 Notes: svn path=/head/; revision=346448
* | Enable ioremap for aarch64 in the LinuxKPIEd Maste2019-04-202-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Required for Mellanox drivers (e.g. on Ampere eMAG at Packet.com). PR: 237055 Submitted by: Greg V <greg@unrelenting.technology> Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D19987 Notes: svn path=/head/; revision=346445
* | tests/sys/opencrypto: fix whitespace per PEP8Enji Cooper2019-04-202-729/+729
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace hard tabs with four-character indentations, per PEP8. This is being done to separate stylistic changes from the tests from functional ones, as I accidentally introduced a bug to the tests when I used four-space indentation locally. No functional change. MFC after: 2 months Approved by: emaste (mentor: implicit blanket approval for trivial fixes) Notes: svn path=/head/; revision=346443
* | Use symlinks for kernel modules rather than hardlinksAlan Somers2019-04-203-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When aliasing a kernel module to a different name (ie if_igb for if_em), it's better to use symlinks than hard links. kldxref will omit entries for the links, ensuring that the loaded module has the correct name. Reviewed by: imp MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D19979 Notes: svn path=/head/; revision=346441
* | Export cpu_core from opensolaris.ko.Mark Johnston2019-04-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | It is referenced by dtrace*.ko. PR: 191462 Submitted by: me.freebsd@cgf.cx MFC after: 1 week Notes: svn path=/head/; revision=346440
* | Specify using Python2, these .py files have not been converted to use Python3Li-Wen Hsu2019-04-204-4/+4
| | | | | | | | | | | | | | | | | | yet, but the default Python version in ports has been switched to 3. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=346431
* | Start to reduce the number of #ifdef EFI_ZFS_BOOTWarner Losh2019-04-204-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | There's a number of EFI_ZFS_BOOT #ifdefs that aren't needed, or can be eliminated with some trivial #defines. Remove the EFI_ZFS_BOOT ifdefs that aren't needed. Replace libzfs.h include which is not safe to include without EFI_ZFS_BOOT with efizfs.h which is and now conditionally included libzfs.h. Define efizfs_set_preferred away and define efi_zfs_probe to NULL when ZFS is compiled out. Notes: svn path=/head/; revision=346430
* | Add SY8106A Buck Regulator and Allwinner CIR devices to GENERIC arm64 kernel.Ganbold Tsagaankhuu2019-04-202-0/+4
| | | | | | | | Notes: svn path=/head/; revision=346428
* | cron(8): schedule interval jobs that get loaded during executionKyle Evans2019-04-202-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Jobs using the @<second> syntax currently only get executed if they exist when cron is started. The simplest reproducer of this is: echo '@20 root echo "Hello!"' >> /etc/cron.d/myjob myjob will get loaded at the next second==0, but this echo job will not run until cron restarts. These jobs are normally handled in run_reboot_jobs(), which sets e->lastexit of INTERVAL jobs to the startup time so they run 'n' seconds later. Fix this by special-casing TargetTime > 0 in the database load. Preexisting jobs will be handled at startup during run_reboot_jobs as normal, but if we've reloaded a database during runtime we'll hit this case and set e->lastexit to the current time when we process it. They will then run every 'n' seconds from that point, and a full restart of cron is no longer required to make these jobs work. Reported by: Juraj Lutter (otis_sk.freebsd.org) Reviewed by: allanjude, bapt, bjk (earlier version), Juraj Lutter MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D19924 Notes: svn path=/head/; revision=346427
* | powerpc64/powernv: Relax flash block write requirementsJustin Hibbits2019-04-201-2/+2
| | | | | | | | | | | | | | | | | | Since writes don't necessarily need to be on erase-block boundaries, we can relax the block size and alignments down to sector size. If it needs to be erased, opalflash_erase() will check proper alignment and size. Notes: svn path=/head/; revision=346426
* | Add support for the ModeSetMasked attribute to the NFSv4.1 server.Rick Macklem2019-04-193-6/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I do not know of an extant NFSv4.1 client that currently does a Setattr operation for the ModeSetMasked, but it has been discussed on the linux-nfs mailing list. This patch adds support for doing a Setattr of ModeSetMasked, so that it will work for any future NFSv4.1 client that chooses to do so. Tested via a hacked FreeBSD NFSv4.1 client. MFC after: 2 weeks Notes: svn path=/head/; revision=346424
* | Replace "vp" with NULL to make the code more readable.Rick Macklem2019-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | At the time of this nfsv4_sattr() call, "vp == NULL", so this patch doesn't change the semantics, but I think it makes the code more readable. It also makes it consistent with the nfsv4_sattr() call a few lines above this one. Found during code inspection. MFC after: 2 weeks Notes: svn path=/head/; revision=346423
* | Test SHA2-224-HMAC now that OCF supports it.John Baldwin2019-04-191-5/+2
| | | | | | | | | | | | | | | | | | | | Reviewed by: cem MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D19882 Notes: svn path=/head/; revision=346421
* | Revert r346410 and r346411Conrad Meyer2019-04-197-22/+2
| | | | | | | | | | | | | | | | libkern in .PATH has too many filename conflicts with libc and my -DNO_CLEAN tinderbox didn't catch that ahead of time. Mea culpa. Notes: svn path=/head/; revision=346420