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 (4h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 07:31:00 UTC Now

2022-12-09 01:55:46 UTC MAIN commitmail json YAML

add accumulative mode. "tprof top -a"

(ryo)

2022-12-09 00:35:58 UTC MAIN commitmail json YAML

Revert com.c:r1.381 because i386/qemu cannot boot.  Pointed out by gson@n.o and martin@n.o.

(knakahara)

2022-12-08 23:41:22 UTC MAIN commitmail json YAML

2022-12-08 09:08:49 UTC MAIN commitmail json YAML

Fix hang up writing /dev/console rarely in specific environments.

Some BMC seems to require these syncronous operations.  If not,
it does not send transmit completion interrupts for some reason.

(knakahara)

2022-12-08 08:14:28 UTC MAIN commitmail json YAML

Workaround for some hypervisor environments.

The environments cannot stop e1000 interrupt immediately.

(knakahara)

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

Fix: sp->lastused should be updated by time_uptime, and refactor a little.

(knakahara)

2022-12-08 08:05:03 UTC MAIN commitmail json YAML

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

doc: Add note about tprof improbements.

(msaitoh)

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

2022-12-08 05:29:27 UTC MAIN commitmail json YAML

Add AMD family 19h (zen3 and zen4) support to tprof.

(msaitoh)

2022-12-08 02:12:18 UTC MAIN commitmail json YAML

Use lowercase consistently for hexadecimal numbers. No functional change.

(msaitoh)

2022-12-08 01:32:36 UTC MAIN commitmail json YAML

3RDPARTY: note newer versions of acpica and gmake are out

(gutteridge)

2022-12-07 10:28:48 UTC MAIN commitmail json YAML

2022-12-07 08:33:02 UTC MAIN commitmail json YAML

Refactor ip_encap.[ch]

    - remove encap_attach() which is no longer used
    - remove USE_RADIX code in ip_encap.c, which is used for
      encap_attach() only
    - remove mask members in encaptab

(knakahara)

2022-12-07 08:30:15 UTC MAIN commitmail json YAML

2022-12-07 08:28:46 UTC MAIN commitmail json YAML

Implement encap_attach_addr() which is used by IP-encaped tunnels.

The tunnels attached by encap_attach() can process receiving packets
fastly as the softc is searched by radix-tree.  However, the tunnels
cannot use priority function which decides tunnel's softc by not only
source and destination but also other informations.
On the other hand, the tunnels attached by encap_attach_func() can
use priority function. However, the tunnels can be slow receiving
processing as the softc is searched by linear search (and uses each
priority function).

encap_attach_addr() can be used for tunnels which is fixed tunnel
source address and tunnel destination address.  The tunnels attached
by encap_attach_addr() is searched by thmap(9), so the receiving processing
can be fast.  Moreover, the tunnels can use priority function.

(knakahara)

2022-12-07 08:27:03 UTC MAIN commitmail json YAML

refactor: use typedef for ip_encap priority function

(knakahara)

2022-12-07 08:11:49 UTC MAIN commitmail json YAML

KNF. No functional change.

(msaitoh)

2022-12-07 05:38:28 UTC MAIN commitmail json YAML

exsystem.c: revert ACPI warning about sleep values >10ms

acpica 20220331 introduced the following change:

For the ASL Sleep() operator, issue a warning if the sleep value is
greater than 10 Milliseconds. Quick boottime is important, so warn about
sleeps greater than 10 ms. Distribution Linux kernels reach initrd in 350
ms, so excessive delays should be called out. 10 ms is chosen randomly,
but three of such delays would already make up ten percent of the
boottime.

This can generate many console messages like:
[    26.055036] ACPI Warning: Firmware issue: Excessive sleep time (0x0000000000000064 ms > 10 ms) in ACPI Control Method (20220331/exsystem-239)
(60 of them in the latest boot on one older Ivy Bridge laptop.)

This has been reverted upstream and is not present in the next release.
https://github.com/acpica/acpica/commit/df896f452f945d498736c5775d4ee6629df31786
(Also previously reverted in FreeBSD and Linux.)

(gutteridge)

2022-12-06 19:27:34 UTC netbsd-9 commitmail json YAML

2022-12-06 19:26:06 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1552):

sys/arch/hp300/dev/rd.c: revision 1.120
sys/arch/hp300/dev/rd.c: revision 1.121
sys/arch/hp300/dev/rd.c: revision 1.122
sys/arch/hp300/dev/rd.c: revision 1.123
sys/arch/hp300/dev/rd.c: revision 1.124
sys/arch/hp300/dev/rdreg.h: revision 1.19
sys/arch/hp300/dev/rd.c: revision 1.111
sys/arch/hp300/dev/rd.c: revision 1.112
sys/arch/hp300/dev/rd.c: revision 1.113
sys/arch/hp300/stand/common/rd.c: revision 1.12
sys/arch/hp300/dev/rd.c: revision 1.114
sys/arch/hp300/stand/common/rd.c: revision 1.13
sys/arch/hp300/dev/rd.c: revision 1.115
sys/arch/hp300/stand/common/rd.c: revision 1.14
sys/arch/hp300/dev/rd.c: revision 1.116
sys/arch/hp300/stand/common/rd.c: revision 1.15
sys/arch/hp300/dev/rd.c: revision 1.117
sys/arch/hp300/dev/rd.c: revision 1.118
sys/arch/hp300/dev/rd.c: revision 1.119
sys/arch/hp300/dev/rdvar.h: revision 1.27
sys/arch/hp300/dev/rdreg.h: revision 1.20

Sync a list of HP-IB disk IDs with kernel's one.
Now bootloader can boot from 2202A, 7908A, 7911A, and 7941A.
Tested on 425t and HPDisk.

Make local variables static and read only ones const.

Use common macro for numbers of cylinders and blocks for HP-IB disks.
No binary changes.

Fix "rd(4) at punits not configured on HPDisk are misprobed" problem.
- check not only stat value returned by C_QSTAT command against
  each punit but also desc.d_name returned by C_DESC command
  because it looks HPDisk responds to commands against punits supported
  but not-configured punits at 1-3
- prepare rdreset_unit() function to manage reset punit ops during
  probe without valid softc

The stragety is taken from OpenBSD with several modification.
Tested on 425t with real 9122D and HPDisk emulating two 7937H drives.
Should be pulled up to netbsd-9.

Remove now unused buffer members from softc prepared only for rdreset().

Use proper integer types for HP-IB xfer parameters.
No visible regression on 425t and HPDisk.

Sync with rdreg.h integer type changes.

Remove unnecessary declarations.

Check bounds of RAW_PART by bounds_check_with_mediasize() as other drivers.
With this check, dd(1) without a count value against a raw partition
is terminated properly at the end of media.  Tested on 425t and HPDisk.
Should be pulled up to netbsd-9.

Check bounds of each partition by MI bounds_check_with_label(9).
The previous implementation was committed in rev 1.26 about 26 years ago
and it looks there is no quirk to use the old MD one.

Pass a correct dev_t arg to disk_ioctl().
Probably harmless.

Remove a duplicated static function declaration.

Set disk_geom parameters required by DIOCGPARTINFO in disk_ioctl().
With this change raid(4) no longer complains before mountroot:
RAIDframe: can't get disk size for dev rd0 (22)
Should be pulled up to netbsd-9.

Use proper RAW_PART macro rather than a magic number.

Remove more duplicated static function declarations.

Misc KNF and cosmetics.

Add empty DIOCCACHESYNC ioctl(2) for rd(4).
Without this raid(4) always complains on various raidctl(8) ops:
raid0: cache flush[0] to component 0 failed (22)
RAID1 configured by raid(4) just works HP-IB disks on hp300.

Explicitly include <sys/kernel.h> for hz(9) as man pages says.
XXX: it looks sys/param.h r1.615 and later also has extern int hz

(martin)

2022-12-06 19:19:26 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1551):

sys/arch/hp300/dev/topcat.c: revision 1.6

Fix silent bus error panic on 98543A topcat framebuffer on HP320 and HP360.

It looks DELAY(100)s before checking cmap_busy in old pre-wscons grf_tc.c
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/hp300/dev/Attic/grf_tc.c?rev=1.42
are actually necessary on 68020 (HP320) and 68030 (HP360) machines,
while it works without them on 68040 (HP380).

Should be pulled up to netbsd-9.

(martin)

2022-12-06 15:51:16 UTC MAIN commitmail json YAML

+ROP - return-oriented programming

(jschauma)

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

unix(4): Fix/add markup

Untabify examples, .Bd -literal -offset indent doesn't seem to mesh
with tabs nicely in the PostScript output.  The indent is probably not
a multiple a of literal tab width.  This causes a small vertical
misalignment for tab-indented lines, but what's worse - it can cause
an extra tab in some cases (and did here for the unpcbid definition).

(uwe)

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

Undo upstream commit b4a105d77232a87304b7b621e2f99e699a8eebd3, it breaks
colours on big endian machines. Also reported upstream.

(martin)

2022-12-06 01:14:37 UTC MAIN commitmail json YAML

convert more seriously early output to ofprint
regular console output needs more of the kernel in working order now, and this
stuff happ0ens long before the banner

(macallan)

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

editrc(5): Markup fixes

(uwe)

2022-12-06 00:13:17 UTC MAIN commitmail json YAML

getbsize(3): Use .Ev for BLOCKSIZE

(uwe)

2022-12-06 00:12:44 UTC MAIN commitmail json YAML

make: clean up comments

No binary change.

(rillig)

2022-12-05 23:41:24 UTC MAIN commitmail json YAML

make: inline LazyBuf_AddBytesBetween

No binary change.

(rillig)

2022-12-05 23:28:08 UTC MAIN commitmail json YAML

make: inline local macro in GNodeFlags_ToString

No binary change.

(rillig)

2022-12-05 21:15:07 UTC MAIN commitmail json YAML

2022-12-05 21:14:25 UTC MAIN commitmail json YAML

Revert previous change, it is not correct.

(blymn)

2022-12-05 16:03:50 UTC MAIN commitmail json YAML

Do not bother to set PSL_SE in l_md.md_flags - it is not checked anywhere.

(martin)

2022-12-05 16:01:03 UTC MAIN commitmail json YAML

Do not copy l_md to the new lwp in cpu_lwp_fork - as discussed on
tech-kern we do not want the child to inherit any of the flags in there.

(martin)

2022-12-05 15:47:14 UTC MAIN commitmail json YAML

If no more softints are pending on this cpu, clear ci_want_resched
(instead of just assingning ci_data.cpu_softints to it - the bitsets
are not the same).
Discussed on tech-kern "ci_want_resched bits vs. MD ci_data.cpu_softints bits".

(martin)

2022-12-05 15:00:19 UTC MAIN commitmail json YAML

+CSPM - cloud security posture management

(jschauma)

2022-12-05 07:33:43 UTC MAIN commitmail json YAML

Use the SZREG symbol instead of __SIZEOF_POINTER__ as its shorter.  Assert
that they're the same just in case.

Sprinkle some KNF whitespace while I'm here.

(skrll)

2022-12-05 07:26:25 UTC MAIN commitmail json YAML

2022-12-05 07:09:04 UTC MAIN commitmail json YAML

Simplify. Same code before and after.

(skrll)

2022-12-05 05:56:20 UTC MAIN commitmail json YAML

Fix a comment.

(skrll)

2022-12-05 05:02:45 UTC MAIN commitmail json YAML

fix build error with llvm

(ryo)

2022-12-04 23:02:57 UTC MAIN commitmail json YAML

getnetpath(3): Sprinkle some markup

(uwe)

2022-12-04 22:51:43 UTC MAIN commitmail json YAML

login_cap(3): Markup fixes

(uwe)

2022-12-04 22:35:15 UTC MAIN commitmail json YAML

On VAX, compile gdtoa/misc.c at -O0 to avoid incorrect machine code
resulting in some doubles printing as garbage.

(jakllsch)

2022-12-04 19:01:19 UTC MAIN commitmail json YAML

fcntl(2): Fix wrong markup in a couple of places

(uwe)

2022-12-04 17:04:07 UTC MAIN commitmail json YAML

2022-12-04 16:52:49 UTC MAIN commitmail json YAML

re_format(7): Add subsection headings for ERE and BRE

The first paragraph could use some rewording.  While BRE may be
obsolete, it's still the default for regcomp(3) and the default for
grep(1), sed(1), etc.

(uwe)

2022-12-04 16:29:35 UTC MAIN commitmail json YAML

Restore t5 and t6 from the correct locations in exception_kernexit.

From Simon.

(skrll)

2022-12-04 16:23:48 UTC MAIN commitmail json YAML

ASSERT that md_astpending it zero for the new lwp.

(skrll)

2022-12-04 16:21:54 UTC MAIN commitmail json YAML

2022-12-04 16:17:50 UTC MAIN commitmail json YAML

Tweak markup in _lwp_*(2) manual pages

Use .Rv where possible.  Some manual pages claimed that the error "is
returned", but RTFS and some quick testing indicate that this is wrong.

The commit message from 2003 says that:

  Note our current implementation mis-matches [man pages] slightly
  (error codes are stuffed into errno, where they should simply be
  returned by these calls).  This will be addressed shortly.

That hasn't happened in the 20 years, so we might as well make the man
pages reflect the reality.

(uwe)

2022-12-04 11:25:09 UTC MAIN commitmail json YAML

2022-12-04 11:18:58 UTC MAIN commitmail json YAML

flock(2): s/Eq/Er/ typo in the ERRORS section

(uwe)

2022-12-04 11:16:39 UTC MAIN commitmail json YAML

pw_init(3): Use .Ev for EDITOR

(uwe)

2022-12-04 09:25:04 UTC MAIN commitmail json YAML

Make power save mode configurable by ifconfig, now defaults to non-powersave
like other interfaces.
Remove cargo-culted check for manual roaming.

(mlelstv)

2022-12-04 02:53:17 UTC MAIN commitmail json YAML

allow testing of files other than those in /etc

To test e.g., the file "/some/where/protocols" instead of "/etc/protocols",
set TEST_FILE=/some/where/protocols in your environment.

Note: this now compares the contents of the file you gave versus what
getprotoent(3)/getservent(3) uses (which still is /etc/protocols via
h_protoent.c / /etc/services or /var/db/services.cdb via h_servent.c).

When you have expected changes in the services or protocols file that
you're generating, this necessarily produces a difference.  To really
allow testing the file versus what the library function returns, you'd
have to install the file on the system running the test, but at least
with this change you can now generate the file and verify that it didn't
caused unexpected differences.

(jschauma)

2022-12-04 02:42:39 UTC MAIN commitmail json YAML

2022-12-04 01:29:33 UTC MAIN commitmail json YAML

2022-12-04 00:13:11 UTC MAIN commitmail json YAML

getservent(3): Section 3 has RETURN VALUES, not DIAGNOSTICS

While here, don't claim that null pointer is zero.

We should probably just pick the wording from POSIX, but that yak is a
bit too big for me to shave at the moment.

(uwe)

2022-12-03 23:55:52 UTC MAIN commitmail json YAML

reference /var/db/services.cdb / services_mkdb(8)

(jschauma)

2022-12-03 20:24:21 UTC MAIN commitmail json YAML

move ARMv7 PMC register definitions to armreg.h from tprof_armv7.c

(ryo)

2022-12-03 16:56:41 UTC MAIN commitmail json YAML

Explicitly include <sys/kernel.h> for hz(9) as man pages says.

XXX: it looks sys/param.h r1.615 and later also has extern int hz

(tsutsui)

2022-12-03 16:06:20 UTC MAIN commitmail json YAML

Fix bug in protocol parser that often caused fatal 'checksum error'.
Defer power save setting to interface start.
More verbose on errors.
Allow build without FDT.

(mlelstv)

2022-12-03 14:04:39 UTC MAIN commitmail json YAML

2022-12-03 11:34:38 UTC MAIN commitmail json YAML

2022-12-03 11:30:24 UTC MAIN commitmail json YAML

2022-12-03 11:28:38 UTC MAIN commitmail json YAML

2022-12-03 11:09:59 UTC MAIN commitmail json YAML

leading whitespace... oops

(skrll)

2022-12-03 09:40:56 UTC MAIN commitmail json YAML

2022-12-03 09:39:44 UTC MAIN commitmail json YAML

2022-12-03 09:38:53 UTC MAIN commitmail json YAML

2022-12-03 09:10:40 UTC MAIN commitmail json YAML

2022-12-03 08:54:39 UTC MAIN commitmail json YAML

Correct some pre-existing relocations and add some new ones.

(skrll)

2022-12-03 06:08:18 UTC MAIN commitmail json YAML

Add empty DIOCCACHESYNC ioctl(2) for rd(4).

Without this raid(4) always complains on various raidctl(8) ops:
> raid0: cache flush[0] to component 0 failed (22)

RAID1 configured by raid(4) just works HP-IB disks on hp300.

(tsutsui)

2022-12-03 01:04:43 UTC MAIN commitmail json YAML

2022-12-02 19:23:16 UTC MAIN commitmail json YAML

PR/57095: Yilei Yang: Change readline's replace_history_entry to not make a copy
of the string to replace since H_REPLACE already makes a copy (fixes memory leak)

(christos)

2022-12-01 22:57:37 UTC MAIN commitmail json YAML

Correct lost change in the merge (Anthony Mallet)

(christos)

2022-12-01 18:06:09 UTC MAIN commitmail json YAML

2022-12-01 15:02:11 UTC MAIN commitmail json YAML

Misc KNF and cosmetics.

(tsutsui)

2022-12-01 14:42:12 UTC MAIN commitmail json YAML

2022-12-01 14:40:53 UTC MAIN commitmail json YAML

Add a sanity check for the ip header length (from FreeBSD)

(christos)

2022-12-01 13:21:07 UTC MAIN commitmail json YAML

reinstate $NetBSD$

Noted by msaitoh@

(jschauma)

2022-12-01 04:24:38 UTC MAIN commitmail json YAML

tests: fix Makefile and lists for MKRUMP=no

Pointed out by Michael Scholz, thanks.

(ozaki-r)

2022-12-01 03:32:24 UTC MAIN commitmail json YAML

fix build error of printf format

(ryo)

2022-12-01 02:29:37 UTC MAIN commitmail json YAML

Use a better choice for the print format string.

(brad)

2022-12-01 00:48:05 UTC MAIN commitmail json YAML

tprof module revamped. Welcome to 9.99.108

(ryo)

2022-12-01 00:47:51 UTC MAIN commitmail json YAML

Correct the humidity conversion for the BME280

(brad)

2022-12-01 00:43:27 UTC MAIN commitmail json YAML

2022-12-01 00:41:10 UTC MAIN commitmail json YAML

2022-12-01 00:40:05 UTC MAIN commitmail json YAML

Improve tprof(8)

- Added "tprof count" subcommand to perform counts only.
- Event options (u,k) are now optional. The default value is both userland and kernel. (:uk)
- Event counters can be displayed with SIGINFO during `tprof monitor' or `tprof count'.

(ryo)

2022-12-01 00:32:52 UTC MAIN commitmail json YAML

Improve tprof(4)

- Multiple events can now be handled simultaneously.
- Counters should be configured with TPROF_IOC_CONFIGURE_EVENT in advance,
  instead of being configured at TPROF_IOC_START.
- The configured counters can be started and stopped repeatedly by
  PROF_IOC_START/TPROF_IOC_STOP.
- The value of the performance counter can be obtained at any timing as a 64bit
  value with TPROF_IOC_GETCOUNTS.
- Backend common parts are handled in tprof.c as much as possible, and functions
  on the tprof_backend side have been reimplemented to be more primitive.
- The reset value of counter overflows for profiling can now be adjusted.
  It is calculated by default from the CPU clock (speed of cycle counter) and
  TPROF_HZ, but for some events the value may be too large to be sufficient for
  profiling. The event counter can be specified as a ratio to the default or as
  an absolute value when configuring the event counter.
- Due to overall changes, API and ABI have been changed. TPROF_VERSION and
  TPROF_BACKEND_VERSION were updated.

(ryo)

2022-12-01 00:29:51 UTC MAIN commitmail json YAML

tprof_armv7 initializes on each CPUs, like tprof_armv8.

(ryo)

2022-12-01 00:29:10 UTC MAIN commitmail json YAML

PMCR.E should not be disabled from tprof.

PMCR.E controls not only performance event counters but also the cycle
counter operation, and the cycle counter may be used for cpu_counter.
Similarly, the 31st bit in PMINTENCLR and PMCNTENCLR controls the cycle
counter, not performance event counters, and should not be modified.

(ryo)

2022-12-01 00:27:59 UTC MAIN commitmail json YAML

don't call kpreempt_{disable,enable}() from an interrupt handler.

Fixed a problem in which the system would freeze if a high load (e.g., build.sh -j20)
was applied while running `tprof monitor -e LsNotHaltedCyc ...' on x86.

This almost eliminates the problem, but still is not enough. tprof_x86 uses NMI
interrupts, which are interrupted even in splhigh(), leaving the possibility of
being interrupted in the splhigh section of percpu_cpu_swap().

(ryo)

2022-11-30 20:59:28 UTC MAIN commitmail json YAML

lint: add measurement unit to local variable names

No binary change, except for line numbers in assertions.

(rillig)

2022-11-30 20:50:22 UTC MAIN commitmail json YAML

lint: make definitions of basic types simpler

No binary change.

(rillig)

2022-11-30 19:44:06 UTC MAIN commitmail json YAML

Fix primary boot selection for FFSv2ea filesystems

(martin)

2022-11-30 18:15:32 UTC MAIN commitmail json YAML

Remove more duplicated static function declarations.

(tsutsui)

2022-11-30 17:50:00 UTC MAIN commitmail json YAML

Avoid explicitly naming the raw part device with a partition letter - use
the non-partition letter variant instead.

(martin)

2022-11-30 17:49:09 UTC MAIN commitmail json YAML

Unfortunately rump does not provide the same magic as MAKEDEV does
for native /dev and create an alias for disk devices w/o partition
latter pointing at the raw partition, so for rump based tests we
actually have to calculate the concrete device name.

Use an idiom suggested by kre for this which also works for ports that
have kern.rawpartition > 4.

(martin)

2022-11-30 17:42:21 UTC MAIN commitmail json YAML

Use proper RAW_PART macro rather than a magic number.

(tsutsui)

2022-11-30 17:39:12 UTC MAIN commitmail json YAML

Set disk_geom parameters required by DIOCGPARTINFO in disk_ioctl().

With this change raid(4) no longer complains before mountroot:
> RAIDframe: can't get disk size for dev rd0 (22)

Should be pulled up to netbsd-9.

(tsutsui)

2022-11-30 17:07:30 UTC MAIN commitmail json YAML

Remove a duplicated static function declaration.

(tsutsui)

2022-11-30 17:01:56 UTC MAIN commitmail json YAML

Pass a correct dev_t arg to disk_ioctl().

Probably harmless.

(tsutsui)

2022-11-30 16:37:44 UTC MAIN commitmail json YAML

Check bounds of each partition by MI bounds_check_with_label(9).

The previous implementation was committed in rev 1.26 about 26 years ago
and it looks there is no quirk to use the old MD one.

(tsutsui)

2022-11-30 15:59:01 UTC MAIN commitmail json YAML

Check bounds of RAW_PART by bounds_check_with_mediasize() as other drivers.

With this check, dd(1) without a count value against a raw partition
is terminated properly at the end of media.  Tested on 425t and HPDisk.

Should be pulled up to netbsd-9.

(tsutsui)

2022-11-30 15:57:54 UTC MAIN commitmail json YAML

Switch the default FFS type from FFSv2 to FFSv2ea - we want extended
attribute support to be exercised and tested.

If you want to share a new installed disk with older NetBSD
installations or (read only) with other OSes you need to explicitly set
the FS type to FFSv2 now.

(martin)

2022-11-30 15:53:35 UTC MAIN commitmail json YAML

2022-11-30 11:36:50 UTC MAIN commitmail json YAML

Fix silent bus error panic on 98543A topcat framebuffer on HP320 and HP360.

It looks DELAY(100)s before checking cmap_busy in old pre-wscons grf_tc.c
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/hp300/dev/Attic/grf_tc.c?rev=1.42
are actually necessary on 68020 (HP320) and 68030 (HP360) machines,
while it works without them on 68040 (HP380).

Should be pulled up to netbsd-9.

(tsutsui)

2022-11-30 07:48:43 UTC MAIN commitmail json YAML

tests: restore a line removed accidentally

(ozaki-r)

2022-11-30 07:20:36 UTC MAIN commitmail json YAML

Simplify: avoid use of the explicit raw partition, MAKDEV does
all the needed magic for us already. Pointed out by kre

(martin)

2022-11-30 06:20:17 UTC MAIN commitmail json YAML

2022-11-30 06:19:16 UTC MAIN commitmail json YAML

When performing a scroll, check the last line of the region is the same
on virtscr and curscr because the indexes past are supposed to be
one *past* the last matching line (they may actually match if the line is
at the bottom of the screen).  Iff they don't match reduce the scroll
region size by one so we don't scroll non-matching lines, also check
if the region is then 0 after the decrement and just return if it was.

(blymn)

2022-11-30 06:07:52 UTC MAIN commitmail json YAML

2022-11-30 06:06:36 UTC MAIN commitmail json YAML

tests: tweak t_ip_reass.c for NetBSD

The test is modified to run on rump kernels.

(ozaki-r)

2022-11-30 06:05:58 UTC MAIN commitmail json YAML

tests: import ip_reass_test.c from FreeBSD as t_ip_reass.c

As of:
commit 9ed1e4ecd4e9eb3bde16f52a937a6fa86a971638
Author: Mark Johnston <markj@FreeBSD.org>
Date:  Tue Nov 20 18:13:18 2018 +0000

    Plug a trivial memory leak.

    CID:            1396911
    MFC with:      r340485

(ozaki-r)

2022-11-30 06:03:41 UTC MAIN commitmail json YAML

man, bpf: support loopback interfaces for send

(ozaki-r)

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

bpf: support sending packets on loopback interfaces

Previously sending packets on a loopback interface via bpf failed
because the packets are treated as AF_UNSPEC by bpf and the loopback
interface couldn't handle such packets.

This fix enables user programs to prepend a protocol family (AF_INET or
AF_INET6) to a payload.  bpf interprets it and treats a packet as so,
not just AF_UNSPEC.  The protocol family is encoded as 4 bytes, host byte
order as per DLT_NULL in the specification(*).

(*) https://www.tcpdump.org/linktypes.html

Proposed on tech-net and tech-kern

(ozaki-r)

2022-11-30 04:35:53 UTC MAIN commitmail json YAML

2022-11-29 23:56:05 UTC MAIN commitmail json YAML

make.1: clarify in which case an expression may omit braces

(rillig)

2022-11-29 23:54:55 UTC MAIN commitmail json YAML

tests/make: document that the ':tl' modifier does not split words

(rillig)

2022-11-29 20:50:37 UTC MAIN commitmail json YAML

socketpair(2): Formatting nits

(uwe)

2022-11-29 20:26:39 UTC MAIN commitmail json YAML

document the only supported type protocol, document type flags

This uses language taken from OpenBSD's manual page.

(jschauma)

2022-11-29 20:06:24 UTC MAIN commitmail json YAML

Avoid dependence on details of the MD synthesized disklabel for
the vnd after mounting the single filesystem image.

(martin)

2022-11-29 14:15:01 UTC MAIN commitmail json YAML

be more specific about what /etc/protocols describes

The reference to the "DARPA Internet" seems not quite up to date in 2022,
so moving that to the HISTORY section.

(jschauma)

2022-11-28 19:32:46 UTC MAIN commitmail json YAML

regen from IANA as of 2022-09-28

This time using the updated tools from the net/iana-etc package, ensuring
we don't revert previous changes and pass the tests from tests/lib/libc/net/.

(jschauma)

2022-11-28 17:41:00 UTC MAIN commitmail json YAML

whoops, we don't want an extra space here

(erroneously introduced in my previous commit)

(jschauma)

2022-11-28 17:09:52 UTC MAIN commitmail json YAML

2022-11-28 15:28:16 UTC MAIN commitmail json YAML

revert previous

Automated test reports failure, reverting until I know why the test
failed.

(jschauma)

2022-11-28 10:23:57 UTC MAIN commitmail json YAML

ch-ch-changes

(nia)

2022-11-28 04:52:04 UTC MAIN commitmail json YAML

the UFS_EXTATTR option was supposed to affect only UFS1 file systems,
but when the UFS2 extattr code was merged, the UFS_EXTATTR option was
mistakenly changed to affect UFS2 file systems as well.  this commit
changes UFS_EXTATTR back to affecting only UFS1 file systems as originally
intended.  in UFS2 (or rather UFS2ea in NetBSD), extattrs are a
native feature and are always supported.

(chs)

2022-11-28 02:48:34 UTC MAIN commitmail json YAML

regen from IANA 2022-11-22

(jschauma)

2022-11-28 02:46:58 UTC MAIN commitmail json YAML

regen from IANA 2022-09-28

(jschauma)

2022-11-27 20:17:20 UTC MAIN commitmail json YAML

reallocarray.3: minor grammar and style tweaks

(gutteridge)

2022-11-27 14:54:25 UTC MAIN commitmail json YAML

Bump MSGBUFSIZE to 32k; 4k just about overflows "by default" with qemu
and mipssim-virtio machine type.

(he)

2022-11-26 00:25:36 UTC MAIN commitmail json YAML

Misc KNF and cosmetics.

No binary change.

(tsutsui)

2022-11-25 22:17:20 UTC MAIN commitmail json YAML

move the creation of machdep.smbios into platform_init().

"dmidecode -d /dev/smbios" now works on x86.  also tested on arm64 (lx2k.)

(mrg)

2022-11-25 16:15:39 UTC MAIN commitmail json YAML

kern/vfs_lockf.c: Parenthesize to make arithmetic match check.

We verified start + (fl->fl_len - 1) would not overflow, but then
computed (start + fl->fl_len) - 1 instead, and it is possible for
start + fl->fl_len to overflow before we subtract 1.

Reported-by: syzbot+762480b00cb14085f63a@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=d69313b2460a12715315f9f5f74fbe44b8bc38ba

(riastradh)

2022-11-25 16:12:32 UTC MAIN commitmail json YAML

Remove unnecessary declarations.

(tsutsui)

2022-11-25 13:12:02 UTC MAIN commitmail json YAML

Service mode switch should not be treated as an error.

Use aprint_normal(9) to avoid confusing dmesg.

(tsutsui)

2022-11-25 13:06:27 UTC MAIN commitmail json YAML

Sync with rdreg.h integer type changes.

(tsutsui)

2022-11-25 13:02:51 UTC MAIN commitmail json YAML

Use proper integer types for HP-IB xfer parameters.

No visible regression on 425t and HPDisk.

(tsutsui)

2022-11-25 12:35:45 UTC MAIN commitmail json YAML

2022-11-25 08:43:16 UTC MAIN commitmail json YAML

2022-11-25 08:41:05 UTC MAIN commitmail json YAML

2022-11-25 08:40:15 UTC MAIN commitmail json YAML

Welcome to 9.99.107

    - add IFF_UNNUMBERED flag

(knakahara)

2022-11-25 08:39:32 UTC MAIN commitmail json YAML

Support explicit unnumbered interface.

Currently, NetBSD supports implicit unnumbered interface by setting
the same IP address to two interfaces.  However, such interface is not
treated as unnumbered when one of the interfaces is being changed and
has been changed IP address.  That behavior can be harmful for some
routing daemons.

(knakahara)

2022-11-25 06:18:42 UTC MAIN commitmail json YAML

KNF. No functional change.

(msaitoh)

2022-11-24 21:07:05 UTC MAIN commitmail json YAML

Mention where in the datasheet the compensation algorithms came from.

(brad)

2022-11-24 21:03:38 UTC MAIN commitmail json YAML

match zen3 "cezanne" (ryzen 5000-series APU.)

(mrg)

2022-11-24 02:58:28 UTC MAIN commitmail json YAML

2022-11-24 00:13:55 UTC MAIN commitmail json YAML

in ofprint() only append \r if the last character is \n

(macallan)

2022-11-24 00:07:49 UTC MAIN commitmail json YAML

move ofprint() to powerpc/ofw_machdep.c and make it official
now that console output uses locks it needs more of the kernel to function, so
for now use direct OF calls for earliest debug output

(macallan)

2022-11-23 23:53:53 UTC MAIN commitmail json YAML

mmap(2): Avoid arithmetic overflow in search for free space.

PR kern/56900

Reported-by: syzbot+3833ae1d38037a263d05@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=e542bcf59b2564cca1cb38c12f076fb08dcac37e

(riastradh)

2022-11-23 23:49:23 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2022-11-23 23:45:30 UTC MAIN commitmail json YAML

Use kpause() instead of delay() in the measurement cycle.  Try and
derive the proper wait delay for the measurement based upon the over
sampling setting and allow the wait factor multiplier to be adjusted.

(brad)

2022-11-23 19:20:34 UTC MAIN commitmail json YAML

Add links to libm (Phil Rulon)

(christos)

2022-11-23 18:55:06 UTC MAIN commitmail json YAML

Remove now unused buffer members from softc prepared only for rdreset().

(tsutsui)

2022-11-23 18:53:22 UTC MAIN commitmail json YAML

Fix "rd(4) at punits not configured on HPDisk are misprobed" problem.

- check not only stat value returned by C_QSTAT command against
  each punit but also desc.d_name returned by C_DESC command
  because it looks HPDisk responds to commands against punits supported
  but not-configured punits at 1-3
- prepare rdreset_unit() function to manage reset punit ops during
  probe without valid softc

The stragety is taken from OpenBSD with several modification.
Tested on 425t with real 9122D and HPDisk emulating two 7937H drives.

Should be pulled up to netbsd-9.

(tsutsui)

2022-11-23 18:18:57 UTC MAIN commitmail json YAML

2022-11-23 18:15:43 UTC MAIN commitmail json YAML

2022-11-22 19:40:31 UTC MAIN commitmail json YAML

Read the datasheet more closely and put in some delays.  The chip will
just return junk if the wait is not long enough to allow a measurement
to start.

(brad)

2022-11-22 17:35:45 UTC MAIN commitmail json YAML

2022-11-22 16:17:29 UTC MAIN commitmail json YAML

Use explicit struct to represent RX queue buffer data structure.

No binary change.

Maybe the similar change should be applied to MI com(4) and zsc(4)?

(tsutsui)

2022-11-22 15:57:03 UTC MAIN commitmail json YAML

Sync style between Lua script and C source code.
Fix false positive for some tests.

(rin)

2022-11-22 15:41:05 UTC MAIN commitmail json YAML

Correct path for libm.

(rin)

2022-11-22 14:55:53 UTC MAIN commitmail json YAML

2022-11-22 14:55:28 UTC MAIN commitmail json YAML

Add some Xeon Scalable devices from OpenBSD.

(msaitoh)

2022-11-22 00:25:52 UTC MAIN commitmail json YAML

2022-11-21 23:51:10 UTC MAIN commitmail json YAML

Fix typos. New sentence, new line.

(wiz)

2022-11-21 22:01:34 UTC MAIN commitmail json YAML

2022-11-21 21:29:33 UTC MAIN commitmail json YAML

Mention the driver for the Bosch BMP280/BME280

(brad)

2022-11-21 21:24:02 UTC MAIN commitmail json YAML

A driver for the Bosch BMP280 / BME280 temperature, humidity and
atmospheric pressure sensor.  This is an inexpensive to moderately
expensive chip available from a large number of places.  The driver
supports all aspects of the two chips, except for the repeating read
mode which would allow for sub-second queries, such as fall detection
or perhaps even as an altimeter.  This driver also only supports the
I2C interface and not the SPI interface.

The BME280, the one with humidity, is not fully tested at this point,
awaiting upon a breakout board and may not show proper humidity.

(brad)

2022-11-21 19:07:36 UTC MAIN commitmail json YAML

vnconfig is used in this tests, so require user root.

(martin)

2022-11-21 16:22:37 UTC MAIN commitmail json YAML

Use common macro for numbers of cylinders and blocks for HP-IB disks.

No binary changes.

(tsutsui)

2022-11-21 16:06:00 UTC MAIN commitmail json YAML

Adapt to recent gpt(8) change which now issues a message when
the secondary GPT header is moved.  Do it this way rather than
just using -q to suppress the message, so the test verifies that
the appropriate action was taken.

(kre)

2022-11-21 15:36:29 UTC MAIN commitmail json YAML

Make local functions and variables static.

(tsutsui)

2022-11-21 15:05:44 UTC MAIN commitmail json YAML

Make local variables static and read only ones const.

(tsutsui)

2022-11-21 14:55:08 UTC MAIN commitmail json YAML

Sync a list of HP-IB disk IDs with kernel's one.

Now bootloader can boot from 2202A, 7908A, 7911A, and 7941A.
Tested on 425t and HPDisk.

(tsutsui)

2022-11-21 12:21:17 UTC MAIN commitmail json YAML

Update AMD CPUID Fn8000_001b

- Add IbsFetchCtlExtd and IbsOpData4.
- Fix typo (lbs -> Ibs).

(msaitoh)

2022-11-21 10:37:14 UTC MAIN commitmail json YAML

When testing whiteout support on the underlying file system
union_mount() should not use a NULL componentname as not all
file systems can handle it.

Use static { LOOKUP, NOCRED } componentname instead.

Reported-by: syzbot+ecda308a1dd9652836d0@syzkaller.appspotmail.com
Reported-by: syzbot+9b687847ee5f43e94ca3@syzkaller.appspotmail.com
Reported-by: syzbot+9f9d1a841734f9f50de2@syzkaller.appspotmail.com

(hannken)

2022-11-21 09:51:13 UTC MAIN commitmail json YAML

Fix panic on packet sending via a route with rt_ifa of AF_LINK.

A route with rt_ifa of AF_LINK can be set by some routing daemons when
it adds a route that has a gateway of AF_LINK.  If there is no address on
a target interface, the kernel sets an AF_LINK address of the interface to
rt_ifa of the route.  In that case, a variable of a local address in
ip_output (ia) can be NULL and we need more NULL-checks of it.

(knakahara)

2022-11-20 14:53:14 UTC MAIN commitmail json YAML

Extend units.lib with prefixes from Resolution 3 of the 27th meeting of CGPM.

(jakllsch)

2022-11-20 11:57:02 UTC MAIN commitmail json YAML

Fix destroying and moving GPT header also for truncated/extended
images.

(mlelstv)

2022-11-19 22:09:21 UTC MAIN commitmail json YAML

Extend orders(7) with prefixes from Resolution 3 of the 27th meeting of CGPM.

(jakllsch)

2022-11-19 15:30:12 UTC MAIN commitmail json YAML

2022-11-19 14:42:36 UTC MAIN commitmail json YAML

netstat/if.c: Fix error message with "-w" option.

Now ifq_drops is 64bit unsigned integer.

No description in src/doc/CHANGES?

(taca)

2022-11-19 12:16:03 UTC MAIN commitmail json YAML

2022-11-19 12:15:22 UTC MAIN commitmail json YAML

Fix _bus_dmamem_alloc_range function declaration - low and high are
paddr_t

(skrll)

2022-11-19 12:12:26 UTC MAIN commitmail json YAML

G/C gtmr_init function declaration

(skrll)

2022-11-19 12:10:03 UTC MAIN commitmail json YAML

2022-11-19 09:55:11 UTC MAIN commitmail json YAML

Fix CONSADDR and save a label

(skrll)

2022-11-19 09:29:26 UTC MAIN commitmail json YAML

bcm2835_intr.c: fix !MULTIPROCESSOR

Tested on Raspberry PI 3 model A+.

(yamt)

2022-11-19 09:19:28 UTC MAIN commitmail json YAML

2022-11-19 09:17:57 UTC MAIN commitmail json YAML

arm/rockchip: fix build w/o MULTIPROCESSOR

(yamt)

2022-11-19 09:05:42 UTC MAIN commitmail json YAML

sunxi_can.c: fix build with MBUFTRACE

(yamt)

2022-11-19 08:56:20 UTC MAIN commitmail json YAML

netstat/bpf.c: Don't print garbage for stale pid

(yamt)

2022-11-19 08:53:06 UTC MAIN commitmail json YAML

bpf: refresh bd_pid in a few more places as well

This made "netstat -B" show hostapd and wpa_supplicant for me.

kingcrab# netstat -B
Active BPF peers
PID    Int    Recv    Drop    Capt    Flags  Bufsize  Comm
433    urtwn0  102      0        2        I-RSH  524288  hostapd
211    urtwn0  102      0        4        I-RS-  32768    dhcpd
670    bwfm0  295      0        2        I-RSH  524288  wpa_supplicant
kingcrab#

(yamt)

2022-11-19 08:00:51 UTC MAIN commitmail json YAML

Make arp have its own mowner

This helped me to debug mbuf leaks in arp.
(if_arp.c rev. 1.298)

(yamt)