Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (19m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 08:40:22 UTC Now

2022-06-25 03:57:18 UTC MAIN commitmail json YAML

Restore EUC-JP support broken since rev 1.16.

I committed a wrong branch in the previous and it included wip version:
https://mail-index.netbsd.org/source-changes-d/2022/06/25/msg013708.html
This version is based on a fix from isaki@ and also confirmed me.

(tsutsui)

2022-06-25 03:33:29 UTC MAIN commitmail json YAML

Add a minimum DEC special graphics character support for atari ite(4).

This closes PR port-atari/46647 (Menu borders in sysinst appear as
characters with diacritical marks instead of graphics characters).

Switching encoding support by "ESC ( <F>" sequence for vt220 was
pulled from x68k ite(4) (that already supports ISO-2022-JP and EUC-JP).
Note atari's fonts already include DEC special graphics characters.
ET4000 on Hades is untested due to long-term lack of hardware.
Discussed on port-atari@ etc.

(tsutsui)

2022-06-25 03:18:38 UTC MAIN commitmail json YAML

Add a minimum box drawing character support for x68k ite(4).

This is for proper appearance of menus in sysinst(8) with TERM=vt220.
Discussed on port-x68k@ etc.

There was "why not all G0/G1/G2/G3" comment, but terminfo and curses
with TERM=vt220 only require "ESC ( <F>" against G0 for DEC special
graphics (including box drawing characters) by smacs/rmacs/acsc.
I hope other various unimplemented ISO/IEC 2022 specifications will
be motivated per further visible demends.

(tsutsui)

2022-06-25 02:46:15 UTC MAIN commitmail json YAML

2022-06-25 02:36:27 UTC MAIN commitmail json YAML

Add rnd(9) entropy source from hil(4) devices.

(tsutsui)

2022-06-25 02:22:42 UTC MAIN commitmail json YAML

cksum.c: don't fault if the hash algorithm is fed invalid data

Addresses PR bin/56897 from RVP, who provided the patch.

(gutteridge)

2022-06-25 01:54:37 UTC MAIN commitmail json YAML

Add rnd(9) entropy source from keyboard and mouse.

(tsutsui)

2022-06-25 00:58:36 UTC MAIN commitmail json YAML

Add rnd(9) entropy source from keyboard.

(tsutsui)

2022-06-24 23:44:18 UTC MAIN commitmail json YAML

Make local functions static.

(tsutsui)

2022-06-24 22:28:11 UTC MAIN commitmail json YAML

2022-06-24 22:05:24 UTC MAIN commitmail json YAML

2022-06-24 21:22:11 UTC MAIN commitmail json YAML

lint: do not warn about pointer casts to array types

If the (recursive) element type of the array is compatible, that's good
enough.  Even after the previous commits, this warning is the one that
occurs most in a standard NetBSD build, and it is generally ignored.
For now, focus on reducing the number of false positives to an
acceptable level.

(rillig)

2022-06-24 21:02:10 UTC MAIN commitmail json YAML

tests/lint: demonstrate another warning about pointer casts

(rillig)

2022-06-24 20:44:53 UTC MAIN commitmail json YAML

lint: allow pointer cast between compatible structs

Lint already allowed pointer casts from 'struct counter' to 'struct
counter_impl'.  Now it also allows the other direction.

(rillig)

2022-06-24 20:32:12 UTC MAIN commitmail json YAML

tests/lint: demonstrate warning for cast between compatible structs

(rillig)

2022-06-24 20:16:21 UTC MAIN commitmail json YAML

lint: do not warn about pointer cast between sockaddr variants

(rillig)

2022-06-24 20:02:58 UTC MAIN commitmail json YAML

tests/lint: demonstrate pointer casts between sockaddr variants

(rillig)

2022-06-24 19:27:43 UTC MAIN commitmail json YAML

lint: allow pointer cast from char to struct/union

(rillig)

2022-06-24 19:20:39 UTC MAIN commitmail json YAML

tests/lint: demonstrate dubious warnings for pointer casts

Casting a 'pointer to char' to a 'pointer to anything else' is already
allowed, except for 'pointer to struct/union'.  The cause for this
inconsistency is the wrong order of checks in
'should_warn_about_pointer_cast'.

(rillig)

2022-06-24 16:50:00 UTC MAIN commitmail json YAML

Remove an incorrect assertion.

Just issue a readahead near the end of the vnode and enqueue an async read.
Now let nfs_setattr() truncate the vnode, set its new size and
nfs_vinvalbuf() waits for the pages from the readahead to become unbusy.

The async read gets processed and returns with uio_resid > 0 because there
is a hole and no write after the hole has been pushed yet.  As the vnode
size already got truncated to the new size the KASSERT() incorrectly fires.

(hannken)

2022-06-24 13:11:45 UTC MAIN commitmail json YAML

Remove the notge (I added a day or so ago) about IFS interfering with -s
output (potentially) - it is almost certainly wrong.

(kre)

2022-06-23 23:41:26 UTC MAIN commitmail json YAML

stat(1): Fix two more -width.

(uwe)

2022-06-23 16:42:50 UTC MAIN commitmail json YAML

2022-06-23 14:32:16 UTC MAIN commitmail json YAML

Don't override isadma defflag for Xen, now that isadma is built for Xen PV too.
While there, match amd64 mainbus and call isa_dmainit() before attaching acpi.

Fixes a panic at boot on some hardware with a floppy disk controller.

(bouyer)

2022-06-23 13:46:27 UTC MAIN commitmail json YAML

if_urtwn.c: add the TRENDnet TEW-648UBM

(brook)

2022-06-23 13:43:07 UTC MAIN commitmail json YAML

2022-06-23 13:19:18 UTC MAIN commitmail json YAML

usbdevs: add TRENDnet TEW-648UBM

(brook)

2022-06-23 12:32:22 UTC MAIN commitmail json YAML

x68k/stand: Merge {sd,cd}strategy and {sd,cd}close respectively.
For sd and cd devs, only open differs and the rest is the same.
No functional changes intended.
Suggested by tsutsui@ at port-x68k.

(isaki)

2022-06-23 09:58:26 UTC MAIN commitmail json YAML

Oops... fix SYMTAB_DEBUG build

(skrll)

2022-06-23 09:53:49 UTC MAIN commitmail json YAML

Define and use a DPRINTF macro

(skrll)

2022-06-23 09:48:00 UTC MAIN commitmail json YAML

2022-06-23 07:50:14 UTC MAIN commitmail json YAML

libm: build fma(3), fmaf(3), fmal(3) on powerpc.

For now this builds the C version, for completeness, so
that e.g. lang/ocaml can be configured & built.  However,
googling reveals that powerpc does have a "fused multiply add"
instruction, ref.
https://www.ibm.com/docs/en/aix/7.1?topic=set-fmadd-fma-floating-multiply-add-instruction
so this could probably be taken advantage of for a more
optimized version.

(he)

2022-06-23 03:36:00 UTC MAIN commitmail json YAML

Add a mising gpio pin description.

This file enumerates the gpio pins in two different ways: as enum
values and as an array of data.  The enum values are used as keys into
the array.  One of the enums, GPIODV_9, is missing from the table.  As
a result, lookup fails to find a matching entry and returns an invalid
entry, which causes the kernel to panic.  This patch adds the missing
data to the array.

However, the underlying problem is not fixed.  Somewhere in the kernel
is lookup logic that does not check the validity of the results to
ensure that a match indeed occurred.  There are no doubt other
potential panics to be triggered by the same lookup code applied to
other tables (or future versions of this one).

(brook)

2022-06-22 23:48:54 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #1476):
usr.sbin/sysinst/label.c: revision 1.39
PR 56893: fix input validation when the user moves a new partition to
a totaly different part of the disk. Fix size handling for freshly
added partitions (which would previously use random stack data due to
bogus error checking).

(msaitoh)

2022-06-22 22:41:14 UTC MAIN commitmail json YAML

stat(1): Misc fixes.

(uwe)

2022-06-22 22:25:23 UTC MAIN commitmail json YAML

Use \(em, fix macro usage

(wiz)

2022-06-22 22:25:09 UTC MAIN commitmail json YAML

Remove dot at end of SEE ALSO.

(wiz)

2022-06-22 21:11:41 UTC MAIN commitmail json YAML

test: fix typo and improve wording

(wiz)

2022-06-22 19:27:47 UTC MAIN commitmail json YAML

readlink(1): Add italic correction.

(uwe)

2022-06-22 19:23:18 UTC MAIN commitmail json YAML

lint: add quotes around placeholders for the remaining messages

Reword some of the messages slightly, exchanging brevity for clarity.

Message 138 is kept as-is, as it is not yet covered by any tests.

Message 240 is kep as-is, as it is unreachable.

(rillig)

2022-06-22 19:18:17 UTC MAIN commitmail json YAML

readlink(1): Add missing .El, use non-random .Bl -width

(uwe)

2022-06-22 18:20:30 UTC MAIN commitmail json YAML

Some corrections to stat to make it more reasonable, and comply with
the man page, in particular, in one of the EXAMPLES it is claimed:

    This example produces output very similar to that from find ... -ls
    (except that find(1) displays the time in a different format, and find(1)
    sometimes adds one or more spaces after the comma in ���major,minor��� for
    device nodes):

and then uses %9Z in the format, but conveniently does not use a
device file to demonstrate.

If it had, the result would have been:

  8033      0 brw-r-----    1 root              operator                  4,      51 Jun  8 02:44:45 2022 /dev/sd3

Note the spaces which were claimed to exist (sometimes) in find(1) output
but not with stat.  Oops.

Omitting those spaces seems like a good idea, so does using the same
field width for the result in both cases, rather than producing 9 chars
in the ordinary file case, and 19 (2 * 9 + 1) in the device case (for %9Z).

Now we will get:

  8033      0 brw-r-----    1 root              operator            4,51  Jun  8 02:44:45 2022 /dev/sd3

While here, also make the file number (%@) when reading stdin be 0, it is
not the 1st file in the arg list.

Some (very minor) KNF applied at the same time.

In stat.1 make these changes explicit.

(kre)

2022-06-22 18:02:43 UTC MAIN commitmail json YAML

Divide stat.1 into stat.1 (now only includes stat(1)) and readlink.1

Apologies to cvs commit purists, but making this division required
line by line reading of the man pages, and I simply could not resist
also correcting some errors, addressing some omissions, improving some
wording ... all at the same time.

(kre)

2022-06-22 14:29:12 UTC MAIN commitmail json YAML

Fix wrong access in mfii_start(). I hope this fixes kern/55192 and kern/56669.

(msaitoh)

2022-06-22 08:31:06 UTC MAIN commitmail json YAML

doc: Various changes in June from various developers

(nia)

2022-06-21 22:21:49 UTC MAIN commitmail json YAML

lint: merge duplicate code in typeok_minus

No functional change.

(rillig)

2022-06-21 22:16:26 UTC MAIN commitmail json YAML

lint: clean up comments, don't include unused header

No functional change.

(rillig)

2022-06-21 22:10:31 UTC MAIN commitmail json YAML

2022-06-21 21:18:30 UTC MAIN commitmail json YAML

2022-06-21 16:24:37 UTC MAIN commitmail json YAML

sort; it is the same list as in h_ifunc_static.c; perhaps it should be
a HAVE_ something?

(christos)

2022-06-21 16:08:25 UTC MAIN commitmail json YAML

Fix inverted condition in previous and only apply special handling for
the "all of NetBSD" partition when we have an outer MBR label.
Pointed out by Izumi Tsutsui. Hopefully the last fix needed for PR 56886.

(martin)

2022-06-21 15:46:11 UTC MAIN commitmail json YAML

Fix free space accounting when partitions change size or are deleted.
Part of PR 56886.

(martin)

2022-06-21 15:45:03 UTC MAIN commitmail json YAML

renumber_partitions() needs to deal with removed/added partitions.

(martin)

2022-06-21 15:42:44 UTC MAIN commitmail json YAML

Fix free space accounting for partition size changes and deletions.
Part of PR 56886.

(martin)

2022-06-21 15:41:29 UTC MAIN commitmail json YAML

disklabel_can_add_partition() did not consider additional partitions
(while there still is space in the disklabel). Part of PR 56886.

(martin)

2022-06-21 15:40:21 UTC MAIN commitmail json YAML

Correct flipped glyph of 'N' in the "New Line" in the DEC graphics chars.

(tsutsui)

2022-06-21 12:45:46 UTC MAIN commitmail json YAML

x68k/stand: Bump boot's version.  Fix blocksize parameter passes to SCSI IOCS.

(isaki)

2022-06-21 12:43:57 UTC MAIN commitmail json YAML

x68k/stand: Correct blocksize in case of CD.
- Fix calculation of the blocksize passes to SCSI IOCS.
- Use three kind of sector size (blocksize) properly; media's sector size,
  DEV_BSIZE from xxstrategy, and Human68k's sector size.
By this change,
- For 512 bytes/sector HDD, no changes are intended.
- For CD, corrects the blocksize (%d5) passes to SCSI IOCS.
  It has worked previously though the blocksize was incorrect.  Now it
  works with correct blocksize.
- As a secondary effect, 256 or 1024 bytes/sector media may work but not
  well tested.
Reviewed by tsutsui@ at port-x68k.

(isaki)

2022-06-21 12:20:43 UTC MAIN commitmail json YAML

x68k/stand: Correct a condition expression.
- start is LBA but dblk is relative from this partition.
- The first term was wrong.  It should be '(x & 0x1fffff) == x', but
  it's more simple to use numerical comparison.
There would have been no impact.

(isaki)

2022-06-21 06:52:17 UTC MAIN commitmail json YAML

2022-06-21 06:47:38 UTC MAIN commitmail json YAML

2022-06-21 06:41:39 UTC MAIN commitmail json YAML

2022-06-20 21:26:44 UTC MAIN commitmail json YAML

lint: remove redundant include

err.c doesn't use anything from <sys/types.h>, plus it is already
included by "lint.h".

No binary change.

(rillig)

2022-06-20 21:13:36 UTC MAIN commitmail json YAML

2022-06-20 18:06:28 UTC MAIN commitmail json YAML

When the user aborts the target disk selection menu, return to the
main loop immediately.

(martin)

2022-06-20 16:06:38 UTC MAIN commitmail json YAML

PR 56893: fix input validation when the user moves a new partition to
a totaly different part of the disk. Fix size handling for freshly
added partitions (which would previously use random stack data due to
bogus error checking).

(martin)

2022-06-20 15:40:24 UTC MAIN commitmail json YAML

Add tdx_guest, brs, hfi, ibt, amx_bf16, amx_tile and amx_int8.

(msaitoh)

2022-06-20 12:22:00 UTC MAIN commitmail json YAML

Avoid unused variable

(martin)

2022-06-20 08:38:56 UTC MAIN commitmail json YAML

Welcome to 9.99.98

- changed the prototype of if_vlan_vlan_input_hook.
- added if_bpf_mtap to struct ifnet to treat vlan frames
  stripped by hardware offloading.

(yamaguchi)

2022-06-20 08:20:09 UTC MAIN commitmail json YAML

bpf(4): added support for VLAN hardware offloading of ethernet devices

(yamaguchi)

2022-06-20 08:14:48 UTC MAIN commitmail json YAML

2022-06-20 08:09:13 UTC MAIN commitmail json YAML

Determine the length of VLAN encapsulation by an interface type,
and remove it from struct ifvlan_linkmib

(yamaguchi)

2022-06-20 08:02:26 UTC MAIN commitmail json YAML

Handling frames that vlan id is 0 as non-VLAN frames
even if a vlan tag is stripped by harware offloading

(yamaguchi)

2022-06-19 18:51:06 UTC MAIN commitmail json YAML

man.conf.5: improve wording on searching alternate machine paths

As requested by uwe@. Hopefully this is clearer now.

(gutteridge)

2022-06-19 18:28:16 UTC MAIN commitmail json YAML

libkern: fix wrong escaping in makefile

In the unlikely event that KERNDIR contains a '$' character, that '$'
should not be doubled to '$$'. It only needs the usual shell quoting.

(rillig)

2022-06-19 12:14:34 UTC MAIN commitmail json YAML

2022-06-19 12:08:31 UTC MAIN commitmail json YAML

Centralize the "we can newfs this type of filesystem" predicate
and fix the list.

(martin)

2022-06-19 11:50:42 UTC MAIN commitmail json YAML

2022-06-19 11:31:19 UTC MAIN commitmail json YAML

Add basic ZFS support to fstat(1).
XXX: Use a local zfs_znode.h for a znode_t definition because the ZFS
kernel code makes it too hard to include headers from userland.

(simonb)

2022-06-19 10:33:17 UTC MAIN commitmail json YAML

gomoku: remove redundant parentheses

No binary change.

(rillig)

2022-06-19 10:23:48 UTC MAIN commitmail json YAML

gomoku: reduce usage of magic numbers in the code

No binary change.

(rillig)

2022-06-19 04:47:12 UTC MAIN commitmail json YAML

we also need WSDISPLAY_COMPAT_PCVT and _SYSCONS

(macallan)

2022-06-18 22:11:01 UTC MAIN commitmail json YAML

2022-06-18 13:56:42 UTC MAIN commitmail json YAML

An unused partition may not be the install target

(martin)

2022-06-18 13:52:42 UTC MAIN commitmail json YAML

2022-06-18 13:41:12 UTC MAIN commitmail json YAML

man.conf(5): Tweak formatting for prettier PS output.

(uwe)

2022-06-18 11:33:13 UTC MAIN commitmail json YAML

Significant changes to output layout methods - except for -x and -y
which have not (yet) been touched (-xD needs *serious* improvements).

While this still has no run-time configurability, it is now easy to
adjust the column widths in the source and recompile.  Dynamic (auto)
column width sizing is probably out of the question (requires predicting
the future) but options to allow the widths to be set isn't out of the
question.

The columns are now (mostly) considerably wider than they were before,
hence wider windows are needed to view the same info.  In an 80
column window the default display (with tty & cpu included) displays
just 2 drives.  160 columns will fit 7 (but with -I, just 4).

One new option added (-z) suppresses output which is true 0 (but still
prints 0 for values rounded down to 0) for everything except tty stats.
For drive output, the drive must have done nothing during the interval
to get its output data blanked.

Also options -H h -W w to set the output size (page height & width), the
former used to decide when to print headers, and the latter to calculate
the number of drives to print when no drive names were given.  Env vars
LINES and COLUMNS are used if the options are not given, with fallback
to the terminal size (if output is to a terminal, and its sizes are
known), and if all else fails, 20 lines, 80 columns.  Specifying 0
means unlimited (infinite).  So "iostat -W 0" will show all of the
drives, across one (often very) long line.  Wedges count as drives.

When drives are specified, the output will now appear in the order they were
given on the command line, rather than the order the system discovered them
during auto-configuration.  If specified as an fnmatch(3) pattern, drives that
match will appear in auto-conf order, but that's generally what is wanted.
When none are specified, you still get the first N (however many fits based
upon the options selected) in auto-conf order (usually useless, more so now
given that less will fit).

Lastly, for those who looked at the patch I sent to current-users@
and were horrified at how kludgey it was, rest assured, that was just
a quick hack to demonstrate what the output format changes would look
like.  This version (I hope) is not nearly so disgusting.

(kre)

2022-06-18 08:22:11 UTC MAIN commitmail json YAML

2022-06-18 08:20:57 UTC MAIN commitmail json YAML

aprintf_normal -> aprint_normal

(skrll)

2022-06-18 08:13:44 UTC MAIN commitmail json YAML

Simplify (imo) #ifdefs a little.

(skrll)

2022-06-18 08:01:56 UTC MAIN commitmail json YAML

be consistent about comparing loaded value against expected old value
register ordering

(skrll)

2022-06-18 07:55:19 UTC MAIN commitmail json YAML

2022-06-18 02:19:07 UTC MAIN commitmail json YAML

man.conf.5: add details about the machine line and search order

Also, tweak some grammar, style, and markup while here.

(gutteridge)

2022-06-18 02:14:39 UTC MAIN commitmail json YAML

man.1: add a small note about alternate machine name searches

(gutteridge)

2022-06-17 20:31:56 UTC MAIN commitmail json YAML

tests/lint: move check-expect.lua to tests/lint1

It is only used for testing lint1, not for lint2 or xlint.

(rillig)

2022-06-17 20:24:00 UTC MAIN commitmail json YAML

tests/lint: remove .exp files, as they have become redundant

Now that each lint1 test lists all generated diagnostics as 'expect'
comments, the information from the .exp files is no longer needed.  The
only information that gets lost is the order of the diagnostics, which
is mostly relevant for paired messages like 'inconsistent definition' +
'previous definition was here'.

(rillig)

2022-06-17 19:01:01 UTC MAIN commitmail json YAML

tests/lint: treat a missing .exp file like an empty one

Previously, a missing .exp file skipped all the checks, that is, the
tests wouldn't fail if there were some unexpected new message.

(rillig)

2022-06-17 18:54:53 UTC MAIN commitmail json YAML

tests/lint: make 'expect+-' comments stricter

Previously, the expectations from these comments were already satisfied
if the expectation occurred somewhere in the actual message from lint.
This meant that the prefix 'error:' or 'warning:' could be omitted from
the 'expect' comment.  These omissions were hard to see in a manual
review.  Now any omissions must be visually marked with '...'.

The test msg_342 now reports its messages properly as being in the file
msg_342.c, rather than msg_341.c.  This had been a copy-and-paste
mistake.

(rillig)

2022-06-17 16:45:22 UTC MAIN commitmail json YAML

Fix readelf: Error: LEB value too large when running:
    readelf --debug-dump /usr/libdata/lib/libc.so.X.Y.debug
Apply patch from:
    https://www.mail-archive.com/bug-binutils@gnu.org/msg35315.html
affects objdump, readelf.

(christos)

2022-06-17 16:43:52 UTC MAIN commitmail json YAML

Sync device autoconf(9) messages in DIAGNOSTICS with reality a bit.

Also pull some fixes from luna68k by wizd(8).

(tsutsui)

2022-06-17 16:10:10 UTC MAIN commitmail json YAML

tests/lint: rename local variables in check-expect.lua

Enough time has passed since I wrote that little program to make me
forget the naming scheme I had in mind back then.  Prefix the variable
names with the source of their data, 'c_' or 'exp_', to provide a bit of
orientation.

No functional change.

(rillig)

2022-06-17 16:09:47 UTC MAIN commitmail json YAML

2022-06-17 16:06:19 UTC MAIN commitmail json YAML

2022-06-17 15:33:02 UTC netbsd-8 commitmail json YAML

Remove bogus ticket #1748 entry that was actually a fixup of ticket #1746

(martin)

2022-06-17 15:28:01 UTC netbsd-8 commitmail json YAML

2022-06-17 15:27:10 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1748):

sys/miscfs/procfs/procfs_vnops.c: revision 1.229

Add missing permission check

(martin)

2022-06-17 15:26:31 UTC netbsd-9 commitmail json YAML

2022-06-17 15:25:21 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by shm in ticket #1475):

sys/miscfs/procfs/procfs_vnops.c: revision 1.229

Add missing permission check

(martin)

2022-06-17 14:30:37 UTC MAIN commitmail json YAML

Add missing permission check

(shm)

2022-06-17 14:08:54 UTC MAIN commitmail json YAML

Restore DEFSWAPSIZE value to (-1) to determine it by get_ramsize().

Thanks hannken@ for informing this botch.

(tsutsui)

2022-06-17 09:00:08 UTC MAIN commitmail json YAML

Remove now obsolete "#define DEFSWAPSIZE (-1)" to fix the build.

(hannken)

2022-06-17 07:06:50 UTC MAIN commitmail json YAML

tests/lint: do not interpret 'expect:' comments, only 'expect+-n:'

Only the tests in msg_*.c had used the short form of the 'expect:'
comments.  The other tests used the more detailed variant 'expect+n:' or
'expect-n:'.

(rillig)

2022-06-17 06:59:16 UTC MAIN commitmail json YAML

2022-06-17 06:54:02 UTC MAIN commitmail json YAML

2022-06-17 06:52:51 UTC MAIN commitmail json YAML

Update some descriptions of Intel 700 series Ethernet devices.

(msaitoh)

2022-06-17 06:26:00 UTC MAIN commitmail json YAML

2022-06-17 06:18:09 UTC MAIN commitmail json YAML

ixl(4), iavf(4): fix endian bug in vlan tag

(yamaguchi)

2022-06-17 05:49:35 UTC MAIN commitmail json YAML

Use unsigned to avoid undefined behavior. Found by kUBSan.

(msaitoh)

2022-06-17 01:47:45 UTC MAIN commitmail json YAML

Fix processing of the archaic arg format (BACKWARD_COMPATIBILITY) so it
doesn't repeat the processing every iteration.  Repeatedly seeing the wait
interval does no harm, but setting the iteration count (reps) over and
over again rather defeats its purpose.

(kre)

2022-06-16 21:24:41 UTC MAIN commitmail json YAML

2022-06-16 16:58:36 UTC MAIN commitmail json YAML

2022-06-16 16:27:30 UTC MAIN commitmail json YAML

2022-06-16 14:23:27 UTC netbsd-9 commitmail json YAML

2022-06-16 14:22:02 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #1474):

sys/arch/hppa/hppa/pmap.c: revision 1.120

Re-reading the PA2.0 Cache Move-In rules tells me we do indeed need to
purge the translations from the TLBs in pmap_procwr.

PR/56867: hppa: intermittent SIGSEGV reports in t_ptrace_wait's stepN
and setstepN test cases

(martin)

2022-06-16 14:19:44 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #1473):

sys/lib/libkern/arch/hppa/milli_extra.S: revision 1.2

Fix a dumb typo/thinko

Thanks to Tom Lane for spotting it.

(martin)

2022-06-16 14:03:40 UTC MAIN commitmail json YAML

2022-06-16 08:21:57 UTC MAIN commitmail json YAML

2022-06-16 06:25:42 UTC MAIN commitmail json YAML

Re-reading the PA2.0 Cache Move-In rules tells me we do indeed need to
purge the translations from the TLBs in pmap_procwr.

PR/56867: hppa: intermittent SIGSEGV reports in t_ptrace_wait's stepN and setstepN test cases

(skrll)

2022-06-15 21:31:19 UTC MAIN commitmail json YAML

Fix a dumb typo/thinko

Thanks to Tom Lane for spotting it.

(skrll)

2022-06-15 20:18:31 UTC MAIN commitmail json YAML

tests/lint: replace 'expect' comments with 'expect+-' comments

The 'expect+-' comments provide more context, which makes it easier to
read the .c files on their own, without having to look up the actual
diagnostics in the .exp files.

Add tests for messages 105 and 106, which were about the obscure feature
of some traditional C compilers that allowed the expression 'x->member'
to access a struct member, even if 'x' had integer type.

The remaining tests will be migrated in a future commit.

(rillig)

2022-06-15 18:44:42 UTC MAIN commitmail json YAML

lint: update comments in operator table

No binary change.

(rillig)

2022-06-15 18:29:21 UTC MAIN commitmail json YAML

lint: rename mod_t.m_requires_bool to m_compares_with_zero

The operators NOT, LOGAND, LOGOR and QUEST only require _Bool in strict
bool mode, in default mode they accept any scalar expression and compare
it with zero.  The new names are more accurate.

No functional change.

(rillig)

2022-06-15 18:19:42 UTC MAIN commitmail json YAML

uncomment WSDISPLAY_COMPAT_USL
while there, add obiofan

(macallan)

2022-06-15 18:11:02 UTC MAIN commitmail json YAML

2022-06-15 18:06:51 UTC MAIN commitmail json YAML

lint: unexport lint's messages

There was only a single place where a message was used directly, instead
of calling one of the several functions for this purpose.

(rillig)

2022-06-15 17:57:16 UTC MAIN commitmail json YAML

lint: remove unnecessary memory allocation

No functional change.

(rillig)

2022-06-15 16:28:01 UTC MAIN commitmail json YAML

Modify output of CPUID Fn0000000a.

old:
cpu0: Perfmon-eax 0x8300805<VERSION=0x5,GPCounter=0x8,GPBitwidth=0x30>
cpu0: Perfmon-eax 0x8300805<Vectorlen=0x8>
cpu0: Perfmon-edx 0x8604<FixedFunc=0x4,FFBitwidth=0x30,ANYTHREADDEPR>

new:
cpu0: Perfmon: Ver. 5
cpu0: Perfmon: General: bitwidth 48, 8 counters
cpu0: Perfmon: General: avail 0xff<CORECYCL,INST,REFCYCL,LLCREF,LLCMISS,BRINST>
cpu0: Perfmon: General: avail 0xff<BRMISPR,TOPDOWNSLOT>
cpu0: Perfmon: Fixed: bitwidth 48, 4 counters
cpu0: Perfmon: Fixed: avail 0xf<INST,CLK_CORETHREAD,CLK_REF_TSC,TOPDOWNSLOT>

(msaitoh)

2022-06-15 16:25:33 UTC MAIN commitmail json YAML

Modify CPUID Fn0000000a %ebx's string. Add new string for %ecx.

(msaitoh)

2022-06-15 15:54:40 UTC MAIN commitmail json YAML

Fix typo ..

the Adafruit 931 module is mask 0x03 and the 938 module is mask 0x04.

(brad)

2022-06-15 08:31:34 UTC MAIN commitmail json YAML

Set provider to NULL -- "pam" is not a valid security key helper library.
Now ssh-agent no longer fails key addition with

    error: Cannot add provider: RSA is not an authenticator-hosted key

(hannken)

2022-06-15 04:31:22 UTC MAIN commitmail json YAML

in6p_hash isn't used, either.

(knakahara)

2022-06-14 19:57:56 UTC MAIN commitmail json YAML

make: document parsing of short variable names, such as $i

No binary change.

(rillig)

2022-06-14 19:43:02 UTC MAIN commitmail json YAML

make: reduce indentation in ParseVarnameShort

No functional change.

(rillig)

2022-06-14 19:37:11 UTC MAIN commitmail json YAML

make: simplify return type of IsShortVarnameValid

No functional change.

(rillig)

2022-06-14 10:42:20 UTC netbsd-9 commitmail json YAML

2022-06-14 10:41:19 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #1472):

sys/lib/libkern/arch/hppa/Makefile.inc: revision 1.13
sys/lib/libkern/arch/hppa/milli.S: revision 1.3
sys/lib/libkern/arch/hppa/milli_extra.S: revision 1.1

Don't need $$sh_func_adrs

Provide a __canonicalize_funcptr_for_compare which only needs to return
the passed value as the kernel doesn't do PLABELS.
PR/56878 (hppa: kernel module lua fails to load)

(martin)

2022-06-14 10:37:05 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #1471):

distrib/notes/common/main: revision 1.569 (via patch)
distrib/notes/sparc/install: revision 1.59-1.61 (via patch)
distrib/notes/sparc/contents: revision 1.27,1.28 (via patch)

Remove floppy installation instructions from sparc documentation.

Floppy generation was disabled before NetBSD 6.0 release due to size
constraints and unlikely to be restored soon or at all. PR port-sparc/56776.
ok martin.

Typo and nroff fixes.

(martin)

2022-06-14 10:27:33 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #1470):

distrib/notes/sun3/install: revision 1.17
distrib/notes/alpha/hardware: revision 1.20
distrib/notes/mvme68k/install: revision 1.24
distrib/notes/common/postinstall: revision 1.90 (via patch)

fix the title of the boot tape creation section.

some srm firmware (including legacy platforms) still available at hp ftp.
not sure if HPE selling firmware CDs, but it is definitely not Compaq anymore

fix link to pkgsrc.tar.gz file in postinstall section.

(martin)

2022-06-14 08:06:18 UTC MAIN commitmail json YAML

Implement "raidctl -t config-file"

This does the same config file parse  that -c/-C do, but only
that (hence no raidframe device is needed, or accepted).

Any syntax errors in the config file will be reported, nothing
else happens.

(kre)

2022-06-14 08:06:13 UTC MAIN commitmail json YAML

Fix some config file parsing.

First, and what got me started on this set of cleanups, the queue
length in the "queue" section (START queue) is limited to what will
fit in a char without losing accuracy (I tried setting it to 200,
rather than the more common (universal?) 100 and found that the
value configured into the array was -56 instead.

Why the value needs to be passed through a char variable I have no
idea (it is an int in the filesystem raidframe headers) - but that's
the way it is done, and changing it would be an ABI change I believe
(and so need versioning to alter) and that isn't worth it for this
(or not now, IMO).

Instead check that the value in the char is the same value as was
read from the config file, and complain if not.  Those of you with
unsigned chars will be able to have queue lengths up to 255, the
rest of us are limited to 127.

While looking at that, I noticed some code that obviously fails to
understand that scanf("%s") will never return a string containing
spaces, and proceeded to attempt to remove trailing spaces from the
result ... amusingly, after having used the result for its intended
purpose (non existent trailing spaces unremoved), after which that
buffer was never used again.  That code is now gone (but for now,
just #if 0'd rather than actually deleted - it should be cleaned up
sometime).

Then I saw some other issues with how the config was parsed - a
simple (unbounded) scanf("%s") into a buffer, which hypothetically
might not be large enough (not a security issue really, raidctl has
no special privs, and it isn't likely that root could easily be
tricked into running it on a bogus config file - or not without
looking first anyway, and a huge long string would rather stand
out).  Bound the string length to something reasonable, and
assert() that the buffer is big enough to contain it.

Lastly, in the event of one particular detected error in the
config file, the code would write a warning, but then just go
ahead and use the bad data (or nothing perhaps) anyway - a
failure of logic flow (unlikely to have ever happened, everyone
seems to simply copy the sample config from the man page, and
make minor adjustments as needed).

If any of these changes make any difference to anyone (except
me with my attempt to make longer queues - for no particularly
well thought out reason), I'd be very surprised.

(kre)

2022-06-14 08:06:07 UTC MAIN commitmail json YAML

In the previous (and some earlier) version(s) of raidctl.c
the following comment appeared:

/*
* After NetBSD 9, convert this to not output the numRow's value,
* which is no longer required or ever used.
*/

We are after NetBSD 9 (well after).  The change requested in that
comment is made here, and the comment is thus removed.

A couple of places in rf_configure.c where a value for the "rows"
parameter was output in an error message (always simply as the
constant 0) have also been updated (those messages will no longer
include "row 0", which they always said previously).  One of them
was also slightly reworded to be clearer what problem it was
experiencing (when it said 'unable to get device file' it meant
it was unable to locate the name for the device in the config file,
not that it was found, and there was some other problem with it).

(kre)

2022-06-14 08:06:02 UTC MAIN commitmail json YAML

Reorder the getopts() switch () (slightly) to sort the options.  NFCI.

(kre)

2022-06-14 08:05:56 UTC MAIN commitmail json YAML

KNF (whitespace & 80 column limits) - NFCI.

This is the first of a series of 5 commits in this
directory, all coming within minutes or now.

(kre)

2022-06-13 20:16:53 UTC MAIN commitmail json YAML

2022-06-13 19:49:34 UTC MAIN commitmail json YAML

2022-06-13 17:26:34 UTC MAIN commitmail json YAML

2022-06-13 16:03:07 UTC MAIN commitmail json YAML

Provide a __canonicalize_funcptr_for_compare which only needs to return
the passed value as the kernel doesn't do PLABELS.

PR/56878 (hppa: kernel module lua fails to load)

(skrll)

2022-06-13 16:00:05 UTC MAIN commitmail json YAML

Don't need $$sh_func_adrs

(skrll)

2022-06-13 15:00:20 UTC MAIN commitmail json YAML

Remove comment explaining why the code was disabled before (Jose Luis Duran)

(christos)

2022-06-13 12:55:06 UTC MAIN commitmail json YAML

Restore arm in the list of architectures supporting ifunc, accidently
lost in the OABI removal.

(martin)

2022-06-13 09:28:58 UTC MAIN commitmail json YAML

Disable the unsupported events from the bit vector length in EAX.

(msaitoh)

2022-06-13 09:23:23 UTC MAIN commitmail json YAML

Refactor like in_pcb.c:r1.187 and in6_pcb.c:r1.168.

Use TAILQ_FOREACH instead of TAILQ_FOREACH_SAFE about inpt_queue.
rip_pcbnotify() doesn't use "ninph" pointer and doesn't remove elements.

(knakahara)

2022-06-13 07:59:15 UTC MAIN commitmail json YAML

PR 56879: bump timeout for the wg_malformed test to 100 seconds,
as suggested by Tom Lane - the test takes ~32 seconds on my unloaded sh4
machine.

(martin)

2022-06-13 07:40:58 UTC MAIN commitmail json YAML

Add topdown-slots to Intel architectural performance monitoring version 1.

(msaitoh)

2022-06-13 06:22:32 UTC MAIN commitmail json YAML

Add top-down slots event bit of architectural performance monitoring leaf.

(msaitoh)

2022-06-12 20:17:35 UTC MAIN commitmail json YAML

2022-06-12 17:54:15 UTC MAIN commitmail json YAML

Handle 0 sized messages (Jose Luis Duran)

(christos)

2022-06-12 16:22:37 UTC MAIN commitmail json YAML

2022-06-12 16:09:21 UTC MAIN commitmail json YAML

2022-06-12 15:08:39 UTC MAIN commitmail json YAML

2022-06-12 15:03:27 UTC MAIN commitmail json YAML

tests/make: make test for null bytes in .for loop more readable

(rillig)

2022-06-12 14:59:44 UTC MAIN commitmail json YAML

cgram: allow cursor navigation with KEY_BEG as well

(rillig)

2022-06-12 14:27:06 UTC MAIN commitmail json YAML

tests/make: demonstrate what happens for 'make -DVAR=value'

(rillig)

2022-06-12 13:37:32 UTC MAIN commitmail json YAML

make: reorganize Parse_Error

Determining the location where the error occurred is now done by
ParseVErrorInternal.  This frees the remaining code from keeping the
filename and the line number together.  It also makes Parse_Error short
enough that it might be worth providing a separate function for each of
the 3 log levels.

No functional change.

(rillig)

2022-06-12 11:36:43 UTC MAIN commitmail json YAML

XenPV: in cpu_switchto(), reset ci_xen_clockf_usermode/ci_xen_clockf_pc,
in case a clock interrupt is deffered while we're switching lwp.
Fix a (rare) panic:
panic: kernel diagnostic assertion "p != NULL" failed: file "/usr/src/sys/kern/kern_clock.c", line 438
seen when xen_timer_handler() is called from the splx() at the end of
mi_switch()

(bouyer)

2022-06-12 08:55:36 UTC MAIN commitmail json YAML

2022-06-12 08:04:07 UTC MAIN commitmail json YAML

Attach when dr_mode is "otg" and the controller has the "usb-role-switch" and
"role-switch-default-mode" as seen in the Apple M1 dts.

This assumes the controller is properly setup for host mode already.

(skrll)

2022-06-12 06:57:07 UTC MAIN commitmail json YAML

2022-06-12 06:54:32 UTC MAIN commitmail json YAML

Specify -fno-unwind-tables to shrink binaries.

(tsutsui)

2022-06-12 03:51:13 UTC MAIN commitmail json YAML

2022-06-11 19:23:26 UTC MAIN commitmail json YAML

fix usage for ctl too (Jose Luis Duran)

(christos)

2022-06-11 19:15:58 UTC MAIN commitmail json YAML

fix usage error (Jose Luis Duran)

(christos)

2022-06-11 18:30:02 UTC MAIN commitmail json YAML

2022-06-11 18:27:22 UTC MAIN commitmail json YAML

Avoid integer arithmetic overflow when checking a partition table without
any partitions.
Fix some comments.

(martin)

2022-06-11 18:17:00 UTC MAIN commitmail json YAML

Since rev 1.101 DIOCAWEDGE could return success without filling in the
wedge device name - which is quite confusing for userland.
Always fill the name if we return success.

(martin)

2022-06-11 17:58:15 UTC MAIN commitmail json YAML

make: fix memory leak in wildcard targets and sources

$ cat <<'EOF' > glob-leak.mk
all:
@pid=$$$$; \
ppid=$$(ps -o ppid -p "$$pid" | sed 1d); \
ps -o vsz,rsz -p $$ppid | sed 1d

.for _ in ${:U:${:Urange=$n}}
bin/*: source
.endfor
EOF

$ make.before -r -f glob-leak.mk n=1
19424 5280
$ make.before -r -f glob-leak.mk n=10
24220 10208
$ make.before -r -f glob-leak.mk n=100
71280 58504
$ make.before -r -f glob-leak.mk n=1000
556356 541620

$ make.after -r -f glob-leak.mk n=1
19208 5040
$ make.after -r -f glob-leak.mk n=10
22132 8092
$ make.after -r -f glob-leak.mk n=100
49040 35940
$ make.after -r -f glob-leak.mk n=1000
324160 314400

That's a saving of 40% already.  The remaining 60% are suspicious as
well since after the first iteration of the .for loop, make's internal
state doesn't change conceptually, so there's no need to throw more
memory at it.

(rillig)

2022-06-11 17:41:36 UTC MAIN commitmail json YAML

make: separate cases in HandleDependencyTargetMundane

Most targets do not use wildcards, so there is no need to put the single
item into a list.

No functional change.

(rillig)

2022-06-11 16:47:24 UTC MAIN commitmail json YAML

make: extract HandleSingleDependencyTargetMundane

No functional change.

(rillig)

2022-06-11 16:43:16 UTC MAIN commitmail json YAML

make: remove redundant include for stdint.h

No functional change.

(rillig)

2022-06-11 16:41:56 UTC MAIN commitmail json YAML

2022-06-11 16:38:51 UTC MAIN commitmail json YAML

Add explicit PART_BOOT_MOUNT for ews4800mips.

XXX: FS_SYSVBFS stuff for the MD boot partition is untested.

(tsutsui)

2022-06-11 16:25:24 UTC MAIN commitmail json YAML

Use proper part_type for the boot partition (while it looks unused).

(tsutsui)

2022-06-11 15:41:19 UTC MAIN commitmail json YAML

Enhance support for the pseudo file system type "EFI System Partition".

(martin)

2022-06-11 15:30:48 UTC MAIN commitmail json YAML

Remove unused field.

(martin)

2022-06-11 15:25:52 UTC MAIN commitmail json YAML

Add configuration information of luna68k.

(tsutsui)

2022-06-11 14:45:37 UTC MAIN commitmail json YAML

Match psgpam(4) only on LUNA-I.  LUNA-II doesn't have YM2149 at XP.

(tsutsui)

2022-06-11 14:17:33 UTC MAIN commitmail json YAML

2022-06-11 13:19:28 UTC MAIN commitmail json YAML

lint: make definition of type keywords simpler

The only type keyword that is available in more than one variant is
'signed', which can also be written '__signed'.  Neither of the type
keywords is declared as being specific to GCC, even though __int128_t
and __uint128_t actually are non-standard.

No binary change.

(rillig)

2022-06-11 12:24:00 UTC MAIN commitmail json YAML

2022-06-11 11:52:13 UTC MAIN commitmail json YAML