From noreply at github.com Mon Nov 9 15:47:27 2020 From: noreply at github.com (Lucas Holt) Date: Mon, 09 Nov 2020 12:47:27 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] a62a7c: Switch to midnightbsd. Message-ID: Branch: refs/heads/stable/2.0 Home: https://github.com/MidnightBSD/src Commit: a62a7c71024b58aa4f25eeecd3d435e777544c85 https://github.com/MidnightBSD/src/commit/a62a7c71024b58aa4f25eeecd3d435e777544c85 Author: Lucas Holt Date: 2020-11-09 (Mon, 09 Nov 2020) Changed paths: M stand/common/disk.c M stand/common/part.c M stand/common/part.h M stand/i386/boot0/boot0.S Log Message: ----------- Switch to midnightbsd. Commit: 76e5024d21200301b658d30fd6d8e7d6e7b47b99 https://github.com/MidnightBSD/src/commit/76e5024d21200301b658d30fd6d8e7d6e7b47b99 Author: Lucas Holt Date: 2020-11-09 (Mon, 09 Nov 2020) Changed paths: M stand/libsa/zfs/zfs.c Log Message: ----------- add midnightbsd partitions Compare: https://github.com/MidnightBSD/src/compare/668e157fc0f9...76e5024d2120 From noreply at github.com Mon Nov 9 21:12:10 2020 From: noreply at github.com (Lucas Holt) Date: Mon, 09 Nov 2020 18:12:10 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] Message-ID: Branch: refs/tags/2.0 Home: https://github.com/MidnightBSD/src From noreply at github.com Thu Nov 12 11:47:41 2020 From: noreply at github.com (Lucas Holt) Date: Thu, 12 Nov 2020 08:47:41 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] f12d58: regen fat files, add some midnightbsd support to efi Message-ID: Branch: refs/heads/stable/2.0 Home: https://github.com/MidnightBSD/src Commit: f12d5850c6cd9063870ae9988e10d7d6bef6faaf https://github.com/MidnightBSD/src/commit/f12d5850c6cd9063870ae9988e10d7d6bef6faaf Author: Lucas Holt Date: 2020-11-12 (Thu, 12 Nov 2020) Changed paths: M stand/efi/boot1/Makefile.fat M stand/efi/boot1/boot1.c M stand/efi/boot1/fat-amd64.tmpl.xz M stand/efi/boot1/fat-arm.tmpl.xz M stand/efi/boot1/fat-arm64.tmpl.xz M stand/efi/boot1/fat-i386.tmpl.xz M stand/efi/include/efi.h M stand/efi/libefi/efienv.c M stand/efi/libefi/env.c Log Message: ----------- regen fat files, add some midnightbsd support to efi From noreply at github.com Fri Nov 13 00:07:22 2020 From: noreply at github.com (Lucas Holt) Date: Thu, 12 Nov 2020 21:07:22 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] b6fee6: adjust some name/version Message-ID: Branch: refs/heads/stable/2.0 Home: https://github.com/MidnightBSD/src Commit: b6fee60954644f6ab4fd218d7740c0c9e7132fbd https://github.com/MidnightBSD/src/commit/b6fee60954644f6ab4fd218d7740c0c9e7132fbd Author: Lucas Holt Date: 2020-11-13 (Fri, 13 Nov 2020) Changed paths: M stand/common/interp_forth.c M stand/common/newvers.sh M stand/common/part.c Log Message: ----------- adjust some name/version From noreply at github.com Fri Nov 13 00:45:52 2020 From: noreply at github.com (Lucas Holt) Date: Thu, 12 Nov 2020 21:45:52 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] cb86cf: Rework building release isos Message-ID: Branch: refs/heads/stable/2.0 Home: https://github.com/MidnightBSD/src Commit: cb86cf4a60432600dbd0fd43e1a0d5f6fc3b837c https://github.com/MidnightBSD/src/commit/cb86cf4a60432600dbd0fd43e1a0d5f6fc3b837c Author: Lucas Holt Date: 2020-11-13 (Fri, 13 Nov 2020) Changed paths: M release/Makefile M release/Makefile.gce M release/amd64/make-memstick.sh R release/amd64/make-uefi-memstick.sh R release/amd64/mkisoimages-uefi.sh M release/amd64/mkisoimages.sh M release/i386/make-memstick.sh M release/i386/mkisoimages.sh R release/ia64/ia64.conf R release/ia64/make-memstick.sh R release/ia64/mkisoimages.sh R release/pc98/mkisoimages.sh R release/sparc64/mkisoimages.sh R release/sparc64/sparc64.conf M stand/efi/boot1/fat-amd64.tmpl.xz M stand/efi/boot1/fat-arm.tmpl.xz M stand/efi/boot1/fat-arm64.tmpl.xz M stand/efi/boot1/fat-i386.tmpl.xz Log Message: ----------- Rework building release isos From noreply at github.com Fri Nov 13 17:03:31 2020 From: noreply at github.com (Lucas Holt) Date: Fri, 13 Nov 2020 14:03:31 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 0aebfe: Update mkimg(1) Message-ID: Branch: refs/heads/stable/2.0 Home: https://github.com/MidnightBSD/src Commit: 0aebfebe9eb0102a30284a4d28a3fa6b5e80799b https://github.com/MidnightBSD/src/commit/0aebfebe9eb0102a30284a4d28a3fa6b5e80799b Author: Lucas Holt Date: 2020-11-13 (Fri, 13 Nov 2020) Changed paths: M usr.bin/mkimg/Makefile M usr.bin/mkimg/apm.c M usr.bin/mkimg/bsd.c M usr.bin/mkimg/ebr.c A usr.bin/mkimg/endian.h M usr.bin/mkimg/format.c M usr.bin/mkimg/format.h M usr.bin/mkimg/gpt.c M usr.bin/mkimg/image.c M usr.bin/mkimg/image.h M usr.bin/mkimg/mbr.c M usr.bin/mkimg/mkimg.1 M usr.bin/mkimg/mkimg.c M usr.bin/mkimg/mkimg.h M usr.bin/mkimg/pc98.c M usr.bin/mkimg/qcow.c M usr.bin/mkimg/raw.c M usr.bin/mkimg/scheme.c M usr.bin/mkimg/scheme.h A usr.bin/mkimg/uuid.c M usr.bin/mkimg/vhd.c M usr.bin/mkimg/vmdk.c M usr.bin/mkimg/vtoc8.c Log Message: ----------- Update mkimg(1) From noreply at github.com Fri Nov 13 19:10:48 2020 From: noreply at github.com (Lucas Holt) Date: Fri, 13 Nov 2020 16:10:48 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 02531f: fix the mirror select Message-ID: Branch: refs/heads/stable/2.0 Home: https://github.com/MidnightBSD/src Commit: 02531f4556e39bc146502941220848b543d4ff7b https://github.com/MidnightBSD/src/commit/02531f4556e39bc146502941220848b543d4ff7b Author: Lucas Holt Date: 2020-11-13 (Fri, 13 Nov 2020) Changed paths: M release/scripts/box.ovf M usr.sbin/bsdinstall/scripts/mirrorselect Log Message: ----------- fix the mirror select From noreply at github.com Fri Nov 13 19:14:24 2020 From: noreply at github.com (Lucas Holt) Date: Fri, 13 Nov 2020 16:14:24 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 1a5f32: Update the OS version. Message-ID: Branch: refs/heads/stable/2.0 Home: https://github.com/MidnightBSD/src Commit: 1a5f32be979cd446ebb0e54879bb91c1f1d1abdf https://github.com/MidnightBSD/src/commit/1a5f32be979cd446ebb0e54879bb91c1f1d1abdf Author: Lucas Holt Date: 2020-11-13 (Fri, 13 Nov 2020) Changed paths: M sys/conf/newvers.sh M sys/sys/param.h Log Message: ----------- Update the OS version. From noreply at github.com Sat Nov 14 13:39:25 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 10:39:25 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] eaaa69: Switch to midnightbsd. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: eaaa698a7f88d7ce513c3226ed2ed1ef85a0b130 https://github.com/MidnightBSD/src/commit/eaaa698a7f88d7ce513c3226ed2ed1ef85a0b130 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M stand/common/disk.c M stand/common/part.c M stand/common/part.h M stand/i386/boot0/boot0.S Log Message: ----------- Switch to midnightbsd. Commit: f784bab4916e1d1f2119cbf9067d87cbed9904ca https://github.com/MidnightBSD/src/commit/f784bab4916e1d1f2119cbf9067d87cbed9904ca Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M stand/libsa/zfs/zfs.c Log Message: ----------- add midnightbsd partitions Commit: a48167a192565cc88c3988a3400c2f1b02d67621 https://github.com/MidnightBSD/src/commit/a48167a192565cc88c3988a3400c2f1b02d67621 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M stand/efi/boot1/Makefile.fat M stand/efi/boot1/boot1.c M stand/efi/boot1/fat-amd64.tmpl.xz M stand/efi/boot1/fat-arm.tmpl.xz M stand/efi/boot1/fat-arm64.tmpl.xz M stand/efi/boot1/fat-i386.tmpl.xz M stand/efi/include/efi.h M stand/efi/libefi/efienv.c M stand/efi/libefi/env.c Log Message: ----------- regen fat files, add some midnightbsd support to efi Commit: 7db5f219225c85ccc29c18e1d942868ee58088b1 https://github.com/MidnightBSD/src/commit/7db5f219225c85ccc29c18e1d942868ee58088b1 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M stand/common/interp_forth.c M stand/common/newvers.sh M stand/common/part.c Log Message: ----------- adjust some name/version Commit: 9051a94c23bdce7f7796f9baec02dbbd8d418fa2 https://github.com/MidnightBSD/src/commit/9051a94c23bdce7f7796f9baec02dbbd8d418fa2 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M release/Makefile M release/Makefile.gce M release/amd64/make-memstick.sh R release/amd64/make-uefi-memstick.sh R release/amd64/mkisoimages-uefi.sh M release/amd64/mkisoimages.sh M release/i386/make-memstick.sh M release/i386/mkisoimages.sh R release/ia64/ia64.conf R release/ia64/make-memstick.sh R release/ia64/mkisoimages.sh R release/pc98/mkisoimages.sh R release/sparc64/mkisoimages.sh R release/sparc64/sparc64.conf M stand/efi/boot1/fat-amd64.tmpl.xz M stand/efi/boot1/fat-arm.tmpl.xz M stand/efi/boot1/fat-arm64.tmpl.xz M stand/efi/boot1/fat-i386.tmpl.xz Log Message: ----------- Rework building release isos Commit: e610a026f4c4c30dc93753e7170a9c89b5550047 https://github.com/MidnightBSD/src/commit/e610a026f4c4c30dc93753e7170a9c89b5550047 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M usr.bin/mkimg/Makefile M usr.bin/mkimg/apm.c M usr.bin/mkimg/bsd.c M usr.bin/mkimg/ebr.c A usr.bin/mkimg/endian.h M usr.bin/mkimg/format.c M usr.bin/mkimg/format.h M usr.bin/mkimg/gpt.c M usr.bin/mkimg/image.c M usr.bin/mkimg/image.h M usr.bin/mkimg/mbr.c M usr.bin/mkimg/mkimg.1 M usr.bin/mkimg/mkimg.c M usr.bin/mkimg/mkimg.h M usr.bin/mkimg/pc98.c M usr.bin/mkimg/qcow.c M usr.bin/mkimg/raw.c M usr.bin/mkimg/scheme.c M usr.bin/mkimg/scheme.h A usr.bin/mkimg/uuid.c M usr.bin/mkimg/vhd.c M usr.bin/mkimg/vmdk.c M usr.bin/mkimg/vtoc8.c Log Message: ----------- Update mkimg(1) Commit: 5071f5086416aed8fb2360fda46ba30412361893 https://github.com/MidnightBSD/src/commit/5071f5086416aed8fb2360fda46ba30412361893 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M release/scripts/box.ovf M usr.sbin/bsdinstall/scripts/mirrorselect Log Message: ----------- fix the mirror select Commit: 8b24d1a4c3a6d9b93ab61a074776b2b10e753ba2 https://github.com/MidnightBSD/src/commit/8b24d1a4c3a6d9b93ab61a074776b2b10e753ba2 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/conf/newvers.sh M sys/sys/param.h Log Message: ----------- Update the OS version. Compare: https://github.com/MidnightBSD/src/compare/11a311f076bc...8b24d1a4c3a6 From noreply at github.com Sat Nov 14 13:58:27 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 10:58:27 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 670b03: Make sure the VNET is properly set when reaping mb... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 670b03a9fda667b85ac7e12f7869590f316e34cd https://github.com/MidnightBSD/src/commit/670b03a9fda667b85ac7e12f7869590f316e34cd Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c Log Message: ----------- Make sure the VNET is properly set when reaping mbufs in ipoib. Else the following panic may happen: panic() icmp_error() ipoib_cm_mb_reap() linux_work_fn() taskqueue_run_locked() taskqueue_thread_loop() fork_exit() fork_trampoline() from FreeBSD: Andreas Kempe r356633 Commit: 0f2c23d14d83b3e293e7cf642b124617c3827aa5 https://github.com/MidnightBSD/src/commit/0f2c23d14d83b3e293e7cf642b124617c3827aa5 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/dev/usb/serial/uslcom.c Log Message: ----------- add Bitron Video AV2010/10 ZigBee USB Stick Commit: 5c7dfd3f2888bbe2751f8683f7d8077b00eaaf71 https://github.com/MidnightBSD/src/commit/5c7dfd3f2888bbe2751f8683f7d8077b00eaaf71 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M release/Makefile M release/Makefile.gce M release/amd64/make-memstick.sh R release/amd64/make-uefi-memstick.sh R release/amd64/mkisoimages-uefi.sh M release/amd64/mkisoimages.sh M release/i386/make-memstick.sh M release/i386/mkisoimages.sh R release/ia64/ia64.conf R release/ia64/make-memstick.sh R release/ia64/mkisoimages.sh R release/pc98/mkisoimages.sh M release/scripts/box.ovf R release/sparc64/mkisoimages.sh R release/sparc64/sparc64.conf M stand/common/disk.c M stand/common/interp_forth.c M stand/common/newvers.sh M stand/common/part.c M stand/common/part.h M stand/efi/boot1/Makefile.fat M stand/efi/boot1/boot1.c M stand/efi/boot1/fat-amd64.tmpl.xz M stand/efi/boot1/fat-arm.tmpl.xz M stand/efi/boot1/fat-arm64.tmpl.xz M stand/efi/boot1/fat-i386.tmpl.xz M stand/efi/include/efi.h M stand/efi/libefi/efienv.c M stand/efi/libefi/env.c M stand/i386/boot0/boot0.S M stand/libsa/zfs/zfs.c M sys/conf/newvers.sh M sys/sys/param.h M usr.bin/mkimg/Makefile M usr.bin/mkimg/apm.c M usr.bin/mkimg/bsd.c M usr.bin/mkimg/ebr.c A usr.bin/mkimg/endian.h M usr.bin/mkimg/format.c M usr.bin/mkimg/format.h M usr.bin/mkimg/gpt.c M usr.bin/mkimg/image.c M usr.bin/mkimg/image.h M usr.bin/mkimg/mbr.c M usr.bin/mkimg/mkimg.1 M usr.bin/mkimg/mkimg.c M usr.bin/mkimg/mkimg.h M usr.bin/mkimg/pc98.c M usr.bin/mkimg/qcow.c M usr.bin/mkimg/raw.c M usr.bin/mkimg/scheme.c M usr.bin/mkimg/scheme.h A usr.bin/mkimg/uuid.c M usr.bin/mkimg/vhd.c M usr.bin/mkimg/vmdk.c M usr.bin/mkimg/vtoc8.c M usr.sbin/bsdinstall/scripts/mirrorselect Log Message: ----------- Merge branch 'master' of ssh://github.com/midnightbsd/src into master Compare: https://github.com/MidnightBSD/src/compare/8b24d1a4c3a6...5c7dfd3f2888 From noreply at github.com Sat Nov 14 14:01:25 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:01:25 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] a8c5e3: Give USB template SYSUNINIT()'s a uniq name to avo... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: a8c5e329c697d1f30bb098dd3d42d0931f15b241 https://github.com/MidnightBSD/src/commit/a8c5e329c697d1f30bb098dd3d42d0931f15b241 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/dev/usb/template/usb_template_audio.c M sys/dev/usb/template/usb_template_cdce.c M sys/dev/usb/template/usb_template_kbd.c M sys/dev/usb/template/usb_template_midi.c M sys/dev/usb/template/usb_template_modem.c M sys/dev/usb/template/usb_template_mouse.c M sys/dev/usb/template/usb_template_msc.c M sys/dev/usb/template/usb_template_mtp.c M sys/dev/usb/template/usb_template_phone.c M sys/dev/usb/template/usb_template_serialnet.c Log Message: ----------- Give USB template SYSUNINIT()'s a uniq name to avoid symbol name collision when building stand/usb. From noreply at github.com Sat Nov 14 14:02:30 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:02:30 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 677ab6: Implement mmget_not_zero() in the LinuxKPI. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 677ab6b11fb5ac9d830bb183c3d06e6a00aeebea https://github.com/MidnightBSD/src/commit/677ab6b11fb5ac9d830bb183c3d06e6a00aeebea Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/compat/linuxkpi/common/include/linux/mm_types.h Log Message: ----------- Implement mmget_not_zero() in the LinuxKPI. From noreply at github.com Sat Nov 14 14:05:12 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:05:12 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 57ff3a: tests: Test for an epair panic Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 57ff3a78f8448921ebc658e1275f5238385b90e7 https://github.com/MidnightBSD/src/commit/57ff3a78f8448921ebc658e1275f5238385b90e7 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M tests/sys/net/Makefile A tests/sys/net/if_epair.c Log Message: ----------- tests: Test for an epair panic if_epair abused the ifr_data field to insert its second interface in IFC_IFLIST. If userspace provides a value for ifr_data it would get dereferenced by the kernel leading to a panic. From noreply at github.com Sat Nov 14 14:34:16 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:34:16 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 269811: Provide support for fdevname(3) on linuxkpi-backed... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 269811f052f69172bbfed34df518fe0cccd94166 https://github.com/MidnightBSD/src/commit/269811f052f69172bbfed34df518fe0cccd94166 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/compat/linuxkpi/common/src/linux_compat.c Log Message: ----------- Provide support for fdevname(3) on linuxkpi-backed devices. From noreply at github.com Sat Nov 14 14:37:04 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:37:04 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] dfc41d: update libarchive test files Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: dfc41d06a96c2244377733dbbf010b29274da954 https://github.com/MidnightBSD/src/commit/dfc41d06a96c2244377733dbbf010b29274da954 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M contrib/libarchive/cat/test/list.h M contrib/libarchive/cpio/test/list.h M contrib/libarchive/libarchive/test/list.h M contrib/libarchive/tar/test/list.h Log Message: ----------- update libarchive test files Commit: 5f321a8c177811ea9c66f339f64cca10cdac4e97 https://github.com/MidnightBSD/src/commit/5f321a8c177811ea9c66f339f64cca10cdac4e97 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: R contrib/perl/Configure.orig R contrib/perl/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm.orig R contrib/perl/cpan/ExtUtils-MakeMaker/t/INST_PREFIX.t.orig R contrib/perl/hints/freebsd.sh.orig Log Message: ----------- remove some old files that shouldn't have been committed Compare: https://github.com/MidnightBSD/src/compare/269811f052f6...5f321a8c1778 From noreply at github.com Sat Nov 14 14:42:22 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:42:22 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 847479: remove the tmpfile of the backup bundle on the hap... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 847479343ff3be543b13551f5ba671d045e876c4 https://github.com/MidnightBSD/src/commit/847479343ff3be543b13551f5ba671d045e876c4 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M lib/libmport/bundle_read_update_pkg.c Log Message: ----------- remove the tmpfile of the backup bundle on the happy path that we restore ok From noreply at github.com Sat Nov 14 14:44:03 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:44:03 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 7aabfd: Save lower root vnode in nullfs mnt data instead o... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 7aabfd6511df8c410d2eb50a46c5341e5fc25f34 https://github.com/MidnightBSD/src/commit/7aabfd6511df8c410d2eb50a46c5341e5fc25f34 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/fs/nullfs/null.h M sys/fs/nullfs/null_subr.c M sys/fs/nullfs/null_vfsops.c Log Message: ----------- Save lower root vnode in nullfs mnt data instead of upper. From noreply at github.com Sat Nov 14 14:52:47 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:52:47 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 1e64fa: fix the following -Werror warning from clang 10.0.... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 1e64fa20e1eec4cd20074759bcf73d9d39607435 https://github.com/MidnightBSD/src/commit/1e64fa20e1eec4cd20074759bcf73d9d39607435 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c Log Message: ----------- fix the following -Werror warning from clang 10.0.0 in bsnmpd: usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c:1235:43: error: overlapping comparisons always evaluate to true [-Werror,-Wtautological-overlap-compare] begemotBridgeStpPortEnable_enabled || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ Work around it by casting the enum values to the type of val->v.integer. Commit: 9614a5bd8f448ce142782e13814ef9ac733fc890 https://github.com/MidnightBSD/src/commit/9614a5bd8f448ce142782e13814ef9ac733fc890 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c Log Message: ----------- Fix the following -Werror warning from clang 10.0.0 in bsnmpd: usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c:1661:4: error: misleading indentation; statement is not part of the previous 'else' [-Werror,-Wmisleading-indentation] return (-1); ^ usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c:1658:5: note: previous statement is here } else ^ The intent was to group the return statement with the previous syslog() call. Compare: https://github.com/MidnightBSD/src/compare/7aabfd6511df...9614a5bd8f44 From noreply at github.com Sat Nov 14 14:54:12 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:54:12 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 3c5232: Disable new clang 10.0.0 warnings about converting... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 3c5232206f77ab1122653f15f9f04cb316ade55e https://github.com/MidnightBSD/src/commit/3c5232206f77ab1122653f15f9f04cb316ade55e Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/dev/tpm/tpm_crb.c Log Message: ----------- Disable new clang 10.0.0 warnings about converting the result of shift operations to a boolean in tpm(4): sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '<<' to a boolean; did you mean '(1 << (0)) != 0'? [-Werror,-Wint-in-bool-context] WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD); ^ sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD' ^ sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT' ^ Such warnings can be useful in C++ contexts, but not so much in kernel drivers, where this type of bit twiddling is commonplace. So disable it for this case. MFC r357366: Revert r357349, since the clang 10.0.0 warning was actually correct, and the ! operator should have been a ~ instead: Merge r357348 from the clang 10.0.0 import branch: Disable new clang 10.0.0 warnings about converting the result of shift operations to a boolean in tpm(4): sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '<<' to a boolean; did you mean '(1 << (0)) != 0'? [-Werror,-Wint-in-bool-context] WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD); ^ sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD' #define TPM_CRB_CTRL_CANCEL_CMD BIT(0) ^ sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT' #define BIT(x) (1 << (x)) ^ Such warnings can be useful in C++ contexts, but not so much in kernel drivers, where this type of bit twiddling is commonplace. So disable it for this case. Noticed by: cem MFC r357367: Fix new clang 10.0.0 warnings about converting the result of shift operations to a boolean in tpm(4): sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '<<' to a boolean; did you mean '(1 << (0)) != 0'? [-Werror,-Wint-in-bool-context] WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD); ^ sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD' #define TPM_CRB_CTRL_CANCEL_CMD BIT(0) ^ sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT' #define BIT(x) (1 << (x)) ^ In this case, the intent was to clear the zeroth bit, and leave the rest unaffected. Therefore, the ~ operator should be used instead. Noticed by: cem MFC r357388: Amend r357367 by using register values from the TPM datasheet. As Ian Lepore noted, writing ~1 to a register might have a completely different effect than doing a regular read-modify-write operation. Follow the TCG_PC_Client_Platform_TPM_Profile_PTP_2.0_r1.03_v22 datasheet instead, and use the actual values mentioned there: (uint32_t)1 to cancel the command, (uint32_t)0 to clear the field. MFC r357391 (by kib): Fix build. Obtained from: FreeBSD From noreply at github.com Sat Nov 14 14:55:33 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:55:33 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] afe729: Fix build when WITHOUT_WPA_SUPPLICANT_EAPOL option... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: afe729b6ede93ee7cf0ad82370fcb90fb231bfc5 https://github.com/MidnightBSD/src/commit/afe729b6ede93ee7cf0ad82370fcb90fb231bfc5 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M usr.sbin/wpa/wpa_supplicant/Makefile Log Message: ----------- Fix build when WITHOUT_WPA_SUPPLICANT_EAPOL option used. The build failure was discoved by Michael Dexter's recent Build Options Survey run, at https://callfortesting.org/results/bos-2020-01-16/\ WITHOUT_WPA_SUPPLICANT_EAPOL-small.txt. From noreply at github.com Sat Nov 14 14:57:27 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:57:27 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 9870ad: cleanup duplicates Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 9870add78978a77a62e035cec83ce2fa5a1cd797 https://github.com/MidnightBSD/src/commit/9870add78978a77a62e035cec83ce2fa5a1cd797 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M tools/build/mk/OptionalObsoleteFiles.inc Log Message: ----------- cleanup duplicates From noreply at github.com Sat Nov 14 14:58:15 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:58:15 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 32b13a: When MK_CASPER=no is set remove files which are ... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 32b13a4759ef3154bbdfb6b111c604d550099ee6 https://github.com/MidnightBSD/src/commit/32b13a4759ef3154bbdfb6b111c604d550099ee6 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M tools/build/mk/OptionalObsoleteFiles.inc Log Message: ----------- When MK_CASPER=no is set remove files which are not needed to run system. From noreply at github.com Sat Nov 14 14:59:37 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 11:59:37 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] aa036d: pseudofs: don't do VEXEC check in VOP_CACHEDLOOKUP Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: aa036d5b36c44652c0c1da7b7f70062d84981dd1 https://github.com/MidnightBSD/src/commit/aa036d5b36c44652c0c1da7b7f70062d84981dd1 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c M sys/fs/pseudofs/pseudofs_vnops.c Log Message: ----------- pseudofs: don't do VEXEC check in VOP_CACHEDLOOKUP VOP_CACHEDLOOKUP should assume that the appropriate VEXEC check has been done in the caller (vfs_cache_lookup), so it does not belong here. zfs: light refactor to indicate cachedlookup in zfs_lookup If we come from VOP_CACHEDLOOKUP, we must skip the VEXEC check as it will have been done in the caller (vfs_cache_lookup). This is a part of D23247, which may skip the earlier VEXEC check as well if the root fd was opened with O_SEARCH. This one required slightly more work as zfs_lookup may also be called indirectly as VOP_LOOKUP or a couple of other places where we must do the check. Obtained from: FreeBSD From noreply at github.com Sat Nov 14 15:00:33 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 12:00:33 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 845c99: Update freebsd compatibility version Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 845c9961258b93d1620b9eb06e5ce37342669af2 https://github.com/MidnightBSD/src/commit/845c9961258b93d1620b9eb06e5ce37342669af2 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/sys/param.h Log Message: ----------- Update freebsd compatibility version From noreply at github.com Sat Nov 14 15:04:45 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 12:04:45 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 01ceaf: Implement ACPI CPU support when Processor object i... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 01ceaf83f1d81a624fdb784ff6b981e6baaff1ab https://github.com/MidnightBSD/src/commit/01ceaf83f1d81a624fdb784ff6b981e6baaff1ab Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/dev/acpica/acpi_cpu.c Log Message: ----------- Implement ACPI CPU support when Processor object is not present By the ACPI standard (ACPI 5 chapter 8.4 Declaring Processors) Processors can be implemented in 2 distinct ways: * Through a Processor object type (which provides P_BLK) * Through a Device object type AMD Epyc / Poweredge systems we are testing both implement the latter only. Add the missing support. Because P_BLK is not defined in the device object case, C-states entering must be completely controlled via _CST methods rather than P_LVL2/3. From noreply at github.com Sat Nov 14 15:06:25 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 12:06:25 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 2a6afb: Generally, it's preferred that an application fork... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 2a6afb875b031f652455ab7f3ec6fafbb9652eb4 https://github.com/MidnightBSD/src/commit/2a6afb875b031f652455ab7f3ec6fafbb9652eb4 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/fs/devfs/devfs_vnops.c M sys/kern/tty.c Log Message: ----------- Generally, it's preferred that an application fork/setsid if it doesn't want to keep its controlling TTY, but it could be that a debugger is trying to steal it instead -- so it would hook in, drop the controlling TTY, then do some magic to set things up again. In this case, TIOCNOTTY is quite handy and still respected by at least OpenBSD, NetBSD, and Linux as far as I can tell. I've dropped the note about obsoletion, as I intend to support TIOCNOTTY as long as it doesn't impose a major burden. Obtained from: FreeBSD From noreply at github.com Sat Nov 14 15:07:35 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 12:07:35 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 9ed91c: psm: release resources on attach failure Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 9ed91c033a8fcccb8fa3d5c5635cbfd5495a7ce6 https://github.com/MidnightBSD/src/commit/9ed91c033a8fcccb8fa3d5c5635cbfd5495a7ce6 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/dev/atkbdc/psm.c Log Message: ----------- psm: release resources on attach failure In exactly 1/3 cases we'll release resources on failure; touch up the other two to do so as well. psm: use make_dev_s instead of make_dev This most importantly reduces duplication, but it also removes any potential race with usage of dev->si_drv1 since it's now set prior to the device being constructed enough to be accessible. From noreply at github.com Sat Nov 14 15:10:12 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 12:10:12 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 5da1c7: Provide O_SEARCH Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 5da1c7223bfb6f03313299f0bd8e3f57796a8e4d https://github.com/MidnightBSD/src/commit/5da1c7223bfb6f03313299f0bd8e3f57796a8e4d Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c M sys/fs/devfs/devfs_vnops.c M sys/fs/fuse/fuse_vnops.c M sys/fs/nfsclient/nfs_clvnops.c M sys/fs/smbfs/smbfs_vnops.c M sys/fs/tmpfs/tmpfs_vnops.c M sys/kern/vfs_cache.c M sys/kern/vfs_lookup.c M sys/kern/vfs_subr.c M sys/sys/fcntl.h M sys/sys/namei.h M sys/sys/vnode.h Log Message: ----------- Provide O_SEARCH O_SEARCH is defined by POSIX [0] to open a directory for searching, skipping permissions checks on the directory itself after the initial open(). This is close to the semantics we've historically applied for O_EXEC on a directory, which is UB according to POSIX. Conveniently, O_SEARCH on a file is also explicitly undefined behavior according to POSIX, so O_EXEC would be a fine choice. The spec goes on to state that O_SEARCH and O_EXEC need not be distinct values, but they're not defined to be the same value. This was pointed out as an incompatibility with other systems that had made its way into libarchive, which had assumed that O_EXEC was an alias for O_SEARCH. This defines compatibility O_SEARCH/FSEARCH (equivalent to O_EXEC and FEXEC respectively) and expands our UB for O_EXEC on a directory. O_EXEC on a directory is checked in vn_open_vnode already, so for completeness we add a NOEXECCHECK when O_SEARCH has been specified on the top-level fd and do not re-check that when descending in namei. From noreply at github.com Sat Nov 14 15:12:52 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 12:12:52 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 2e63ff: split MAIL env var out into a "mail" capability Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 2e63ff5f8e52cc28175620dac3acedbf32834d7f https://github.com/MidnightBSD/src/commit/2e63ff5f8e52cc28175620dac3acedbf32834d7f Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M etc/login.conf Log Message: ----------- split MAIL env var out into a "mail" capability This allows it to be easily suppressed in, e.g., the "daemon" class where it will not be properly expanded. From noreply at github.com Sat Nov 14 15:14:54 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 12:14:54 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 6c3cd2: Currently the installer will tag geliboot partitio... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 6c3cd24fee382b87656b41bc5b225d4f904594f2 https://github.com/MidnightBSD/src/commit/6c3cd24fee382b87656b41bc5b225d4f904594f2 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/geom/eli/g_eli.c Log Message: ----------- Currently the installer will tag geliboot partitions with both BOOT and GELIBOOT; the former allows the kernel to taste it at boot, while the latter is what loaders keys off of. However, it seems reasonable to assume that if a provider's been tagged with GELIBOOT that the kernel should also take that as a hint to taste/attach at boot. This would allow us to stop tagging GELIBOOT partitions with BOOT in bsdinstall, but I'm not sure that there's a compelling reason to do so any time soon. From noreply at github.com Sat Nov 14 15:16:00 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 12:16:00 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 54c965: pf: limit ioctl to a reasonable and tuneable numbe... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 54c965b94abad0ad4bb6670507463412b3a96b95 https://github.com/MidnightBSD/src/commit/54c965b94abad0ad4bb6670507463412b3a96b95 Author: Lucas Holt Date: 2020-11-14 (Sat, 14 Nov 2020) Changed paths: M sys/netpfil/pf/pf.c M sys/netpfil/pf/pf_ioctl.c Log Message: ----------- pf: limit ioctl to a reasonable and tuneable number of elements pf ioctls frequently take a variable number of elements as argument. This can potentially allow users to request very large allocations. These will fail, but even a failing M_NOWAIT might tie up resources and result in concurrent M_WAITOK allocations entering vm_wait and inducing reclamation of caches. Limit these ioctls to what should be a reasonable value, but allow users to tune it should they need to. From noreply at github.com Sun Nov 15 01:09:54 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:09:54 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 219cc1: The previous expression borked if a username had a... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 219cc18ae0c44515dfc383c8c7227a54ed2bba0c https://github.com/MidnightBSD/src/commit/219cc18ae0c44515dfc383c8c7227a54ed2bba0c Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M etc/periodic/daily/200.backup-passwd Log Message: ----------- The previous expression borked if a username had a plus or hyphen in it. This is needlessly restrictive- at leSt a hyphen in the middle is valid. Instead of playing this game, let's just assume the username can't contain a colon and mask out the second field. Obtained from: freebsd From noreply at github.com Sun Nov 15 01:11:18 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:11:18 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 8ecb4e: linux futex_put(): do not touch futex after droppi... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 8ecb4e0ddc41ec98f4c1a137738acf4685f0114f https://github.com/MidnightBSD/src/commit/8ecb4e0ddc41ec98f4c1a137738acf4685f0114f Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/compat/linux/linux_futex.c Log Message: ----------- linux futex_put(): do not touch futex after dropping our reference. From noreply at github.com Sun Nov 15 01:13:45 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:13:45 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 417787: Clean up obsolete sysctl descriptions Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 417787b8aa7e4329b083ecb3c5c183c2a136531c https://github.com/MidnightBSD/src/commit/417787b8aa7e4329b083ecb3c5c183c2a136531c Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/netmap/netmap_kern.h Log Message: ----------- Clean up obsolete sysctl descriptions Commit: a34f53c861f2e1d7387adfb93f7221f5b7014ea5 https://github.com/MidnightBSD/src/commit/a34f53c861f2e1d7387adfb93f7221f5b7014ea5 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/mlx5/driver.h M sys/dev/mlx5/mlx5_core/mlx5_eq.c M sys/dev/mlx5/mlx5_core/mlx5_main.c Log Message: ----------- Add support for disabling and polling MSIX interrupts in mlx5core. Obtained from: FreeBSD Compare: https://github.com/MidnightBSD/src/compare/8ecb4e0ddc41...a34f53c861f2 From noreply at github.com Sun Nov 15 01:14:55 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:14:55 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 408862: Add USB host controller PCI IDs for Hygon. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 408862b30c202b5a14532ff878b7007b8f2d1c92 https://github.com/MidnightBSD/src/commit/408862b30c202b5a14532ff878b7007b8f2d1c92 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/controller/ehci_pci.c M sys/dev/usb/controller/ohci_pci.c M sys/dev/usb/controller/xhci_pci.c Log Message: ----------- Add USB host controller PCI IDs for Hygon. From noreply at github.com Sun Nov 15 01:15:46 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:15:46 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 95436d: Define the XHCI endpoint states. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 95436dfaa1d08eff5c29f9ae699cfd082e32e01f https://github.com/MidnightBSD/src/commit/95436dfaa1d08eff5c29f9ae699cfd082e32e01f Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/controller/xhci.h Log Message: ----------- Define the XHCI endpoint states. From noreply at github.com Sun Nov 15 01:17:08 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:17:08 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 4d2c33: Fix a crash in the NFSv4 server. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 4d2c33d1429fc81b92b50f79b13499cc941e1180 https://github.com/MidnightBSD/src/commit/4d2c33d1429fc81b92b50f79b13499cc941e1180 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/fs/nfsserver/nfs_nfsdstate.c Log Message: ----------- Fix a crash in the NFSv4 server. From noreply at github.com Sun Nov 15 01:18:51 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:18:51 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 53efa7: Disable new clang 10.0.0 warnings about misleading... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 53efa7d3f52c17eb9ba83551e39276906227ec75 https://github.com/MidnightBSD/src/commit/53efa7d3f52c17eb9ba83551e39276906227ec75 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/conf/files.i386 M sys/conf/kern.mk M sys/modules/ce/Makefile M sys/modules/cp/Makefile Log Message: ----------- Disable new clang 10.0.0 warnings about misleading indentation in ce(4) and cp(4). From noreply at github.com Sun Nov 15 01:20:11 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:20:11 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] ffdead: sys/dev/hptmv/ioctl.c:240:4: error: misleading ind... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: ffdeadf97712efd78bc3e9f2da9a2aa39f5f3bce https://github.com/MidnightBSD/src/commit/ffdeadf97712efd78bc3e9f2da9a2aa39f5f3bce Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/hptmv/ioctl.c Log Message: ----------- sys/dev/hptmv/ioctl.c:240:4: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] _vbus_p=pArray->pVBus; ^ sys/dev/hptmv/ioctl.c:237:10: note: previous statement is here if(!mIsArray(pArray)) ^ This is because the return statement after the if statement was not indented. (Note that this file has been idented assuming 4-space tabs.) From noreply at github.com Sun Nov 15 01:23:20 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:23:20 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] be7dcb: fix typo Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: be7dcb58705c238a7aaf89f61329c0a7a3101d53 https://github.com/MidnightBSD/src/commit/be7dcb58705c238a7aaf89f61329c0a7a3101d53 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/pci/pcireg.h Log Message: ----------- fix typo Commit: a3c4de95e8df26df7dec78e34cb97ce00d415219 https://github.com/MidnightBSD/src/commit/a3c4de95e8df26df7dec78e34cb97ce00d415219 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M usr.sbin/pciconf/cap.c Log Message: ----------- pciconf: List names of all known extended PCIe capabilities. Compare: https://github.com/MidnightBSD/src/compare/ffdeadf97712...a3c4de95e8df From noreply at github.com Sun Nov 15 01:27:31 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:27:31 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] be7cc2: Add Hygon PCI ID and description for AHCI SATA con... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: be7cc27964073fb35a36b03c660df60f4e9027c7 https://github.com/MidnightBSD/src/commit/be7cc27964073fb35a36b03c660df60f4e9027c7 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/ahci/ahci_pci.c Log Message: ----------- Add Hygon PCI ID and description for AHCI SATA controller. From noreply at github.com Sun Nov 15 01:28:25 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:28:25 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] cc2630: u_char -> vm_prot_t in a couple of places Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: cc2630e7e8fb2fe0cea09f327194a5897142401f https://github.com/MidnightBSD/src/commit/cc2630e7e8fb2fe0cea09f327194a5897142401f Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/kern/kern_descrip.c M sys/kern/sys_capability.c M sys/sys/capsicum.h M sys/sys/file.h Log Message: ----------- u_char -> vm_prot_t in a couple of places From noreply at github.com Sun Nov 15 01:29:14 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:29:14 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 0ea49d: correct check for gcc >= 5.0 Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 0ea49d19c9987ae5628557c061fb2d873c7dd38b https://github.com/MidnightBSD/src/commit/0ea49d19c9987ae5628557c061fb2d873c7dd38b Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M contrib/ncurses/ncurses/base/MKlib_gen.sh Log Message: ----------- correct check for gcc >= 5.0 From noreply at github.com Sun Nov 15 01:32:12 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:32:12 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] e9a8e3: consider changes to capabilities.conf Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: e9a8e3bb07b0f1bbb0f12f68a3309887bb3b3a79 https://github.com/MidnightBSD/src/commit/e9a8e3bb07b0f1bbb0f12f68a3309887bb3b3a79 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/kern/Makefile Log Message: ----------- consider changes to capabilities.conf From noreply at github.com Sun Nov 15 01:35:01 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:35:01 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 9e95f6: Fix translation of the PrintScreen/SysRq and Pause... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 9e95f6c17abdbf141098f0e4573029b984031e37 https://github.com/MidnightBSD/src/commit/9e95f6c17abdbf141098f0e4573029b984031e37 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/input/ukbd.c Log Message: ----------- Fix translation of the PrintScreen/SysRq and Pause/Break keys. Almost everything was broken. The cases that I noticed were Ctrl-PrintScreen not being mapped to the virtual scancode 0x5c (debug) and Pause not being mapped to the physical/virtual scancode 0x46 (slock). These keys are the most complicated ones due to kludges to give some compatibility back to before AT keyboards. Alt-PrintScreen must pretend to be a separate key from PrintScreen even at the "raw" level. The (unique) usb code for it is 0x8a and we just have to map this to our unique virtual scancode 0x54, but we mapped it first to the internal code 0x7e and then to 0x79 which is a key on the Japanese 106/109 keyboard. This fix is under the UKBD_EMULATE_ATASCANCODE option which shouldn't be used for non-AT keyboards. If it is, then the syscons Japanese keymaps have nothing of importance for code 0x79 and can easily be changed. 0x54 is also unimportant in Japanese and US keymaps. NonAlt-PrintScreen and NonCtl-Pause/Break had many much larger bugs with smaller compatibility problems from fixing them. The details are too ugly to give here. Summary of the changed (hex) codes: K_RAW PrintScreen (Ctl, Shift, Ctl-Shift): E0-2A-E0-37 -> E0-37 K_RAW Alt-PrintScreen (all shift states): 79 -> 54 K_RAW Pause/Break (unshifted, Shift, Alt, Alt-Shift)): E0-46 -> E1-1D-45 K_CODE ALT-PrintScreen (all shift states): 79 -> 54 That is 15 of 32 shift combinations for 2 keys fixed, with 8 easy cases from the 79 -> 54 remapping. The difference is only large and with no workaround using a keymap for for K_RAW, but this affects other modes when ukbd is layered under kbmux because kbmux keeps all subdevices in K_RAW mode and translates. Oops. I used kbdmux to generate the above table of changes. Obtained from: FreeBSD Commit: 82477fd3b04bf1336ca89a5698e843cdee3cc735 https://github.com/MidnightBSD/src/commit/82477fd3b04bf1336ca89a5698e843cdee3cc735 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/input/ukbd.c Log Message: ----------- Further fixes for translation of PrintScreen/SysRq. The previous fix was tested mainly on 3 AT keyboards with USB adaptors where it works. 1 USB keyboard doesn't translate Alt-PrintScreen, so the software has to do it. Reorganize a little to share some code and to not translate the unusual usb scan code0x8a unless an Alt modified is set. Remove redundant check of Alt modifiers. Translation now more clearly filters out Alt-PrintScreen before the check. The table of errors fixed in the previous commit had many bugs. Correct table: K_RAW Ctl-PrintScreen: E0-2A-E0-37 -> E0-37 K_RAW Alt-PrintScreen (with 4 comb. of Ctl/Shift): 79 -> 54 K_RAW Pause/Break (with 4 comb. of Alt/Shift): E0-46 -> E1-1D-45 K_CODE PrintScreen (with 4 comb. of Ctl/Shift): 54 -> 5c K_CODE Alt-PrintScreen (with 4 comb. of Ctl/Shift): 7e -> 54 K_CODE Pause/Break (with 8 comb. of Ctl/Alt/Shift): 6c -> 68 That is 25 of 32 shift combinations for 2 keys fixed. All 16 combinations were broken for K_CODE and thus also for K_XLATE. Obtained from: FreeBSD Compare: https://github.com/MidnightBSD/src/compare/e9a8e3bb07b0...82477fd3b04b From noreply at github.com Sun Nov 15 01:35:56 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:35:56 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] e5858e: Fix key delay and repeat, part 1. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: e5858e1979e08b468b50070abb70e829ec7aae2e https://github.com/MidnightBSD/src/commit/e5858e1979e08b468b50070abb70e829ec7aae2e Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/input/ukbd.c Log Message: ----------- Fix key delay and repeat, part 1. kbdcontrol -r fast is documented to give a non-emulated atkbd's fastest rate of 250.34, but is misimplemented to request this as 0.0. ukbd supports many nonstandard rates, although it is currently too inaccurate by a factor of several hundred for non-huge nonstandard rates to be useful. It mapped 0.0 to 200.0. A repeat delay of 0 means a rate of infinity which is quite fast, but physical constraints limit this to a few MHz and the inaccuracies made it almost usable. Convert 0.0 to the documented 250.34. Also convert negative args and small args to the 250.34 minimal ones, like atkbd does. This is for KDSETREPEAT -- the 2 versions of the deprecated KDSETRAD have bounds checking. Keep not doing any bounds checking or conversions for upper limits since nonstandard large delays are useful for testing. The inaccuracies are dependent on HZ and the timeout implementation. With the old timeout implementation and HZ = 1000, 200.0 probably worked better to emulate 250.34 than 250.34 itself. HZ = 100 gives roundoff errors that accidentally reduce the inaaccuracies, and event timers reduce the inaccuracies even more, so 200.0 was giving more like itself (perhaps 215.15 on average but sometimes close to 10 msec repeat which is noticebly too fast). This commit makes 0.0 noticeably too slow, like 250.34 always was. From noreply at github.com Sun Nov 15 01:36:40 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:36:40 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 2711ff: Fix key delay and repeat, part 2. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 2711ff93823722ac09f04425d6d4337752121d5e https://github.com/MidnightBSD/src/commit/2711ff93823722ac09f04425d6d4337752121d5e Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/input/ukbd.c Log Message: ----------- Fix key delay and repeat, part 2. Use sbintime_t timeouts with precision control to get very accurate timing. It costs little to always ask for about 1% accuracy, and the not so new event timer implementation usual delivers that, and when it can't it gets much closer than our previous coarse timeouts and buggy simple countdown. The 2 fastest atkbd repeat rates have periods 34 and 38 msec, and ukbd pretended to support rates in between these. This requires sub-microsecond precision and accuracy even to handle the 4 msec difference very well, but ukbd asked the timeout subsystem for timeouts of 25 msec and the buggy simple countdown of this gave a a wide range of precisions and accuracies depending on HZ and other timer configuration (sometimes better than 25 msec but usually more like 50 msec). We now ask for and usually get precision and accuracy of about 1% for each repeat and much better on average. The 1% accuracy is overkill. Rounding of 30 cps to 34 msec instead of 33 already gives an error of +2% instead of -1%, and ut AT keyboards on PS/2 interfaces have similar errors. A timeout is now scheduled for every keypress and release. This allows some simplifications that are not done. It allows removing the timeout scheduling for exiting polled mode where it was unsafe in ddb mode. This is done. Exiting polled mode had some problems with extra repeats. Now exiting polled mode lets an extra timeout fire and the state is fudged so that the timeout handler does very little. The sc->time_ms variable is unsigned to avoid overflow. Differences of it need to be signed. Signed comparisons were emulated by testing an emulated sign bits. This only works easily for '<' comparisonss, but we now need a '<=' comparison. Change the difference variable to signed and use a signed comparison. Using unsigned types here didn't prevent overflow bugs but just reduced them. Overflow occurs with n repeats at the silly repeat period of [U]INT_MAX / n. The old countdown had an off by 1 error, and the simplifications would simply count down 1 to 0 and not need to accumulate possibly-large repeat repeats. Obtained from: FreeBSD From noreply at github.com Sun Nov 15 01:37:35 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:37:35 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] e33e56: Improve USB gaming keyboard support. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: e33e56fd4fbfdb71fee36fe2b5d2175686921bb9 https://github.com/MidnightBSD/src/commit/e33e56fd4fbfdb71fee36fe2b5d2175686921bb9 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/input/ukbd.c Log Message: ----------- Improve USB gaming keyboard support. Add support for decoding pressed keys as a bitmap. The keys in the bitmap are described in the interface specific HID descriptor. Some keyboards even have multiple input interfaces, only using the bitmap method when the event array is full. That typically means when more than seven keys are pressed simultaneously. The internals of the USB keyboard driver have been slightly reworked to keep track of all keys in a single bitmap having 256 bits. This bitmap is then divided into blocks of 64-bits as an optimisation. Simplify automatic key repeat logic, because only the last key pressed can be repeated. Obtained from: FreeBSD From noreply at github.com Sun Nov 15 01:38:25 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:38:25 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 23ddf1: Disable new clang 10.0.0 warnings about misleading... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 23ddf14f4998fafbbe58e30450d6bca5b0a08733 https://github.com/MidnightBSD/src/commit/23ddf14f4998fafbbe58e30450d6bca5b0a08733 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/powerpc/conf/dpaa/files.dpaa Log Message: ----------- Disable new clang 10.0.0 warnings about misleading indentation in sys/contrib/ncsw/Peripherals/FM/fman_ncsw.c. This is horribly formatted contributed code, and fixing it is not worth the effort. From noreply at github.com Sun Nov 15 01:42:38 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:42:38 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 02b5c3: Use designated initializers for seminfo. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 02b5c3fb8f8836b6ff6d48651576325da7082f05 https://github.com/MidnightBSD/src/commit/02b5c3fb8f8836b6ff6d48651576325da7082f05 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/kern/sysv_sem.c Log Message: ----------- Use designated initializers for seminfo. Commit: 1acae1f19173f0b4d843b3403f76219c2647eb9a https://github.com/MidnightBSD/src/commit/1acae1f19173f0b4d843b3403f76219c2647eb9a Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/kern/sysv_sem.c Log Message: ----------- sem_remove(): add some asserts. Commit: dc88a33af74c53377814c3facf56082a8f095310 https://github.com/MidnightBSD/src/commit/dc88a33af74c53377814c3facf56082a8f095310 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/kern/sysv_sem.c Log Message: ----------- sem_remove(): fix the loop that compacts sem array on semaphores removal. Commit: a990ea3387e4cc22c70ce9dbab5c5522e97834c9 https://github.com/MidnightBSD/src/commit/a990ea3387e4cc22c70ce9dbab5c5522e97834c9 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/kern/sysv_sem.c Log Message: ----------- Fix build with INVARIANTS turned on. Compare: https://github.com/MidnightBSD/src/compare/23ddf14f4998...a990ea3387e4 From noreply at github.com Sun Nov 15 01:45:23 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:45:23 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 380913: cron(8): convert vfork() usage to fork() Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 3809135e4d23e9d2d77df83f1c0933a63b7c29a8 https://github.com/MidnightBSD/src/commit/3809135e4d23e9d2d77df83f1c0933a63b7c29a8 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M usr.sbin/cron/cron/compat.h M usr.sbin/cron/cron/do_command.c M usr.sbin/cron/cron/externs.h M usr.sbin/cron/cron/popen.c M usr.sbin/cron/lib/compat.c Log Message: ----------- cron(8): convert vfork() usage to fork() vfork() is error-prone, and the usage here definitely grew to not be clearly OK given vfork-semantics; e.g. setusercontext(3) within the child. Rip out vfork() and the rest of the references to it. fork is heavier, but it's unclear that the difference will be all that obvious. cron(8): rip out do_univ This was an old Dynix hack, the function is a NOP on BSD. We have no need to retain this; Dynix was discontinued long ago. Commit: 1d993dba44cec058e135c51271c5d0e4e695f7e7 https://github.com/MidnightBSD/src/commit/1d993dba44cec058e135c51271c5d0e4e695f7e7 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/net/ethernet.h Log Message: ----------- Ethernet: add some more Ethertypes. Add some types based on other BSDs and also add EtherCat, PROFINET, Powerlink and Sercos III which are IEC standards. There is a public list (CSV format) at: https://standards.ieee.org/products-services/regauth/ Spacing cleanups. No functional change. Compare: https://github.com/MidnightBSD/src/compare/a990ea3387e4...1d993dba44ce From noreply at github.com Sun Nov 15 01:46:37 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:46:37 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 25d3a5: Make sure the so-called end of receive interrupts ... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 25d3a59fd83bf3f996426496a3f3ade1201f2e2f https://github.com/MidnightBSD/src/commit/25d3a59fd83bf3f996426496a3f3ade1201f2e2f Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/net/iflib.c Log Message: ----------- Make sure the so-called end of receive interrupts don't starve in iflib. When the receive ring cannot be filled with mbufs, due to lack of memory, no more interrupts may be generated to fill the receive ring later on. Make sure to have a watchdog, to try refilling the receive ring from time to time, hopefully when more mbufs are available. From noreply at github.com Sun Nov 15 01:47:39 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:47:39 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] f66916: Fix kernel panic while trying to read multicast st... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: f669167e33ff4dfdcb8159b8f2e7ebc6878802e5 https://github.com/MidnightBSD/src/commit/f669167e33ff4dfdcb8159b8f2e7ebc6878802e5 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/net/netisr.c M sys/netinet/igmp.c M sys/netinet6/mld6.c Log Message: ----------- Fix kernel panic while trying to read multicast stream. When VIMAGE is enabled make sure the "m_pkthdr.rcvif" pointer is set for all mbufs being input by the IGMP/MLD6 code. Else there will be a NULL-pointer dereference in the netisr code when trying to set the VNET based on the incoming mbuf. Add an assert to catch this when queueing mbufs on a netisr to make debugging of similar cases easier. From noreply at github.com Sun Nov 15 01:48:31 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:48:31 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 7f2989: Fix broken MLX5_IB_INDEX() macro in mlx5ib(4). Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 7f2989a6c0069c8bc02c77949498220e2f34e139 https://github.com/MidnightBSD/src/commit/7f2989a6c0069c8bc02c77949498220e2f34e139 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/mlx5/mlx5_ib/mlx5_ib.h M sys/dev/mlx5/mlx5_ib/mlx5_ib_cong.c Log Message: ----------- Fix broken MLX5_IB_INDEX() macro in mlx5ib(4). The index should be computed as distance from arg[0] and not the beginning of struct mlx5_ib_congestion . While at it fix a use of zero length array to avoid depending on undefined compiler behaviour. From noreply at github.com Sun Nov 15 01:49:32 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:49:32 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] bcf0f1: Avoid extra taskq_dispatch() calls by DMU. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: bcf0f1b31843666930d3cb8a8ed01c5c976dcb3f https://github.com/MidnightBSD/src/commit/bcf0f1b31843666930d3cb8a8ed01c5c976dcb3f Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_objset.c M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/multilist.c M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/multilist.h Log Message: ----------- Avoid extra taskq_dispatch() calls by DMU. DMU sync code calls taskq_dispatch() for each sublist of os_dirty_dnodes and os_synced_dnodes. Since the number of sublists by default is equal to number of CPUs, it will dispatch equal, potentially large, number of tasks, waking up many CPUs to handle them, even if only one or few of sublists actually have any work to do. This change adds check for empty sublists to avoid this. From noreply at github.com Sun Nov 15 01:50:59 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:50:59 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 616d3e: Add more values for PCI capabilities, PCIe extende... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 616d3efac50dc383785391f0e405af9d7e6d148b https://github.com/MidnightBSD/src/commit/616d3efac50dc383785391f0e405af9d7e6d148b Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/pci/pcireg.h Log Message: ----------- Add more values for PCI capabilities, PCIe extended capabilities, and subclasses. From noreply at github.com Sun Nov 15 01:51:44 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:51:44 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 45d2b3: Print out some newly added PCIe extended capabilit... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 45d2b332a384767bf0f0483283f4e19a441909b9 https://github.com/MidnightBSD/src/commit/45d2b332a384767bf0f0483283f4e19a441909b9 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M usr.sbin/pciconf/cap.c M usr.sbin/pciconf/pciconf.c Log Message: ----------- Print out some newly added PCIe extended capabilities and subclasses. From noreply at github.com Sun Nov 15 01:53:32 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:53:32 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 7e58ba: Use hid_get_data_unsigned() instead of hid_get_dat... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 7e58babde6f0472a595a98395c246462d23fa875 https://github.com/MidnightBSD/src/commit/7e58babde6f0472a595a98395c246462d23fa875 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/input/ukbd.c Log Message: ----------- Use hid_get_data_unsigned() instead of hid_get_data() when reading the key-codes from the USB keyboard. Negative key-codes are currently skipped. While at it use the bit size value provided by the HID location structure instead of assuming a value of 8. From noreply at github.com Sun Nov 15 01:54:33 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:54:33 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 6d6210: Add a quirk for the WDC Green series of SSDs to di... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 6d62103303ed9a6f5b84b029d0ebee38af6b7829 https://github.com/MidnightBSD/src/commit/6d62103303ed9a6f5b84b029d0ebee38af6b7829 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/cam/ata/ata_da.c Log Message: ----------- Add a quirk for the WDC Green series of SSDs to disable NCQ TRIM, as this avoids silent data corruption. From noreply at github.com Sun Nov 15 01:57:15 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:57:15 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 95dd75: remove italy Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 95dd750ed9e06a5e723d7fa033fb593a59960c85 https://github.com/MidnightBSD/src/commit/95dd750ed9e06a5e723d7fa033fb593a59960c85 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M usr.sbin/bsdconfig/include/messages.subr Log Message: ----------- remove italy Commit: 2debc58b1e61aba8c602864b4e4787064737b425 https://github.com/MidnightBSD/src/commit/2debc58b1e61aba8c602864b4e4787064737b425 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/acpica/acpi_lid.c Log Message: ----------- Export the actual LID state via sysctl. This allows more complex policies about when to suspend based on other events happening AND the lid being closed through the use of clever devd or other scripts. Compare: https://github.com/MidnightBSD/src/compare/6d62103303ed...2debc58b1e61 From noreply at github.com Sun Nov 15 01:57:59 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:57:59 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] f7405f: Make sure the ACPI lid state is updated during boo... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: f7405f3c1659b66e4ee00ba72ac3cd3abbda0934 https://github.com/MidnightBSD/src/commit/f7405f3c1659b66e4ee00ba72ac3cd3abbda0934 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/acpica/acpi_lid.c Log Message: ----------- Make sure the ACPI lid state is updated during boot and after resume. While at it update the sysctl(9) description for the lid state. Always check return value from acpi_GetInteger(). If a failure happens reading the lid state, assume the lid is opened. From noreply at github.com Sun Nov 15 01:58:44 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:58:44 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] a3ede7: Clear up some comments and improve to panic messages. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: a3ede7a77d85d53e5df39cd8bf803cb7c6743f20 https://github.com/MidnightBSD/src/commit/a3ede7a77d85d53e5df39cd8bf803cb7c6743f20 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/netinet6/ip6_output.c Log Message: ----------- Clear up some comments and improve to panic messages. From noreply at github.com Sun Nov 15 01:59:31 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 22:59:31 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 7605d2: ip6_output: improve extension header handling Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 7605d21314edac5a2f3d260d8c0d6bc259dbf782 https://github.com/MidnightBSD/src/commit/7605d21314edac5a2f3d260d8c0d6bc259dbf782 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/netinet6/ip6_output.c Log Message: ----------- ip6_output: improve extension header handling Move IPv6 source address checks from after extension header heandling to the top of the function. If we do not pass these checks there is no reason to do a lot of work upfront. Fold extension header preparations and length calculations together into a single branch and macro rather than doing them sequentially. Likewise move extension header concatination into a single branch block only doing it if we recorded any extension header length length. From noreply at github.com Sun Nov 15 02:00:15 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:00:15 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 34ade9: initialize oifp to avoid bogus results/panics in e... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 34ade9084c7e53ca0e3a4f2f21848d34848e7d7e https://github.com/MidnightBSD/src/commit/34ade9084c7e53ca0e3a4f2f21848d34848e7d7e Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/netinet6/mld6.c Log Message: ----------- initialize oifp to avoid bogus results/panics in edge cases In certain cases (probably not during normal operation but observed in the lab during development) ip6_ouput() could return without error and ifpp (&oifp) not updated. Given oifp was never initialized we would take the later branch as oifp was not NULL, and when calling icmp6_ifstat_inc() we would panic dereferencing a garbage pointer. For code stability initialize oifp to NULL before first use to always have a deterministic value and not rely on a called function to behave and always and for ever do the work for us as we hope for. From noreply at github.com Sun Nov 15 02:01:00 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:01:00 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 74d261: Add Denverton UART PCI ID Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 74d2611fa576c3f33d490ebd5a4d82da46b22244 https://github.com/MidnightBSD/src/commit/74d2611fa576c3f33d490ebd5a4d82da46b22244 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/uart/uart_bus_pci.c Log Message: ----------- Add Denverton UART PCI ID From noreply at github.com Sun Nov 15 02:02:14 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:02:14 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] cfad94: Fix IPv6 checksums when exthdrs are present. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: cfad94e67cdc8db0937dd0c40544d780146f6661 https://github.com/MidnightBSD/src/commit/cfad94e67cdc8db0937dd0c40544d780146f6661 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/netinet6/ip6_output.c Log Message: ----------- Fix IPv6 checksums when exthdrs are present. In two places in ip6_output we are doing (delayed) checksum calculations. The initial logic came from SCTP in r205075,205104 and later I copied and adjusted it for the TCP|UDP case in r235958. The problem was that the original SCTP offsets were already wrong for any case with extension headers present given IPv6 extension headers are not part of the pseudo checksum calculations. The later changes do not help in case there is checksum offloading as for extension headers (incl. fragments) we do currrently never offload as we have no infrastructure to know whether the NIC can handle these cases. Correct the offsets for delayed checksum calculations and properly handle mbuf flags. In addition harmonize the almost identical duplicate code. While here eliminate the now unneeded variable hlen and add an always missing mtod() call in the 1-b and 3 cases after the introduction of the mb_unmapped_to_ext() calls. Obtained from: FreeBSD From noreply at github.com Sun Nov 15 02:03:09 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:03:09 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] c415da: Fix IBRS for machines with IBRS_ALL capability. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: c415da0c75f97908c58b389c32de14288275d7a1 https://github.com/MidnightBSD/src/commit/c415da0c75f97908c58b389c32de14288275d7a1 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/amd64/amd64/initcpu.c M sys/amd64/amd64/support.S M sys/dev/cpuctl/cpuctl.c M sys/x86/acpica/acpi_wakeup.c M sys/x86/include/x86_var.h M sys/x86/x86/cpu_machdep.c Log Message: ----------- Fix IBRS for machines with IBRS_ALL capability. From noreply at github.com Sun Nov 15 02:03:51 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:03:51 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 830d40: Fix the following -Werror warning from clang 10.0.0: Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 830d406c9e265b17a696a71b8e6ae1ce39db066b https://github.com/MidnightBSD/src/commit/830d406c9e265b17a696a71b8e6ae1ce39db066b Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/arm/arm/identcpu-v6.c Log Message: ----------- Fix the following -Werror warning from clang 10.0.0: sys/arm/arm/identcpu-v6.c:227:5: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] if (val & CPUV7_CT_CTYPE_RA) ^ sys/arm/arm/identcpu-v6.c:225:4: note: previous statement is here if (val & CPUV7_CT_CTYPE_WB) ^ This was due to an accidentally inserted tab before the if statement. From noreply at github.com Sun Nov 15 02:04:29 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:04:29 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 91d57e: When scn->scn_maxinflight_bytes has not been initi... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 91d57e1cd00c9d3ab09b0d0ca7f80dca4615e063 https://github.com/MidnightBSD/src/commit/91d57e1cd00c9d3ab09b0d0ca7f80dca4615e063 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c Log Message: ----------- When scn->scn_maxinflight_bytes has not been initialized it's possible to hang on the condition variable in scan_exec_io(). This issue was uncovered by ztest and is only possible when deduplication is enabled through the following call path. txg_sync_thread() spa_sync() ddt_sync_table() ddt_sync_entry() dsl_scan_ddt_entry() dsl_scan_scrub_cb() dsl_scan_enqueuei() scan_exec_io() cv_wait() Resolve the issue by always initializing scn_maxinflight_bytes to a reasonable minimum value. This value will be recalculated in dsl_scan_sync() to pick up changes to zfs_scan_vdev_limit and the addition/removal of vdevs. From noreply at github.com Sun Nov 15 02:05:09 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:05:09 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] f65e12: MFZoL: Fix 2 small bugs with cached dsl_scan_phys_t Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: f65e1270b6953295e3c33d51051cb59e215f30ac https://github.com/MidnightBSD/src/commit/f65e1270b6953295e3c33d51051cb59e215f30ac Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c Log Message: ----------- MFZoL: Fix 2 small bugs with cached dsl_scan_phys_t This patch corrects 2 small bugs where scn->scn_phys_cached was not properly updated to match the primary copy when it needed to be. The first resulted in the pause state not being properly updated and the second resulted in the cached version being completely zeroed even if the primary was not. From noreply at github.com Sun Nov 15 02:05:47 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:05:47 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 8b1893: MFZoL: Fix issue with scanning dedup blocks as sca... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 8b1893b1ecb09ba52e58871c04672f22e74da4d6 https://github.com/MidnightBSD/src/commit/8b1893b1ecb09ba52e58871c04672f22e74da4d6 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c Log Message: ----------- MFZoL: Fix issue with scanning dedup blocks as scan ends This patch fixes an issue discovered by ztest where dsl_scan_ddt_entry() could add I/Os to the dsl scan queues between when the scan had finished all required work and when the scan was marked as complete. This caused the scan to spin indefinitely without ending. From noreply at github.com Sun Nov 15 02:06:38 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:06:38 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] ae8197: MFZoL: Fix resilver writes in vdev_indirect_io_start Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: ae8197c23b6e631ef6ff3166da2abd7ce3b9797c https://github.com/MidnightBSD/src/commit/ae8197c23b6e631ef6ff3166da2abd7ce3b9797c Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_indirect.c Log Message: ----------- MFZoL: Fix resilver writes in vdev_indirect_io_start This patch addresses an issue found in ztest where resilver write zios that were passed to an indirect vdev would end up being handled as though they were resilver read zios. This caused issues where the zio->io_abd would be both read to and written from at the same time, causing asserts to fail. From noreply at github.com Sun Nov 15 02:07:18 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:07:18 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 3583d4: MFZoL: Relax restriction on zfs_ioc_next_obj() ite... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 3583d49105762ad4030433b81f03212be9c1544f https://github.com/MidnightBSD/src/commit/3583d49105762ad4030433b81f03212be9c1544f Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c Log Message: ----------- MFZoL: Relax restriction on zfs_ioc_next_obj() iteration Per the documentation for dnode_next_offset in dnode.c, the "txg" parameter specifies a lower bound on which transaction the dnode can be found in. We are interested in all dnodes that are removed between the first and last transaction in the snapshot. It doesn't need to be created in that snapshot to correspond to a removed file. In fact, the behavior of zfs diff in the test case exactly matches this: the transaction that created the data that was deleted in snapshot "2" was produced before, in snapshot "1", definitely predating the first transaction in snapshot "2". From noreply at github.com Sun Nov 15 02:11:16 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:11:16 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 04e2b0: #ifdef cleanup Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 04e2b02613ef4e02ce86506808e69b7e8f10529f https://github.com/MidnightBSD/src/commit/04e2b02613ef4e02ce86506808e69b7e8f10529f Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/contrib/ipfilter/netinet/ip_compat.h M sys/contrib/ipfilter/netinet/ip_fil.h M sys/contrib/ipfilter/netinet/ip_proxy.c M sys/contrib/ipfilter/netinet/ip_state.c M sys/contrib/ipfilter/netinet/ip_sync.c Log Message: ----------- #ifdef cleanup Commit: 1408e32034ec08c21930383dd96668c04ba1954d https://github.com/MidnightBSD/src/commit/1408e32034ec08c21930383dd96668c04ba1954d Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/contrib/ipfilter/netinet/ip_compat.h Log Message: ----------- Remove the now unused FREEBSD_GE_REV, FREEBSD_GT_REV, and FREEBSD_LT_REV macros. Commit: 313344ea880c23a1aab319adaf21d98c9b0a9a56 https://github.com/MidnightBSD/src/commit/313344ea880c23a1aab319adaf21d98c9b0a9a56 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/contrib/ipfilter/netinet/ip_compat.h M sys/contrib/ipfilter/netinet/ip_nat.c M sys/contrib/ipfilter/netinet/ip_sync.c Log Message: ----------- Retire macros: BSD_GE_YEAR BSD_GT_YEAR BSD_LT_YEAR Compare: https://github.com/MidnightBSD/src/compare/3583d4910576...313344ea880c From noreply at github.com Sun Nov 15 02:12:13 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:12:13 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] b1e98c: Restart the USB keyboard repeat timer at every val... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: b1e98cbdc56c8856aa2dded331b87a3be5812424 https://github.com/MidnightBSD/src/commit/b1e98cbdc56c8856aa2dded331b87a3be5812424 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/input/ukbd.c Log Message: ----------- Restart the USB keyboard repeat timer at every valid key-press. From noreply at github.com Sun Nov 15 02:13:02 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:13:02 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] d1b187: Extend the range of the return value from nsecs_to... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: d1b187f4848a10303beb5bd3ea1defeb375b3c4d https://github.com/MidnightBSD/src/commit/d1b187f4848a10303beb5bd3ea1defeb375b3c4d Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/compat/linuxkpi/common/include/linux/jiffies.h M sys/compat/linuxkpi/common/src/linux_compat.c Log Message: ----------- Extend the range of the return value from nsecs_to_jiffies64() to support Mesa's drm_syncobj usage, in the LinuxKPI. While at it optimise the jiffies conversion functions to avoid repeated and constant calculations. From noreply at github.com Sun Nov 15 02:13:44 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:13:44 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 89f9a5: Add Atom C3000 (Denverton) SMT PCI ID. Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 89f9a567dc963b753a526aadf36f2240306f45ac https://github.com/MidnightBSD/src/commit/89f9a567dc963b753a526aadf36f2240306f45ac Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/ismt/ismt.c Log Message: ----------- Add Atom C3000 (Denverton) SMT PCI ID. From noreply at github.com Sun Nov 15 02:14:45 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:14:45 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 2f5820: Don't send an uninitialised traffic class in the I... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 2f58201ffddabdf3b2a32b7bbabffc59c461f9db https://github.com/MidnightBSD/src/commit/2f58201ffddabdf3b2a32b7bbabffc59c461f9db Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/netinet/tcp_syncache.c Log Message: ----------- Don't send an uninitialised traffic class in the IPv6 header, when sending a TCP segment from the TCP SYN cache (like a SYN-ACK). This fix initialises it to zero. This is correct for the ECN bits, but is does not honor the DSCP what an application might have set via the IPPROTO_IPV6 level socket options IPV6_TCLASS. That will be fixed separately. From noreply at github.com Sun Nov 15 02:18:03 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:18:03 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 6bcb23: add MIPS-specific PT header ELF definitions Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 6bcb234b752e09b0c1bec899147502665eb4dcc2 https://github.com/MidnightBSD/src/commit/6bcb234b752e09b0c1bec899147502665eb4dcc2 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/sys/elf_common.h Log Message: ----------- add MIPS-specific PT header ELF definitions Commit: 23b5e51e2b7b950b0c3fef96442b6defc4c58994 https://github.com/MidnightBSD/src/commit/23b5e51e2b7b950b0c3fef96442b6defc4c58994 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/netpfil/pf/pf_ioctl.c Log Message: ----------- Avoid potential structure padding leak. Commit: 129ad4c730bfcfd589d26a2a7f944210503c8f29 https://github.com/MidnightBSD/src/commit/129ad4c730bfcfd589d26a2a7f944210503c8f29 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/netpfil/pf/pf_ioctl.c Log Message: ----------- Avoid potential structure padding leak Compare: https://github.com/MidnightBSD/src/compare/2f58201ffdda...129ad4c730bf From noreply at github.com Sun Nov 15 02:21:43 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:21:43 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 416362: Add deprecation notices to ctau and cx drivers Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 4163628bbccab24122079eb9549ea573565b1d1d https://github.com/MidnightBSD/src/commit/4163628bbccab24122079eb9549ea573565b1d1d Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/ctau/if_ct.c M sys/dev/cx/if_cx.c Log Message: ----------- Add deprecation notices to ctau and cx drivers Commit: 528d7a4bf9b20d49a7295201b2f12b5367a0b4bc https://github.com/MidnightBSD/src/commit/528d7a4bf9b20d49a7295201b2f12b5367a0b4bc Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c Log Message: ----------- Increase number of write completion threads, matching ZoL. Our iSCSI benchmarks on a large 80-core system show that previous limit of 8 threads can be a bottleneck. At some points this change increases write IOPS by as much as 50% Commit: 3fb8f7dcc4602236b528ec5b0eb7dce22e6d6121 https://github.com/MidnightBSD/src/commit/3fb8f7dcc4602236b528ec5b0eb7dce22e6d6121 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/controller/xhci.c M sys/dev/usb/usb_hub.c Log Message: ----------- Remove the power bit from the super speed root hub port status register because it clobbers the super speed link status when a device is in super speed mode. Currently the power bit is not needed for anything in the USB hub driver. This fixes USB warm reset for super speed devices. Commit: 2c447b5db296a544058c88d8c93337909ab4cdfe https://github.com/MidnightBSD/src/commit/2c447b5db296a544058c88d8c93337909ab4cdfe Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/sound/pcm/dsp.c M sys/dev/sound/pcm/mixer.c M sys/dev/sound/pcm/sound.c M sys/dev/sound/pcm/sound.h Log Message: ----------- Implement a detaching flag for the sound(4) subsystem to take appropriate actions when we are trying to detach an audio device, but cannot because someone is using it. This avoids applications having to wait for the DSP read data timeout before they receive any error indication. Tested with virtual_oss(8). Remove some unused definitions while at it. Compare: https://github.com/MidnightBSD/src/compare/129ad4c730bf...2c447b5db296 From noreply at github.com Sun Nov 15 02:22:57 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:22:57 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 884670: When closing a LinuxKPI file always use the real r... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 8846706ff39772cf66e3f64c67d2727dc9e314e1 https://github.com/MidnightBSD/src/commit/8846706ff39772cf66e3f64c67d2727dc9e314e1 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/compat/linuxkpi/common/src/linux_compat.c Log Message: ----------- When closing a LinuxKPI file always use the real release function to avoid resource leakage when destroying a LinuxKPI character device. Commit: 34f53390e6578b63261f40c4b97f9f1b66b0de50 https://github.com/MidnightBSD/src/commit/34f53390e6578b63261f40c4b97f9f1b66b0de50 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/acpica/acpi_button.c M sys/dev/acpica/acpi_lid.c Log Message: ----------- Expose the ACPI power button, sleep button and LID state as evdev's. This allows libinput to disable touchpads when the lid is closed and various desktop environments can show power-off dialogs when the power button is pressed. While the latter is doable with devd a cross-platform solution is nicer. Compare: https://github.com/MidnightBSD/src/compare/2c447b5db296...34f53390e657 From noreply at github.com Sun Nov 15 02:27:36 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:27:36 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 572441: do a service update Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 57244186bbb3d4b3952f0a7997151728126723a2 https://github.com/MidnightBSD/src/commit/57244186bbb3d4b3952f0a7997151728126723a2 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M etc/services Log Message: ----------- do a service update Commit: e815c6dc5ddc599c54d3afbb0bfbb8e2bbc01985 https://github.com/MidnightBSD/src/commit/e815c6dc5ddc599c54d3afbb0bfbb8e2bbc01985 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c Log Message: ----------- style(9) Commit: e8cf7f3a0cece1471d57cae004b4920751e94d5b https://github.com/MidnightBSD/src/commit/e8cf7f3a0cece1471d57cae004b4920751e94d5b Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/sys/kernel.h Log Message: ----------- Define more subsystem orders. Intended for use with module_init_order() in the LinuxKPI. Commit: 48d757cd8d6947f8a004e2fdde060480dc526aac https://github.com/MidnightBSD/src/commit/48d757cd8d6947f8a004e2fdde060480dc526aac Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/compat/linux/linux_ioctl.c M sys/compat/linux/linux_ioctl.h Log Message: ----------- Add support for the device statistics IOCTL Compare: https://github.com/MidnightBSD/src/compare/34f53390e657...48d757cd8d69 From noreply at github.com Sun Nov 15 02:30:30 2020 From: noreply at github.com (Lucas Holt) Date: Sat, 14 Nov 2020 23:30:30 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] 1c4db5: If the USB frame length is set to 1024 bytes, WMT_... Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: 1c4db596c3f59ae165e536376b5cbad28ffef15a https://github.com/MidnightBSD/src/commit/1c4db596c3f59ae165e536376b5cbad28ffef15a Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M sys/dev/usb/input/wmt.c Log Message: ----------- If the USB frame length is set to 1024 bytes, WMT_BSIZE, the EETI controller will pack multiple touch events in the packet and the current code will only process the first touch event. As a result some important events are lost like releasing the finger from the touchscreen. Use the maximal input report size as buffer size instead. From noreply at github.com Sun Nov 15 12:59:53 2020 From: noreply at github.com (Lucas Holt) Date: Sun, 15 Nov 2020 09:59:53 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] Message-ID: Branch: refs/tags/2.0.1 Home: https://github.com/MidnightBSD/src From noreply at github.com Sun Nov 15 16:29:59 2020 From: noreply at github.com (Lucas Holt) Date: Sun, 15 Nov 2020 13:29:59 -0800 Subject: [Midnightbsd-cvs] [MidnightBSD/src] ed4553: fix the zfs data set for mports Message-ID: Branch: refs/heads/master Home: https://github.com/MidnightBSD/src Commit: ed4553df26e71e67fa3e2d2310a6bd57302a2072 https://github.com/MidnightBSD/src/commit/ed4553df26e71e67fa3e2d2310a6bd57302a2072 Author: Lucas Holt Date: 2020-11-15 (Sun, 15 Nov 2020) Changed paths: M usr.sbin/bsdinstall/scripts/zfsboot Log Message: ----------- fix the zfs data set for mports