svn commit: r365652 - in head/sys: sys x86/x86

2020-09-12 Thread Jason A. Harmening
Author: jah Date: Sat Sep 12 07:04:00 2020 New Revision: 365652 URL: https://svnweb.freebsd.org/changeset/base/365652 Log: amd64: prevent KCSan false positives on LAPIC mapping For configurations without x2APIC support (guests, older hardware), the global LAPIC MMIO mapping will trigger

svn commit: r364239 - head/sys/kern

2020-08-14 Thread Jason A. Harmening
Author: jah Date: Fri Aug 14 21:37:38 2020 New Revision: 364239 URL: https://svnweb.freebsd.org/changeset/base/364239 Log: kenv: avoid sleepable alloc for integer tunables Avoid performing a potentially-blocking malloc for kenv lookups that will only perform non-destructive integer

svn commit: r363784 - head/sys/dev/vt

2020-08-02 Thread Jason A. Harmening
Author: jah Date: Sun Aug 2 20:18:37 2020 New Revision: 363784 URL: https://svnweb.freebsd.org/changeset/base/363784 Log: vt(4): CONS_HISTORY/CONS_CLRHIST should operate on issuing terminal Currently the CONS_HISTORY and CONS_CLRHIST ioctls modify the state of the active terminal

svn commit: r361741 - head/sys/x86/x86

2020-06-02 Thread Jason A. Harmening
Author: jah Date: Wed Jun 3 00:16:36 2020 New Revision: 361741 URL: https://svnweb.freebsd.org/changeset/base/361741 Log: Remove unnecessary WITNESS check in x86 bus_dma When I did some bus_dma cleanup in r320528, I brought forward some sketchy WITNESS checks from the prior x86 busdma

svn commit: r361719 - in head/sys: dev/vt kern

2020-06-01 Thread Jason A. Harmening
Author: jah Date: Tue Jun 2 01:21:48 2020 New Revision: 361719 URL: https://svnweb.freebsd.org/changeset/base/361719 Log: vt(4): reset scrollback and cursor position after clearing history buffer r361601 implemented basic support for cleaing the console history buffer. But after

svn commit: r361601 - head/sys/dev/vt

2020-05-28 Thread Jason A. Harmening
Author: jah Date: Thu May 28 21:22:30 2020 New Revision: 361601 URL: https://svnweb.freebsd.org/changeset/base/361601 Log: vt(4): Add support for `vidcontrol -C' Extract scrollback buffer initialization into a common routine, used both during vt(4) init and in handling the CONS_CLRHIST

svn commit: r359815 - head/usr.sbin/config

2020-04-11 Thread Jason A. Harmening
Author: jah Date: Sun Apr 12 02:42:42 2020 New Revision: 359815 URL: https://svnweb.freebsd.org/changeset/base/359815 Log: config(8): use sbuf to manage line buffers PR: 245476 Reported by: kevans Reviewed by: imp, kevans MFC after:1 week Differential Revision:

svn commit: r359628 - head/sys/security/mac

2020-04-03 Thread Jason A. Harmening
Author: jah Date: Sat Apr 4 04:03:10 2020 New Revision: 359628 URL: https://svnweb.freebsd.org/changeset/base/359628 Log: mac_policy: Remove mac_policy_sx This lock was made unnecessary by the addition of mac_policy_rms in r356120. Reviewed by: mjg, kib Differential Revision:

svn commit: r359501 - head/sys/kern

2020-03-31 Thread Jason A. Harmening
Author: jah Date: Wed Apr 1 04:51:39 2020 New Revision: 359501 URL: https://svnweb.freebsd.org/changeset/base/359501 Log: deadlkres: include thread name in panic messages Reviewed by: markj MFC after:1 week Differential Revision:https://reviews.freebsd.org/D24235

svn commit: r357110 - in head/sys: kern sys

2020-01-25 Thread Jason A. Harmening
Author: jah Date: Sat Jan 25 08:57:26 2020 New Revision: 357110 URL: https://svnweb.freebsd.org/changeset/base/357110 Log: Implement cycle-detecting garbage collector for AF_UNIX sockets The existing AF_UNIX socket garbage collector destroys any socket which may potentially be in a

svn commit: r352434 - in head/sys/mips: include mips

2019-09-16 Thread Jason A. Harmening
Author: jah Date: Tue Sep 17 03:39:31 2019 New Revision: 352434 URL: https://svnweb.freebsd.org/changeset/base/352434 Log: mips: move support for temporary mappings above KSEG0 to per-CPU data This is derived from similar work done in r310481 for i386 and r312610 for armv6/armv7.

svn commit: r345741 - head/sys/compat/freebsd32

2019-09-03 Thread Jason A. Harmening
Author: jah Date: Sat Mar 30 23:43:58 2019 New Revision: 345741 URL: https://svnweb.freebsd.org/changeset/base/345741 Log: freebsd32: fix padding of computed control message length for recvmsg() Each control message region must be aligned on a 4-byte boundary on 32-bit architectures. The

svn commit: r345741 - head/sys/compat/freebsd32

2019-03-30 Thread Jason A. Harmening
Author: jah Date: Sat Mar 30 23:43:58 2019 New Revision: 345741 URL: https://svnweb.freebsd.org/changeset/base/345741 Log: freebsd32: fix padding of computed control message length for recvmsg() Each control message region must be aligned on a 4-byte boundary on 32-bit architectures. The

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

2019-02-25 Thread Jason A. Harmening
Author: jah Date: Tue Feb 26 04:56:10 2019 New Revision: 344562 URL: https://svnweb.freebsd.org/changeset/base/344562 Log: FFS: allow sendfile(2) to work with block sizes greater than the page size Implement ffs_getpages_async(), which when possible calls the asynchronous flavor of the

svn commit: r344561 - head/sys/vm

2019-02-25 Thread Jason A. Harmening
Author: jah Date: Tue Feb 26 04:50:46 2019 New Revision: 344561 URL: https://svnweb.freebsd.org/changeset/base/344561 Log: Fix incorrect assertion in vnode_pager_generic_getpages() Reviewed by: kib, glebius MFC after:1 week Modified: head/sys/vm/vnode_pager.c Modified:

svn commit: r343827 - head/lib/libcasper/services/cap_syslog

2019-02-05 Thread Jason A. Harmening
Author: jah Date: Wed Feb 6 04:36:28 2019 New Revision: 343827 URL: https://svnweb.freebsd.org/changeset/base/343827 Log: r341692 changed cap_syslog(3) to preserve the stdio descriptors inherited from its parent so that LOG_PERROR would work. However, this caused dhclient(8)'s stdio

svn commit: r343005 - head/sys/kern

2019-01-13 Thread Jason A. Harmening
Author: jah Date: Sun Jan 13 20:33:54 2019 New Revision: 343005 URL: https://svnweb.freebsd.org/changeset/base/343005 Log: Handle SIGIO for listening sockets r319722 separated struct socket and parts of the socket I/O path into listening-socket-specific and dataflow-socket-specific

svn commit: r331836 - head/sys/conf

2018-03-30 Thread Jason A. Harmening
Author: jah Date: Sat Mar 31 05:17:12 2018 New Revision: 331836 URL: https://svnweb.freebsd.org/changeset/base/331836 Log: Remove MK_AUTO_OBJ from env passed to PORTS_MODULES This fixes a failure to resolve object file paths seen when buildkernel (which sets MK_AUTO_OBJ=yes) and

svn commit: r328489 - head/sys/conf

2018-01-27 Thread Jason A. Harmening
Author: jah Date: Sat Jan 27 20:13:36 2018 New Revision: 328489 URL: https://svnweb.freebsd.org/changeset/base/328489 Log: Remove system makefile path directives from env passed to PORTS_MODULES step Previously, MAKESYSPATH as well as '-m' directives in MAKEFLAGS would cause any port

svn commit: r321835 - head/usr.bin/calendar/calendars

2017-07-31 Thread Jason A. Harmening
+290,7 @@ 08/19 Chin-San Huang <chin...@freebsd.org> born in Yi-Lan, Taiwan, Republic of China, 1979 08/19 Pav Lucistnik <p...@freebsd.org> born in Kutna Hora, Czech Republic, 1980 08/20 Michael Heffner <mi...@freebsd.org> born in Cleona, Pennsylvania, United States,

svn commit: r320545 - head/sys/sys

2017-07-01 Thread Jason A. Harmening
Author: jah Date: Sat Jul 1 15:58:57 2017 New Revision: 320545 URL: https://svnweb.freebsd.org/changeset/base/320545 Log: Bump __FreeBSD_version due to r320528, cleanup and inlining of bus_dmamap* functions. Reported by: David Wolfskill Modified:

svn commit: r320528 - in head/sys: amd64/include arm/arm arm/include arm64/arm64 arm64/include dev/aac dev/aacraid dev/bnxt dev/cxgb dev/cxgb/ulp/iw_cxgb dev/hyperv/storvsc dev/mfi dev/tsec dev/xdm...

2017-07-01 Thread Jason A. Harmening
Author: jah Date: Sat Jul 1 05:35:29 2017 New Revision: 320528 URL: https://svnweb.freebsd.org/changeset/base/320528 Log: Clean up MD pollution of bus_dma.h: --Remove special-case handling of sparc64 bus_dmamap* functions. Replace with a more generic mechanism that allows MD busdma

svn commit: r313930 - in head/sys: amd64/include kern mips/include mips/mips net powerpc/include sparc64/include

2017-02-18 Thread Jason A. Harmening
Author: jah Date: Sun Feb 19 02:03:09 2017 New Revision: 313930 URL: https://svnweb.freebsd.org/changeset/base/313930 Log: Bring back r313037, with fixes for mips: Implement get_pcpu() for amd64/sparc64/mips/powerpc, and use it to replace pcpu_find(curcpu) in MI code. Reviewed by:

svn commit: r313193 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-02-03 Thread Jason A. Harmening
Author: jah Date: Sat Feb 4 06:24:49 2017 New Revision: 313193 URL: https://svnweb.freebsd.org/changeset/base/313193 Log: Revert r313037 The switch to get_pcpu() in MI code seems to cause hangs on MIPS. Back out until we can get a better idea of what's happening there. Reported by:

svn commit: r313037 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-01-31 Thread Jason A. Harmening
Author: jah Date: Wed Feb 1 03:32:49 2017 New Revision: 313037 URL: https://svnweb.freebsd.org/changeset/base/313037 Log: Implement get_pcpu() for the remaining architectures and use it to replace pcpu_find(curcpu) in MI code. Modified: head/sys/amd64/include/pcpu.h

svn commit: r312952 - in head/sys/i386: i386 include

2017-01-29 Thread Jason A. Harmening
Author: jah Date: Sun Jan 29 16:54:55 2017 New Revision: 312952 URL: https://svnweb.freebsd.org/changeset/base/312952 Log: Implement get_pcpu() for i386 and use it to replace pcpu_find(curcpu) in the i386 pmap. The curcpu macro loads the per-cpu data pointer as its first step, so the

svn commit: r312792 - in head/sys/arm: arm include

2017-01-25 Thread Jason A. Harmening
Author: jah Date: Thu Jan 26 05:23:33 2017 New Revision: 312792 URL: https://svnweb.freebsd.org/changeset/base/312792 Log: Further cleanup of per-CPU armv6 pmap data: - Replace pcpu_find(curcpu) with get_pcpu(), which is much more direct. - Remove armv4 pcpu fields which I added

svn commit: r312610 - in head/sys/arm: arm include

2017-01-21 Thread Jason A. Harmening
Author: jah Date: Sun Jan 22 00:46:04 2017 New Revision: 312610 URL: https://svnweb.freebsd.org/changeset/base/312610 Log: Like r310481 for i386, move the objects used to create temporary mappings for armv6 pmap zero and copy operations to the MD PCPU region. Change sysmap initialization to

svn commit: r312191 - head/sys/i386/i386

2017-01-14 Thread Jason A. Harmening
Author: jah Date: Sat Jan 14 19:35:36 2017 New Revision: 312191 URL: https://svnweb.freebsd.org/changeset/base/312191 Log: Add comment explaining relative order of sched_unpin() and mtx_unlock(). Suggested by: alc MFC after:1 week Modified: head/sys/i386/i386/pmap.c Modified:

svn commit: r312153 - head/sys/i386/i386

2017-01-14 Thread Jason A. Harmening
Author: jah Date: Sat Jan 14 09:56:01 2017 New Revision: 312153 URL: https://svnweb.freebsd.org/changeset/base/312153 Log: For i386 temporary mappings, unpin the thread before releasing the cmap lock. Releasing the lock first may result in the thread being immediately rescheduled and bound

svn commit: r310481 - in head/sys/i386: i386 include

2016-12-23 Thread Jason A. Harmening
Author: jah Date: Fri Dec 23 15:14:56 2016 New Revision: 310481 URL: https://svnweb.freebsd.org/changeset/base/310481 Log: Move the objects used to create temporary mappings for i386 pmap zero and copy operations to the MD PCPU region. Change sysmap initialization to only allocate KVA

svn commit: r300258 - head/sys/dev/iicbus

2016-05-19 Thread Jason A. Harmening
Author: jah Date: Fri May 20 03:03:04 2016 New Revision: 300258 URL: https://svnweb.freebsd.org/changeset/base/300258 Log: iic_rdwr_data->nmsgs is uint32_t, so limit the allowable number of messages to prevent memory exhaustion and short allocations on 32-bit systems. Since iicrdwr is

svn commit: r290120 - in head/sys/arm: arm include

2015-10-28 Thread Jason A. Harmening
Author: jah Date: Wed Oct 28 21:17:38 2015 New Revision: 290120 URL: https://svnweb.freebsd.org/changeset/base/290120 Log: Retire pmap_dmap_iscurrent(). It is only a wrapper around pmap_is_current(), and is no longer called. Modified: head/sys/arm/arm/pmap-v6-new.c

svn commit: r289826 - head/sys/vm

2015-10-23 Thread Jason A. Harmening
Author: jah Date: Fri Oct 23 12:06:06 2015 New Revision: 289826 URL: https://svnweb.freebsd.org/changeset/base/289826 Log: Fix capitalization Modified: head/sys/vm/vm_page.h Modified: head/sys/vm/vm_page.h == ---

svn commit: r289825 - in head/sys: arm/arm arm64/arm64 vm x86/x86

2015-10-23 Thread Jason A. Harmening
Author: jah Date: Fri Oct 23 12:03:25 2015 New Revision: 289825 URL: https://svnweb.freebsd.org/changeset/base/289825 Log: Remove unclear comment about address truncation in busdma. Add (hopefully much clearer) comment at declaration of PHYS_TO_VM_PAGE(). Noted by: avg Modified:

svn commit: r289759 - in head/sys/arm: arm include

2015-10-22 Thread Jason A. Harmening
Author: jah Date: Thu Oct 22 16:38:01 2015 New Revision: 289759 URL: https://svnweb.freebsd.org/changeset/base/289759 Log: Use pmap_quick* functions in armv6 busdma, for bounce buffers and cache maintenance. This makes it safe to sync buffers that have no VA mapping associated with the

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

2015-10-21 Thread Jason A. Harmening
Author: jah Date: Wed Oct 21 19:44:20 2015 New Revision: 289717 URL: https://svnweb.freebsd.org/changeset/base/289717 Log: Use pmap_quick* functions in arm64 busdma to make bounce buffer synchronization more flexible and avoid borrowing UVAs for userspace buffers. This is mostly equivalent

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

2015-10-20 Thread Jason A. Harmening
Author: jah Date: Wed Oct 21 04:53:34 2015 New Revision: 289675 URL: https://svnweb.freebsd.org/changeset/base/289675 Log: Use pmap_quick* for out-of-context bounce buffers and (limited) cache maintenance of unmapped buffers in armv5 busdma. Tested by:Mattia Rossi

svn commit: r289457 - head/sys/x86/x86

2015-10-17 Thread Jason A. Harmening
Author: jah Date: Sat Oct 17 14:58:55 2015 New Revision: 289457 URL: https://svnweb.freebsd.org/changeset/base/289457 Log: Don't page-align the physical address when calling PHYS_TO_VM_PAGE(). Mbusdma_bounce.c Modified: head/sys/x86/x86/busdma_bounce.c Modified:

svn commit: r289202 - head/sys/x86/x86

2015-10-12 Thread Jason A. Harmening
Author: jah Date: Tue Oct 13 02:17:56 2015 New Revision: 289202 URL: https://svnweb.freebsd.org/changeset/base/289202 Log: Ensure the client regions for unmapped bounce buffers created through bus_dmamap_load_phys() do not span multiple pages. This is already done for mapped buffers. While

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

2015-08-17 Thread Jason A. Harmening
Author: jah Date: Mon Aug 17 18:28:40 2015 New Revision: 286851 URL: https://svnweb.freebsd.org/changeset/base/286851 Log: Some cleanups to make the style of pmap_quick_enter_page() and pmap_quick_remove_page() in arm/pmap-v6-new.c more consistent with the rest of the file. Submitted by:

svn commit: r286787 - head/sys/x86/x86

2015-08-14 Thread Jason A. Harmening
Author: jah Date: Fri Aug 14 20:08:16 2015 New Revision: 286787 URL: https://svnweb.freebsd.org/changeset/base/286787 Log: Use pmap_quick_enter_page() to handle bouncing of unmapped buffers in the x86 busdma_bounce implementation. Also treat user buffers as unmapped. This allows two things:

svn commit: r286785 - head/sys/x86/x86

2015-08-14 Thread Jason A. Harmening
Author: jah Date: Fri Aug 14 18:01:40 2015 New Revision: 286785 URL: https://svnweb.freebsd.org/changeset/base/286785 Log: Reformat x86 bounce buffer synchronization code to reduce indentation. No functional change. Approved by: kib (mentor) Modified: head/sys/x86/x86/busdma_bounce.c

svn commit: r286411 - head/share/man/man9

2015-08-07 Thread Jason A. Harmening
/pmap_quick_enter_page.9 Fri Aug 7 12:13:15 2015 (r286411) @@ -0,0 +1,103 @@ +.\ +.\ Copyright (c) 2015 Jason A. Harmening j...@freebsd.org +.\ All rights reserved. +.\ +.\ Redistribution and use in source and binary forms, with or without +.\ modification, are permitted provided

svn commit: r286313 - head/sys/vm

2015-08-05 Thread Jason A. Harmening
Author: jah Date: Wed Aug 5 10:48:32 2015 New Revision: 286313 URL: https://svnweb.freebsd.org/changeset/base/286313 Log: Properly sort the function declarations added in r286296 Submitted by: alc Approved by: kib (mentor) Modified: head/sys/vm/pmap.h Modified: head/sys/vm/pmap.h

svn commit: r286296 - in head/sys: amd64/amd64 arm/arm arm/include arm64/arm64 i386/i386 i386/include mips/mips powerpc/aim powerpc/booke powerpc/include powerpc/powerpc sparc64/include sparc64/spa...

2015-08-04 Thread Jason A. Harmening
Author: jah Date: Tue Aug 4 19:46:13 2015 New Revision: 286296 URL: https://svnweb.freebsd.org/changeset/base/286296 Log: Add two new pmap functions: vm_offset_t pmap_quick_enter_page(vm_page_t m) void pmap_quick_remove_page(vm_offset_t kva) These will create and destroy a temporary,

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

2015-05-15 Thread Jason A. Harmening
Author: jah Date: Fri May 15 12:28:17 2015 New Revision: 282966 URL: https://svnweb.freebsd.org/changeset/base/282966 Log: Update iic(4) man page to reflect recent changes Differential Revision:https://reviews.freebsd.org/D2461 Reviewed by: wblock Approved by: kib (mentor)

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

2015-05-15 Thread Jason A. Harmening
Author: jah Date: Fri May 15 13:04:14 2015 New Revision: 282969 URL: https://svnweb.freebsd.org/changeset/base/282969 Log: Bump date for iic.4 Modified: head/share/man/man4/iic.4 Modified: head/share/man/man4/iic.4

svn commit: r281828 - head/sys/dev/iicbus

2015-04-21 Thread Jason A. Harmening
Author: jah Date: Tue Apr 21 11:50:31 2015 New Revision: 281828 URL: https://svnweb.freebsd.org/changeset/base/281828 Log: Fix numerous issues in iic(4) and iicbus(4): --Allow multiple open iic fds by storing addressing state in cdevpriv --Fix, as much as possible, the baked-in race

svn commit: r279919 - head/sys/dev/drm2

2015-03-12 Thread Jason A. Harmening
Author: jah Date: Thu Mar 12 14:18:36 2015 New Revision: 279919 URL: https://svnweb.freebsd.org/changeset/base/279919 Log: Using parent DMA tag in drm_pci_alloc(). This can allow drm2 devices to work with Intel DMAR enabled for the system, as long as DMAR is disabled for the drm2 device.

svn commit: r279884 - head/share/misc

2015-03-11 Thread Jason A. Harmening
\ iedowse [label=Ian Dowse\niedo...@freebsd.org\n2000/12/01] imp [label=Warner Losh\n...@freebsd.org\n1996/09/20] ivoras [label=Ivan Voras\nivo...@freebsd.org\n2008/06/10] +jah [label=Jason A. Harmening\n...@freebsd.org\n2015/03/08] jamie [label=Jamie Gritton\nja...@freebsd.org\n2009/01/28