svn commit: r349876 - head/contrib/llvm/tools/clang/include/clang/AST
Author: dim Date: Wed Jul 10 05:57:37 2019 New Revision: 349876 URL: https://svnweb.freebsd.org/changeset/base/349876 Log: Apply a workaround to be able to build clang 8.0.0 headers with clang 3.4.1, which is still in the stable/10 branch. It looks like clang 3.4.1 implements static_asserts by instantiating a temporary static object, and if those are in an anonymous union, it results in "error: anonymous union can only contain non-static data members". To work around this implementation limitation, move the static_asserts in question out of the anonymous unions. This should make building the latest stable/11 from stable/10 possible again. Reported by: Mike Tancsa MFC after:3 days Modified: head/contrib/llvm/tools/clang/include/clang/AST/DeclBase.h head/contrib/llvm/tools/clang/include/clang/AST/Type.h Modified: head/contrib/llvm/tools/clang/include/clang/AST/DeclBase.h == --- head/contrib/llvm/tools/clang/include/clang/AST/DeclBase.h Wed Jul 10 05:45:50 2019(r349875) +++ head/contrib/llvm/tools/clang/include/clang/AST/DeclBase.h Wed Jul 10 05:57:37 2019(r349876) @@ -1696,30 +1696,30 @@ class DeclContext { (protected) ObjCContainerDeclBitfields ObjCContainerDeclBits; LinkageSpecDeclBitfields LinkageSpecDeclBits; BlockDeclBitfields BlockDeclBits; - -static_assert(sizeof(DeclContextBitfields) <= 8, - "DeclContextBitfields is larger than 8 bytes!"); -static_assert(sizeof(TagDeclBitfields) <= 8, - "TagDeclBitfields is larger than 8 bytes!"); -static_assert(sizeof(EnumDeclBitfields) <= 8, - "EnumDeclBitfields is larger than 8 bytes!"); -static_assert(sizeof(RecordDeclBitfields) <= 8, - "RecordDeclBitfields is larger than 8 bytes!"); -static_assert(sizeof(OMPDeclareReductionDeclBitfields) <= 8, - "OMPDeclareReductionDeclBitfields is larger than 8 bytes!"); -static_assert(sizeof(FunctionDeclBitfields) <= 8, - "FunctionDeclBitfields is larger than 8 bytes!"); -static_assert(sizeof(CXXConstructorDeclBitfields) <= 8, - "CXXConstructorDeclBitfields is larger than 8 bytes!"); -static_assert(sizeof(ObjCMethodDeclBitfields) <= 8, - "ObjCMethodDeclBitfields is larger than 8 bytes!"); -static_assert(sizeof(ObjCContainerDeclBitfields) <= 8, - "ObjCContainerDeclBitfields is larger than 8 bytes!"); -static_assert(sizeof(LinkageSpecDeclBitfields) <= 8, - "LinkageSpecDeclBitfields is larger than 8 bytes!"); -static_assert(sizeof(BlockDeclBitfields) <= 8, - "BlockDeclBitfields is larger than 8 bytes!"); }; + + static_assert(sizeof(DeclContextBitfields) <= 8, +"DeclContextBitfields is larger than 8 bytes!"); + static_assert(sizeof(TagDeclBitfields) <= 8, +"TagDeclBitfields is larger than 8 bytes!"); + static_assert(sizeof(EnumDeclBitfields) <= 8, +"EnumDeclBitfields is larger than 8 bytes!"); + static_assert(sizeof(RecordDeclBitfields) <= 8, +"RecordDeclBitfields is larger than 8 bytes!"); + static_assert(sizeof(OMPDeclareReductionDeclBitfields) <= 8, +"OMPDeclareReductionDeclBitfields is larger than 8 bytes!"); + static_assert(sizeof(FunctionDeclBitfields) <= 8, +"FunctionDeclBitfields is larger than 8 bytes!"); + static_assert(sizeof(CXXConstructorDeclBitfields) <= 8, +"CXXConstructorDeclBitfields is larger than 8 bytes!"); + static_assert(sizeof(ObjCMethodDeclBitfields) <= 8, +"ObjCMethodDeclBitfields is larger than 8 bytes!"); + static_assert(sizeof(ObjCContainerDeclBitfields) <= 8, +"ObjCContainerDeclBitfields is larger than 8 bytes!"); + static_assert(sizeof(LinkageSpecDeclBitfields) <= 8, +"LinkageSpecDeclBitfields is larger than 8 bytes!"); + static_assert(sizeof(BlockDeclBitfields) <= 8, +"BlockDeclBitfields is larger than 8 bytes!"); /// FirstDecl - The first declaration stored within this declaration /// context. Modified: head/contrib/llvm/tools/clang/include/clang/AST/Type.h == --- head/contrib/llvm/tools/clang/include/clang/AST/Type.h Wed Jul 10 05:45:50 2019(r349875) +++ head/contrib/llvm/tools/clang/include/clang/AST/Type.h Wed Jul 10 05:57:37 2019(r349876) @@ -1720,41 +1720,41 @@ class Type : public ExtQualsTypeCommonBase { (protecte DependentTemplateSpecializationTypeBitfields DependentTemplateSpecializationTypeBits; PackExpansionTypeBitfields PackExpansionTypeBits; - -static_assert(sizeof(TypeBitfields) <= 8, - "TypeBitfields is larger than 8 bytes!"); -
svn commit: r349875 - in head: share/man/man4 sys/dev/usb sys/dev/usb/net sys/dev/usb/quirk
Author: hrs Date: Wed Jul 10 05:45:50 2019 New Revision: 349875 URL: https://svnweb.freebsd.org/changeset/base/349875 Log: Add support for RTL8156, 2.5GbE USB network controller, to if_cdce(4). This chip can be found in Planex USB-LAN2500R. Modified: head/share/man/man4/cdce.4 head/sys/dev/usb/net/if_cdce.c head/sys/dev/usb/quirk/usb_quirk.c head/sys/dev/usb/usbdevs Modified: head/share/man/man4/cdce.4 == --- head/share/man/man4/cdce.4 Wed Jul 10 04:09:15 2019(r349874) +++ head/share/man/man4/cdce.4 Wed Jul 10 05:45:50 2019(r349875) @@ -28,7 +28,7 @@ .\" $NetBSD: cdce.4,v 1.4 2004/12/08 18:35:56 peter Exp $ .\" $FreeBSD$ .\" -.Dd May 21, 2018 +.Dd July 10, 2019 .Dt CDCE 4 .Os .Sh NAME @@ -89,6 +89,10 @@ Prolific PL-2501 Host-to-Host Bridge Controller Sharp Zaurus PDA .It Terayon TJ-715 DOCSIS Cable Modem +.It +Realtek RTL8156 USB GBE/2.5G Ethernet Family Controller +.It +Planex USB-LAN2500R .El .Sh DIAGNOSTICS .Bl -diag Modified: head/sys/dev/usb/net/if_cdce.c == --- head/sys/dev/usb/net/if_cdce.c Wed Jul 10 04:09:15 2019 (r349874) +++ head/sys/dev/usb/net/if_cdce.c Wed Jul 10 05:45:50 2019 (r349875) @@ -276,6 +276,7 @@ static const STRUCT_USB_HOST_ID cdce_host_devs[] = { {USB_VPI(USB_VENDOR_SHARP, USB_PRODUCT_SHARP_SLA300, CDCE_FLAG_ZAURUS | CDCE_FLAG_NO_UNION)}, {USB_VPI(USB_VENDOR_SHARP, USB_PRODUCT_SHARP_SLC700, CDCE_FLAG_ZAURUS | CDCE_FLAG_NO_UNION)}, {USB_VPI(USB_VENDOR_SHARP, USB_PRODUCT_SHARP_SLC750, CDCE_FLAG_ZAURUS | CDCE_FLAG_NO_UNION)}, + {USB_VPI(USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8156, 0)}, {USB_VENDOR(USB_VENDOR_HUAWEI), USB_IFACE_CLASS(UICLASS_VENDOR), USB_IFACE_SUBCLASS(0x02), USB_IFACE_PROTOCOL(0x16), Modified: head/sys/dev/usb/quirk/usb_quirk.c == --- head/sys/dev/usb/quirk/usb_quirk.c Wed Jul 10 04:09:15 2019 (r349874) +++ head/sys/dev/usb/quirk/usb_quirk.c Wed Jul 10 05:45:50 2019 (r349875) @@ -101,6 +101,7 @@ static struct usb_quirk_entry usb_quirks[USB_DEV_QUIRK USB_QUIRK(ELSA, MODEM1, 0x, 0x, UQ_CFG_INDEX_1), USB_QUIRK(PLANEX2, MZKUE150N, 0x, 0x, UQ_CFG_INDEX_1), USB_QUIRK(CISCOLINKSYS, USB3GIGV1, 0x, 0x, UQ_CFG_INDEX_1), + USB_QUIRK(REALTEK, RTL8156, 0x, 0x, UQ_CFG_INDEX_2), /* Quirks for printer devices */ USB_QUIRK(HP, 895C, 0x, 0x, UQ_BROKEN_BIDIR), USB_QUIRK(HP, 880C, 0x, 0x, UQ_BROKEN_BIDIR), Modified: head/sys/dev/usb/usbdevs == --- head/sys/dev/usb/usbdevsWed Jul 10 04:09:15 2019(r349874) +++ head/sys/dev/usb/usbdevsWed Jul 10 05:45:50 2019(r349875) @@ -3962,6 +3962,7 @@ product REALTEK RTL8188RU_2 0x317f RTL8188RU product REALTEK USBKR100 0x8150 USBKR100 USB Ethernet product REALTEK RTL81520x8152 RTL8152 USB Ethernet product REALTEK RTL81530x8153 RTL8153 USB Ethernet +product REALTEK RTL81560x8156 RTL8156 USB Ethernet product REALTEK RTL8188CE_0 0x8170 RTL8188CE product REALTEK RTL81710x8171 RTL8171 product REALTEK RTL81720x8172 RTL8172 ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349874 - head/sys/powerpc/powerpc
Author: jhibbits Date: Wed Jul 10 04:09:15 2019 New Revision: 349874 URL: https://svnweb.freebsd.org/changeset/base/349874 Log: powerpc: Clamp 32-bit binaries to 32-bit MAXUSER sv_maxuser specifies the maximum addressable space for user space. Presently this is all 64-bits worth, which is impossible for a 32-bit process. This bug has existed since the initial import of powerpc64 in 2010. MFC after:2 weeks Modified: head/sys/powerpc/powerpc/elf32_machdep.c Modified: head/sys/powerpc/powerpc/elf32_machdep.c == --- head/sys/powerpc/powerpc/elf32_machdep.cWed Jul 10 03:45:23 2019 (r349873) +++ head/sys/powerpc/powerpc/elf32_machdep.cWed Jul 10 04:09:15 2019 (r349874) @@ -97,7 +97,7 @@ struct sysentvec elf32_freebsd_sysvec = { .sv_minuser = VM_MIN_ADDRESS, .sv_stackprot = VM_PROT_ALL, #ifdef __powerpc64__ - .sv_maxuser = VM_MAXUSER_ADDRESS, + .sv_maxuser = VM_MAXUSER_ADDRESS32, .sv_usrstack= FREEBSD32_USRSTACK, .sv_psstrings = FREEBSD32_PS_STRINGS, .sv_copyout_strings = freebsd32_copyout_strings, ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349873 - head
Author: ian Date: Wed Jul 10 03:45:23 2019 New Revision: 349873 URL: https://svnweb.freebsd.org/changeset/base/349873 Log: Add pwm.9, it was also deleted during the big round of pwm changes. Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc == --- head/ObsoleteFiles.inc Wed Jul 10 01:08:08 2019(r349872) +++ head/ObsoleteFiles.inc Wed Jul 10 03:45:23 2019(r349873) @@ -40,8 +40,8 @@ # 20190618: sys/capability.h removed (sys/capsicum.h is the one to use) OLD_FILES+=usr/include/sys/capability.h -# 20190615: sys/pwm.h renamed to dev/pwmc.h -OLD_FILES+=usr/include/sys/pwm.h +# 20190615: sys/pwm.h renamed to dev/pwmc.h and pwm(9) removed +OLD_FILES+=usr/include/sys/pwm.h usr/share/man/man9/pwm.9 # 20190612: new clang import which bumps version from 8.0.0 to 8.0.1. OLD_FILES+=usr/lib/clang/8.0.0/include/sanitizer/allocator_interface.h OLD_FILES+=usr/lib/clang/8.0.0/include/sanitizer/asan_interface.h ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349872 - head/tests/sys/opencrypto
Author: lwhsu Date: Wed Jul 10 01:08:08 2019 New Revision: 349872 URL: https://svnweb.freebsd.org/changeset/base/349872 Log: Correct definitions in sys.opencrypto.runtests.main for 32bit platform Reviewed by: cem, jhb MFC after:3 days Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D20894 Modified: head/tests/sys/opencrypto/cryptodev.py Modified: head/tests/sys/opencrypto/cryptodev.py == --- head/tests/sys/opencrypto/cryptodev.py Tue Jul 9 23:58:12 2019 (r349871) +++ head/tests/sys/opencrypto/cryptodev.py Wed Jul 10 01:08:08 2019 (r349872) @@ -36,6 +36,7 @@ import array import binascii from fcntl import ioctl import os +import platform import random import signal from struct import pack as _pack @@ -116,14 +117,19 @@ class CryptAEAD(dpkt.Packet): # h2py.py can't handle multiarg macros CRIOGET = 3221513060 CIOCGSESSION = 3224396645 -CIOCGSESSION2 = 3225445226 CIOCFSESSION = 2147771238 -CIOCCRYPT = 3224396647 CIOCKEY = 3230688104 CIOCASYMFEAT = 1074029417 CIOCKEY2 = 3230688107 CIOCFINDDEV = 3223610220 -CIOCCRYPTAEAD = 3225445229 +if platform.architecture()[0] == '64bit': +CIOCGSESSION2 = 3225445226 +CIOCCRYPT = 3224396647 +CIOCCRYPTAEAD = 3225445229 +else: +CIOCGSESSION2 = 3224396650 +CIOCCRYPT = 3223085927 +CIOCCRYPTAEAD = 3223872365 def _getdev(): buf = array.array('I', [0]) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349871 - head/sys/kern
Author: jhb Date: Tue Jul 9 23:58:12 2019 New Revision: 349871 URL: https://svnweb.freebsd.org/changeset/base/349871 Log: Use 'retval' label for first error in syscallenter(). This is more consistent with the rest of the function and lets us unindent most of the function. Reviewed by: kib MFC after:1 month Sponsored by: DARPA Differential Revision:https://reviews.freebsd.org/D20897 Modified: head/sys/kern/subr_syscall.c Modified: head/sys/kern/subr_syscall.c == --- head/sys/kern/subr_syscall.cTue Jul 9 22:24:22 2019 (r349870) +++ head/sys/kern/subr_syscall.cTue Jul 9 23:58:12 2019 (r349871) @@ -85,69 +85,68 @@ syscallenter(struct thread *td) (uintptr_t)td, "pid:%d", td->td_proc->p_pid, "arg0:%p", sa->args[0], "arg1:%p", sa->args[1], "arg2:%p", sa->args[2]); - if (error == 0) { + if (error != 0) + goto retval; - STOPEVENT(p, S_SCE, sa->narg); - if (p->p_flag & P_TRACED) { - PROC_LOCK(p); - if (p->p_ptevents & PTRACE_SCE) - ptracestop((td), SIGTRAP, NULL); - PROC_UNLOCK(p); - } - if (td->td_dbgflags & TDB_USERWR) { - /* -* Reread syscall number and arguments if -* debugger modified registers or memory. -*/ - error = (p->p_sysent->sv_fetch_syscall_args)(td); + STOPEVENT(p, S_SCE, sa->narg); + if ((p->p_flag & P_TRACED) != 0) { + PROC_LOCK(p); + if (p->p_ptevents & PTRACE_SCE) + ptracestop((td), SIGTRAP, NULL); + PROC_UNLOCK(p); + } + if ((td->td_dbgflags & TDB_USERWR) != 0) { + /* +* Reread syscall number and arguments if debugger +* modified registers or memory. +*/ + error = (p->p_sysent->sv_fetch_syscall_args)(td); #ifdef KTRACE - if (KTRPOINT(td, KTR_SYSCALL)) - ktrsyscall(sa->code, sa->narg, sa->args); + if (KTRPOINT(td, KTR_SYSCALL)) + ktrsyscall(sa->code, sa->narg, sa->args); #endif - if (error != 0) - goto retval; - } + if (error != 0) + goto retval; + } #ifdef CAPABILITY_MODE - /* -* In capability mode, we only allow access to system calls -* flagged with SYF_CAPENABLED. -*/ - if (IN_CAPABILITY_MODE(td) && - !(sa->callp->sy_flags & SYF_CAPENABLED)) { - error = ECAPMODE; - goto retval; - } + /* +* In capability mode, we only allow access to system calls +* flagged with SYF_CAPENABLED. +*/ + if (IN_CAPABILITY_MODE(td) && + !(sa->callp->sy_flags & SYF_CAPENABLED)) { + error = ECAPMODE; + goto retval; + } #endif - error = syscall_thread_enter(td, sa->callp); - if (error != 0) - goto retval; + error = syscall_thread_enter(td, sa->callp); + if (error != 0) + goto retval; #ifdef KDTRACE_HOOKS - /* Give the syscall:::entry DTrace probe a chance to fire. */ - if (__predict_false(systrace_enabled && - sa->callp->sy_entry != 0)) - (*systrace_probe_func)(sa, SYSTRACE_ENTRY, 0); + /* Give the syscall:::entry DTrace probe a chance to fire. */ + if (__predict_false(systrace_enabled && sa->callp->sy_entry != 0)) + (*systrace_probe_func)(sa, SYSTRACE_ENTRY, 0); #endif - AUDIT_SYSCALL_ENTER(sa->code, td); - error = (sa->callp->sy_call)(td, sa->args); - AUDIT_SYSCALL_EXIT(error, td); + AUDIT_SYSCALL_ENTER(sa->code, td); + error = (sa->callp->sy_call)(td, sa->args); + AUDIT_SYSCALL_EXIT(error, td); - /* Save the latest error return value. */ - if ((td->td_pflags & TDP_NERRNO) == 0) - td->td_errno = error; + /* Save the latest error return value. */ + if ((td->td_pflags & TDP_NERRNO) == 0) + td->td_errno = error; #ifdef KDTRACE_HOOKS - /* Give the syscall:::return DTrace probe a chance to fire. */ - if (__predict_false(systrace_enabled && - sa->callp->sy_return != 0)) - (*systrace_probe_func)(sa, SYSTRACE_RETURN, - error ? -1 : td->td_retval[0]); + /* Give the
svn commit: r349870 - head/sys/dev/cxgbe
Author: np Date: Tue Jul 9 22:24:22 2019 New Revision: 349870 URL: https://svnweb.freebsd.org/changeset/base/349870 Log: cxgbe(4): Clear the freelist statistics in the clearstats ioctl. Move all clearstats code into its own function while here. MFC after:1 week Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/t4_main.c Modified: head/sys/dev/cxgbe/t4_main.c == --- head/sys/dev/cxgbe/t4_main.cTue Jul 9 22:11:15 2019 (r349869) +++ head/sys/dev/cxgbe/t4_main.cTue Jul 9 22:24:22 2019 (r349870) @@ -694,6 +694,7 @@ static void free_offload_policy(struct t4_offload_poli static int set_offload_policy(struct adapter *, struct t4_offload_policy *); static int read_card_mem(struct adapter *, int, struct t4_mem_range *); static int read_i2c(struct adapter *, struct t4_i2c_data *); +static int clear_stats(struct adapter *, u_int); #ifdef TCP_OFFLOAD static int toe_capability(struct vi_info *, int); #endif @@ -9841,6 +9842,108 @@ read_i2c(struct adapter *sc, struct t4_i2c_data *i2cd) return (rc); } +static int +clear_stats(struct adapter *sc, u_int port_id) +{ + int i, v, bg_map; + struct port_info *pi; + struct vi_info *vi; + struct sge_rxq *rxq; + struct sge_txq *txq; + struct sge_wrq *wrq; +#ifdef TCP_OFFLOAD + struct sge_ofld_rxq *ofld_rxq; +#endif + + if (port_id >= sc->params.nports) + return (EINVAL); + pi = sc->port[port_id]; + if (pi == NULL) + return (EIO); + + /* MAC stats */ + t4_clr_port_stats(sc, pi->tx_chan); + pi->tx_parse_error = 0; + pi->tnl_cong_drops = 0; + mtx_lock(>reg_lock); + for_each_vi(pi, v, vi) { + if (vi->flags & VI_INIT_DONE) + t4_clr_vi_stats(sc, vi->vin); + } + bg_map = pi->mps_bg_map; + v = 0; /* reuse */ + while (bg_map) { + i = ffs(bg_map) - 1; + t4_write_indirect(sc, A_TP_MIB_INDEX, A_TP_MIB_DATA, , + 1, A_TP_MIB_TNL_CNG_DROP_0 + i); + bg_map &= ~(1 << i); + } + mtx_unlock(>reg_lock); + + /* +* Since this command accepts a port, clear stats for +* all VIs on this port. +*/ + for_each_vi(pi, v, vi) { + if (vi->flags & VI_INIT_DONE) { + + for_each_rxq(vi, i, rxq) { +#if defined(INET) || defined(INET6) + rxq->lro.lro_queued = 0; + rxq->lro.lro_flushed = 0; +#endif + rxq->rxcsum = 0; + rxq->vlan_extraction = 0; + + rxq->fl.mbuf_allocated = 0; + rxq->fl.mbuf_inlined = 0; + rxq->fl.cl_allocated = 0; + rxq->fl.cl_recycled = 0; + rxq->fl.cl_fast_recycled = 0; + } + + for_each_txq(vi, i, txq) { + txq->txcsum = 0; + txq->tso_wrs = 0; + txq->vlan_insertion = 0; + txq->imm_wrs = 0; + txq->sgl_wrs = 0; + txq->txpkt_wrs = 0; + txq->txpkts0_wrs = 0; + txq->txpkts1_wrs = 0; + txq->txpkts0_pkts = 0; + txq->txpkts1_pkts = 0; + txq->raw_wrs = 0; + mp_ring_reset_stats(txq->r); + } + +#if defined(TCP_OFFLOAD) || defined(RATELIMIT) + for_each_ofld_txq(vi, i, wrq) { + wrq->tx_wrs_direct = 0; + wrq->tx_wrs_copied = 0; + } +#endif +#ifdef TCP_OFFLOAD + for_each_ofld_rxq(vi, i, ofld_rxq) { + ofld_rxq->fl.mbuf_allocated = 0; + ofld_rxq->fl.mbuf_inlined = 0; + ofld_rxq->fl.cl_allocated = 0; + ofld_rxq->fl.cl_recycled = 0; + ofld_rxq->fl.cl_fast_recycled = 0; + } +#endif + + if (IS_MAIN_VI(vi)) { + wrq = >sge.ctrlq[pi->port_id]; + wrq->tx_wrs_direct = 0; + wrq->tx_wrs_copied = 0; + } + } + } + + return (0); +} + int t4_os_find_pci_capability(struct adapter *sc, int cap) { @@ -10044,89 +10147,9 @@ t4_ioctl(struct cdev *dev, unsigned long cmd, caddr_t case CHELSIO_T4_GET_I2C:
svn commit: r349869 - head/usr.bin/calendar/calendars
Author: vmaffione Date: Tue Jul 9 22:11:15 2019 New Revision: 349869 URL: https://svnweb.freebsd.org/changeset/base/349869 Log: update calendar.freebsd MFC after:1 week Modified: head/usr.bin/calendar/calendars/calendar.freebsd Modified: head/usr.bin/calendar/calendars/calendar.freebsd == --- head/usr.bin/calendar/calendars/calendar.freebsdTue Jul 9 22:05:58 2019(r349868) +++ head/usr.bin/calendar/calendars/calendar.freebsdTue Jul 9 22:11:15 2019(r349869) @@ -387,7 +387,6 @@ 10/05 Hiroki Sato born in Yamagata, Japan, 1977 10/05 Chris Costello born in Houston, Texas, United States, 1985 10/09 Stefan Walter born in Werne, Nordrhein-Westfalen, Germany, 1978 -10/09 Vincenzo Maffione born in Foggia, Italy, 1988 10/11 Rick Macklem born in Ontario, Canada, 1955 10/12 Pawel Jakub Dawidek born in Radzyn Podlaski, Poland, 1980 10/15 Maxim Konovalov born in Khabarovsk, USSR, 1973 ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349868 - head/usr.sbin/bhyve
Author: vmaffione Date: Tue Jul 9 22:05:58 2019 New Revision: 349868 URL: https://svnweb.freebsd.org/changeset/base/349868 Log: bhyve: net_backends.c: add missing __FBSDID Reviewed by: jhb MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D20883 Modified: head/usr.sbin/bhyve/net_backends.c Modified: head/usr.sbin/bhyve/net_backends.c == --- head/usr.sbin/bhyve/net_backends.c Tue Jul 9 22:04:33 2019 (r349867) +++ head/usr.sbin/bhyve/net_backends.c Tue Jul 9 22:05:58 2019 (r349868) @@ -34,11 +34,13 @@ * features) is exported by net_backends.h. */ +#include +__FBSDID("$FreeBSD$"); + #include /* u_short etc */ #ifndef WITHOUT_CAPSICUM #include #endif -#include #include #include #include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349867 - head/usr.sbin/bhyve
Author: vmaffione Date: Tue Jul 9 22:04:33 2019 New Revision: 349867 URL: https://svnweb.freebsd.org/changeset/base/349867 Log: bhyve: add missing license identifiers in net_utils and net_backend Reviewed by: jhb, markj, imp MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D20874 Modified: head/usr.sbin/bhyve/net_backends.c head/usr.sbin/bhyve/net_backends.h head/usr.sbin/bhyve/net_utils.c head/usr.sbin/bhyve/net_utils.h Modified: head/usr.sbin/bhyve/net_backends.c == --- head/usr.sbin/bhyve/net_backends.c Tue Jul 9 20:28:53 2019 (r349866) +++ head/usr.sbin/bhyve/net_backends.c Tue Jul 9 22:04:33 2019 (r349867) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2019 Vincenzo Maffione * * Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/bhyve/net_backends.h == --- head/usr.sbin/bhyve/net_backends.h Tue Jul 9 20:28:53 2019 (r349866) +++ head/usr.sbin/bhyve/net_backends.h Tue Jul 9 22:04:33 2019 (r349867) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2019 Vincenzo Maffione * * Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/bhyve/net_utils.c == --- head/usr.sbin/bhyve/net_utils.c Tue Jul 9 20:28:53 2019 (r349866) +++ head/usr.sbin/bhyve/net_utils.c Tue Jul 9 22:04:33 2019 (r349867) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2011 NetApp, Inc. * * Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/bhyve/net_utils.h == --- head/usr.sbin/bhyve/net_utils.h Tue Jul 9 20:28:53 2019 (r349866) +++ head/usr.sbin/bhyve/net_utils.h Tue Jul 9 22:04:33 2019 (r349867) @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2019 Vincenzo Maffione * * Redistribution and use in source and binary forms, with or without ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r349864 - stable/11
10.07.2019 1:33, Warner Losh wrote: > Modified: stable/11/UPDATING > == > --- stable/11/UPDATINGTue Jul 9 18:02:36 2019(r349863) > +++ stable/11/UPDATINGTue Jul 9 18:33:01 2019(r349864) > @@ -26,11 +26,8 @@ from older version of current across the gcc/clang cut > Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to > 8.0.0. Please see the 20141231 entry below for information about > prerequisites and upgrading, if you are not already using clang 3.5.0 or > - higher. In addtion, if updating from RELENG_10, update to r346291 first, > - then update to the most recent version of RELENG_11. The older > - implementation of static_assert on RELENG_10 is incompatible with newer > - compilers, so compilation errors will occur. The trick it uses to when > - the builtin is unavailable now generates a fatal error. > + higher. RELENG_10 still has 3.4.1, so you should upgrade to r346291 > + first if you are upgrading from 10.x. Please clarify branch name of r346291 here. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349866 - head/sys/arm64/arm64
Author: alc Date: Tue Jul 9 20:28:53 2019 New Revision: 349866 URL: https://svnweb.freebsd.org/changeset/base/349866 Log: Introduce pmap_clear(), which zeroes a page table entry, and use it, instead of pmap_load_clear(), in places where we don't care about the page table entry's prior contents. Eliminate an unnecessary pmap_load() from pmap_remove_all(). Instead, use the value returned by the pmap_load_clear() on the very next line. (In the future, when we support "hardware dirty bit management", using the value from the pmap_load() rather than the pmap_load_clear() would have actually been an error because the dirty bit could potentially change between the pmap_load() and the pmap_load_clear().) A KASSERT() in pmap_enter(), which originated in the amd64 pmap, was meant to check the value returned by the pmap_load_clear() on the previous line. However, we were ignoring the value returned by the pmap_load_clear(), and so the KASSERT() was not serving its intended purpose. Use the value returned by the pmap_load_clear() in the KASSERT(). MFC after:2 weeks Modified: head/sys/arm64/arm64/pmap.c Modified: head/sys/arm64/arm64/pmap.c == --- head/sys/arm64/arm64/pmap.c Tue Jul 9 19:32:31 2019(r349865) +++ head/sys/arm64/arm64/pmap.c Tue Jul 9 20:28:53 2019(r349866) @@ -315,6 +315,7 @@ static __inline vm_page_t pmap_remove_pt_page(pmap_t p * They need to be atomic as the System MMU may write to the table at * the same time as the CPU. */ +#definepmap_clear(table) atomic_store_64(table, 0) #definepmap_load_store(table, entry) atomic_swap_64(table, entry) #definepmap_set(table, mask) atomic_set_64(table, mask) #definepmap_load_clear(table) atomic_swap_64(table, 0) @@ -1208,7 +1209,7 @@ pmap_kremove(vm_offset_t va) KASSERT(pte != NULL, ("pmap_kremove: Invalid address")); KASSERT(lvl == 3, ("pmap_kremove: Invalid pte level %d", lvl)); - pmap_load_clear(pte); + pmap_clear(pte); pmap_invalidate_page(kernel_pmap, va); } @@ -1230,7 +1231,7 @@ pmap_kremove_device(vm_offset_t sva, vm_size_t size) KASSERT(pte != NULL, ("Invalid page table, va: 0x%lx", va)); KASSERT(lvl == 3, ("Invalid device pagetable level: %d != 3", lvl)); - pmap_load_clear(pte); + pmap_clear(pte); va += PAGE_SIZE; size -= PAGE_SIZE; @@ -1315,7 +1316,7 @@ pmap_qremove(vm_offset_t sva, int count) KASSERT(lvl == 3, ("Invalid device pagetable level: %d != 3", lvl)); if (pte != NULL) { - pmap_load_clear(pte); + pmap_clear(pte); } va += PAGE_SIZE; @@ -1374,19 +1375,19 @@ _pmap_unwire_l3(pmap_t pmap, vm_offset_t va, vm_page_t pd_entry_t *l0; l0 = pmap_l0(pmap, va); - pmap_load_clear(l0); + pmap_clear(l0); } else if (m->pindex >= NUL2E) { /* l2 page */ pd_entry_t *l1; l1 = pmap_l1(pmap, va); - pmap_load_clear(l1); + pmap_clear(l1); } else { /* l3 page */ pd_entry_t *l2; l2 = pmap_l2(pmap, va); - pmap_load_clear(l2); + pmap_clear(l2); } pmap_resident_count_dec(pmap, 1); if (m->pindex < NUL2E) { @@ -2760,8 +2761,7 @@ retry: tpde = pmap_load(pde); pte = pmap_l2_to_l3(pde, pv->pv_va); - tpte = pmap_load(pte); - pmap_load_clear(pte); + tpte = pmap_load_clear(pte); pmap_invalidate_page(pmap, pv->pv_va); if (tpte & ATTR_SW_WIRED) pmap->pm_stats.wired_count--; @@ -2986,7 +2986,7 @@ pmap_update_entry(pmap_t pmap, pd_entry_t *pte, pd_ent critical_enter(); /* Clear the old mapping */ - pmap_load_clear(pte); + pmap_clear(pte); pmap_invalidate_range_nopin(pmap, va, va + size); /* Create the new mapping */ @@ -3265,9 +3265,10 @@ havel3: } /* -* The physical page has changed. +* The physical page has changed. Temporarily invalidate +* the mapping. */ - (void)pmap_load_clear(l3); + orig_l3 = pmap_load_clear(l3); KASSERT((orig_l3 & ~ATTR_MASK) == opa, ("pmap_enter: unexpected pa update for %#lx", va)); if ((orig_l3 & ATTR_SW_MANAGED) != 0) { @@ -4282,7 +4283,12 @@ pmap_remove_pages(pmap_t pmap) ("pmap_remove_pages: bad pte %#jx",
svn commit: r349865 - head/sys/dev/cxgbe
Author: np Date: Tue Jul 9 19:32:31 2019 New Revision: 349865 URL: https://svnweb.freebsd.org/changeset/base/349865 Log: cxgbe(4): Use the simplest configuration possible when falling back from the default configuration. MFC after:1 week Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/t4_main.c Modified: head/sys/dev/cxgbe/t4_main.c == --- head/sys/dev/cxgbe/t4_main.cTue Jul 9 18:33:01 2019 (r349864) +++ head/sys/dev/cxgbe/t4_main.cTue Jul 9 19:32:31 2019 (r349865) @@ -4009,10 +4009,8 @@ retry: rc, cfg_file); snprintf(cfg_file, sizeof(cfg_file), "%s", BUILTIN_CF); bzero(_allowed, sizeof(caps_allowed)); - COPY_CAPS(nbm); - COPY_CAPS(link); COPY_CAPS(switch); - COPY_CAPS(nic); + caps_allowed.niccaps = FW_CAPS_CONFIG_NIC; fallback = false; goto retry; } ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349864 - stable/11
Author: imp Date: Tue Jul 9 18:33:01 2019 New Revision: 349864 URL: https://svnweb.freebsd.org/changeset/base/349864 Log: Refine the advice for upgrading from 10.x Simplify the advice to highlight the 3.5 minimum requirement (and note that RELENG_10 has 3.4.1). The other issues I highlighted were just the tip of the iceberg and not as helpful as I thought. Modified: stable/11/UPDATING Modified: stable/11/UPDATING == --- stable/11/UPDATING Tue Jul 9 18:02:36 2019(r349863) +++ stable/11/UPDATING Tue Jul 9 18:33:01 2019(r349864) @@ -26,11 +26,8 @@ from older version of current across the gcc/clang cut Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to 8.0.0. Please see the 20141231 entry below for information about prerequisites and upgrading, if you are not already using clang 3.5.0 or - higher. In addtion, if updating from RELENG_10, update to r346291 first, - then update to the most recent version of RELENG_11. The older - implementation of static_assert on RELENG_10 is incompatible with newer - compilers, so compilation errors will occur. The trick it uses to when - the builtin is unavailable now generates a fatal error. + higher. RELENG_10 still has 3.4.1, so you should upgrade to r346291 + first if you are upgrading from 10.x. 20190226: geom_uzip(4) depends on the new module xz. If geom_uzip is statically ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349863 - in head/sys/contrib/dev/acpica: . compiler components/dispatcher components/events components/executer components/namespace components/tables components/utilities include
Author: jkim Date: Tue Jul 9 18:02:36 2019 New Revision: 349863 URL: https://svnweb.freebsd.org/changeset/base/349863 Log: MFV: r349861 Import ACPICA 20190703. Modified: head/sys/contrib/dev/acpica/changes.txt head/sys/contrib/dev/acpica/compiler/asldefine.h head/sys/contrib/dev/acpica/compiler/aslglobal.h head/sys/contrib/dev/acpica/compiler/aslload.c head/sys/contrib/dev/acpica/compiler/aslmessages.c head/sys/contrib/dev/acpica/compiler/aslmessages.h head/sys/contrib/dev/acpica/compiler/aslstubs.c head/sys/contrib/dev/acpica/compiler/aslsupport.l head/sys/contrib/dev/acpica/components/dispatcher/dsinit.c head/sys/contrib/dev/acpica/components/events/evgpe.c head/sys/contrib/dev/acpica/components/events/evgpeblk.c head/sys/contrib/dev/acpica/components/events/evxface.c head/sys/contrib/dev/acpica/components/events/evxfgpe.c head/sys/contrib/dev/acpica/components/executer/exconfig.c head/sys/contrib/dev/acpica/components/namespace/nsaccess.c head/sys/contrib/dev/acpica/components/namespace/nseval.c head/sys/contrib/dev/acpica/components/namespace/nsinit.c head/sys/contrib/dev/acpica/components/namespace/nsload.c head/sys/contrib/dev/acpica/components/namespace/nsutils.c head/sys/contrib/dev/acpica/components/tables/tbdata.c head/sys/contrib/dev/acpica/components/tables/tbxfload.c head/sys/contrib/dev/acpica/components/utilities/utinit.c head/sys/contrib/dev/acpica/components/utilities/utxfinit.c head/sys/contrib/dev/acpica/include/acevents.h head/sys/contrib/dev/acpica/include/acglobal.h head/sys/contrib/dev/acpica/include/acnamesp.h head/sys/contrib/dev/acpica/include/acpixf.h Directory Properties: head/sys/contrib/dev/acpica/ (props changed) Modified: head/sys/contrib/dev/acpica/changes.txt == --- head/sys/contrib/dev/acpica/changes.txt Tue Jul 9 17:18:24 2019 (r349862) +++ head/sys/contrib/dev/acpica/changes.txt Tue Jul 9 18:02:36 2019 (r349863) @@ -1,4 +1,53 @@ +03 July 2019. Summary of changes for version 20190703: + + +1) ACPICA kernel-resident subsystem: + +Remove legacy module-level support code. There were still some remnants +of the legacy module-level code executions. Since we no longer support +this option, this is essentially dead code and has been removed from the +ACPICA source. + +iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root +scope. If these named objects are declared outside the root scope, they +will not be invoked by any host Operating System. + +Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC +one) can be enabled in two situations. First, the GPEs with existing _Lxx +and _Exx methods are enabled implicitly by ACPICA during system +initialization. Second, the GPEs without these methods (like GPEs listed +by _PRW objects for wakeup devices) need to be enabled directly by the +code that is going to use them (e.g. ACPI power management or device +drivers). + +In the former case, if the status of a given GPE is set to start with, +its handler method (either _Lxx or _Exx) needs to be invoked to take care +of the events (possibly) signaled before the GPE was enabled. In the +latter case, however, the first caller of AcpiEnableGpe() for a given GPE +should not be expected to care about any events that might be signaled +through it earlier. In that case, it is better to clear the status of +the GPE before enabling it, to prevent stale events from triggering +unwanted actions (like spurious system resume, for example). + +For this reason, modify AcpiEvAddGpeReference() to take an additional +boolean argument indicating whether or not the GPE status needs to be +cleared when its reference counter changes from zero to one and make +AcpiEnableGpe() pass TRUE to it through that new argument. + + +2) iASL Compiler/Disassembler and ACPICA tools: + +The tool generation process has been migrated to MSVC 2017, and all +project files have been upgraded. The new project files appear in the +directory \acpica\generate\msvc2017. This change effectively deprecates +the older project files in \acpica\generate\msvc9. + +iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root +scope. If these named objects are declared outside the root scope, they +will not be invoked by any host Operating System + + 09 May 2019. Summary of changes for version 20190509: Modified: head/sys/contrib/dev/acpica/compiler/asldefine.h == --- head/sys/contrib/dev/acpica/compiler/asldefine.hTue Jul 9 17:18:24 2019(r349862) +++ head/sys/contrib/dev/acpica/compiler/asldefine.hTue Jul 9 18:02:36 2019(r349863) @@ -298,4 +298,20 @@ #define COMMENT_CAPTURE_ON
svn commit: r349862 - vendor-sys/acpica/20190703
Author: jkim Date: Tue Jul 9 17:18:24 2019 New Revision: 349862 URL: https://svnweb.freebsd.org/changeset/base/349862 Log: Tag ACPICA 20190703. Added: vendor-sys/acpica/20190703/ - copied from r349861, vendor-sys/acpica/dist/ ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349861 - in vendor-sys/acpica/dist: . source/compiler source/components/dispatcher source/components/events source/components/executer source/components/namespace source/components/tab...
Author: jkim Date: Tue Jul 9 17:17:45 2019 New Revision: 349861 URL: https://svnweb.freebsd.org/changeset/base/349861 Log: Import ACPICA 20190703. Modified: vendor-sys/acpica/dist/changes.txt vendor-sys/acpica/dist/source/compiler/asldefine.h vendor-sys/acpica/dist/source/compiler/aslglobal.h vendor-sys/acpica/dist/source/compiler/aslload.c vendor-sys/acpica/dist/source/compiler/aslmessages.c vendor-sys/acpica/dist/source/compiler/aslmessages.h vendor-sys/acpica/dist/source/compiler/aslstubs.c vendor-sys/acpica/dist/source/compiler/aslsupport.l vendor-sys/acpica/dist/source/components/dispatcher/dsinit.c vendor-sys/acpica/dist/source/components/events/evgpe.c vendor-sys/acpica/dist/source/components/events/evgpeblk.c vendor-sys/acpica/dist/source/components/events/evxface.c vendor-sys/acpica/dist/source/components/events/evxfgpe.c vendor-sys/acpica/dist/source/components/executer/exconfig.c vendor-sys/acpica/dist/source/components/namespace/nsaccess.c vendor-sys/acpica/dist/source/components/namespace/nseval.c vendor-sys/acpica/dist/source/components/namespace/nsinit.c vendor-sys/acpica/dist/source/components/namespace/nsload.c vendor-sys/acpica/dist/source/components/namespace/nsutils.c vendor-sys/acpica/dist/source/components/tables/tbdata.c vendor-sys/acpica/dist/source/components/tables/tbxfload.c vendor-sys/acpica/dist/source/components/utilities/utinit.c vendor-sys/acpica/dist/source/components/utilities/utxfinit.c vendor-sys/acpica/dist/source/include/acevents.h vendor-sys/acpica/dist/source/include/acglobal.h vendor-sys/acpica/dist/source/include/acnamesp.h vendor-sys/acpica/dist/source/include/acpixf.h vendor-sys/acpica/dist/source/include/platform/acmsvc.h vendor-sys/acpica/dist/source/include/platform/acwin.h vendor-sys/acpica/dist/source/include/platform/acwin64.h vendor-sys/acpica/dist/source/tools/acpiexec/aetests.c vendor-sys/acpica/dist/source/tools/acpinames/anstubs.c vendor-sys/acpica/dist/source/tools/acpixtract/axmain.c Modified: vendor-sys/acpica/dist/changes.txt == --- vendor-sys/acpica/dist/changes.txt Tue Jul 9 13:44:32 2019 (r349860) +++ vendor-sys/acpica/dist/changes.txt Tue Jul 9 17:17:45 2019 (r349861) @@ -1,4 +1,53 @@ +03 July 2019. Summary of changes for version 20190703: + + +1) ACPICA kernel-resident subsystem: + +Remove legacy module-level support code. There were still some remnants +of the legacy module-level code executions. Since we no longer support +this option, this is essentially dead code and has been removed from the +ACPICA source. + +iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root +scope. If these named objects are declared outside the root scope, they +will not be invoked by any host Operating System. + +Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC +one) can be enabled in two situations. First, the GPEs with existing _Lxx +and _Exx methods are enabled implicitly by ACPICA during system +initialization. Second, the GPEs without these methods (like GPEs listed +by _PRW objects for wakeup devices) need to be enabled directly by the +code that is going to use them (e.g. ACPI power management or device +drivers). + +In the former case, if the status of a given GPE is set to start with, +its handler method (either _Lxx or _Exx) needs to be invoked to take care +of the events (possibly) signaled before the GPE was enabled. In the +latter case, however, the first caller of AcpiEnableGpe() for a given GPE +should not be expected to care about any events that might be signaled +through it earlier. In that case, it is better to clear the status of +the GPE before enabling it, to prevent stale events from triggering +unwanted actions (like spurious system resume, for example). + +For this reason, modify AcpiEvAddGpeReference() to take an additional +boolean argument indicating whether or not the GPE status needs to be +cleared when its reference counter changes from zero to one and make +AcpiEnableGpe() pass TRUE to it through that new argument. + + +2) iASL Compiler/Disassembler and ACPICA tools: + +The tool generation process has been migrated to MSVC 2017, and all +project files have been upgraded. The new project files appear in the +directory \acpica\generate\msvc2017. This change effectively deprecates +the older project files in \acpica\generate\msvc9. + +iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root +scope. If these named objects are declared outside the root scope, they +will not be invoked by any host Operating System + + 09 May 2019. Summary of changes for version 20190509: Modified: vendor-sys/acpica/dist/source/compiler/asldefine.h
Re: svn commit: r349791 - head/sys/vm
On Mon, 8 Jul 2019, Scott Long wrote: This isn???t the first time I???ve witnessed your passion on this topic. It would help immensely if there was some documentation, maybe in /sys/sys/param.h, or maybe even in a manual page, on what a ???click??? is, what a ???db??? is, why they???re important, and how they should be used. Do you have any documentation tucked away that could be edited and committed? I don't have any extra documentation. I learned about clicks because Minix had them and actually used them in a nontrivial way (1 click = 16 bytes = real mode segment granularity, and 16-bit ints could could represent the final click address in the real-mode address space of 1MB but not the size of the whole address space). Mike Karels gave more details about this. PDP-11's had 64-bit clicks. I think this was also to extend the 16-bit address space in a less bad way that x86 real mode segments. Google says that NetBSD has dbtob(9). This is a link to ctod(9). This man page does little more than say "The ctod family of macros can be used to convert between bytes, pages (''clicks'') and disk blocks" and expand the abbreviations. 'c' is expanded to 'pages', and there are no documented macros where 'pages' is abbreviated to 'p'. The full list is: - ctod (spelled ctodb() in FreeBSD), - dtoc (similarly), - ctob, - btoc, - dbtob (same spelling as in FreeBSD). - btodb. One detail is interesting: that the macros make no assumption about the type of the input parameter (this is clearly wrong since signed types with negative values don't work when the implementation uses shifts, floating-point types are further from working, and non-arithmetic types can't work), and that the caller must ensure that integer overflow and integer underflow do not occur (here "integer underflow" is nonsense" -- it means integer overflow to a negative value). 4.4BSD-Lite2 has these macros with the NetBSD spellings, and also on i386, tahoe and vax: - ctos, stoc: core clicks to segments. All do the identity conversion. None are used on any arch. FreeBSD-1.0 has similar or the same macros as 4.4BSD-Lite2, including implementation and comments. FreeBSD-3 doesn't have ctos or stoc, and abbreviates 'disk block' to 'db' consistently, and improves some of the implementations and comments. FreeBSD-current is similar to FreeBSD-3, except most of the macros are now MI and it has lost better comments which were only in the alpha version. FreeBSD's actually documents most of these macros reasonably well in comments. It just uses different styles and random grouping. Only btodb and dbtob end up without a comment giving a hint about what b and db are. The comments for dbtoc and ctodb tell you that a db is a devblk and a c is a page. Other comments tell you that a c is a click. Bruce___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349860 - in stable/11/release/doc: en_US.ISO8859-1/errata share/xml
Author: gjb Date: Tue Jul 9 13:44:32 2019 New Revision: 349860 URL: https://svnweb.freebsd.org/changeset/base/349860 Log: Sync the 11-STABLE errata page with the releng/11.3 version. Bump version numbers accordingly. Fix wording regarding an entry about bhyve VMs compiled with clang 8.0.0. [1] Reported by: jhb [1] Approved by: re (implicit) Sponsored by: Rubicon Communications, LLC (Netgate) Modified: stable/11/release/doc/en_US.ISO8859-1/errata/article.xml stable/11/release/doc/share/xml/release.ent Modified: stable/11/release/doc/en_US.ISO8859-1/errata/article.xml == --- stable/11/release/doc/en_US.ISO8859-1/errata/article.xmlTue Jul 9 12:13:58 2019(r349859) +++ stable/11/release/doc/en_US.ISO8859-1/errata/article.xmlTue Jul 9 13:44:32 2019(r349860) @@ -24,7 +24,7 @@ $FreeBSD$ - 2018 + 2019 mailto:d...@freebsd.org;>The Documentation Project @@ -49,7 +49,8 @@ . This errata document for will be maintained - until the release of . + until the release of (if + applicable). @@ -96,157 +97,37 @@ - / installed on ZFS may crash during boot - when the ZFS pool mount is attempted while booting an - unmodified GENERIC kernel. - - A system tunable has been added as of revision - r286584 to make the - kern.kstack_pages tunable configurable - without recompiling the kernel. - - To mitigate system crashes with such configurations, - choose Escape to loader prompt in the - boot menu and enter the following lines from - prompt, after an OK: - - set kern.kstack_pages=4 -boot - - Add this line to - /boot/loader.conf for the change to - persist across reboots: - - kern.kstack_pages=4 + [2019-07-04] An issue which can cause a crash when + connecting to a instance with + a VNC client under certain circumstances + had been reported. An errata notice is planned + post-release. - [2017-07-25] / currently lacks - EFI real-time clock - (RTC) support, which may cause the system - to boot with the wrong time set. + [2019-07-04] An issue booting virtual + machines compiled with version 8.0.0 or later + had been reported late in the release cycle. An errata + notice is planned post-release. - As a workaround, either enable or - include ntpd_sync_on_start="YES" in - . + This issue is believed to only affect OpenBSD virtual + machines compiled with . - [2017-07-25] A late issue was discovered with - / and root on - ZFS installations where the root - ZFS pool would fail to be located. + [2019-07-04] An issue when upgrading from 11.3 + to 12.0 (which occurred earlier in time, + comparatively), had been reported where the + com.delphix:spacemap_v2 + feature does not exist on 12.0, will fail to + import the ZFS pool. - There currently is no workaround. - + At this time, it is advised to defer migrating from + 11.3 to 12.x until 12.1 is + available. - - [2017-11-06] An issue with virtual machines with - vagrant was discovered that - affects the VirtualBox where the - virtual machine will not start on the initial boot invoked - with vagrant up. - - The issue is due to the virtual machine - MAC being unset, as does not provide - a default Vagrantfile. - - It has been observed, however, that a subsequent - invocation of vagrant up will allow the - virtual machine to successfully boot, allowing access via - vagrant ssh. - - - - [2018-06-21] An issue had been discovered late in the - release cycle where removing ZFS vdevs - from a pool under certain conditions would cause a system - crash when is enabled in - . - - At present, it is believed to be limited to removal of - a mirror vdev from a pool consisting of - multiple mirror vdevs. - - See PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228750;>228750 - for more information and updates as the issue is - investigated. - - - - [2018-06-26] An issue had been discovered late in the - release cycle where a system crash could occur after - installing emulators/virtualbox-ose-kmod - from upstream package mirrors via . - - Building emulators/virtualbox-ose-kmod - from the collection has been observed to work - around the crash. - - See PR
svn commit: r349858 - stable/12/tests/sys/netpfil/pf
Author: lwhsu Date: Tue Jul 9 09:09:51 2019 New Revision: 349858 URL: https://svnweb.freebsd.org/changeset/base/349858 Log: MFC r349539 Skip sys.netpfil.pf.names.names and sys.netpfil.pf.synproxy.synproxy temporarily because kernel panics when flushing epair queue. PR: 238870 Sponsored by: The FreeBSD Foundation Modified: stable/12/tests/sys/netpfil/pf/names.sh stable/12/tests/sys/netpfil/pf/synproxy.sh Directory Properties: stable/12/ (props changed) Modified: stable/12/tests/sys/netpfil/pf/names.sh == --- stable/12/tests/sys/netpfil/pf/names.sh Tue Jul 9 08:21:14 2019 (r349857) +++ stable/12/tests/sys/netpfil/pf/names.sh Tue Jul 9 09:09:51 2019 (r349858) @@ -11,6 +11,7 @@ names_head() names_body() { + atf_skip "Kernel panics when flushing epair queue (bug238870)" pft_init epair=$(vnet_mkepair) Modified: stable/12/tests/sys/netpfil/pf/synproxy.sh == --- stable/12/tests/sys/netpfil/pf/synproxy.sh Tue Jul 9 08:21:14 2019 (r349857) +++ stable/12/tests/sys/netpfil/pf/synproxy.sh Tue Jul 9 09:09:51 2019 (r349858) @@ -11,6 +11,7 @@ synproxy_head() synproxy_body() { + atf_skip "Kernel panics when flushing epair queue (bug238870)" pft_init epair=$(vnet_mkepair) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349857 - head/sys/dev/hyperv/netvsc
Author: whu Date: Tue Jul 9 08:21:14 2019 New Revision: 349857 URL: https://svnweb.freebsd.org/changeset/base/349857 Log: hyperv/vmbus: Fix the wrong size in ndis_offload structure Submitted by: whu MFC after:2 weeks Sponsored by: Microsoft Modified: head/sys/dev/hyperv/netvsc/ndis.h Modified: head/sys/dev/hyperv/netvsc/ndis.h == --- head/sys/dev/hyperv/netvsc/ndis.h Tue Jul 9 07:24:18 2019 (r349856) +++ head/sys/dev/hyperv/netvsc/ndis.h Tue Jul 9 08:21:14 2019 (r349857) @@ -115,8 +115,8 @@ struct ndis_offload_params { /* NDIS >= 6.30 */ uint8_t ndis_rsc_ip4; /* NDIS_OFFLOAD_RSC_ */ uint8_t ndis_rsc_ip6; /* NDIS_OFFLOAD_RSC_ */ - uint8_t ndis_encap; /* NDIS_OFFLOAD_SET_ */ - uint8_t ndis_encap_types;/* NDIS_ENCAP_TYPE_ */ + uint32_tndis_encap; /* NDIS_OFFLOAD_SET_ */ + uint32_tndis_encap_types;/* NDIS_ENCAP_TYPE_ */ }; #defineNDIS_OFFLOAD_PARAMS_SIZEsizeof(struct ndis_offload_params) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349856 - in head/sys/dev/hyperv: include netvsc vmbus
Author: whu Date: Tue Jul 9 07:24:18 2019 New Revision: 349856 URL: https://svnweb.freebsd.org/changeset/base/349856 Log: hyperv/vmbus: Update VMBus version 4.0 and 5.0 support. Add VMBus protocol version 4.0. and 5.0 to support Windows 10 and newer HyperV hosts. For VMBus 4.0 and newer HyperV, the netvsc gpadl teardown must be done after vmbus close. Submitted by: whu MFC after:2 weeks Sponsored by: Microsoft Modified: head/sys/dev/hyperv/include/hyperv.h head/sys/dev/hyperv/include/vmbus.h head/sys/dev/hyperv/netvsc/hn_nvs.c head/sys/dev/hyperv/netvsc/if_hn.c head/sys/dev/hyperv/vmbus/vmbus.c Modified: head/sys/dev/hyperv/include/hyperv.h == --- head/sys/dev/hyperv/include/hyperv.hTue Jul 9 07:21:33 2019 (r349855) +++ head/sys/dev/hyperv/include/hyperv.hTue Jul 9 07:24:18 2019 (r349856) @@ -94,6 +94,11 @@ extern hyperv_tc64_t hyperv_tc64; extern u_int hyperv_features;/* CPUID_HV_MSR_ */ extern u_int hyperv_ver_major; +/* + * Vmbus version after negotiation with host. + */ +extern uint32_tvmbus_current_version; + #endif /* _KERNEL */ #endif /* _HYPERV_H_ */ Modified: head/sys/dev/hyperv/include/vmbus.h == --- head/sys/dev/hyperv/include/vmbus.h Tue Jul 9 07:21:33 2019 (r349855) +++ head/sys/dev/hyperv/include/vmbus.h Tue Jul 9 07:24:18 2019 (r349856) @@ -40,11 +40,15 @@ * 1.1 -- Windows 7 * 2.4 -- Windows 8 * 3.0 -- Windows 8.1 + * 4.0 -- Windows 10 + * 5.0 -- Newer Windows 10 */ #define VMBUS_VERSION_WS2008 ((0 << 16) | (13)) #define VMBUS_VERSION_WIN7 ((1 << 16) | (1)) #define VMBUS_VERSION_WIN8 ((2 << 16) | (4)) #define VMBUS_VERSION_WIN8_1 ((3 << 16) | (0)) +#define VMBUS_VERSION_WIN10((4 << 16) | (0)) +#define VMBUS_VERSION_WIN10_V5 ((5 << 16) | (0)) #define VMBUS_VERSION_MAJOR(ver) (((uint32_t)(ver)) >> 16) #define VMBUS_VERSION_MINOR(ver) (((uint32_t)(ver)) & 0x) Modified: head/sys/dev/hyperv/netvsc/hn_nvs.c == --- head/sys/dev/hyperv/netvsc/hn_nvs.c Tue Jul 9 07:21:33 2019 (r349855) +++ head/sys/dev/hyperv/netvsc/hn_nvs.c Tue Jul 9 07:24:18 2019 (r349856) @@ -365,7 +365,7 @@ hn_nvs_disconn_rxbuf(struct hn_softc *sc) pause("lingtx", (200 * hz) / 1000); } - if (sc->hn_rxbuf_gpadl != 0) { + if (vmbus_current_version < VMBUS_VERSION_WIN10 && sc->hn_rxbuf_gpadl != 0) { /* * Disconnect RXBUF from primary channel. */ @@ -426,7 +426,7 @@ hn_nvs_disconn_chim(struct hn_softc *sc) pause("lingtx", (200 * hz) / 1000); } - if (sc->hn_chim_gpadl != 0) { + if (vmbus_current_version < VMBUS_VERSION_WIN10 && sc->hn_chim_gpadl != 0) { /* * Disconnect chimney sending buffer from primary channel. */ Modified: head/sys/dev/hyperv/netvsc/if_hn.c == --- head/sys/dev/hyperv/netvsc/if_hn.c Tue Jul 9 07:21:33 2019 (r349855) +++ head/sys/dev/hyperv/netvsc/if_hn.c Tue Jul 9 07:24:18 2019 (r349856) @@ -6630,6 +6630,38 @@ hn_synth_detach(struct hn_softc *sc) /* Detach all of the channels. */ hn_detach_allchans(sc); + if (vmbus_current_version >= VMBUS_VERSION_WIN10 && sc->hn_rxbuf_gpadl != 0) { + /* +* Host is post-Win2016, disconnect RXBUF from primary channel here. +*/ + int error; + + error = vmbus_chan_gpadl_disconnect(sc->hn_prichan, + sc->hn_rxbuf_gpadl); + if (error) { + if_printf(sc->hn_ifp, + "rxbuf gpadl disconn failed: %d\n", error); + sc->hn_flags |= HN_FLAG_RXBUF_REF; + } + sc->hn_rxbuf_gpadl = 0; + } + + if (vmbus_current_version >= VMBUS_VERSION_WIN10 && sc->hn_chim_gpadl != 0) { + /* +* Host is post-Win2016, disconnect chimney sending buffer from +* primary channel here. +*/ + int error; + + error = vmbus_chan_gpadl_disconnect(sc->hn_prichan, + sc->hn_chim_gpadl); + if (error) { + if_printf(sc->hn_ifp, + "chim gpadl disconn failed: %d\n", error); + sc->hn_flags |= HN_FLAG_CHIM_REF; + } + sc->hn_chim_gpadl = 0; + } sc->hn_flags &= ~HN_FLAG_SYNTH_ATTACHED; } Modified:
svn commit: r349855 - stable/11/lib/libc/sys
Author: kib Date: Tue Jul 9 07:21:33 2019 New Revision: 349855 URL: https://svnweb.freebsd.org/changeset/base/349855 Log: MFC r349794: Document atomicity for read(2) and write(2). Modified: stable/11/lib/libc/sys/read.2 Directory Properties: stable/11/ (props changed) Modified: stable/11/lib/libc/sys/read.2 == --- stable/11/lib/libc/sys/read.2 Tue Jul 9 07:19:36 2019 (r349854) +++ stable/11/lib/libc/sys/read.2 Tue Jul 9 07:21:33 2019 (r349855) @@ -28,7 +28,7 @@ .\" @(#)read.2 8.4 (Berkeley) 2/26/94 .\" $FreeBSD$ .\" -.Dd December 15, 2015 +.Dd July 6, 2019 .Dt READ 2 .Os .Sh NAME @@ -128,6 +128,25 @@ return the number of bytes actually read and placed in The system guarantees to read the number of bytes requested if the descriptor references a normal file that has that many bytes left before the end-of-file, but in no other case. +.Pp +In accordance with +.St -p1003.1-2004 , +both +.Xr read 2 +and +.Xr write 2 +syscalls are atomic with respect to each other in the effects on file +content, when they operate on regular files. +If two threads each call one of the +.Xr read 2 +or +.Xr write 2 , +syscalls, each call will see either all of the changes of the other call, +or none of them. +The +.Fx +kernel implements this guarantee by locking the file ranges affected by +the calls. .Sh RETURN VALUES If successful, the number of bytes actually read is returned. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r349854 - stable/12/lib/libc/sys
Author: kib Date: Tue Jul 9 07:19:36 2019 New Revision: 349854 URL: https://svnweb.freebsd.org/changeset/base/349854 Log: MFC r349794: Document atomicity for read(2) and write(2). Modified: stable/12/lib/libc/sys/read.2 Directory Properties: stable/12/ (props changed) Modified: stable/12/lib/libc/sys/read.2 == --- stable/12/lib/libc/sys/read.2 Mon Jul 8 22:20:25 2019 (r349853) +++ stable/12/lib/libc/sys/read.2 Tue Jul 9 07:19:36 2019 (r349854) @@ -28,7 +28,7 @@ .\" @(#)read.2 8.4 (Berkeley) 2/26/94 .\" $FreeBSD$ .\" -.Dd December 1, 2017 +.Dd July 6, 2019 .Dt READ 2 .Os .Sh NAME @@ -128,6 +128,25 @@ return the number of bytes actually read and placed in The system guarantees to read the number of bytes requested if the descriptor references a normal file that has that many bytes left before the end-of-file, but in no other case. +.Pp +In accordance with +.St -p1003.1-2004 , +both +.Xr read 2 +and +.Xr write 2 +syscalls are atomic with respect to each other in the effects on file +content, when they operate on regular files. +If two threads each call one of the +.Xr read 2 +or +.Xr write 2 , +syscalls, each call will see either all of the changes of the other call, +or none of them. +The +.Fx +kernel implements this guarantee by locking the file ranges affected by +the calls. .Sh RETURN VALUES If successful, the number of bytes actually read is returned. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"