CVS commit: src/distrib/utils/embedded/files
Module Name:src Committed By: mlelstv Date: Sat Feb 18 07:58:35 UTC 2023 Modified Files: src/distrib/utils/embedded/files: resize_disklabel Log Message: Handle arbitrary raw partitions. Fetch geometry from disklabel to be consistent. Use disktab format instead of the normal human-readable output for parsing the disklabel. Avoid overflows in size computation. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/distrib/utils/embedded/files/resize_disklabel Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/utils/embedded/files/resize_disklabel diff -u src/distrib/utils/embedded/files/resize_disklabel:1.3 src/distrib/utils/embedded/files/resize_disklabel:1.4 --- src/distrib/utils/embedded/files/resize_disklabel:1.3 Sat Oct 6 09:58:55 2018 +++ src/distrib/utils/embedded/files/resize_disklabel Sat Feb 18 07:58:34 2023 @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: resize_disklabel,v 1.3 2018/10/06 09:58:55 jmcneill Exp $ +# $NetBSD: resize_disklabel,v 1.4 2023/02/18 07:58:34 mlelstv Exp $ # # PROVIDE: resize_disklabel @@ -16,25 +16,35 @@ stop_cmd=":" get_rawpart() { + local partno + partno=$(/sbin/sysctl -n kern.rawpartition) - test $partno = 2 && echo c || echo d + printf "$(printf %o $((partno + 97)))" } get_total_sectors() { + local disk + disk=$1 - /sbin/drvctl -p $disk disk-info/geometry/sectors-per-unit + /sbin/disklabel -t "$disk" \ + | sed -ne 's/.*:su#\([0-9]*\):.*/\1/p' } get_rawpart_sectors() { + local disk rawpart + disk=$1 rawpart=$2 - /sbin/disklabel $disk | grep "^ $rawpart:" | awk '{ print $2; }' + /sbin/disklabel -t "$disk" \ + | sed -ne 's/.*:p'"$rawpart"'#\([0-9]*\):.*/\1/p' } grow_mbrpart() { + local disk rawpart ts rs oldsize newsize + disk=$1 rawpart=$(get_rawpart) @@ -44,21 +54,23 @@ grow_mbrpart() return fi - ts=$(($(get_total_sectors $disk) - ${PART1START})) + ts=$((${DLSIZE} - ${PART1START})) rs=${PART1SIZE} if [ "$ts" = "$rs" ]; then return fi - oldsize=$(($rs * 512 / 1024 / 1024)) - newsize=$(($ts * 512 / 1024 / 1024)) + oldsize=$(($rs / 2048)) + newsize=$(($ts / 2048)) echo "Growing $disk MBR partition #1 (${oldsize}MB -> ${newsize}MB)" /sbin/fdisk -f -u -1 -s 169/${PART1START}/${ts} ${disk} } grow_disklabel() { + local disk part rawpart ts rs oldsize newsize + disk=$1 part=$2 rawpart=$(get_rawpart) @@ -70,8 +82,8 @@ grow_disklabel() return fi - oldsize=$(($rs * 512 / 1024 / 1024)) - newsize=$(($ts * 512 / 1024 / 1024)) + oldsize=$(($rs / 2048)) + newsize=$(($ts / 2048)) echo "Growing $disk disklabel (${oldsize}MB -> ${newsize}MB)" printf "A\ny\n$part\n\n\n\$\nc\n\n\n\$\nd\n\n\n\$\nW\ny\nQ\n" | \ disklabel -i $disk >/dev/null
CVS commit: src/distrib/utils/embedded/files
Module Name:src Committed By: mlelstv Date: Sat Feb 18 07:58:35 UTC 2023 Modified Files: src/distrib/utils/embedded/files: resize_disklabel Log Message: Handle arbitrary raw partitions. Fetch geometry from disklabel to be consistent. Use disktab format instead of the normal human-readable output for parsing the disklabel. Avoid overflows in size computation. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/distrib/utils/embedded/files/resize_disklabel Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/etc/rc.d
Module Name:src Committed By: mlelstv Date: Sat Feb 18 07:51:52 UTC 2023 Modified Files: src/etc/rc.d: iscsid_volumes Log Message: Handle missing auth file. Skip empty lines. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/etc/rc.d/iscsid_volumes Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/etc/rc.d
Module Name:src Committed By: mlelstv Date: Sat Feb 18 07:51:52 UTC 2023 Modified Files: src/etc/rc.d: iscsid_volumes Log Message: Handle missing auth file. Skip empty lines. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/etc/rc.d/iscsid_volumes Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/etc/rc.d/iscsid_volumes diff -u src/etc/rc.d/iscsid_volumes:1.2 src/etc/rc.d/iscsid_volumes:1.3 --- src/etc/rc.d/iscsid_volumes:1.2 Mon Feb 6 11:53:03 2023 +++ src/etc/rc.d/iscsid_volumes Sat Feb 18 07:51:52 2023 @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: iscsid_volumes,v 1.2 2023/02/06 11:53:03 martin Exp $ +# $NetBSD: iscsid_volumes,v 1.3 2023/02/18 07:51:52 mlelstv Exp $ # # PROVIDE: iscsid_volumes @@ -20,7 +20,7 @@ iscsid_volumes_start() while read host target digest auth user alias; do case $host in - \#*) ;; + \#*|"") ;; *) topts='' case $digest in @@ -33,13 +33,15 @@ iscsid_volumes_start() pass="-" mpass="-" - while read entry dummy; do -case $entry in -\#*) ;; -"$user":*) pass=${entry#*:} ;; -"$target":*) mpass=${entry#*:} ;; -esac - done < /etc/iscsi/auths + if [ -f /etc/iscsi/auths ]; then +while read entry dummy; do + case $entry in + \#*|"") ;; + "$user":*) pass=${entry#*:} ;; + "$target":*) mpass=${entry#*:} ;; + esac +done < /etc/iscsi/auths + fi case $host in *:*) @@ -82,7 +84,7 @@ iscsid_volumes_stop() while read host target digest auth user alias; do case $host in - \#*) ;; + \#*|"") ;; *) echo "Remove target ${alias:-$target}"
CVS commit: src/sys/modules/hdafg
Module Name:src Committed By: mrg Date: Sat Feb 18 05:25:59 UTC 2023 Modified Files: src/sys/modules/hdafg: Makefile Log Message: the HDAUDIO_ENABLE_HDMI option is obsolete. don't define here.. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/modules/hdafg/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/modules/hdafg/Makefile diff -u src/sys/modules/hdafg/Makefile:1.7 src/sys/modules/hdafg/Makefile:1.8 --- src/sys/modules/hdafg/Makefile:1.7 Sun Feb 17 04:05:49 2019 +++ src/sys/modules/hdafg/Makefile Sat Feb 18 05:25:59 2023 @@ -1,14 +1,10 @@ -# $NetBSD: Makefile,v 1.7 2019/02/17 04:05:49 rin Exp $ +# $NetBSD: Makefile,v 1.8 2023/02/18 05:25:59 mrg Exp $ .include "../Makefile.inc" .include "${.CURDIR}/Makefile.inc" KMOD= hdafg -# For non-rump modules, enable HDMI audio - -CPPFLAGS+= -DHDAUDIO_ENABLE_HDMI - WARNS= 3 .include
CVS commit: src/sys/modules/hdafg
Module Name:src Committed By: mrg Date: Sat Feb 18 05:25:59 UTC 2023 Modified Files: src/sys/modules/hdafg: Makefile Log Message: the HDAUDIO_ENABLE_HDMI option is obsolete. don't define here.. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/modules/hdafg/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/usb
Module Name:src Committed By: riastradh Date: Fri Feb 17 23:44:18 UTC 2023 Modified Files: src/sys/dev/usb: ucom.c Log Message: ucom(4): Missed a spot in previous -- nix now-unused local. To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136 src/sys/dev/usb/ucom.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/usb/ucom.c diff -u src/sys/dev/usb/ucom.c:1.135 src/sys/dev/usb/ucom.c:1.136 --- src/sys/dev/usb/ucom.c:1.135 Fri Feb 17 23:38:54 2023 +++ src/sys/dev/usb/ucom.c Fri Feb 17 23:44:18 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: ucom.c,v 1.135 2023/02/17 23:38:54 riastradh Exp $ */ +/* $NetBSD: ucom.c,v 1.136 2023/02/17 23:44:18 riastradh Exp $ */ /* * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.135 2023/02/17 23:38:54 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.136 2023/02/17 23:44:18 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -1435,7 +1435,6 @@ static void ucomreadcb(struct usbd_xfer *xfer, void *p, usbd_status status) { struct ucom_softc *sc = (struct ucom_softc *)p; - struct tty *tp = sc->sc_tty; struct ucom_buffer *ub; uint32_t cc; u_char *cp;
CVS commit: src/sys/dev/usb
Module Name:src Committed By: riastradh Date: Fri Feb 17 23:44:18 UTC 2023 Modified Files: src/sys/dev/usb: ucom.c Log Message: ucom(4): Missed a spot in previous -- nix now-unused local. To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136 src/sys/dev/usb/ucom.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/usb
Module Name:src Committed By: riastradh Date: Fri Feb 17 23:38:55 UTC 2023 Modified Files: src/sys/dev/usb: ucom.c Log Message: ucom(4): Nix broken error branch. This error branch was introduced to make the system act, when a USB serial adapter is yanked, as if the other end had spat out a line feed in an attempt to wake any sleeping readers so they will stop using the USB serial port. This is no longer necessary, because ttycancel will wake them anyway, and it is actually harmful because it puts stuff in the output queue (CR LF) that will never be processed, causing subsequent users to hang trying to open the device. Problem found and patch tested by tih@. To generate a diff of this commit: cvs rdiff -u -r1.134 -r1.135 src/sys/dev/usb/ucom.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/usb
Module Name:src Committed By: riastradh Date: Fri Feb 17 23:38:55 UTC 2023 Modified Files: src/sys/dev/usb: ucom.c Log Message: ucom(4): Nix broken error branch. This error branch was introduced to make the system act, when a USB serial adapter is yanked, as if the other end had spat out a line feed in an attempt to wake any sleeping readers so they will stop using the USB serial port. This is no longer necessary, because ttycancel will wake them anyway, and it is actually harmful because it puts stuff in the output queue (CR LF) that will never be processed, causing subsequent users to hang trying to open the device. Problem found and patch tested by tih@. To generate a diff of this commit: cvs rdiff -u -r1.134 -r1.135 src/sys/dev/usb/ucom.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/usb/ucom.c diff -u src/sys/dev/usb/ucom.c:1.134 src/sys/dev/usb/ucom.c:1.135 --- src/sys/dev/usb/ucom.c:1.134 Wed Oct 26 23:48:43 2022 +++ src/sys/dev/usb/ucom.c Fri Feb 17 23:38:54 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: ucom.c,v 1.134 2022/10/26 23:48:43 riastradh Exp $ */ +/* $NetBSD: ucom.c,v 1.135 2023/02/17 23:38:54 riastradh Exp $ */ /* * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.134 2022/10/26 23:48:43 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.135 2023/02/17 23:38:54 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -1446,18 +1446,8 @@ ucomreadcb(struct usbd_xfer *xfer, void if (status == USBD_CANCELLED || status == USBD_IOERROR || sc->sc_closing) { - DPRINTF("... done (status %jd closing %jd)", status, sc->sc_closing, 0, 0); - - if (status == USBD_IOERROR || sc->sc_closing) { - /* Send something to wake upper layer */ - (tp->t_linesw->l_rint)('\n', tp); - ttylock(tp); /* XXX */ - ttwakeup(tp); - ttyunlock(tp); /* XXX */ - } - mutex_exit(>sc_lock); return; }
CVS commit: src/sys/kern
Module Name:src Committed By: riastradh Date: Fri Feb 17 23:13:01 UTC 2023 Modified Files: src/sys/kern: tty.c Log Message: ttycheckoutq(9): wait is always 0. Assert it; prune dead branches. There appear to have been no callers with wait=1 since NetBSD 1.0 from a cursory search. Let's nix the parameter altogether on the next kernel revbump. This logic is probably broken anyway in the presence of ttycancel, which is necessary for, e.g., yanking USB serial adapters. To generate a diff of this commit: cvs rdiff -u -r1.307 -r1.308 src/sys/kern/tty.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/kern/tty.c diff -u src/sys/kern/tty.c:1.307 src/sys/kern/tty.c:1.308 --- src/sys/kern/tty.c:1.307 Wed Oct 26 23:41:49 2022 +++ src/sys/kern/tty.c Fri Feb 17 23:13:01 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: tty.c,v 1.307 2022/10/26 23:41:49 riastradh Exp $ */ +/* $NetBSD: tty.c,v 1.308 2023/02/17 23:13:01 riastradh Exp $ */ /*- * Copyright (c) 2008, 2020 The NetBSD Foundation, Inc. @@ -63,7 +63,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.307 2022/10/26 23:41:49 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.308 2023/02/17 23:13:01 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_compat_netbsd.h" @@ -2195,19 +2195,17 @@ ttread(struct tty *tp, struct uio *uio, static int ttycheckoutq_wlock(struct tty *tp, int wait) { - int hiwat, error; + int hiwat; KASSERT(mutex_owned(_lock)); + KASSERT(wait == 0); + hiwat = tp->t_hiwat; if (tp->t_outq.c_cc > hiwat + 200) - while (tp->t_outq.c_cc > hiwat) { + if (tp->t_outq.c_cc > hiwat) { ttstart(tp); - if (wait == 0) -return (0); - error = ttysleep(tp, >t_outcv, true, hz); - if (error == EINTR) -wait = 0; + return (0); } return (1);
CVS commit: src/sys/kern
Module Name:src Committed By: riastradh Date: Fri Feb 17 23:13:01 UTC 2023 Modified Files: src/sys/kern: tty.c Log Message: ttycheckoutq(9): wait is always 0. Assert it; prune dead branches. There appear to have been no callers with wait=1 since NetBSD 1.0 from a cursory search. Let's nix the parameter altogether on the next kernel revbump. This logic is probably broken anyway in the presence of ttycancel, which is necessary for, e.g., yanking USB serial adapters. To generate a diff of this commit: cvs rdiff -u -r1.307 -r1.308 src/sys/kern/tty.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs
Module Name:src Committed By: kardel Date: Fri Feb 17 21:50:14 UTC 2023 Modified Files: src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_ctldir.c Log Message: provide pathconf for .zfs control directory. avoids errors on ls -l ../.zfs. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 \ src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ctldir.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ctldir.c diff -u src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ctldir.c:1.14 src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ctldir.c:1.15 --- src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ctldir.c:1.14 Fri Nov 4 11:20:39 2022 +++ src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ctldir.c Fri Feb 17 21:50:13 2023 @@ -1842,6 +1842,7 @@ const struct vnodeopv_entry_desc zfs_sfs { _putpages_desc, genfs_null_putpages }, { _islocked_desc, genfs_islocked }, { _print_desc, sfs_print }, + { _pathconf_desc, genfs_pathconf }, { NULL, NULL } };
CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs
Module Name:src Committed By: kardel Date: Fri Feb 17 21:50:14 UTC 2023 Modified Files: src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_ctldir.c Log Message: provide pathconf for .zfs control directory. avoids errors on ls -l ../.zfs. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 \ src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ctldir.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/doc
Module Name:src Committed By: martin Date: Fri Feb 17 17:42:21 UTC 2023 Modified Files: src/doc [netbsd-9]: CHANGES-9.4 Log Message: Ticket #1599 To generate a diff of this commit: cvs rdiff -u -r1.1.2.51 -r1.1.2.52 src/doc/CHANGES-9.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-9.4 diff -u src/doc/CHANGES-9.4:1.1.2.51 src/doc/CHANGES-9.4:1.1.2.52 --- src/doc/CHANGES-9.4:1.1.2.51 Wed Feb 15 19:29:45 2023 +++ src/doc/CHANGES-9.4 Fri Feb 17 17:42:21 2023 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-9.4,v 1.1.2.51 2023/02/15 19:29:45 martin Exp $ +# $NetBSD: CHANGES-9.4,v 1.1.2.52 2023/02/17 17:42:21 martin Exp $ A complete list of changes from the NetBSD 9.3 release to the NetBSD 9.4 release: @@ -843,3 +843,12 @@ sys/arch/next68k/stand/boot/version 1.6 next68k: various NeXT Turbo fixes. [tsutsui, ticket #1598] +share/man/man4/urndis.41.11 +sys/dev/usb/if_urndis.c1.48 +sys/dev/usb/usbdevs1.807 +sys/dev/usb/usbdevs.h(regen) +sys/dev/usb/usbdevs_data.h (regen) + + urndis(4): Add OnePlus 5T to the quirky devices list. + [nia, ticket #1599] +
CVS commit: [netbsd-9] src/doc
Module Name:src Committed By: martin Date: Fri Feb 17 17:42:21 UTC 2023 Modified Files: src/doc [netbsd-9]: CHANGES-9.4 Log Message: Ticket #1599 To generate a diff of this commit: cvs rdiff -u -r1.1.2.51 -r1.1.2.52 src/doc/CHANGES-9.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src
Module Name:src Committed By: martin Date: Fri Feb 17 17:41:24 UTC 2023 Modified Files: src/share/man/man4 [netbsd-9]: urndis.4 src/sys/dev/usb [netbsd-9]: if_urndis.c Log Message: Pull up following revision(s) (requested by nia in ticket #1599): share/man/man4/urndis.4: revision 1.11 sys/dev/usb/if_urndis.c: revision 1.48 urndis(4): Add OnePlus 5T to the quirky devices list. This allows it to be attached as an urndis instead of ugen, and to transmit this commit message across the tubes. urndis.4: Add OnePlus 5T To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.5.28.1 src/share/man/man4/urndis.4 cvs rdiff -u -r1.21.4.2 -r1.21.4.3 src/sys/dev/usb/if_urndis.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src
Module Name:src Committed By: martin Date: Fri Feb 17 17:41:24 UTC 2023 Modified Files: src/share/man/man4 [netbsd-9]: urndis.4 src/sys/dev/usb [netbsd-9]: if_urndis.c Log Message: Pull up following revision(s) (requested by nia in ticket #1599): share/man/man4/urndis.4: revision 1.11 sys/dev/usb/if_urndis.c: revision 1.48 urndis(4): Add OnePlus 5T to the quirky devices list. This allows it to be attached as an urndis instead of ugen, and to transmit this commit message across the tubes. urndis.4: Add OnePlus 5T To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.5.28.1 src/share/man/man4/urndis.4 cvs rdiff -u -r1.21.4.2 -r1.21.4.3 src/sys/dev/usb/if_urndis.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/urndis.4 diff -u src/share/man/man4/urndis.4:1.5 src/share/man/man4/urndis.4:1.5.28.1 --- src/share/man/man4/urndis.4:1.5 Tue Mar 18 18:20:39 2014 +++ src/share/man/man4/urndis.4 Fri Feb 17 17:41:24 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: urndis.4,v 1.5 2014/03/18 18:20:39 riastradh Exp $ +.\" $NetBSD: urndis.4,v 1.5.28.1 2023/02/17 17:41:24 martin Exp $ .\" .\" Copyright (c) 2010 Michael Knudsen .\" All rights reserved. @@ -29,7 +29,7 @@ .\" .\" $OpenBSD: urndis.4,v 1.11 2011/07/20 13:12:16 jasper Exp $ .\" -.Dd July 20, 2011 +.Dd February 12, 2023 .Dt URNDIS 4 .Os .Sh NAME @@ -64,6 +64,8 @@ HTC Tattoo .It HTC Wildfire .It +OnePlus 5T +.It Samsung Galaxy S / S2 .It Samsung Nexus S Index: src/sys/dev/usb/if_urndis.c diff -u src/sys/dev/usb/if_urndis.c:1.21.4.2 src/sys/dev/usb/if_urndis.c:1.21.4.3 --- src/sys/dev/usb/if_urndis.c:1.21.4.2 Fri Sep 13 06:51:58 2019 +++ src/sys/dev/usb/if_urndis.c Fri Feb 17 17:41:24 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: if_urndis.c,v 1.21.4.2 2019/09/13 06:51:58 martin Exp $ */ +/* $NetBSD: if_urndis.c,v 1.21.4.3 2023/02/17 17:41:24 martin Exp $ */ /* $OpenBSD: if_urndis.c,v 1.31 2011/07/03 15:47:17 matthew Exp $ */ /* @@ -21,7 +21,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_urndis.c,v 1.21.4.2 2019/09/13 06:51:58 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_urndis.c,v 1.21.4.3 2023/02/17 17:41:24 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -104,6 +104,7 @@ static const struct usb_devno urndis_dev { USB_VENDOR_HTC, USB_PRODUCT_HTC_ANDROID }, { USB_VENDOR_SAMSUNG, USB_PRODUCT_SAMSUNG_ANDROID2 }, { USB_VENDOR_SAMSUNG, USB_PRODUCT_SAMSUNG_ANDROID }, + { USB_VENDOR_ONEPLUS, USB_PRODUCT_ONEPLUS_A5010 } }; static usbd_status
CVS commit: [netbsd-9] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Feb 17 17:40:28 UTC 2023 Modified Files: src/sys/dev/usb [netbsd-9]: usbdevs Log Message: Pull up following revision(s) (requested by nia in ticket #1599): sys/dev/usb/usbdevs: revision 1.807 Add OnePlus 5T To generate a diff of this commit: cvs rdiff -u -r1.770.4.12 -r1.770.4.13 src/sys/dev/usb/usbdevs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/usb/usbdevs diff -u src/sys/dev/usb/usbdevs:1.770.4.12 src/sys/dev/usb/usbdevs:1.770.4.13 --- src/sys/dev/usb/usbdevs:1.770.4.12 Tue Jan 18 19:58:54 2022 +++ src/sys/dev/usb/usbdevs Fri Feb 17 17:40:28 2023 @@ -1,4 +1,4 @@ -$NetBSD: usbdevs,v 1.770.4.12 2022/01/18 19:58:54 snj Exp $ +$NetBSD: usbdevs,v 1.770.4.13 2023/02/17 17:40:28 martin Exp $ /*- * Copyright (c) 1998-2004 The NetBSD Foundation, Inc. @@ -580,6 +580,7 @@ vendor WMR 0x2405 West Mountain Radio vendor TRIPPLITE 0x2478 Tripp-Lite vendor HAILUCK 0x258a HAILUCK Co., Ltd vendor HIROSE 0x2631 Hirose Electric +vendor ONEPLUS 0x2717 ONEPLUS vendor NHJ 0x2770 NHJ vendor PLANEX 0x2c02 Planex Communications vendor VIDZMEDIA 0x3275 VidzMedia Pte Ltd @@ -2556,6 +2557,9 @@ product OMNIVISION OV511 0x0511 OV511 Ca product OMNIVISION OV511PLUS 0xa511 OV511+ Camera product OMNIVISION2 PSEYE 0x2000 Sony PLAYSTATION(R) Eye +/* OnePlus products */ +product ONEPLUS A5010 0xff80 OnePlus 5T + /* OnSpec Electronic, Inc. */ product ONSPEC MD2 0x0103 disk product ONSPEC MDCFEB 0xa000 MDCFE-B USB CF Reader
CVS commit: [netbsd-9] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Feb 17 17:41:12 UTC 2023 Modified Files: src/sys/dev/usb [netbsd-9]: usbdevs.h usbdevs_data.h Log Message: Regen for ticket #1599 To generate a diff of this commit: cvs rdiff -u -r1.760.4.12 -r1.760.4.13 src/sys/dev/usb/usbdevs.h \ src/sys/dev/usb/usbdevs_data.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Feb 17 17:40:28 UTC 2023 Modified Files: src/sys/dev/usb [netbsd-9]: usbdevs Log Message: Pull up following revision(s) (requested by nia in ticket #1599): sys/dev/usb/usbdevs: revision 1.807 Add OnePlus 5T To generate a diff of this commit: cvs rdiff -u -r1.770.4.12 -r1.770.4.13 src/sys/dev/usb/usbdevs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-10] src/doc
Module Name:src Committed By: martin Date: Fri Feb 17 17:37:39 UTC 2023 Modified Files: src/doc [netbsd-10]: CHANGES-10.0 Log Message: Ticket #89 To generate a diff of this commit: cvs rdiff -u -r1.1.2.34 -r1.1.2.35 src/doc/CHANGES-10.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-10.0 diff -u src/doc/CHANGES-10.0:1.1.2.34 src/doc/CHANGES-10.0:1.1.2.35 --- src/doc/CHANGES-10.0:1.1.2.34 Wed Feb 15 19:36:40 2023 +++ src/doc/CHANGES-10.0 Fri Feb 17 17:37:39 2023 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-10.0,v 1.1.2.34 2023/02/15 19:36:40 martin Exp $ +# $NetBSD: CHANGES-10.0,v 1.1.2.35 2023/02/17 17:37:39 martin Exp $ A complete list of changes from the initial NetBSD 10.0 branch on 2022-12-16 until the 10.0 release: @@ -1099,3 +1099,12 @@ sys/arch/next68k/stand/boot/version 1.6 next68k: various NeXT Turbo fixes. [tsutsui, ticket #88] +share/man/man4/urndis.41.11 +sys/dev/usb/if_urndis.c1.48 +sys/dev/usb/usbdevs1.807 +sys/dev/usb/usbdevs.h(regen) +sys/dev/usb/usbdevs_data.h (regen) + + urndis(4): Add OnePlus 5T to the quirky devices list. + [nia, ticket #89] +
CVS commit: [netbsd-10] src/doc
Module Name:src Committed By: martin Date: Fri Feb 17 17:37:39 UTC 2023 Modified Files: src/doc [netbsd-10]: CHANGES-10.0 Log Message: Ticket #89 To generate a diff of this commit: cvs rdiff -u -r1.1.2.34 -r1.1.2.35 src/doc/CHANGES-10.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-10] src
Module Name:src Committed By: martin Date: Fri Feb 17 17:36:27 UTC 2023 Modified Files: src/share/man/man4 [netbsd-10]: urndis.4 src/sys/dev/usb [netbsd-10]: if_urndis.c Log Message: Pull up following revision(s) (requested by nia in ticket #89): share/man/man4/urndis.4: revision 1.11 sys/dev/usb/if_urndis.c: revision 1.48 urndis(4): Add OnePlus 5T to the quirky devices list. This allows it to be attached as an urndis instead of ugen, and to transmit this commit message across the tubes. urndis.4: Add OnePlus 5T To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.8.1 src/share/man/man4/urndis.4 cvs rdiff -u -r1.47 -r1.47.4.1 src/sys/dev/usb/if_urndis.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/urndis.4 diff -u src/share/man/man4/urndis.4:1.10 src/share/man/man4/urndis.4:1.10.8.1 --- src/share/man/man4/urndis.4:1.10 Sun Dec 29 20:58:34 2019 +++ src/share/man/man4/urndis.4 Fri Feb 17 17:36:26 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: urndis.4,v 1.10 2019/12/29 20:58:34 triaxx Exp $ +.\" $NetBSD: urndis.4,v 1.10.8.1 2023/02/17 17:36:26 martin Exp $ .\" .\" Copyright (c) 2010 Michael Knudsen .\" All rights reserved. @@ -29,7 +29,7 @@ .\" .\" $OpenBSD: urndis.4,v 1.11 2011/07/20 13:12:16 jasper Exp $ .\" -.Dd September 1, 2019 +.Dd February 12, 2023 .Dt URNDIS 4 .Os .Sh NAME @@ -68,6 +68,8 @@ LGE Nexus 5 .It Motorola Moto X (2nd Gen.) .It +OnePlus 5T +.It Samsung Galaxy S / S2 .It Samsung Galaxy S8 Active Index: src/sys/dev/usb/if_urndis.c diff -u src/sys/dev/usb/if_urndis.c:1.47 src/sys/dev/usb/if_urndis.c:1.47.4.1 --- src/sys/dev/usb/if_urndis.c:1.47 Thu Mar 3 05:56:58 2022 +++ src/sys/dev/usb/if_urndis.c Fri Feb 17 17:36:26 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: if_urndis.c,v 1.47 2022/03/03 05:56:58 riastradh Exp $ */ +/* $NetBSD: if_urndis.c,v 1.47.4.1 2023/02/17 17:36:26 martin Exp $ */ /* $OpenBSD: if_urndis.c,v 1.31 2011/07/03 15:47:17 matthew Exp $ */ /* @@ -21,7 +21,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_urndis.c,v 1.47 2022/03/03 05:56:58 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_urndis.c,v 1.47.4.1 2023/02/17 17:36:26 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -103,6 +103,7 @@ static const struct usb_devno urndis_dev { USB_VENDOR_HTC, USB_PRODUCT_HTC_ANDROID }, { USB_VENDOR_SAMSUNG, USB_PRODUCT_SAMSUNG_ANDROID2 }, { USB_VENDOR_SAMSUNG, USB_PRODUCT_SAMSUNG_ANDROID }, + { USB_VENDOR_ONEPLUS, USB_PRODUCT_ONEPLUS_A5010 } }; static usbd_status
CVS commit: [netbsd-10] src
Module Name:src Committed By: martin Date: Fri Feb 17 17:36:27 UTC 2023 Modified Files: src/share/man/man4 [netbsd-10]: urndis.4 src/sys/dev/usb [netbsd-10]: if_urndis.c Log Message: Pull up following revision(s) (requested by nia in ticket #89): share/man/man4/urndis.4: revision 1.11 sys/dev/usb/if_urndis.c: revision 1.48 urndis(4): Add OnePlus 5T to the quirky devices list. This allows it to be attached as an urndis instead of ugen, and to transmit this commit message across the tubes. urndis.4: Add OnePlus 5T To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.8.1 src/share/man/man4/urndis.4 cvs rdiff -u -r1.47 -r1.47.4.1 src/sys/dev/usb/if_urndis.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-10] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Feb 17 17:36:11 UTC 2023 Modified Files: src/sys/dev/usb [netbsd-10]: usbdevs.h usbdevs_data.h Log Message: Regen for ticket #89 To generate a diff of this commit: cvs rdiff -u -r1.798 -r1.798.4.1 src/sys/dev/usb/usbdevs.h \ src/sys/dev/usb/usbdevs_data.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-10] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Feb 17 17:35:26 UTC 2023 Modified Files: src/sys/dev/usb [netbsd-10]: usbdevs Log Message: Pull up following revision(s) (requested by nia in ticket #89): sys/dev/usb/usbdevs: revision 1.807 Add OnePlus 5T To generate a diff of this commit: cvs rdiff -u -r1.806 -r1.806.4.1 src/sys/dev/usb/usbdevs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/usb/usbdevs diff -u src/sys/dev/usb/usbdevs:1.806 src/sys/dev/usb/usbdevs:1.806.4.1 --- src/sys/dev/usb/usbdevs:1.806 Wed Jun 29 19:43:04 2022 +++ src/sys/dev/usb/usbdevs Fri Feb 17 17:35:26 2023 @@ -1,4 +1,4 @@ -$NetBSD: usbdevs,v 1.806 2022/06/29 19:43:04 macallan Exp $ +$NetBSD: usbdevs,v 1.806.4.1 2023/02/17 17:35:26 martin Exp $ /*- * Copyright (c) 1998-2004 The NetBSD Foundation, Inc. @@ -582,6 +582,7 @@ vendor TRIPPLITE 0x2478 Tripp-Lite vendor COOLERMASTER 0x2516 Cooler Master Technology Inc. vendor HAILUCK 0x258a HAILUCK Co., Ltd vendor HIROSE 0x2631 Hirose Electric +vendor ONEPLUS 0x2717 ONEPLUS vendor NHJ 0x2770 NHJ vendor PLANEX 0x2c02 Planex Communications vendor VIDZMEDIA 0x3275 VidzMedia Pte Ltd @@ -2579,6 +2580,9 @@ product OMNIVISION OV511 0x0511 OV511 Ca product OMNIVISION OV511PLUS 0xa511 OV511+ Camera product OMNIVISION2 PSEYE 0x2000 Sony PLAYSTATION(R) Eye +/* OnePlus products */ +product ONEPLUS A5010 0xff80 OnePlus 5T + /* OnSpec Electronic, Inc. */ product ONSPEC MD2 0x0103 disk product ONSPEC MDCFEB 0xa000 MDCFE-B USB CF Reader
CVS commit: [netbsd-10] src/sys/dev/usb
Module Name:src Committed By: martin Date: Fri Feb 17 17:35:26 UTC 2023 Modified Files: src/sys/dev/usb [netbsd-10]: usbdevs Log Message: Pull up following revision(s) (requested by nia in ticket #89): sys/dev/usb/usbdevs: revision 1.807 Add OnePlus 5T To generate a diff of this commit: cvs rdiff -u -r1.806 -r1.806.4.1 src/sys/dev/usb/usbdevs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/x86/include
Module Name:src Committed By: msaitoh Date: Fri Feb 17 09:53:24 UTC 2023 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add AMD CPUID Fn_0008 %ebx bit 3 INVLPGB. To generate a diff of this commit: cvs rdiff -u -r1.202 -r1.203 src/sys/arch/x86/include/specialreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/x86/include/specialreg.h diff -u src/sys/arch/x86/include/specialreg.h:1.202 src/sys/arch/x86/include/specialreg.h:1.203 --- src/sys/arch/x86/include/specialreg.h:1.202 Tue Feb 14 15:46:06 2023 +++ src/sys/arch/x86/include/specialreg.h Fri Feb 17 09:53:24 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: specialreg.h,v 1.202 2023/02/14 15:46:06 msaitoh Exp $ */ +/* $NetBSD: specialreg.h,v 1.203 2023/02/17 09:53:24 msaitoh Exp $ */ /* * Copyright (c) 2014-2020 The NetBSD Foundation, Inc. @@ -868,6 +868,7 @@ #define CPUID_CAPEX_CLZERO __BIT(0) /* CLZERO instruction */ #define CPUID_CAPEX_IRPERF __BIT(1) /* InstRetCntMsr */ #define CPUID_CAPEX_XSAVEERPTR __BIT(2) /* RstrFpErrPtrs by XRSTOR */ +#define CPUID_CAPEX_INVLPGB __BIT(3) /* INVLPGB instruction */ #define CPUID_CAPEX_RDPRU __BIT(4) /* RDPRU instruction */ #define CPUID_CAPEX_MBE __BIT(6) /* Memory Bandwidth Enforcement */ #define CPUID_CAPEX_MCOMMIT __BIT(8) /* MCOMMIT instruction */ @@ -890,7 +891,7 @@ #define CPUID_CAPEX_BTC_NO __BIT(29) /* Branch Type Confusion NO */ #define CPUID_CAPEX_FLAGS "\20" \ - "\1CLZERO" "\2IRPERF" "\3XSAVEERPTR" \ + "\1CLZERO" "\2IRPERF" "\3XSAVEERPTR" "\4INVLPGB" \ "\5RDPRU" "\7MBE" \ "\11MCOMMIT" "\12WBNOINVD" "\13B10" \ "\15IBPB" "\16INT_WBINVD" "\17IBRS" "\20STIBP" \
CVS commit: src/sys/arch/x86/include
Module Name:src Committed By: msaitoh Date: Fri Feb 17 09:53:24 UTC 2023 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add AMD CPUID Fn_0008 %ebx bit 3 INVLPGB. To generate a diff of this commit: cvs rdiff -u -r1.202 -r1.203 src/sys/arch/x86/include/specialreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.