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

2024-05-10 09:23:55 UTC Now

2024-01-28 08:17:27 UTC MAIN commitmail json YAML

tests/lint: sort multiple diagnostics per line chronologically

For now, the chronologic order is not enforced but has to be established
manually, for example by removing all 'expect' comment lines and
regenerating them with 'accept.sh -u'.

While here, clean up a few instances that came up when regenerating the
'expect' comments, such as wrong indentation or needless deviation from
the 'expect+1' form.

(rillig)

2024-01-28 06:57:41 UTC MAIN commitmail json YAML

tests/lint: fix tests for integer constants on ILP32 platforms

The comment in msg_218 was both off-topic and wrong, so remove it.

(rillig)

2024-01-28 06:20:02 UTC MAIN commitmail json YAML

Also put back libfb.a in xorg_server_ver=110 case.

It looks required only on building Xorg server binary and
unnecessary for release (actually marked as obsolete only on vax),
but no simple settings to "build static libraries without installation"
and most ports will be switched to Xorg 1.20 soon.

(tsutsui)

2024-01-27 21:42:29 UTC MAIN commitmail json YAML

tests/libutil/snprintb: remove redundant integer constant suffixes

I added these because lint told me so. Lint was wrong though, as it had
not implemented the C99 rules for integer constants.

(rillig)

2024-01-27 21:06:09 UTC MAIN commitmail json YAML

NetBSD.dist.base: Nix /var/run/named.

/var/run is emptied at boot time by /etc/rc.d/mountcritlocal, so
there's no point in creating this at install time -- it has to be
created on the fly after /var/run is cleared on every boot anyway.

Mark /var/run/named obsolete in the set lists.  XXX This isn't quite
right, because it is legitimate for /var/run/named to exist in a
running installation, but it doesn't exist in a freshly installed
system any more.  Maybe we should just remove the entry from the set
lists and add a note to UPDATING about deleting it manually from the
destdir in incremental builds.

PR misc/57877

(riastradh)

2024-01-27 21:01:08 UTC MAIN commitmail json YAML

NetBSD.dist.base: Fix permissions on /dev/pts.

No reason to write to this -- it's expected to have ptyfs mounted,
and ptyfs doesn't allow changing the directory.  So use 0555
(-r-xr-xr-x) instead of 0755 (-rwxr-xr-x), like it is by default with
ptyfs mounted.

PR misc/57877

(riastradh)

2024-01-27 20:19:21 UTC MAIN commitmail json YAML

terminfo: Our local changes are now upstream; reduce diff to upstream.

The changes look bigger than they are, this also removes some
settings that are inherited from the vt220 entry.

(wiz)

2024-01-27 20:03:15 UTC MAIN commitmail json YAML

2024-01-27 19:44:46 UTC MAIN commitmail json YAML

Add missing comma. Noted by Thomas E. Dickey.

(wiz)

2024-01-27 17:58:36 UTC MAIN commitmail json YAML

2024-01-27 17:44:37 UTC MAIN commitmail json YAML

Add support for "PAL" (576i) mode on Wii.

(hgutch)

2024-01-27 16:04:36 UTC MAIN commitmail json YAML

PR/57875: Jason Bacon: Try again without an _ for portability.

(christos)

2024-01-27 15:55:26 UTC MAIN commitmail json YAML

2024-01-27 15:53:58 UTC MAIN commitmail json YAML

2024-01-27 15:53:30 UTC MAIN commitmail json YAML

merge changes, but keep our old wscons description

(christos)

2024-01-27 15:53:28 UTC MAIN commitmail json YAML

lint: split determining the type of an integer constant

No functional change.

(rillig)

2024-01-27 15:10:57 UTC MAIN commitmail json YAML

2024-01-27 12:14:58 UTC MAIN commitmail json YAML

lint: extract signedness detection from lexing an integer constant

An integer constant that is signed in traditional C but unsigned since
C90 is an edge case that should not clutter the main code of determining
the resulting type of the constant.

The code for lexing an integer constant doesn't implement the C99 rules
yet, which convert a constant to the 'long long' types if the 'long'
types don't suffice.

(rillig)

2024-01-27 10:57:05 UTC MAIN commitmail json YAML

Revert previous (stop building static libfb.a module for Xorg 1.10).

It breaks builds in xorg-server.old/hw/xfree86/Xorg on alpha,
netwinder, and sgimips (but not vax).

>> dependall ===> external/mit/xorg/server/xorg-server.old/hw/xfree86/Xorg
>> nbmake[13]: don't know how to make [...]/xorg-server.old/hw/xfree86/dixmods/fb/libfb.a. Stop

(tsutsui)

2024-01-27 10:32:03 UTC MAIN commitmail json YAML

tests/libutil/snprintb: fix test for 32-bit platforms

(rillig)

2024-01-27 08:54:15 UTC MAIN commitmail json YAML

tests/libutil/snprintb: add more tests

Test all number bases (octal, decimal, hexadecimal), in both old-style
and new-style formats, as well as small buffer sizes.

Document working edge cases such as empty descriptions or descriptions
containing spaces, as well as situations that invoke undefined behavior.

Add comments to the individual test cases, as reading the actual format
strings takes more time.

(rillig)

2024-01-27 05:50:42 UTC MAIN commitmail json YAML

Enable asinl, acosl, logl, coshl, tanhl, atanhl, asinhl and acoshl

* Fix pkgsrc/math/py-numpy and pkgsrc/graphics/py-matplotlib, for example.

(ryoon)

2024-01-26 23:41:55 UTC MAIN commitmail json YAML

2024-01-26 23:19:44 UTC MAIN commitmail json YAML

2024-01-26 22:01:40 UTC MAIN commitmail json YAML

sinhf is in the same manual page as sinh not sin

(nros)

2024-01-26 21:34:02 UTC MAIN commitmail json YAML

move MD2Transform first.

(christos)

2024-01-26 19:27:30 UTC MAIN commitmail json YAML

2024-01-26 13:37:21 UTC MAIN commitmail json YAML

Handle "LSBit is left" bitorder VRAM of smg(4) and qv(4) on VAXen.

Confirmed on smg(4) on my VAXstation 3100/30.
Should be pulled up to netbsd-10.

(tsutsui)

2024-01-26 13:06:37 UTC MAIN commitmail json YAML

Put back xorg_server_ver=110 specific files lost in 21.1.3 updates.

Also fix syspkg names and reorder entries for readabilities.
Fixes "fail to load libfb.so" errors in case of HAVE_XORG_SERVER_VER=110.
(Note these ports have been switched to HAVE_XORG_SERVER_VER=120)

Ok'ed by mrg@ on tech-x11@:
https://mail-index.netbsd.org/tech-x11/2024/01/24/msg002434.html

(tsutsui)

2024-01-26 12:58:51 UTC MAIN commitmail json YAML

2024-01-26 12:32:49 UTC MAIN commitmail json YAML

Fix inverted logic for weak alias

* Fix gfortran from pkgsrc/lang/gcc10 and pkgsrc/math/coinmp, for example.

(ryoon)

2024-01-26 11:32:12 UTC MAIN commitmail json YAML

Stop building static libfb.a module for Xorg server 1.10 ports.

It looks unused and marked as obsolete in
src/distrib/sets/lists/xserver/md.* list files since netbsd-8.

(tsutsui)

2024-01-26 10:09:35 UTC MAIN commitmail json YAML

tweak wii entry

(jmcneill)

2024-01-26 09:41:42 UTC MAIN commitmail json YAML

Add wsvt25 entries (off by default) for ttyE0-ttyE3.

(jmcneill)

2024-01-26 07:10:04 UTC MAIN commitmail json YAML

Don't use the signal handler to terminate when nothing is to do (count=0, files=0).

The signal handler tries to raise the signal again, so that a parent can retrieve
the signal from the exit code. Calling the terminate handler with signal code 0
doesn't raise a signal and dd continues with exit(127) making this case an error.

(mlelstv)

2024-01-26 03:23:36 UTC MAIN commitmail json YAML

wm(4): Print RX packet buffer size.

(msaitoh)

2024-01-26 00:49:22 UTC MAIN commitmail json YAML

wii: Remove objcopy after kernel build.

HBC will do the right thing.

(jmcneill)

2024-01-26 00:32:46 UTC MAIN commitmail json YAML

tests/usr.bin/mtree: xfail PR 57877; omit needless debug print.

(riastradh)

2024-01-25 21:00:59 UTC MAIN commitmail json YAML

Note that in both :U and :D newval may be empty

(sjg)

2024-01-25 19:12:49 UTC MAIN commitmail json YAML

Fix mmap(2) address for smg(4) as other framebuffers.

Now X.org server can render onto framebuffer (but inverted bitorder).
Should be pulled up to netbsd-10 and netbsd-9.

(tsutsui)

2024-01-25 18:13:14 UTC MAIN commitmail json YAML

tests/libutil/snprintb: clean up and extend tests

In case of a failure, print the details of the test case, including file
and line number of the actual test data. Do not write the format strings
directly to the output, as they contain non-printable bytes and embedded
null bytes.

After a failed test case, continue with the others.

Lay out the format strings according to their structure, to make them
more readable. Remove redundant "\0" at the end of the new-style format
strings.

Fix an off-by-one error in the test data: 0xf is FIFTEEN, not SIXTEEN.

Add a test for performing a restricted subset of rot13 in the format
string, to explore the limits of snprintb formatting.

What's still missing are tests for edge cases and error cases.

(rillig)

2024-01-25 11:47:53 UTC MAIN commitmail json YAML

2024-01-25 07:35:46 UTC MAIN commitmail json YAML

Indicate that for :U newval is optional

(sjg)

2024-01-25 05:48:56 UTC MAIN commitmail json YAML

igc(4): Count iqdrops.

TODO: RQDPC should be visible via evcnt(9).

(msaitoh)

2024-01-25 02:42:17 UTC MAIN commitmail json YAML

blkdiscard: avoid asserting when passed a bsd disklabel raw device

PR#57856 shows when using blkdiscard on eg, /dev/ld0 it asserts because
'0' is not between 'a' and 'p'.  switch this to using DISKPART() on the
returned st_rdev, so it works on 'ld0c' or 'ld0' (rawpart=2.)

(mrg)

2024-01-25 02:06:56 UTC MAIN commitmail json YAML

determine the tty width instead off writing 100 chars before a new line.

(mrg)

2024-01-25 01:43:59 UTC MAIN commitmail json YAML

add missing mtree subdir and it's Atffile.

(mrg)

2024-01-25 00:30:58 UTC MAIN commitmail json YAML

mtree(8): Test the installed sets.

Except etc and xetc, which likely won't match for reasons that aren't
great, like etc including empty log files which in an installed
system have probably changed.

This test will probably fail, but we should make sure it doesn't!

PR misc/57877

(riastradh)

2024-01-24 21:53:35 UTC MAIN commitmail json YAML

2024-01-24 21:04:09 UTC MAIN commitmail json YAML

space -> tab cleanup

(wiz)

2024-01-24 20:06:40 UTC MAIN commitmail json YAML

zlib-1.3.1 out

(wiz)

2024-01-24 16:11:48 UTC MAIN commitmail json YAML

Unbreak sched_m2 (died because lwp_eproc() KASSERT in DIAGNOSTIC) and explain
what is going on. This has been broken since the introduction of l_mutex
5 months ago.

(christos)

2024-01-24 05:18:59 UTC MAIN commitmail json YAML

ixgbe: Add QPRDC into iqdrops.

A receive packet might drop at two different locations.
One is the packet buffer that packets are received into the chip first.
If the packet buffer is overflowed, the MPC register is incremented.
It's currently added to iqdrops. It's no problem.
Another is descriptor ring(s). A packet from the packet buffer is DMA'ed
into main memory base on the descriptor ring. If the ring is full, the packet
is dropped and the QPRDC register is incremented. It should be added to
iqdrops but it was not done. Fix it.
Reported by ozaki-r@.

(msaitoh)

2024-01-24 04:14:07 UTC MAIN commitmail json YAML

add the script I used to convert the FreeBSD code.

(christos)

2024-01-24 04:00:43 UTC MAIN commitmail json YAML

style: Fix typo, NFC

"it it" --> "it is" (across a newline)

(rin)

2024-01-23 23:13:05 UTC MAIN commitmail json YAML

ld@sdmmc(4): Hack around deadlock in cache sync on detach.

Yanking a card triggers the sdmmc discovery task, which runs in the
sdmmc task thread, to detach any attached child devices.

Detaching ld@sdmmc triggers a cache flush (via ldbegindetach ->
disk_begindetach -> ld_lastclose -> ld_flush -> ioctl DIOCCACHESYNC),
which is implemented by scheduling a task to do sdmmc_mem_flush_cache
and then waiting for it to complete.

The sdmmc_mem_cache_flush is done by an sdmmc task so it happens
after all previously scheduled I/O operations -- that way the cache
flush doesn't complete until the previously scheduled I/O operations
are complete.

However, when the cache flush task is issued from the discovery task,
this doesn't work, because the cache flush task can't start until the
discovery task has returned -- but the discovery task won't return
until the cache flush task has completed.

To work around this deadlock, which usually happens only when the
device has been yanked anyway so further I/O would be lost anyway,
just do the cache flush synchronously in DIOCCACHESYNC if we're
running in the task thread.

This isn't quite right -- implementation details of the task thread
shouldn't bleed into ld@sdmmc, and running the cache sync _before_
any subsequently scheduled I/O tasks is asking for trouble -- but it
should serve to avoid the deadlock in PR kern/57870 until we can fix
a host of concurrency bugs in sdmmc by fixing the locking scheme and
running discovery in a separate thread from tasks.

XXX pullup-10

(riastradh)

2024-01-23 22:07:23 UTC MAIN commitmail json YAML

tests/lint: revert accidental addition of test for lint message 356

(rillig)

2024-01-23 21:56:07 UTC MAIN commitmail json YAML

wii: provide device names to intr_establish

wii$ intrctl list
interrupt id      CPU0  device name(s)
pi irq 14        64769* hollywood0
hollywood irq 36  5872* ehci0
hollywood irq 39 58907* sdhc0
hollywood irq 40    4* sdhc1
hollywood irq 49    0* resetbtn0
pi irq 5            0* bwai0

(jmcneill)

2024-01-23 21:49:51 UTC MAIN commitmail json YAML

wii: Simply DSP driver - no interrupt handler required.

(jmcneill)

2024-01-23 21:49:20 UTC MAIN commitmail json YAML

wii: Use A/V encoder volume controls instead of using a software filter.

(jmcneill)

2024-01-23 21:48:12 UTC MAIN commitmail json YAML

2024-01-23 20:03:42 UTC MAIN commitmail json YAML

lint: unconst parameters

These were leftovers from earlier refactorings and are no longer needed.

No binary change.

(rillig)

2024-01-23 19:44:29 UTC MAIN commitmail json YAML

2024-01-23 17:24:38 UTC MAIN commitmail json YAML

2024-01-23 15:58:17 UTC MAIN commitmail json YAML

+HNDL  harvest now, decrypt later

(jschauma)

2024-01-23 15:45:07 UTC MAIN commitmail json YAML

2024-01-23 15:32:54 UTC MAIN commitmail json YAML

2024-01-23 15:32:18 UTC MAIN commitmail json YAML

2024-01-23 15:31:58 UTC MAIN commitmail json YAML

fix vax build (unused variable)

(christos)

2024-01-23 12:23:34 UTC MAIN commitmail json YAML

more annotation for powerpc

(christos)

2024-01-23 08:08:36 UTC MAIN commitmail json YAML

2024-01-23 08:01:15 UTC MAIN commitmail json YAML

doc: Changes for January

(nia)

2024-01-23 04:15:54 UTC MAIN commitmail json YAML

powerpc/ieee.h: Protect from multiple includes

Fix build failure triggered by import of libm long-double functions.

(rin)

2024-01-23 00:13:37 UTC MAIN commitmail json YAML

wii: Use screen dimming register for screen blanking.

(jmcneill)

2024-01-22 23:07:43 UTC MAIN commitmail json YAML

wii: Add screenblank support.

(jmcneill)

2024-01-22 21:28:15 UTC MAIN commitmail json YAML

wii: Add drivers for Broadway DSP and Audio interface.

0: [*] audio0 @ bwdsp0: Broadway DSP
      playback: 16, 2ch, 48000Hz
      record:  unavailable
      (P-) slinear_be 16/16, 2ch, { 48000 }

(jmcneill)

2024-01-22 21:23:03 UTC MAIN commitmail json YAML

2024-01-22 21:17:01 UTC MAIN commitmail json YAML

xf86-video-wsfb: Add support for Nintendo Wii

The Wii's framebuffer is YUY2, so add a custom shadowproc that converts
from RGB565 to YUY2 on the fly.

(jmcneill)

2024-01-22 21:15:02 UTC MAIN commitmail json YAML

fix M_CSUM_BITS bitfield for M_CSUM_BLANK - \37 is the bit before \40

noticed by rillig@ thanks

(jdolecek)

2024-01-22 18:50:46 UTC MAIN commitmail json YAML

PR/57871: Haelwenn Monnier: Don't use u_char because it is not defined in with
POSIX_C_SOURCE

(christos)

2024-01-22 15:19:39 UTC MAIN commitmail json YAML

Bump libm minor rev (libm.so.0.13 -> libm.so.0.14) after addition of
all the long double functions (with actual implementations).

(kre)

2024-01-22 14:37:25 UTC MAIN commitmail json YAML

Add multiple inclusion protection guard - the long double math routines
have a tendency to sometimes make that happen.

This seems to fix the sun3 build, and probably other m68k builds which
were working before the libm upgrades (it will do nothing for any that
were failing before that).

(kre)

2024-01-22 14:33:26 UTC MAIN commitmail json YAML

postfix-3.8.5 is out

(wiz)

2024-01-22 14:26:18 UTC MAIN commitmail json YAML

Simply an overly complex way of saying "0 or 1" into a cleaner version.

While here add a commment about how the __i386__ magic LD80C macro
might no longer work on all other arch's as well (if someone can verify
that it still does, or can fix it so that it still works on i386, but
also works everywhere else, then please remove that XXX comment.
The issue I am (perhaps imagining) is the (uint32_t) cast.

(kre)

2024-01-22 14:01:50 UTC MAIN commitmail json YAML

It seems that we need prototypes for long double math functions, even
when !__HAVE_LONG_DOUBLE -- they still exist, but just aren't...

This might unbreak several more builds.

(kre)

2024-01-22 12:15:19 UTC MAIN commitmail json YAML

This set of changes seem to be sufficient to make at least the
amd64 port build again after the long double math function infusion
from yesterday.

Feel free (without consulting me, I'm just hacking about) to revert
any of this and do it a better way.

Note: this is not intended to be complete, in particular, in <math.h>
I added prototypes only for the functions that are needed for a
successful build, not all of the new ones...

(kre)

2024-01-22 07:57:49 UTC MAIN commitmail json YAML

Fix column alignment in ps/w output

(skrll)

2024-01-22 07:15:25 UTC MAIN commitmail json YAML

Don't duplicate PIM_CPU_BITS in one printf.

PIM_CPU_HPMC_BITS already includes PIM_CPU_HPMC_BITS

(skrll)

2024-01-22 07:10:54 UTC MAIN commitmail json YAML

Fix one by one bugs I committed back in 2009.  Spotted by rillig@.

(skrll)

2024-01-22 06:28:49 UTC MAIN commitmail json YAML

Missing '\'

Many thnanks rillig@

XXX-pullup10.

(nat)

2024-01-22 00:11:21 UTC MAIN commitmail json YAML

snprintb(3): restore empty string in snprintb_m example

Restore the empty string at the end of snprintb_m output that was
accidentally removed along with empty string placeholders in the
format strings.  While here, move that example to be next to its
snprintb counterpart.

(uwe)

2024-01-21 23:57:49 UTC MAIN commitmail json YAML

snprintb(3): update mmap example

Bring over the prettier version of the mmap format string that we have
in the header file for some time now.  Clarify that the final NUL of
the new format string is supplied by the compiler, g/c explicit final
\0 from the example that had it.

(uwe)

2024-01-21 23:44:30 UTC MAIN commitmail json YAML

snprintb(3): try to improve narration

Try to make the narration more coherent.  Make the old and new
syntaxes easy to distinguish and go out of our way to highlight that
the old syntax uses 1-based bit positions.

(uwe)

2024-01-21 22:06:46 UTC MAIN commitmail json YAML

snprintb.3: remove empty string literals from examples

Suggested by uwe@, as gaps in bitmasks are quite common and thus
shouldn't clutter the code.

(rillig)

2024-01-21 21:31:23 UTC MAIN commitmail json YAML

snprintb.3: fix examples

The first example broke the format string at boundaries that didn't
highlight the structure of the format string and also didn't make it
clear that a few bits were omitted from having descriptions.

The second example contained an off-by-one error for SIXTEEN, which was
actually FIFTEEN.

The snprintb_m example repeated the above off-by-one error, and its
output was shown wrong, due to concatenated escape sequences.

(rillig)

2024-01-21 18:53:19 UTC MAIN commitmail json YAML

2024-01-21 16:55:56 UTC MAIN commitmail json YAML

Handle -d %Y%m%d in the tools version. This is used in the release notes
Makefile.inc when BUILDID is specified. Consider providing parsedate(3)
in libcompat, but then we'd need yacc...

(christos)

2024-01-21 16:32:41 UTC MAIN commitmail json YAML

make: refactor CondParser_Term to be inlinable

No functional change.

(rillig)

2024-01-21 15:22:55 UTC MAIN commitmail json YAML

make: clean up parsing of conditions

No functional change.

(rillig)

2024-01-21 15:10:08 UTC MAIN commitmail json YAML

Include <sys/bootblock.h> for struct mbr_sector

(kre)

2024-01-21 15:02:17 UTC MAIN commitmail json YAML

make: clean up redundant 'const' from automatic variables

No binary change.

(rillig)

2024-01-21 14:59:18 UTC MAIN commitmail json YAML

lint: on lint itself, disable query for const variables again

It suffixes to perform this check on demand.

(rillig)

2024-01-21 14:21:34 UTC MAIN commitmail json YAML

lint: clean up redundant const from parameters and local variables

These were leftovers from splitting large functions into smaller
functions, to ensure that variables were not unintentionally reassigned.
Those refactorings are finished, and the extra help from the compiler is
no longer necessary.

No binary change.

(rillig)

2024-01-21 14:11:52 UTC MAIN commitmail json YAML

lint: create .ln output file even when queries are enabled

This allows to configure lint flags in mk.conf globally for a whole
NetBSD build.  Previously, this would have made the build fail due to
missing .ln files.

The previous use case of rerunning lint with or without queries is easy
enough to achieve by doing a 'make clean', in the same way as for lint
warnings.

(rillig)

2024-01-21 13:10:55 UTC MAIN commitmail json YAML

2024-01-21 13:05:29 UTC MAIN commitmail json YAML

wii: Add NTSC 480p support.

In addition to this, add VIIO_{GET,SET}REGS ioctl support to allow for
poking at video interface registers from userland. This is helpful for
debugging display issues.

(jmcneill)

2024-01-21 12:58:10 UTC MAIN commitmail json YAML

Unwrap a line which wasn't wrapped before it had an __UNCONST() added
to it, and now that that is gone again, doesn't need wrapping any more.

That line is now unaltered from what it was 3 revs ago (bit for bit).

NFC.

(kre)

2024-01-21 10:28:25 UTC MAIN commitmail json YAML

build fix: use dd with count=1 for compat with NetBSD dd(1)

(jmcneill)

2024-01-21 08:48:21 UTC MAIN commitmail json YAML

Make this compile without MULTIPROCESSOR

(skrll)

2024-01-21 08:41:00 UTC MAIN commitmail json YAML

Remove an empty line

(skrll)

2024-01-21 08:39:50 UTC MAIN commitmail json YAML

2024-01-21 03:42:08 UTC MAIN commitmail json YAML

Catch up with revision 1.5 of atomic_init_cas.c.  Fixes building libc
on sun2, and probably others.

(thorpej)

2024-01-21 01:41:54 UTC MAIN commitmail json YAML

2024-01-21 00:43:35 UTC MAIN commitmail json YAML

2024-01-21 00:35:57 UTC MAIN commitmail json YAML

2024-01-20 21:36:00 UTC MAIN commitmail json YAML

2024-01-20 21:09:28 UTC MAIN commitmail json YAML

usb: increase USB_PORT_RESET_RECOVERY from 10ms to 20ms

I changed this from 250ms to 10ms back in 2021 based on a similar FreeBSD
change, but it seems to be a bit too aggressive for some platforms.

(jmcneill)

2024-01-20 20:49:11 UTC MAIN commitmail json YAML

powerpc: fix delay for large (> ~5sec) values

When calculating the target timebase, promote '1000' on the RHS to ULL
to force 64-bit calculation, otherwise 'n * 1000' will overflow.

(jmcneill)

2024-01-20 17:20:09 UTC MAIN commitmail json YAML

Create some more nodes.

(skrll)

2024-01-20 16:52:41 UTC MAIN commitmail json YAML

Add range tests with trailing characters.

(christos)

2024-01-20 16:45:07 UTC MAIN commitmail json YAML

2024-01-20 16:28:44 UTC MAIN commitmail json YAML

2024-01-20 16:18:56 UTC MAIN commitmail json YAML

Make the first argument of ip6_str2scopeid const, instead of __UNCONST.
Thanks kre@. While here s/u_int32_t/uint32_t/

(christos)

2024-01-20 16:13:39 UTC MAIN commitmail json YAML

PR/57828: Alejandro Colomar: Prioritize test for ERANGE before testing for
fully consuming the string. Adjust strtonum(3) to behave as before. Document
the order of the tests and sync the man pages (I should really autogenerate
one of the two man pages...)

(christos)

2024-01-20 14:55:11 UTC MAIN commitmail json YAML

2024-01-20 14:55:02 UTC MAIN commitmail json YAML

2024-01-20 14:52:49 UTC MAIN commitmail json YAML

2024-01-20 13:33:03 UTC MAIN commitmail json YAML

Don't put big structures on stack.
Should fix PR 57859.

(mlelstv)

2024-01-20 13:15:46 UTC MAIN commitmail json YAML

Make __learn_tree always visible. It starts with __ anyway.

(christos)

2024-01-20 12:02:10 UTC MAIN commitmail json YAML

2024-01-20 11:04:53 UTC MAIN commitmail json YAML

Compensate for src/common/lib/libc/atomic/atomic_init_cas.c losing
the extern declaration of __libc_atomic_init() and instead using a
new one added to src/lib/libc/include/extern.h

That file is outside src/common and src/sys so is unavailable to
kernel builds, so instead make a new include file in src/common
which the kernel can read which contains the needed extern decl
for __libc_atomic_init()

This seems to fix the evbarm builds (maybe others) - but it is
all MUCH TOO UGLY to keep.  Someone please make a better fix,
even if that just means reverting rev 1.5 of
src/common/lib/libc/atomic/atomic_init_cas.c
and all of the changes here (the addition to libc/include/extern.h
should be harmless to keep).

(kre)

2024-01-20 10:25:57 UTC MAIN commitmail json YAML

2024-01-20 10:21:35 UTC MAIN commitmail json YAML

2024-01-20 10:02:31 UTC MAIN commitmail json YAML

2024-01-20 09:47:35 UTC MAIN commitmail json YAML

fix comments: HID0 ICFI/DCFI are "flash invalidate", not "flush invalidate"

(jmcneill)

2024-01-20 08:40:37 UTC MAIN commitmail json YAML

Now that rusage_to_rusage50() has switched from being an external
function, to a static inline, we need <resource.h> for it to work.
Not all callers provide that (and nor should they need to), so include
it here.

Should unbreak the builds.

(kre)

2024-01-20 08:09:13 UTC MAIN commitmail json YAML

risc-v: Add bwfm(4) firmware files to release image

Create the correct link for beagle,beaglev-starlight-jh7100-r0.txt NVRAM
config file.

(skrll)

2024-01-20 08:05:37 UTC MAIN commitmail json YAML

Add bwfm* at sdmmc? for the Broadcom BCM43xxx WiFi Interface

(skrll)

2024-01-20 08:04:35 UTC MAIN commitmail json YAML

Add DesignWare SD/MMC attachment.

(skrll)

2024-01-20 02:23:15 UTC MAIN commitmail json YAML

What good are comments, really, if you can't have a little color?  Add
a note above CLKF_INTR() about why NetBSD will likely never switch to
using the "master" stack for the kernel, and thus why the not-enabled
version of CLKF_INTR() will never be enabled.

(Adding the comment here, rather than just deleting the code, has value,
I think, for future retrocomputing archeologists.)

(thorpej)

2024-01-20 01:04:29 UTC MAIN commitmail json YAML

2024-01-20 00:51:29 UTC MAIN commitmail json YAML

ehci: add EHCIF_32BIT_ACCESS flag to force 32-bit MMIO

(jmcneill)

2024-01-20 00:24:58 UTC MAIN commitmail json YAML

wsfb: add support for optional "devcmap" property

A hardware driver can supply a pointer to a 16x 32-bit array to override
the default rasops device colour map in the "devcmap" property.

(jmcneill)

2024-01-20 00:23:13 UTC MAIN commitmail json YAML

wscons: Add HOLLYWOOD display and YUY2 pixel format types

(jmcneill)

2024-01-20 00:22:11 UTC MAIN commitmail json YAML

sdmmc: add support for optional delay after register write

(jmcneill)

2024-01-20 00:19:12 UTC MAIN commitmail json YAML

Support the hardware-assisted AST on news68k in the common interrupt
stubs.

(thorpej)

2024-01-20 00:19:07 UTC MAIN commitmail json YAML

powerpc: oea: Decode IBM750CL L2 cache information.

(jmcneill)

2024-01-20 00:18:20 UTC MAIN commitmail json YAML

powerpc: oea: Fix prefetchable mappings

Prefetchable mappings need PMAP_NOCACHE to get write-combine semantics.

(jmcneill)

2024-01-20 00:15:33 UTC MAIN commitmail json YAML

2024-01-19 22:24:38 UTC MAIN commitmail json YAML

i915_gem_stolen: Fill sg_pgs, with size/PAGE_SIZE entries.

Use sg_alloc_table_from_bus_dmamem to do this.

i915_gem_mman.c vm_fault_cpu and i915_gem_object_release_mmap_offset
both rely on sg_pgs to be a page array, so providing a table with
only one entry doesn't work (except by accident, if the object is
page-sized anyway).  And they rely on the sg_pgs entries to be
initialized, which we weren't doing before, and which
sg_alloc_table_from_bus_dmamem does for us.

Related to PR kern/57833.

XXX pullup-10

(riastradh)

2024-01-19 22:24:27 UTC MAIN commitmail json YAML

i915_gem_stolen: Fix memory leak.

Found while trying to address the PR 57833 class of problems.

XXX pullup-10

(riastradh)

2024-01-19 22:23:19 UTC MAIN commitmail json YAML

i915_gem_region: Fill sg_pgs, with size/PAGE_SIZE entries.

Use sg_alloc_table_from_bus_dmamem to do this.

i915_gem_mman.c vm_fault_cpu and i915_gem_object_release_mmap_offset
both rely on sg_pgs to be a page array, so using something else like
size >> ilog2(mem->mm.chunk_size) entries doesn't work.  And they
rely on the sg_pgs entries to be initialized, which we weren't doing
before, and which sg_alloc_table_from_bus_dmamem does for us.

Related to PR kern/57833.

XXX pullup-10

(riastradh)

2024-01-19 22:23:04 UTC MAIN commitmail json YAML

i915_gem_phys: Fill sg_pgs.

This is needed by i915 gem fault, which maps user virtual addresses
to those pages, and by i915 gem object destruction, which does
pmap_page_protect on the pages to remove any of those user virtual
mappings.

This needs pmap_kenter_pa rather than pmap_enter(pmap_kernel(), ...)
in order to preserve the _kernel's_ mapping of the pages after
pmap_page_protect.

But bus_dmamem_map currently uses pmap_enter(pmap_kernel(), ...)
instead which creates a mapping that is removed by pmap_page_protect.

So we use a variant of bus_dmamem_map that uses pmap_kenter_pa
instead.  Perhaps bus_dmamem_map should do this itself, but this
change is less risky to pull up than a change to bus_dmamem_map
itself.

PR kern/57833: kernel panic on xorg exit

XXX pullup-10

(riastradh)

2024-01-19 22:22:54 UTC MAIN commitmail json YAML

i915_gem: Assert page array size.

Let's detect the bug of sg_npgs failing to match
obj->base.size/PAGE_SIZE earlier.

Related to PR kern/57833.

XXX pullup-10

(riastradh)

2024-01-19 22:22:40 UTC MAIN commitmail json YAML

i915_gem: Avoid walking off end of sg_pgs.

sg_npgs currently fails to match obj->base.size/PAGE_SIZE only due to
bugs in the construction of sg_pgs in various i915 gem object types,
which we should also fix, but let's avoid compounding it here.

Related to PR kern/57833.

XXX pullup-10

(riastradh)

2024-01-19 22:22:27 UTC MAIN commitmail json YAML

i915_gem_region: Reduce diff from upstream a little.

No functional change intended.

Prompted by upcoming nearby changes related to PR kern/57833.

XXX pullup-10 (to make subsequent pullups easier)

(riastradh)

2024-01-19 20:55:42 UTC MAIN commitmail json YAML

2024-01-19 19:55:03 UTC MAIN commitmail json YAML

2024-01-19 19:33:49 UTC MAIN commitmail json YAML

2024-01-19 19:32:42 UTC MAIN commitmail json YAML

2024-01-19 19:31:41 UTC MAIN commitmail json YAML

2024-01-19 19:23:35 UTC MAIN commitmail json YAML

2024-01-19 19:22:18 UTC MAIN commitmail json YAML

2024-01-19 19:21:34 UTC MAIN commitmail json YAML

2024-01-19 19:08:49 UTC MAIN commitmail json YAML

simplify, we need to hard code the constant for tools anyway.

(christos)

2024-01-19 19:07:38 UTC MAIN commitmail json YAML

2024-01-19 18:49:10 UTC MAIN commitmail json YAML

Switch the x68k port to use the same clockframe layout as the other
m68k ports.

(thorpej)

2024-01-19 18:45:01 UTC MAIN commitmail json YAML

add lint flags for compiler_rt

(christos)

2024-01-19 18:41:38 UTC MAIN commitmail json YAML

2024-01-19 18:41:30 UTC MAIN commitmail json YAML

Add lint flags for jemalloc

(christos)

2024-01-19 18:40:35 UTC MAIN commitmail json YAML

2024-01-19 18:39:59 UTC MAIN commitmail json YAML

2024-01-19 18:39:15 UTC MAIN commitmail json YAML

2024-01-19 18:23:13 UTC MAIN commitmail json YAML

2024-01-19 18:18:56 UTC MAIN commitmail json YAML

2024-01-19 17:08:42 UTC MAIN commitmail json YAML

Switch the amiga port to use the same clockframe layout as the other
m68k ports.

(thorpej)

2024-01-19 09:09:39 UTC MAIN commitmail json YAML

2024-01-19 09:09:04 UTC MAIN commitmail json YAML

Make fdt_cpu_rootconf available for other machines/platforms.

(skrll)

2024-01-19 05:47:15 UTC MAIN commitmail json YAML

Revert unintended commit.

(thorpej)

2024-01-19 05:46:36 UTC MAIN commitmail json YAML

2024-01-19 05:45:28 UTC MAIN commitmail json YAML

2024-01-19 03:59:47 UTC MAIN commitmail json YAML

2024-01-19 03:57:04 UTC MAIN commitmail json YAML

opt_mvmetype.h -> opt_mvmeconf.h to match mvme68k (which wins out because
it supports more boards).

(thorpej)

2024-01-19 03:35:31 UTC MAIN commitmail json YAML

Move physaccess(), physunaccess(), and kvtop() from vm_machdep.c to
pmap_motorola.c.  They're legacy functions tied to that pmap implementation.

(thorpej)

2024-01-19 03:09:05 UTC MAIN commitmail json YAML

2024-01-18 14:42:09 UTC MAIN commitmail json YAML

Remove a comment that is no longer applicable.

(thorpej)

2024-01-18 14:39:07 UTC MAIN commitmail json YAML

2024-01-18 13:46:14 UTC MAIN commitmail json YAML

Switch next68k over to common interrupt dispatch and G/C __HAVE_LEGACY_INTRCNT.
Also included is G/C of the old ssir stuff that's no longer used.

(thorpej)

2024-01-18 12:07:51 UTC MAIN commitmail json YAML

Set TT0 register to recognize the I/O space even on the 68030 case.

http://mail-index.netbsd.org/port-m68k/2024/01/17/msg000870.html

(isaki)

2024-01-18 10:34:29 UTC MAIN commitmail json YAML

rearrange things so we:
- find machine_ledaddr on Cxxx and the like without lcd at mainbus
- build without options USELEDS

(macallan)

2024-01-18 07:48:57 UTC MAIN commitmail json YAML

2024-01-18 07:41:50 UTC MAIN commitmail json YAML

2024-01-18 05:42:29 UTC MAIN commitmail json YAML

Bump required version (mkflagvar).

(thorpej)

2024-01-18 05:41:38 UTC MAIN commitmail json YAML

2024-01-18 05:13:48 UTC MAIN commitmail json YAML

Add "options M68010" for completeness.

(thorpej)

2024-01-18 05:12:30 UTC MAIN commitmail json YAML

Don't put the MVME1xx model defines into IDENT, make them defflag options and
put them in opt_mvmeconf.h.  Make these options depend on the appropriate
M680x0 option (MVME147 -> M68030, MVME16[27] -> M68040, MVME17[27] -> M68060)
so that the CPU option appears correctly in opt_m68k_arch.h.

(thorpej)

2024-01-18 05:04:13 UTC MAIN commitmail json YAML

mkflagvar M68010 M68020 M68030 M68040 M68060

(thorpej)

2024-01-18 04:41:38 UTC MAIN commitmail json YAML

With config(1) as it exists today, a kernel Makefile is able to implement
logic on kernel options so long as those options are not defflag'd or
defparam'd.  This works because such options are automatally added to the
IDENT var in the kernel Makefile as a preprocessor define, and the Makefile
can then do an operation like:

.if !empty(IDENT:M-DSOMECOOLCPUOPTION)
CFLAGS+= -mcpu=somecoolcpu
.endif

Unfortunately, this precludes making it possible to generate a compile-time
dependency on SOMECOOLCPUOPTION, or having SOMECOOLCPUOPTION imply another
kernel config option using the normal config(1) option dependency function.

Fix this by introducing a new option description keyword: mkflagvar.  This
keyword marks an already defflag'd option as wanting a kernel Makefile var
defined if that option is selected in the kernel config file.  So:

defflag opt_coolcpu.h SOMECOOLCPUOPTION ANOTHERCOOLCPUOPTION
mkflagvar SOMECOOLCPUOPTION ANOTHERCOOLCPUOPTION

will cause:

KERNEL_OPT_SOMECOOLCPUOPTION="1"
KERNEL_OPT_ANOTHERCOOLCPUOPTION="1"

...to be emitted into the kernel Makefile if those options are, in fact,
selected with "options ..." in the kernel config file, thus allowing for
a compile-time dependency on the option to be generated in addition to
Makefile logic, which now looks like:

.if !empty(KERNEL_OPT_SOMECOOLCPUOPTION)
CFLAGS+= -mcpu=somecoolcpu
.endif

(thorpej)

2024-01-18 04:08:44 UTC MAIN commitmail json YAML

doc: wm(4): Add some Meteor Lake devices (I219 V20-V21 and LM 20-21)

(msaitoh)

2024-01-18 04:07:38 UTC MAIN commitmail json YAML

Don't put the news1[27]00 model defines into INDENT, make them
defflag options and put them in opt_newsconf.h.  Make these
options depend on the appropriate M680x0 option (M68030 for each)
so that the CPU option appears correctly in opt_m68k_arch.h.

(thorpej)