svn commit: r353333 - head/tests/sys/kern

2019-10-08 Thread Mark Johnston
Author: markj Date: Tue Oct 8 23:52:04 2019 New Revision: 35 URL: https://svnweb.freebsd.org/changeset/base/35 Log: Fix a bug in r353332 that snuck in with a last-minute adjustment. Reported by: Jenkins MFC with: r353332 Sponsored by: The FreeBSD Foundation Modified: he

svn commit: r353444 - head/sys/dev/xen/netback

2019-10-11 Thread Mark Johnston
Author: markj Date: Fri Oct 11 17:23:23 2019 New Revision: 353444 URL: https://svnweb.freebsd.org/changeset/base/353444 Log: Remove an unneeded include of opt_sctp.h. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/xen/netback/netback.c Modified: head/

svn commit: r353457 - head/sys/netinet6

2019-10-12 Thread Mark Johnston
Author: markj Date: Sat Oct 12 22:58:33 2019 New Revision: 353457 URL: https://svnweb.freebsd.org/changeset/base/353457 Log: Add a missing include of opt_sctp.h. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/netinet6/ip6_forward.c Modified: head/sys/neti

svn commit: r353458 - in head/sys: modules/pf netpfil/pf

2019-10-12 Thread Mark Johnston
Author: markj Date: Sat Oct 12 23:01:16 2019 New Revision: 353458 URL: https://svnweb.freebsd.org/changeset/base/353458 Log: Add a missing include of opt_sctp.h. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/modules/pf/Makefile head/sys/netpfil/pf/pf.c

svn commit: r353460 - head/sys/netpfil/pf

2019-10-12 Thread Mark Johnston
Author: markj Date: Sun Oct 13 00:08:17 2019 New Revision: 353460 URL: https://svnweb.freebsd.org/changeset/base/353460 Log: Fix the build after r353458. MFC with: r353458 Sponsored by: The FreeBSD Foundation Modified: head/sys/netpfil/pf/pf.c Modified: head/sys/netpfil/pf/pf.c ==

svn commit: r353477 - in head/sys: conf netinet

2019-10-13 Thread Mark Johnston
Author: markj Date: Sun Oct 13 16:14:04 2019 New Revision: 353477 URL: https://svnweb.freebsd.org/changeset/base/353477 Log: Move SCTP DTrace probe definitions into a .c file. Previously they were defined in a header which was included exactly once. Change this to follow the usual practi

svn commit: r353650 - head/sys/powerpc/aim

2019-10-16 Thread Mark Johnston
Author: markj Date: Wed Oct 16 15:50:12 2019 New Revision: 353650 URL: https://svnweb.freebsd.org/changeset/base/353650 Log: Clear PGA_WRITEABLE in moea_pvo_remove(). moea_pvo_remove() might remove the last mapping of a page, in which case it is clearly no longer writeable. This can happ

svn commit: r353666 - head/sys/vm

2019-10-16 Thread Mark Johnston
Author: markj Date: Wed Oct 16 21:47:58 2019 New Revision: 353666 URL: https://svnweb.freebsd.org/changeset/base/353666 Log: Correct the range boundaries used by kern_mincore(). Reported by: alc Sponsored by: Netflix Modified: head/sys/vm/vm_mmap.c Modified: head/sys/vm/vm_mmap.c ===

svn commit: r353670 - in head/sys: amd64/amd64 arm/arm arm64/arm64 i386/i386 kern mips/mips powerpc/booke powerpc/powerpc riscv/riscv sparc64/sparc64 vm

2019-10-16 Thread Mark Johnston
Author: markj Date: Wed Oct 16 22:03:27 2019 New Revision: 353670 URL: https://svnweb.freebsd.org/changeset/base/353670 Log: Remove page locking from pmap_mincore(). After r352110 the page lock no longer protects a page's identity, so there is no purpose in locking the page in pmap_mincor

svn commit: r353671 - head/sys/kern

2019-10-16 Thread Mark Johnston
Author: markj Date: Wed Oct 16 22:06:19 2019 New Revision: 353671 URL: https://svnweb.freebsd.org/changeset/base/353671 Log: Use KOBJMETHOD_END in the kernel linker. MFC after:1 week Modified: head/sys/kern/link_elf.c head/sys/kern/link_elf_obj.c Modified: head/sys/kern/link_elf.c

svn commit: r353672 - in head/sys/amd64: amd64 include

2019-10-16 Thread Mark Johnston
Author: markj Date: Wed Oct 16 22:12:34 2019 New Revision: 353672 URL: https://svnweb.freebsd.org/changeset/base/353672 Log: Introduce pmap_change_prot() for amd64. This updates the protection attributes of subranges of the kernel map. Unlike pmap_protect(), which is typically used for us

svn commit: r353673 - head/sys/conf

2019-10-16 Thread Mark Johnston
Author: markj Date: Wed Oct 16 22:19:56 2019 New Revision: 353673 URL: https://svnweb.freebsd.org/changeset/base/353673 Log: Formalize the use of linker scripts for kernel modules. Automatically apply ldscript.kmod.${MACHINE_ARCH} if it exists. We already have an i386-specific linker scri

Re: svn commit: r353683 - head/sys/netinet

2019-10-17 Thread Mark Johnston
On Thu, Oct 17, 2019 at 04:02:34PM +, Gleb Smirnoff wrote: > Author: glebius > Date: Thu Oct 17 16:02:34 2019 > New Revision: 353683 > URL: https://svnweb.freebsd.org/changeset/base/353683 > > Log: > igmp_v1v2_queue_report() doesn't require epoch. igmp_v1v2_queue_report() calls netisr_dispa

Re: svn commit: r352909 - in head: contrib/elftoolchain/nm usr.bin/nm

2019-10-17 Thread Mark Johnston
On Thu, Oct 17, 2019 at 11:37:44AM -0600, Alan Somers wrote: > On Mon, Sep 30, 2019 at 11:28 AM Mark Johnston wrote: > > > Author: markj > > Date: Mon Sep 30 17:27:59 2019 > > New Revision: 352909 > > URL: https://svnweb.freebsd.org/changeset/base/352909 >

svn commit: r353698 - head/sys/sys

2019-10-17 Thread Mark Johnston
Author: markj Date: Thu Oct 17 20:46:33 2019 New Revision: 353698 URL: https://svnweb.freebsd.org/changeset/base/353698 Log: Belatedly bump __FreeBSD_version for r353537 and related commits. At least one small update to the out-of-tree DRM drivers is required now that cdev_pager_free_page

Re: svn commit: r352909 - in head: contrib/elftoolchain/nm usr.bin/nm

2019-10-17 Thread Mark Johnston
On Thu, Oct 17, 2019 at 01:05:42PM -0600, Alan Somers wrote: > On Thu, Oct 17, 2019 at 12:48 PM Ian Lepore wrote: > > > On Thu, 2019-10-17 at 12:17 -0600, Alan Somers wrote: > > > There might be something wrong with my environment: > > > /usr/include/libcasper.h is absent. But still, shouldn't t

svn commit: r353699 - head/sys/kern

2019-10-17 Thread Mark Johnston
Author: markj Date: Thu Oct 17 21:25:50 2019 New Revision: 353699 URL: https://svnweb.freebsd.org/changeset/base/353699 Log: Clean up some nits in link_elf_(un)load_file(). - Remove a redundant assignment of ef->address. - Don't return a Mach error number to the caller if vm_map_find() fa

svn commit: r353701 - head/sys/conf

2019-10-17 Thread Mark Johnston
+ * + * Copyright (c) 2019 Mark Johnston + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of

svn commit: r353729 - head/sys/kern

2019-10-18 Thread Mark Johnston
Author: markj Date: Fri Oct 18 13:53:14 2019 New Revision: 353729 URL: https://svnweb.freebsd.org/changeset/base/353729 Log: Apply mapping protections to .o kernel modules. Use the section flags to derive mapping protections. When multiple sections overlap within a page, the union of the

svn commit: r353730 - in head/sys: kern vm

2019-10-18 Thread Mark Johnston
Author: markj Date: Fri Oct 18 13:56:45 2019 New Revision: 353730 URL: https://svnweb.freebsd.org/changeset/base/353730 Log: Apply mapping protections to preloaded kernel modules on amd64. With an upcoming change the amd64 kernel will map preloaded files RW instead of RWX, so the kernel l

svn commit: r353731 - in head/sys: amd64/amd64 conf

2019-10-18 Thread Mark Johnston
Author: markj Date: Fri Oct 18 14:05:13 2019 New Revision: 353731 URL: https://svnweb.freebsd.org/changeset/base/353731 Log: Tighten mapping protections on preloaded files on amd64. - We load the kernel at 0x20. Memory below that address need not be executable, so do not map it as

svn commit: r353733 - head/sys/ufs/ffs

2019-10-18 Thread Mark Johnston
Author: markj Date: Fri Oct 18 17:01:27 2019 New Revision: 353733 URL: https://svnweb.freebsd.org/changeset/base/353733 Log: Abbreviate softdep lock names. The softdep lock names were unusually long and tended to stick out in lock profiling reports. Abbreviate them and make them consiste

svn commit: r353734 - head/sys/vm

2019-10-18 Thread Mark Johnston
Author: markj Date: Fri Oct 18 17:36:42 2019 New Revision: 353734 URL: https://svnweb.freebsd.org/changeset/base/353734 Log: Further constrain the use of per-CPU caches for free pages. In low memory conditions a significant number of pages may end up stuck in the caches, and currently the

svn commit: r353886 - head/sys/vm

2019-10-22 Thread Mark Johnston
Author: markj Date: Tue Oct 22 14:20:06 2019 New Revision: 353886 URL: https://svnweb.freebsd.org/changeset/base/353886 Log: Avoid reloading bucket pointers in uma_vm_zone_stats(). The correctness of per-CPU cache accounting in that function is dependent on reading per-CPU pointers exactl

Re: svn commit: r353876 - head/sys/kern

2019-10-22 Thread Mark Johnston
On Tue, Oct 22, 2019 at 08:29:13AM -0700, Gleb Smirnoff wrote: > Li-Wen, > > On Tue, Oct 22, 2019 at 04:28:45PM +0800, Li-Wen Hsu wrote: > L> > Modified: head/sys/kern/subr_epoch.c > L> > > == > L> > --- head/sys/kern/s

svn commit: r353893 - head/sys/riscv/riscv

2019-10-22 Thread Mark Johnston
Author: markj Date: Tue Oct 22 16:52:56 2019 New Revision: 353893 URL: https://svnweb.freebsd.org/changeset/base/353893 Log: Fix thread0 kernel stack initialization on riscv. - td_kstack_pages was not being initialized. - td_kstack is supposed to be the base address of the stack region,

svn commit: r353895 - head/sys/arm64/arm64

2019-10-22 Thread Mark Johnston
Author: markj Date: Tue Oct 22 17:22:10 2019 New Revision: 353895 URL: https://svnweb.freebsd.org/changeset/base/353895 Log: Apply r353893 to arm64. Reported by: Jenkins (hardware CI lab) MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/arm64/locore

svn commit: r353894 - head/sys/arm/arm

2019-10-22 Thread Mark Johnston
Author: markj Date: Tue Oct 22 17:21:23 2019 New Revision: 353894 URL: https://svnweb.freebsd.org/changeset/base/353894 Log: Initialize thread0.td_kstack_pages on arm. Fix style on the line below. Reported by: Jenkins (hardware CI lab) MFC after:1 week Sponsored by: The FreeBS

svn commit: r353935 - head/sys/dev/ksyms

2019-10-23 Thread Mark Johnston
Author: markj Date: Wed Oct 23 16:53:37 2019 New Revision: 353935 URL: https://svnweb.freebsd.org/changeset/base/353935 Log: Set OBJ_NOSPLIT on the ksyms(4) VM object. The object does not provide anonymous memory. Reported by: kib Reviewed by: kib MFC after:3 days Sponsored

svn commit: r353956 - head/sys/vm

2019-10-23 Thread Mark Johnston
Author: markj Date: Wed Oct 23 17:58:19 2019 New Revision: 353956 URL: https://svnweb.freebsd.org/changeset/base/353956 Log: Verify identity after checking for WAITFAIL in vm_page_busy_acquire(). A caller that does not guarantee that a page's identity won't change while sleeping for a bus

svn commit: r353957 - head/sys/vm

2019-10-23 Thread Mark Johnston
Author: markj Date: Wed Oct 23 18:00:22 2019 New Revision: 353957 URL: https://svnweb.freebsd.org/changeset/base/353957 Log: Check for bogus_page in vnode_pager_generic_getpages_done(). We now assert that a page is busy when updating its validity-tracking state, but bogus_page is not busi

svn commit: r353964 - head/sys/vm

2019-10-23 Thread Mark Johnston
Author: markj Date: Wed Oct 23 20:39:21 2019 New Revision: 353964 URL: https://svnweb.freebsd.org/changeset/base/353964 Log: Modify release_page() to handle a missing fault page. r353890 introduced a case where we may call release_page() with fs.m == NULL, since the fault handler may now

svn commit: r354096 - head/sys/conf

2019-10-25 Thread Mark Johnston
Author: markj Date: Fri Oct 25 20:15:04 2019 New Revision: 354096 URL: https://svnweb.freebsd.org/changeset/base/354096 Log: Apply kernel module linker scripts to firmware files. Use a separate make variable to specify the linker script so that it is only applied at link time and not duri

svn commit: r354201 - in head/sys: contrib/dev/iwm modules/iwmfw modules/iwmfw/iwm9000fw modules/iwmfw/iwm9260fw

2019-10-30 Thread Mark Johnston
Author: markj Date: Wed Oct 30 19:36:50 2019 New Revision: 354201 URL: https://svnweb.freebsd.org/changeset/base/354201 Log: Add firmware images for Intel 9000-series wifi chips. This is in preparation for adding the corresponding support to iwm(4). Version 46 is the latest but contain

svn commit: r354215 - head/sys/arm64/arm64

2019-10-31 Thread Mark Johnston
Author: markj Date: Thu Oct 31 14:22:54 2019 New Revision: 354215 URL: https://svnweb.freebsd.org/changeset/base/354215 Log: Fix a typo in r353895. Reported by: andrew MFC after:3 days Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/arm64/machdep.c Modified: head/

svn commit: r354276 - in head/sys: contrib/dev/iwm modules/iwmfw/iwm9000fw modules/iwmfw/iwm9260fw

2019-11-02 Thread Mark Johnston
Author: markj Date: Sun Nov 3 03:23:27 2019 New Revision: 354276 URL: https://svnweb.freebsd.org/changeset/base/354276 Log: Downgrade the firmware images imported in r354201. Version 43 requires further modifications to iwm(4), and this was not caught in some initial testing. Version 34

svn commit: r354368 - in head/usr.bin: brandelf head tail

2019-11-05 Thread Mark Johnston
Author: markj Date: Wed Nov 6 01:42:30 2019 New Revision: 354368 URL: https://svnweb.freebsd.org/changeset/base/354368 Log: fileargs_init() sets errno on failure. Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/brandelf/brandelf.c head/usr.bin/head/head.c head/usr.bin/ta

svn commit: r354400 - head/sys/vm

2019-11-06 Thread Mark Johnston
Author: markj Date: Wed Nov 6 16:59:16 2019 New Revision: 354400 URL: https://svnweb.freebsd.org/changeset/base/354400 Log: Fix a race in release_page(). Since r354156 we may call release_page() without the page's object lock held, specifically following the page copy during a CoW fault.

svn commit: r354402 - head/sys/dev/ksyms

2019-11-06 Thread Mark Johnston
Author: markj Date: Wed Nov 6 17:03:06 2019 New Revision: 354402 URL: https://svnweb.freebsd.org/changeset/base/354402 Log: Convert ksyms(4) to use an OBJT_PHYS object. The pages stored in the ksyms object are not pageable. Moreover, this obviates the need to set OBJ_NOSPLIT. Revie

svn commit: r354461 - head/sys/vm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 18:26:29 2019 New Revision: 354461 URL: https://svnweb.freebsd.org/changeset/base/354461 Log: Drop Giant before sleeping on a busy page. Before the page busy code was converted to make direct use of sleepqueues, this was handled by _sleep(). Reported by

svn commit: r354492 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:27:54 2019 New Revision: 354492 URL: https://svnweb.freebsd.org/changeset/base/354492 Log: iwm: Fix style in the TX path. Also ensure that the htole* macros are applied correctly when specifying the segment length and upper address bits. No functional ch

svn commit: r354493 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:29:00 2019 New Revision: 354493 URL: https://svnweb.freebsd.org/changeset/base/354493 Log: iwm: Remove a couple of unused fields from the softc. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_iwmvar.h Modified

svn commit: r354494 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:29:25 2019 New Revision: 354494 URL: https://svnweb.freebsd.org/changeset/base/354494 Log: iwm: Simplify fw_has_{api,capa}(). No functional change intended. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_i

svn commit: r354495 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:29:43 2019 New Revision: 354495 URL: https://svnweb.freebsd.org/changeset/base/354495 Log: iwm: Call iwm_dev_check() earlier in iwm_attach(). This ensures that the driver softc reflects device capabilities as early as possible, for use by device initializ

svn commit: r354496 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:29:57 2019 New Revision: 354496 URL: https://svnweb.freebsd.org/changeset/base/354496 Log: iwm: Avoid calling iwm_start() each time a descriptor is reclaimed. Only perform the call when a qfull bit transitions. While here, avoid assignments in declaratio

svn commit: r354499 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:34:28 2019 New Revision: 354499 URL: https://svnweb.freebsd.org/changeset/base/354499 Log: iwm: Add a few _prph functions needed for 9000-series chips. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_iwm_pcie_tr

svn commit: r354497 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:33:58 2019 New Revision: 354497 URL: https://svnweb.freebsd.org/changeset/base/354497 Log: iwm: Define a name for TLV 48. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_iwm.c head/sys/dev/iwm/if_iwmreg.h Mod

svn commit: r354498 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:34:12 2019 New Revision: 354498 URL: https://svnweb.freebsd.org/changeset/base/354498 Log: iwm: Sync the TLV API enum with iwlwifi. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_iwmreg.h Modified: head/sys/de

svn commit: r354501 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:35:01 2019 New Revision: 354501 URL: https://svnweb.freebsd.org/changeset/base/354501 Log: iwm: Add a device family definition for 9000 chips. Convert existing device family checks to avoid assuming that the device family is always one of IWM_DEVICE_FAMIL

svn commit: r354502 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:35:15 2019 New Revision: 354502 URL: https://svnweb.freebsd.org/changeset/base/354502 Log: iwm: Use the same delays as iwlwifi when resetting the device. This is required for initialization to succeed for newer device families. MFC after:2 weeks

svn commit: r354500 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:34:41 2019 New Revision: 354500 URL: https://svnweb.freebsd.org/changeset/base/354500 Log: iwm: Add 9000-series RX register definitions. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_iwmreg.h Modified: head/s

svn commit: r354504 - in head/sys: dev/iwm modules/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:35:54 2019 New Revision: 354504 URL: https://svnweb.freebsd.org/changeset/base/354504 Log: iwm: Add device configuration definitions for 9000-series chips. Match such chips using the device ID. We should really be checking the subdevice as well, since a

svn commit: r354503 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:35:29 2019 New Revision: 354503 URL: https://svnweb.freebsd.org/changeset/base/354503 Log: iwm: Sync the firmware tx_cmd descriptor fields with iwlwifi. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_iwm.c he

svn commit: r354505 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:36:10 2019 New Revision: 354505 URL: https://svnweb.freebsd.org/changeset/base/354505 Log: iwm: Define the mqrx_supported capability. The firmware for 9000-series and newer devices has a different receive API which supports multiple queues. MFC after

svn commit: r354509 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:37:17 2019 New Revision: 354509 URL: https://svnweb.freebsd.org/changeset/base/354509 Log: iwm: Fix scheduler configuration for aux and cmd queue configuration. - Configure the scheduler only for the management queue. - Fix a bug when enabling the schdule

svn commit: r354506 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:36:25 2019 New Revision: 354506 URL: https://svnweb.freebsd.org/changeset/base/354506 Log: iwm: Explicitly enable MSI on newer chipsets. 9000-series chips implement support for MSI-X interrupts and disable MSI by default. MFC after:2 weeks Spon

svn commit: r354507 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:36:46 2019 New Revision: 354507 URL: https://svnweb.freebsd.org/changeset/base/354507 Log: iwm: Enable all 31 tx queues. For now iwm only ever uses queue 0 and the management queue, but my 9560 raises a software error interrupt during initialization if th

svn commit: r354512 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:38:17 2019 New Revision: 354512 URL: https://svnweb.freebsd.org/changeset/base/354512 Log: iwm: Use antenna B for TX on 9000-series chips. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_iwm.c Modified: head/sy

svn commit: r354511 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:37:55 2019 New Revision: 354511 URL: https://svnweb.freebsd.org/changeset/base/354511 Log: iwm: Update the station add command for the new RX API. The firmware expects a new version of the add-station command in 9000-series chips. MFC after:2 wee

svn commit: r354508 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:37:02 2019 New Revision: 354508 URL: https://svnweb.freebsd.org/changeset/base/354508 Log: iwm: Implement the new receive path. This is the multiqueue receive code required for 9000-series chips. Note that we still only configure a single RX queue for now

svn commit: r354510 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:37:30 2019 New Revision: 354510 URL: https://svnweb.freebsd.org/changeset/base/354510 Log: iwm: Sync with iwm_run_init_mvm_ucode() with iwlwifi. Do not configure bluetooth on newer chips, it causes firmware panics. MFC after:2 weeks Sponsored by:

svn commit: r354515 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:39:04 2019 New Revision: 354515 URL: https://svnweb.freebsd.org/changeset/base/354515 Log: iwm: Implement support for scans with "adaptive" dwell time. This is required by 9000-series firmware. MFC after:2 weeks Sponsored by: The FreeBSD Foundati

svn commit: r354514 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:38:49 2019 New Revision: 354514 URL: https://svnweb.freebsd.org/changeset/base/354514 Log: iwm: Use the default station for all transmits. This is what iwlwifi seems to do, and the previous behaviour triggered firmware panics during transmit on a 9560.

svn commit: r354513 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:38:36 2019 New Revision: 354513 URL: https://svnweb.freebsd.org/changeset/base/354513 Log: iwm: Set flag for pad bytes in offload_assist. Though we don't otherwise use firmware's offload capabilities, we need to set this flag when the MAC header's size is

svn commit: r354517 - head/share/man/man4

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:39:33 2019 New Revision: 354517 URL: https://svnweb.freebsd.org/changeset/base/354517 Log: Update iwm and iwmfw man pages with info about 9000-series chips. Thanks to bapt, bz, cem, woodsb02, Neel Chauhan and Salvador Martínez Mármol for helping test the

svn commit: r354516 - head/sys/dev/iwm

2019-11-07 Thread Mark Johnston
Author: markj Date: Thu Nov 7 23:39:17 2019 New Revision: 354516 URL: https://svnweb.freebsd.org/changeset/base/354516 Log: iwm: Sync device initialization and reset code with iwlwifi. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_iwm.c hea

svn commit: r354521 - head

2019-11-07 Thread Mark Johnston
Author: markj Date: Fri Nov 8 00:01:37 2019 New Revision: 354521 URL: https://svnweb.freebsd.org/changeset/base/354521 Log: Document iwm(4) support for 9000-series devices. Sponsored by: The FreeBSD Foundation Modified: head/RELNOTES Modified: head/RELNOTES

Re: svn commit: r350089 - head

2019-11-08 Thread Mark Johnston
On Fri, Nov 08, 2019 at 03:15:41PM +, Glen Barber wrote: > On Wed, Jul 17, 2019 at 07:09:06PM +0000, Mark Johnston wrote: > > Author: markj > > Date: Wed Jul 17 19:09:05 2019 > > New Revision: 350089 > > URL: https://svnweb.freebsd.org/changeset/base/350089 > &g

svn commit: r354562 - head/sys/conf

2019-11-08 Thread Mark Johnston
Author: markj Date: Fri Nov 8 20:47:59 2019 New Revision: 354562 URL: https://svnweb.freebsd.org/changeset/base/354562 Log: Add new iwm(4) files to sys/conf/files. Submitted by: rea MFC with: r354504 Modified: head/sys/conf/files Modified: head/sys/conf/files

svn commit: r354629 - head/sys/kern

2019-11-11 Thread Mark Johnston
Author: markj Date: Mon Nov 11 20:44:30 2019 New Revision: 354629 URL: https://svnweb.freebsd.org/changeset/base/354629 Log: Fix handling of PIPE_EOF in the direct write path. Suppose a writing thread has pinned its pages and gone to sleep with pipe_map.cnt > 0. Suppose that the thread i

svn commit: r354815 - head/sys/arm64/arm64

2019-11-18 Thread Mark Johnston
Author: markj Date: Mon Nov 18 15:36:46 2019 New Revision: 354815 URL: https://svnweb.freebsd.org/changeset/base/354815 Log: Let arm64 pmap_qenter() and pmap_kenter() unconditionally set NX. As on amd64, there is no need for mappings created by these functions to be executable. Revie

svn commit: r354816 - head/sys/arm64/arm64

2019-11-18 Thread Mark Johnston
Author: markj Date: Mon Nov 18 15:37:01 2019 New Revision: 354816 URL: https://svnweb.freebsd.org/changeset/base/354816 Log: Implement vm.pmap.kernel_maps for arm64. Reviewed by: alc MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D22142 Modified: hea

svn commit: r354820 - in head/sys: sys vm

2019-11-18 Thread Mark Johnston
Author: markj Date: Mon Nov 18 18:22:41 2019 New Revision: 354820 URL: https://svnweb.freebsd.org/changeset/base/354820 Log: Widen the vm_page aflags field to 16 bits. We are now out of aflags bits, whereas the "flags" field only makes use of five of its sixteen bits, so narrow "flags" to

svn commit: r354821 - head/sys/vm

2019-11-18 Thread Mark Johnston
Author: markj Date: Mon Nov 18 18:25:51 2019 New Revision: 354821 URL: https://svnweb.freebsd.org/changeset/base/354821 Log: Group per-domain reservation data in the same structure. We currently have the per-domain partially populated reservation queues and the per-domain queue locks. De

svn commit: r354822 - head/cddl/contrib/opensolaris/cmd/dtrace

2019-11-18 Thread Mark Johnston
Author: markj Date: Mon Nov 18 18:34:23 2019 New Revision: 354822 URL: https://svnweb.freebsd.org/changeset/base/354822 Log: Fix inconsistencies in anonymous DOF files. The DOF file output by dtrace -A contains only the loadable sections. However, as it was created by a call to dtrace_dof

svn commit: r354824 - head/lib/geom/part

2019-11-18 Thread Mark Johnston
Author: markj Date: Mon Nov 18 19:05:52 2019 New Revision: 354824 URL: https://svnweb.freebsd.org/changeset/base/354824 Log: Fix grammar in gpart.8. PR: 241973 MFC after:3 days Modified: head/lib/geom/part/gpart.8 Modified: head/lib/geom/part/gpart.8

Re: svn commit: r354824 - head/lib/geom/part

2019-11-18 Thread Mark Johnston
On Mon, Nov 18, 2019 at 12:43:48PM -0700, Alan Somers wrote: > On Mon, Nov 18, 2019 at 12:06 PM Mark Johnston wrote: > > > Author: markj > > Date: Mon Nov 18 19:05:52 2019 > > New Revision: 354824 > > URL: https://svnweb.freebsd.org/changeset/base/354824 > > &

svn commit: r354826 - in head/sys: amd64/conf arm/conf arm64/conf i386/conf powerpc/conf sparc64/conf

2019-11-18 Thread Mark Johnston
Author: markj Date: Mon Nov 18 20:03:28 2019 New Revision: 354826 URL: https://svnweb.freebsd.org/changeset/base/354826 Log: Set MALLOC_DEBUG_MAXZONES=1 in GENERIC-NODEBUG configurations. The purpose of this option is to make it easier to track down memory corruption bugs by reducing the

Re: svn commit: r354824 - head/lib/geom/part

2019-11-18 Thread Mark Johnston
On Mon, Nov 18, 2019 at 08:35:30PM +, Alexey Dokuchaev wrote: > On Mon, Nov 18, 2019 at 01:09:19PM -0700, Alan Somers wrote: > > On Mon, Nov 18, 2019 at 12:48 PM Mark Johnston wrote: > > > On Mon, Nov 18, 2019 at 12:43:48PM -0700, Alan Somers wrote: > > > > On

svn commit: r354829 - head/usr.bin/top

2019-11-18 Thread Mark Johnston
Author: markj Date: Mon Nov 18 20:55:01 2019 New Revision: 354829 URL: https://svnweb.freebsd.org/changeset/base/354829 Log: Add a "B" suffix to memory quantities in top(1) output. Otherwise small quantities look nonsensical. For instance, when swapping in a single page we would print "4

svn commit: r354926 - head/usr.sbin/rtsold

2019-11-20 Thread Mark Johnston
Author: markj Date: Thu Nov 21 00:17:14 2019 New Revision: 354926 URL: https://svnweb.freebsd.org/changeset/base/354926 Log: Avoid relying on pollution from libcasper.h. Reported by: sjg Sponsored by: The FreeBSD Foundation Modified: head/usr.sbin/rtsold/cap_llflags.c Modified: head/

svn commit: r355000 - head/lib/libc/sys

2019-11-22 Thread Mark Johnston
Author: markj Date: Fri Nov 22 16:25:00 2019 New Revision: 355000 URL: https://svnweb.freebsd.org/changeset/base/355000 Log: Fix typos in the cpuset_{get,set}domain() man page. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/lib/libc/sys/cpuset_getdomain.2 Mod

svn commit: r355001 - head/sys/vm

2019-11-22 Thread Mark Johnston
Author: markj Date: Fri Nov 22 16:28:52 2019 New Revision: 355001 URL: https://svnweb.freebsd.org/changeset/base/355001 Log: Fix locking in vm_reserv_reclaim_contig(). We were not properly handling the case where the trylock of the reservaton fails, in which case we could leak reservation

svn commit: r355002 - in head: share/man/man9 sys/vm

2019-11-22 Thread Mark Johnston
Author: markj Date: Fri Nov 22 16:30:47 2019 New Revision: 355002 URL: https://svnweb.freebsd.org/changeset/base/355002 Log: Revise the page cache size policy. In r353734 the use of the page caches was limited to systems with a relatively large amount of RAM per CPU. This was to mitigate

svn commit: r355004 - head/sys/vm

2019-11-22 Thread Mark Johnston
Author: markj Date: Fri Nov 22 16:31:30 2019 New Revision: 355004 URL: https://svnweb.freebsd.org/changeset/base/355004 Log: Reclaim memory from UMA if the page daemon is struggling. Use the UMA reclaim thread to asynchronously drain all caches if there is a severe shortage in a domain.

svn commit: r355003 - head/sys/vm

2019-11-22 Thread Mark Johnston
Author: markj Date: Fri Nov 22 16:31:10 2019 New Revision: 355003 URL: https://svnweb.freebsd.org/changeset/base/355003 Log: Update the checks in vm_page_zone_import(). - Remove the cnt == 1 check. UMA passes cnt == 1 when it has disabled per-CPU caching. In this case we might as well

svn commit: r355005 - head/sys/vm

2019-11-22 Thread Mark Johnston
Author: markj Date: Fri Nov 22 16:31:43 2019 New Revision: 355005 URL: https://svnweb.freebsd.org/changeset/base/355005 Log: Simplify vm_pageout_init_domain() and add a "big picture" comment. Stop subtracting 1024/200 from vmd_page_count/200. I cannot see how such precise accounting can

svn commit: r355143 - head/sys/dev/iwm

2019-11-27 Thread Mark Johnston
Author: markj Date: Wed Nov 27 20:32:31 2019 New Revision: 355143 URL: https://svnweb.freebsd.org/changeset/base/355143 Log: iwm(4): Fix version string formatting. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_iwm.c Modified: head/sys/dev/iwm

svn commit: r355144 - head/sys/dev/iwm

2019-11-27 Thread Mark Johnston
Author: markj Date: Wed Nov 27 20:32:53 2019 New Revision: 355144 URL: https://svnweb.freebsd.org/changeset/base/355144 Log: iwm(4): Remove _mvm from the namespace. This was inherited from iwlwifi, which drives devices supported by both iwn(4) and iwm(4) in FreeBSD. In iwm(4) _mvm is mea

svn commit: r351219 - head/sys/netinet/netdump

2019-08-19 Thread Mark Johnston
Author: markj Date: Mon Aug 19 16:29:51 2019 New Revision: 351219 URL: https://svnweb.freebsd.org/changeset/base/351219 Log: Fix netdump buffering after r348473. nd_buf is used to buffer headers (for both the kernel dump itself and for EKCD) before the final call to netdump_dumper(), whic

svn commit: r351262 - head/sys/dev/sound/midi

2019-08-20 Thread Mark Johnston
Author: markj Date: Tue Aug 20 17:52:12 2019 New Revision: 351262 URL: https://svnweb.freebsd.org/changeset/base/351262 Log: Use a sleepable lock for midistat functions. Otherwise the mutex needs to be dropped when copying out the midistat sbuf, leading to a race which allows one to read

svn commit: r351331 - head/sys/vm

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 15:52:10 2019 New Revision: 351331 URL: https://svnweb.freebsd.org/changeset/base/351331 Log: Don't requeue active pages in vm_swapout_object_deactivate_pages(). As of r332974 the page daemon does not requeue pages during a scan of the active queue, so there

svn commit: r351332 - head/sys/vm

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 16:01:17 2019 New Revision: 351332 URL: https://svnweb.freebsd.org/changeset/base/351332 Log: Unconditionally enable debug.vm_lowmem. It is useful for testing purposes to be able to drain UMA caches, so do not limit the sysctl to DIAGNOSTIC kernels. MFC

svn commit: r351333 - head/sys/vm

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 16:11:12 2019 New Revision: 351333 URL: https://svnweb.freebsd.org/changeset/base/351333 Log: Simplify vm_page_dequeue() and fix an assertion. - Add a vm_pagequeue_remove() function to physically remove a page from its queue and update the queue length.

svn commit: r351348 - head/sys/kern

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 19:35:04 2019 New Revision: 351348 URL: https://svnweb.freebsd.org/changeset/base/351348 Log: Modify pipe_poll() to properly check for pending direct writes. With r349546, it is a responsibility of the writer to clear PIPE_DIRECTW after pinned data has been

svn commit: r351351 - head/sys/kern

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 20:01:52 2019 New Revision: 351351 URL: https://svnweb.freebsd.org/changeset/base/351351 Log: Remove manual wire_count adjustments from the unmapped mbuf code. The original code came from a desire to minimize the number of updates to v_wire_count, which prio

svn commit: r351359 - head/cddl/contrib/opensolaris/cmd/lockstat

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 23:13:00 2019 New Revision: 351359 URL: https://svnweb.freebsd.org/changeset/base/351359 Log: Fix inverted predicates for sx lock hold events in lockstat(1). This caused shared sx holds to be reported as exclusive, and vice versa. Reviewed by: mjg MF

svn commit: r351361 - in head: cddl/contrib/opensolaris/cmd/lockstat share/man/man4 sys/kern sys/sys

2019-08-21 Thread Mark Johnston
ointer to the lock structure that describes the lock. The second argument is the length of time, in nanoseconds, @@ -240,28 +221,40 @@ if the thread is attempting to acquire the lock as a w if the thread is attempting to acquire the lock a

svn commit: r351363 - head/cddl/contrib/opensolaris/cmd/lockstat

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 23:47:01 2019 New Revision: 351363 URL: https://svnweb.freebsd.org/changeset/base/351363 Log: Add hold events for lockmgr probes, missed in r351361. MFC with: r351361 Modified: head/cddl/contrib/opensolaris/cmd/lockstat/lockstat.c Modified: head/cddl/c

svn commit: r351373 - head

2019-08-21 Thread Mark Johnston
Author: markj Date: Thu Aug 22 01:18:36 2019 New Revision: 351373 URL: https://svnweb.freebsd.org/changeset/base/351373 Log: Document r351361. Modified: head/RELNOTES Modified: head/RELNOTES == --- head/RELNOTES

<    1   2   3   4   5   6   7   8   9   10   >