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

2024-05-10 14:20:35 UTC Now

2021-02-13 09:28:27 UTC MAIN commitmail json YAML

tests/libcurses: fix reading from the parent process

In case of a short read, processing the incomplete data invoked
undefined behavior.

(rillig)

2021-02-13 09:18:12 UTC MAIN commitmail json YAML

tests/libcurses: fix child process handling

The child process needs to be properly controlled by the parent process.
Otherwise it is not possible to get code coverage data from it using
gcov since that requires the child process to exit normally.  Previously
the child process had been killed because its parent had exited.

(rillig)

2021-02-13 08:43:03 UTC MAIN commitmail json YAML

tests/libcurses: fix error messages

(rillig)

2021-02-13 08:37:21 UTC MAIN commitmail json YAML

tests/libcurses: "fix" test mvwin

The test mvwin previously expected an endless stream of bytes, by
comparing the actual output with /dev/zero.  This didn't make sense as
the curses output does not contain '\0' in any of the test cases.

Compare with /dev/null instead.  This is as wrong as before, but the
curses test framework currently ignores this situation, as for many
other test cases.  See the numerous "Excess" messages in atf-run.log.

(rillig)

2021-02-13 08:26:12 UTC MAIN commitmail json YAML

tests/libcurses: remove undocumented, unused command line option

The option -T has the same effect as the removed option -p.

(rillig)

2021-02-13 08:22:34 UTC MAIN commitmail json YAML

tests/libcurses: remove include path from usage message

The option has been removed a few minutes ago.

(rillig)

2021-02-13 08:17:15 UTC MAIN commitmail json YAML

tests/libcurses: clean up remaining include guard, comments

No functional change.

(rillig)

2021-02-13 08:14:46 UTC MAIN commitmail json YAML

2021-02-13 08:00:07 UTC MAIN commitmail json YAML

tests/libcurses: remove include path handling

All include commands in the current test suite use relative paths.
Instead of a fixed include path, interpret the included filename
relative to the including file.

(rillig)

2021-02-13 07:57:09 UTC MAIN commitmail json YAML

if_arp: Ensure that arphdr is aligned

(roy)

2021-02-13 07:32:19 UTC MAIN commitmail json YAML

tests/libcurses: align comments

(rillig)

2021-02-13 07:31:07 UTC MAIN commitmail json YAML

tests/libcurses: fix misleading usage documentation

The check-files are not config files.

(rillig)

2021-02-13 07:28:05 UTC MAIN commitmail json YAML

if_ether: Ensure that ether_header is aligned

(roy)

2021-02-13 07:08:45 UTC MAIN commitmail json YAML

tests/libcurses: fix pipe handling in the parent process

The parent process, like the child process, needs only 2 of the 4 pipe
ends.

In verbose mode (now at testlang_parse.y:1151 and :1154), both ends of the
pipe_from_slave were examined.  This looked like a typo and has been fixed
to those pipe ends that are relevant to the parent process.

(rillig)

2021-02-13 06:45:42 UTC MAIN commitmail json YAML

tests/libcurses: fix pipe handling in child process

The child process only ever needs 2 ends of the pipes: one for reading
the commands, one for writing back the results.

(rillig)

2021-02-13 06:29:45 UTC MAIN commitmail json YAML

2021-02-13 06:24:08 UTC MAIN commitmail json YAML

Document EINVAL for invalid flags given to fsync_range().

(dholland)

2021-02-13 05:38:16 UTC MAIN commitmail json YAML

tests/libcurses: fix warnings for missing environment variables

(rillig)

2021-02-13 02:17:02 UTC MAIN commitmail json YAML

Improve readability of this file by adding register prefixes.

(thorpej)

2021-02-13 01:51:24 UTC MAIN commitmail json YAML

Revert bnx(4) to INTx interrupts.

Should fix PR kern/55974.

This driver does not yet do the special MSI and MSI-X setup that the
chip apparently requires.

(jakllsch)

2021-02-13 01:48:33 UTC MAIN commitmail json YAML

- Don't change to the OFW stack in C code; instead, switch to the OFW
  stack in the openfirmware() wrapper itself.  Inspired by a similar
  change in OpenBSD designed to appease clang.
- The OF_*() entry firmware interfaces use several global resources;
  protect those global resources with a __cpu_simple_lock_t.
- Make ofbcopy() static -- it's no longer referenced outside openfirm.c

(thorpej)

2021-02-13 01:11:58 UTC MAIN commitmail json YAML

Call cpu_model_init() after clearing the MSR.

(thorpej)

2021-02-12 23:40:02 UTC MAIN commitmail json YAML

Add some comments to help visually track the nested #ifdef blocks in
ofwoea_batinit().

(thorpej)

2021-02-12 23:38:17 UTC MAIN commitmail json YAML

No need for a prototype of ofbcopy() here.

(thorpej)

2021-02-12 21:39:55 UTC MAIN commitmail json YAML

UART_RFIFO_REG should be masked before passing to cn_check_magic(). there is any data in other than the lower 8 bits.

(ryo)

2021-02-12 21:29:54 UTC MAIN commitmail json YAML

tests/libcurses: format misleading do-while loop

(rillig)

2021-02-12 21:29:03 UTC MAIN commitmail json YAML

2021-02-12 20:45:00 UTC MAIN commitmail json YAML

tests/libcurses: remove excess empty lines

(rillig)

2021-02-12 20:41:37 UTC MAIN commitmail json YAML

tests/libcurses: query function arguments in consistent order

(rillig)

2021-02-12 19:57:49 UTC MAIN commitmail json YAML

if_gre: Ensure that gre_h is aligned

(roy)

2021-02-12 19:48:26 UTC MAIN commitmail json YAML

entropy: Only print consolidation warning of AB_DEBUG.

The previous fix for PR kern/55458 changed printf to log(LOG_DEBUG, ...) with
the intent of hiding the message unless 'boot -x'. But this did not actually
suppress the message to console as log(LOG_DEBUG, ...) will print to console
if syslogd is not running yet.

So instead, just check for AB_DEBUG flag directly in boothowto, and only
printf the message if it is set.

(jmcneill)

2021-02-12 18:20:05 UTC MAIN commitmail json YAML

tests/libcurses: don't access args directly

By providing declarative syntax for accessing the arguments, the
unnecessarily detailed boilerplate code is hidden.  This allows easy
inspection by tools and humans, to check for typos and other mistakes.

(rillig)

2021-02-12 16:59:32 UTC MAIN commitmail json YAML

tests/libcurses: replace ARG_CHTYPE_STRING with ARG_CHTYPE

All uses of the previous macro did not treat the argument as a string or
array of chtype, but as a single chtype.  It's strange that the previous
code arbitrarily split the access to the argument by first storing it as
a pointer and then dereferencing it.

No functional change.

(rillig)

2021-02-12 16:49:19 UTC MAIN commitmail json YAML

tests/libcurses: add shortcut macros for SCREEN and unsigned int

(rillig)

2021-02-12 14:05:57 UTC MAIN commitmail json YAML

tests/libcurses: remove redundant comments

There is nothing surprising about call2, call3 or call4.

(rillig)

2021-02-12 12:58:52 UTC MAIN commitmail json YAML

tests/libcurses: reduce boilerplate in function dispatcher

No functional change.  The generated code for GCC 9.3 on NetBSD 9.99.80
x86_64 is exactly the same as before.

(rillig)

2021-02-12 12:43:04 UTC MAIN commitmail json YAML

regen for va_copy() check cross-compile soft fail

(lukem)

2021-02-12 12:39:18 UTC MAIN commitmail json YAML

configure: soft-fail cross-compile check for va_copy()

Be consistent with other AC_RUN_IFELSE() checks and change the va_copy()
checks to soft-fail (instead of hard fail) when cross-compiling.

(lukem)

2021-02-12 12:26:09 UTC MAIN commitmail json YAML

Reset serial terminal to default state at boot.

UEFI may leave the serial console in an undesireable state (incorrect
foreground and background colour, etc) when exiting. Send ANSI escape
sequences when setting up the early console attachments to turn off
character attributes and erase from the cursor to the end of the screen.

(jmcneill)

2021-02-12 08:56:04 UTC MAIN commitmail json YAML

2021-02-12 08:55:32 UTC MAIN commitmail json YAML

tests/libcurses: reduce boilerplate in function dispatcher

This makes the code more declarative and easier to reason about.

The generated code stays exactly the same.

(rillig)

2021-02-12 01:52:09 UTC MAIN commitmail json YAML

rnd(4): Consistently call it the `global pool'.

The `ready pool' is a term I used in a draft that I never committed.

(riastradh)

2021-02-11 19:06:24 UTC MAIN commitmail json YAML

remove unused/useless #ifdef block

(macallan)

2021-02-11 13:05:16 UTC netbsd-8 commitmail json YAML

2021-02-11 13:04:01 UTC netbsd-8 commitmail json YAML

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

sys/arch/x68k/x68k/machdep.c: revision 1.204

Restore fixes for PR/51663 lost in r1.195 (uvm_hotplug(9) merge).

The kernel crashdump and savecore(8) on NetBSD/x68k have been broken
(even without EXTNEDED_MEMORY) since NetBSD 8.0. Oops.

Should be pulled up to netbsd-9 and netbsd-8.

(martin)

2021-02-11 13:03:10 UTC netbsd-9 commitmail json YAML

2021-02-11 13:02:05 UTC netbsd-9 commitmail json YAML

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

sys/arch/x68k/x68k/machdep.c: revision 1.204

Restore fixes for PR/51663 lost in r1.195 (uvm_hotplug(9) merge).

The kernel crashdump and savecore(8) on NetBSD/x68k have been broken
(even without EXTNEDED_MEMORY) since NetBSD 8.0. Oops.

Should be pulled up to netbsd-9 and netbsd-8.

(martin)

2021-02-11 12:59:38 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ryoon in ticket #1653):

sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.136

Enable to mount Raspberry Pi Pico's USB mass storage partition
Fix PR kern/55985.

O.k. by thorpej@.
Pull-up to netbsd-8 and netbsd-9.

(martin)

2021-02-11 12:58:29 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by ryoon in ticket #1204):

sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.136

Enable to mount Raspberry Pi Pico's USB mass storage partition
Fix PR kern/55985.

O.k. by thorpej@.
Pull-up to netbsd-8 and netbsd-9.

(martin)

2021-02-11 12:54:56 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ryoon in ticket #1652):

sys/dev/scsipi/cd.c: revision 1.350
sys/dev/scsipi/sd.c: revision 1.331

PR 55986: Ryo Onodera: DK_BUSY must have mask as second argument. Make cd.c
consistent by also using __BIT()

(martin)

2021-02-11 12:53:28 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by ryoon in ticket #1203):

sys/dev/scsipi/cd.c: revision 1.350
sys/dev/scsipi/sd.c: revision 1.331

PR 55986: Ryo Onodera: DK_BUSY must have mask as second argument. Make cd.c
consistent by also using __BIT()

(martin)

2021-02-11 12:30:08 UTC MAIN commitmail json YAML

add new files for xterm 366.

(mrg)

2021-02-11 12:24:39 UTC MAIN commitmail json YAML

2021-02-11 09:57:53 UTC MAIN commitmail json YAML

clean up issues detected by address sanitizer (just some memory
leaks that only apply to the library version.)

XXX: the handling of hr_file and its variants is more crappy
again - the prior clean up is slightly less clean now, but at
least it does not leak memory.

XXX2: cgi-bin test hangs with address sanitizer.  don't know
why yet..

(mrg)

2021-02-11 09:23:56 UTC MAIN commitmail json YAML

2021-02-11 08:35:12 UTC MAIN commitmail json YAML

2021-02-11 02:37:11 UTC MAIN commitmail json YAML

Fix a message for NMI.

Maybe the "keyboard NMI" message was derived from hp300 but
on X68030 NMI is triggered by the NMI button, and there is no
parity check.

(tsutsui)

2021-02-11 00:15:55 UTC MAIN commitmail json YAML

Enable to mount Raspberry Pi Pico's USB mass storage partition

Fix PR kern/55985.
O.k. by thorpej@.

Pull-up to netbsd-8 and netbsd-9.

(ryoon)

2021-02-10 16:57:42 UTC netbsd-8 commitmail json YAML

2021-02-10 16:56:52 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ginsbach in ticket #1651):

usr.bin/nl/nl.c: revision 1.13
usr.bin/nl/nl.c: revision 1.14
usr.bin/nl/nl.c: revision 1.15

nl(1): remove superfluous exit

Remove exit(3) call missed when errors were converted to errx(3).

nl: fix -d delim parsing for POSIX
POSIX specifies it is possible to specify a one delimiter character.
Fix the logic so that both one and two character delimiters are accepted.

PR/55891 supress displaying separator when numbers supressed

Fix based on patch provided by Kobayashi Takashi. This brings nl(1) further
in to POSIX compliance. Verified behavior with classic SysV nl(1) and GNU
nl(1). There could still be edge cases here not specified by POSIX.

(martin)

2021-02-10 16:55:40 UTC netbsd-9 commitmail json YAML

2021-02-10 16:54:52 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by ginsbach in ticket #1202):

usr.bin/nl/nl.c: revision 1.13
usr.bin/nl/nl.c: revision 1.14
usr.bin/nl/nl.c: revision 1.15

nl(1): remove superfluous exit

Remove exit(3) call missed when errors were converted to errx(3).

nl: fix -d delim parsing for POSIX
POSIX specifies it is possible to specify a one delimiter character.
Fix the logic so that both one and two character delimiters are accepted.

PR/55891 supress displaying separator when numbers supressed

Fix based on patch provided by Kobayashi Takashi. This brings nl(1) further
in to POSIX compliance. Verified behavior with classic SysV nl(1) and GNU
nl(1). There could still be edge cases here not specified by POSIX.

(martin)

2021-02-10 16:30:01 UTC MAIN commitmail json YAML

PR/55986: Ryo Onodera: DK_BUSY must have mask as second argument. Make cd.c
consistent by also using __BIT()

(christos)

2021-02-10 12:31:34 UTC MAIN commitmail json YAML

Oh...the name of the mcount call was different between gcc and llvm.
gcc calls it as "_mconut", llvm calls as "__mcount".

Change the main name of mcount to "mcount()", and created "_mcount" and "__mcount" entries
to work regardless of which compiler the object was created with.

(ryo)

2021-02-10 08:25:01 UTC MAIN commitmail json YAML

add support kernel profiling on aarch64

- add MCOUNT_ENTER, MCOUNT_EXIT macro
- __mcount() function should be aligned
- add "-fno-optimize-sibling-calls" option when PROF. for accurate profiling, it is better to suppress the tail call.

(ryo)

2021-02-10 07:19:54 UTC MAIN commitmail json YAML

On MIPS use a helper function to work out the current PC and then
call stacktrace_subr() directly for displaying a stacktrace with
db_stacktrace() and friends.

(simonb)

2021-02-10 07:17:39 UTC MAIN commitmail json YAML

Allow for MD code to use a different function than db_stack_trace_print()
to be used with db_stacktrace() and friends by pre-defining the
db_stacktrace_print macro.

(simonb)

2021-02-10 00:28:55 UTC MAIN commitmail json YAML

>From Cy Schubert:

ipfilter: Use the softn (NAT softc) host map size in ip_nat6
calculation. The ipfilter NAT table host map size is a tunable
that defaults to a macro value defined at build time. HOSTMAP_SIZE
is saved in softn (the ipnat softc) at initialization. It can be
tuned (changed) at runtime using the ipf -T command. If the
hostmap_size tunable is adjusted the calculation to determine where
to put new entries in the table was incorrect. Use the tunable in
the NAT softc instead of the static build time value.

(christos)

2021-02-09 20:42:31 UTC MAIN commitmail json YAML

2021-02-09 20:39:20 UTC MAIN commitmail json YAML

tests/libcurses: replace remaining strcasecmp with strcmp

There is no reason to write special functions in a different case than
the canonical one, just like for the regular curses functions.

(rillig)

2021-02-09 20:31:02 UTC MAIN commitmail json YAML

2021-02-09 20:24:02 UTC MAIN commitmail json YAML

tests/libcurses: compare function names case-sensitive

There is absolutely no reason to write function names in upper case or
mixed case.

(rillig)

2021-02-09 20:22:11 UTC MAIN commitmail json YAML

tests/libcurses: fix scanf parameter for unsigned int

(rillig)

2021-02-09 17:44:01 UTC MAIN commitmail json YAML

fix build without MULTIPROCESSOR

(ryo)

2021-02-09 15:05:49 UTC MAIN commitmail json YAML

Zero interrupt handles upon allocation.

Might prevent detach-time bugs.

(jakllsch)

2021-02-09 14:24:14 UTC MAIN commitmail json YAML

Avoid an extra daif read when dispatching interrupts by using
ENABLE_INTERRUPT() / DISABLE_INTERRUPT() instead of cpsie() / cpsid() macros.

(jakllsch)

2021-02-09 13:28:47 UTC MAIN commitmail json YAML

Remove a macro that has never been used.

(simonb)

2021-02-09 13:26:25 UTC MAIN commitmail json YAML

Trailing whitespace, remove extra blank line.

(simonb)

2021-02-09 12:39:28 UTC MAIN commitmail json YAML

Update function name in a comment.

(isaki)

2021-02-09 12:36:34 UTC MAIN commitmail json YAML

Protect also audioopen() and audiobellopen() from audiodetach() with
psref(9), as well as others(audioread, audiowrite, etc..).
- Rename audio_file_enter to audio_sc_acquire_fromfile, audio_file_exit
  to audio_sc_release, for clarify.  These are the reference counter for
  this sc.
- Introduce audio_sc_acquire_foropen for audio{,bell}open.
- audio_open needs to examine sc_dying again before inserting it into
  sc_files, in order to keep sc_files consistency.
The race between audiodetach and audioopen is pointed out by riastradh@.
Thank you for many advices.

(isaki)

2021-02-09 11:57:20 UTC MAIN commitmail json YAML

2021-02-09 09:01:29 UTC MAIN commitmail json YAML

Try improving readability in wrt negations.

Use Nx.  Remove trailing whitespace.  Fix some typos.

(wiz)

2021-02-09 05:53:14 UTC MAIN commitmail json YAML

Change the lock conditions to call audio_unlink().
This can remove a different copy of audio_exlock_enter() in audio_unlink()
and can use normal one.  Also, in audiodetach(), this can set the exlock
at more natual order (before calling audio_unlink()).
No noticeable functional changes are intended.
Thanks for comments, riastradh@.

(isaki)

2021-02-09 01:12:01 UTC MAIN commitmail json YAML

Document in poll(2) that poll first appeared in NetBSD in NetBSD 1.3.

(dholland)

2021-02-09 01:01:31 UTC MAIN commitmail json YAML

typo in previous.

(dholland)

2021-02-09 00:50:48 UTC MAIN commitmail json YAML

Rework the text of poll(2) for clarity. Bump date.

(dholland)

2021-02-08 23:54:03 UTC MAIN commitmail json YAML

tests/libcurses: fix off-by-one error in line numbers in diagnostics

I had broken this in testlang_parse.y 1.22 from 2021-02-07, when I
extracted the common 'eol' from the statements.  Extracting 'eol' had
the effect that the action for the statement was run before the line
number increased.

Now the line numbers in the diagnostics are the same again as before.

For lines that end with a backslash, the reported line number is the one
from the last of these lines, not the first one, also as before.  This
feature is not used by any of the current tests though.

(rillig)

2021-02-08 23:50:25 UTC MAIN commitmail json YAML

2021-02-08 20:55:42 UTC MAIN commitmail json YAML

tests/libcurses: use consistent indentation for grammar rules

(rillig)

2021-02-08 20:39:33 UTC MAIN commitmail json YAML

tests/libcurses: extract functions 'input' and 'noinput' from grammar

(rillig)

2021-02-08 20:26:46 UTC MAIN commitmail json YAML

tests/libcurses: indent grammar functions consistently

(rillig)

2021-02-08 20:09:45 UTC MAIN commitmail json YAML

tests/libcurses: declare %type in grammar

It looks as if the original author just didn't know how to declare the
type of non-terminals.  The explicit types in the '$' expressions were
all consistent.

No functional change.

(rillig)

2021-02-08 19:35:22 UTC MAIN commitmail json YAML

tests/libcurses: extract function 'delay_millis' from the grammar

(rillig)

2021-02-08 19:28:08 UTC MAIN commitmail json YAML

tests/libcurses: move function 'check' out of the grammar section

This removes the inconsistent indentation.

(rillig)

2021-02-08 19:15:21 UTC MAIN commitmail json YAML

2021-02-08 19:11:41 UTC MAIN commitmail json YAML

Use the same naming scheme for install images as we use for the ISO images.

(martin)

2021-02-08 19:09:59 UTC MAIN commitmail json YAML

tests/libcurses: remove unused token DRAIN

There is a special function named 'DRAIN', but not a statement.  The
function name does not need its own token.

(rillig)

2021-02-08 19:04:37 UTC MAIN commitmail json YAML

tests/libcurses: fix sentinel for execl

For systems where NULL is defined as a simple 0 or 0L.

(rillig)

2021-02-08 19:00:22 UTC MAIN commitmail json YAML

tests/libcurses: on errors, print nonprintable characters as well

(rillig)

2021-02-08 09:31:05 UTC MAIN commitmail json YAML

Fix typo in comment.

(wiz)

2021-02-08 06:56:26 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2021-02-08 01:00:49 UTC MAIN commitmail json YAML

clarify what happens when kill(-1, ...) does nothing

(nia)

2021-02-08 00:47:53 UTC MAIN commitmail json YAML

2021-02-08 00:35:26 UTC MAIN commitmail json YAML

Correct the comment at the top of these config files identifying what
they run on.

(simonb)

2021-02-07 23:30:33 UTC MAIN commitmail json YAML

tests/libcurses: fix undefined behavior in test addch

The libcurses framework is not strictly typed and thus provides plenty
of ways to shoot yourself in the foot.  It's a waste of time debugging
things that a proper programming language can easily prevent.

The function addch expects an argument of type 'chtype'.  Passing a
"double-quoted" string does not match this, as 'chtype' is completely
different from a plain 'char'.  Instead, functions taking a 'chtype'
must be passed a `backtick-quoted` string.

(rillig)

2021-02-07 23:00:57 UTC MAIN commitmail json YAML

curses_screen.3: fix typo

(rillig)

2021-02-07 21:33:27 UTC MAIN commitmail json YAML

tests/libcurses: use a single message style for diagnostics

Previously, there were several concurring styles:

$msg in line %zu of file %s
$msg line %zu of file %s
%s, %zu: $msg

All these are now replaced with "%s:%zu: $msg".

(rillig)

2021-02-07 21:24:50 UTC MAIN commitmail json YAML

Optimize hardware priority updates.

In gicv3_set_priority, read the current priority mask and only update it
if we are lowering the priority. The hardware priority filter is raised
only after taking an interrupt. This makes splfoo/splx without an interrupt
in between considerably cheaper as PMR writes are relatively expensive
compared to reads.

While here, avoid an extra daif read when dispatching interrupts by using
ENABLE_INTERRUPT() / DISABLE_INTERRUPT() instead of cpsie() / cpsid() macros.

(jmcneill)

2021-02-07 21:18:37 UTC MAIN commitmail json YAML

Use ENABLE_INTERRUPT() / DISABLE_INTERRUPT() instead of cpsie()/cpsid() in
places where we don't care about the cpsie() return value.

(jmcneill)

2021-02-07 21:15:41 UTC MAIN commitmail json YAML

Add ENABLE_INTERRUPT() / DISABLE_INTERRUPT() macros for compatibility
with aarch64.

(jmcneill)

2021-02-07 21:15:09 UTC MAIN commitmail json YAML

Use reg_daif{set,clr}_write directly instead of daif_{en,dis}able for
ENABLE_INTERRUPT() and DISABLE_INTERRUPT() macros, to avoid an unnecessary
reg_daif_read().

(jmcneill)

2021-02-07 20:48:07 UTC MAIN commitmail json YAML

tests/libcurses: make grammar for test cases conflict-free

No functional change.

(rillig)

2021-02-07 20:40:06 UTC MAIN commitmail json YAML

tests/libcurses: fix grammar for arrays

Previously, commas were completely ignored by the grammar.  Erroring out
on invalid characters made some of the tests fail since the comma was
not recognized anymore.  Add it back, but only for defining arrays.  It
would have been possible to leave out the commas or make them optional,
but since the current tests do not make use of that, keep the grammar as
strict as possible.

Fix an unclosed string literal in a test.  This had been wrongly
accepted before by the grammar.

(rillig)

2021-02-07 20:32:25 UTC MAIN commitmail json YAML

tests/libcurses: do not allow control characters in paths

(rillig)

2021-02-07 20:27:40 UTC MAIN commitmail json YAML

tests/libcurses: error out on trying to parse /dev/zero

Be strict when parsing the tests.  Any unknown character is an error.
This avoids an endless loop when running "./director /dev/zero".  There
is no point in silently ignoring other invalid characters as well, as
this would only leave potential test writers in an unclear state,
without any benefit.

(rillig)

2021-02-07 20:20:06 UTC MAIN commitmail json YAML

tests/libcurses: fix documentation of call[234]

The function getyx is not a function but a macro.  It does not return
int, but void.  Since these changes destroy the simplicity of the
example, combining a regular return value and pass-by-reference return
values, I rewrote the whole section and added more examples.

(rillig)

2021-02-07 19:49:32 UTC MAIN commitmail json YAML

tests/libcurses: require keywords to be lowercase, except for OK and ERR

There is no need to write the keywords in upper case or mixed case.  The
only case where a keyword did not have the canonical form yet was a
single lowercase 'ok' in the test case 'innstr'.

(rillig)

2021-02-07 19:44:34 UTC MAIN commitmail json YAML

tests/libcurses: add missing semicolon in grammar

(rillig)

2021-02-07 19:28:07 UTC MAIN commitmail json YAML

tests/libcurses: fix typo in comment

(rillig)

2021-02-07 18:56:37 UTC MAIN commitmail json YAML

tests/libcurses: fix expected test output

The test framework doesn't check the files strictly, it only checks
whether the expected output is a prefix of the actual output, or vice
versa.  This allows several deviations to pass unnoticed, which is
wrong.

(rillig)

2021-02-07 18:32:20 UTC MAIN commitmail json YAML

tests/libcurses: add const to some function parameters

(rillig)

2021-02-07 18:22:51 UTC MAIN commitmail json YAML

poll.2: fix typo in manual page

(rillig)

2021-02-07 18:14:44 UTC MAIN commitmail json YAML

tests/libcurses: simplify code for writing to the .exp file

If a write(2) returns less than 1, it must be an error.

(rillig)

2021-02-07 17:50:16 UTC MAIN commitmail json YAML

tests/libcurses: actually compare the stream to an absolute path

Up to now, the test command "compare /dev/null" was a no-op since the
command was only parsed but not run at all.  Now run it.

This makes the test mvwin fail.  That test will have to be fixed.

Comparing to /dev/null is certainly possible and may make sense,
comparing to /dev/zero is nonsense since the actual stream can never be
endless.  Some tests do that nevertheless, for whatever reason.

In order to have the expected test output closer to the curses commands
that cause it, it may be a good idea to add another command
'compare_str' that would work independently of an external file and at
the same time allow the expected output to be commented and explained.
This is not possible right now since the .chk files are read exactly
as-is.

(rillig)

2021-02-07 17:42:35 UTC netbsd-9 commitmail json YAML

2021-02-07 17:41:02 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jdolecek in ticket #1198):

lib/libc/stdio/fread.c: revision 1.24 (via patch)

for unbuffered I/O arrange for the destination buffer to be filled in one
go, instead of triggering long series of 1 byte read(2)s; this speeds up
fread() several order of magnitudes for this case, directly proportional
to the size of the supplied buffer
change adapted from OpenBSD rev. 1.19

fixes PR lib/55808 by Roland Illig

(martin)

2021-02-07 17:32:55 UTC MAIN commitmail json YAML

2021-02-07 17:26:15 UTC MAIN commitmail json YAML

tests/libcurses: use standard indentation for grammar rule 'arg'

(rillig)

2021-02-07 17:23:29 UTC MAIN commitmail json YAML

tests/libcurses: extract grammar rule 'arg'

(rillig)

2021-02-07 17:17:25 UTC MAIN commitmail json YAML

make: fix typo in comment in test

(rillig)

2021-02-07 16:58:53 UTC MAIN commitmail json YAML

Note Emulate3Buttons support for X68k Xorg based monolithic server.

(tsutsui)

2021-02-07 16:56:00 UTC MAIN commitmail json YAML

Build mouseEmu3btn.c for added Emulate3Buttons support.

(tsutsui)

2021-02-07 16:55:18 UTC MAIN commitmail json YAML

Add "Emulate3Buttons" support to the X68k Xorg based monolithic server.

Based on "Emulate3Buttons" functions in the xf86-input-mouse driver,
with various refactoring and cleanups:
- rewrite a magic three-dimensional array for a finate state machine
  with proper named structures etc.
- separate 3 button emulation functions from other stuff

See my post on port-x68k@ (and tech-x11@) for more details:
https://mail-index.netbsd.org/port-x68k/2021/02/05/msg000074.html

(tsutsui)

2021-02-07 16:43:30 UTC netbsd-9 commitmail json YAML

2021-02-07 16:42:41 UTC netbsd-9 commitmail json YAML

Apply additional patch, requested by jdolecek in ticket #1191:

sys/kern/kern_event.c 1.110-1.115 (via patch)

Fix merge botch for the EV_ONESHOT branch.

(martin)

2021-02-07 16:13:56 UTC MAIN commitmail json YAML

Remove dumb middle button emulation code from the ms(4) driver.

Also fix leftover comments (derived from the original Sun's "firm_event"
implementation as seen in sys/dev/sun/ms.c) to sync with reality on x68k.

The current implementation the ms(4) driver just checks whether
two (left/right) buttons are changed in the same packet.
This means it cannot handle a release event correctly if two
buttons pressed simultaneously are released in the different timing.

The middle button emulation should be handled in application layer
as other Xservers do, and I'll import Emulate3Buttons support for the
X68k Xorg based monolithic server.

See my post on port-x68k@ for details:
https://mail-index.netbsd.org/port-x68k/2021/02/05/msg000074.html

(tsutsui)

2021-02-07 15:54:09 UTC MAIN commitmail json YAML

restore change from rev 1.23 "Avoid undefined behavior in fread(3)", mistakely
removed as part __SNBF optimization

(jdolecek)

2021-02-07 15:51:11 UTC MAIN commitmail json YAML

Restore fixes for PR/51663 lost in r1.195 (uvm_hotplug(9) merge).

The kernel crashdump and savecore(8) on NetBSD/x68k have been broken
(even without EXTNEDED_MEMORY) since NetBSD 8.0. Oops.

Should be pulled up to netbsd-9 and netbsd-8.

(tsutsui)

2021-02-07 13:59:36 UTC MAIN commitmail json YAML

Rename argument "bootspec" to avoid shadowing a global

(martin)

2021-02-07 13:56:23 UTC MAIN commitmail json YAML

tests/libcurses: error out if called with too many arguments

This helps against users who try to add more options after the first
non-option argument and wonder why these options are silently ignored.

(rillig)

2021-02-07 13:56:00 UTC netbsd-8 commitmail json YAML

2021-02-07 13:54:01 UTC netbsd-8 commitmail json YAML

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

usr.sbin/isibootd/isibootd.c: revision 1.4

Fix "Cannot allocate memory" failure on amd64.
BIOCGBLEN ioctl of bpf(4) requires u_int, not size_t.

The problem is reported by Kenji Aoyama.
Should be pulled up to netbsd-9 and netbsd-8.

(martin)

2021-02-07 13:53:19 UTC netbsd-9 commitmail json YAML

2021-02-07 13:52:55 UTC netbsd-9 commitmail json YAML

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

usr.sbin/isibootd/isibootd.c: revision 1.4

Fix "Cannot allocate memory" failure on amd64.
BIOCGBLEN ioctl of bpf(4) requires u_int, not size_t.

The problem is reported by Kenji Aoyama.
Should be pulled up to netbsd-9 and netbsd-8.

(martin)

2021-02-07 13:44:22 UTC MAIN commitmail json YAML

tests/libcurses: document another bug in the test director

(rillig)

2021-02-07 13:22:23 UTC MAIN commitmail json YAML

tests/libcurses: fix usage of director

(rillig)

2021-02-07 13:06:02 UTC MAIN commitmail json YAML

tests/libcurses: demonstrate more bugs in addch

(rillig)

2021-02-07 12:56:53 UTC MAIN commitmail json YAML

tests/libcurses: fail on syntax errors in test files

Previously, a syntax error in a test file made the test pass, which was
outright dangerous.

(rillig)

2021-02-07 12:48:35 UTC MAIN commitmail json YAML

tests/libcurses: use a single indentation style in the test grammar

The grammar rule 'args' has been left as-is since it needs to be split
into 'args' and 'arg' first, to avoid the redundancy.

The braces in "if (create_check_file)" were misleading.  It's strange that
GCC didn't reject this.

(rillig)

2021-02-07 12:24:19 UTC MAIN commitmail json YAML

tests/libcurses: clean up test case grammar for statements

Previously, each statement ended with 'eol'.  This was unnecessarily
verbose since the 'eol' is not really part of the statement, it's part
of a line.

No functional change.

(rillig)

2021-02-07 12:16:26 UTC MAIN commitmail json YAML

tests/libcurses: fix name of grammar rule

A list of assignments is not a statement, it's several statements.

No functional change.

(rillig)

2021-02-07 12:08:42 UTC MAIN commitmail json YAML

tests/libcurses: unary minus doesn't make sense on bool expressions

No functional change since -1 is as non-zero as 1.

(rillig)

2021-02-07 12:05:36 UTC MAIN commitmail json YAML

tests/libcurses: allow end-of-line comments in data lines as well

This makes it possible to write small remarks directly in the affected
line, which not only makes for a clean visual appearance but also shows
up prominently in "cvs annotate" or "git blame", showing when such a
remark has been modified.

(rillig)

2021-02-07 11:52:43 UTC MAIN commitmail json YAML

tests/libcurses: indent lexer code consistently

Several of the braces were misaligned.  For the simple keywords, there
is no need to write these braces at all, they only made the code look
more complicated than it really is.

I stumbled upon this because syntax errors in the test cases currently
let the test case succeed instead of fail, which is another ingredient
for unreliable tests, besides the loose output matching.

(rillig)

2021-02-07 11:25:56 UTC MAIN commitmail json YAML

Allow MSIX and MSI for interrupt type

(ryoon)

2021-02-07 10:47:40 UTC MAIN commitmail json YAML

Check for programming errors in _bus_dmamap_load_buffer

(skrll)

2021-02-07 10:20:36 UTC MAIN commitmail json YAML

2021-02-07 10:19:49 UTC MAIN commitmail json YAML

Consistently use %#x, etc

(skrll)

2021-02-07 09:29:53 UTC MAIN commitmail json YAML

In virtio_alloc_vq change BUS_DMA_NOWAIT to BUS_DMA_WAITOK.  It's always
called from attach routines.

(skrll)

2021-02-07 09:26:17 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2021-02-07 04:58:17 UTC MAIN commitmail json YAML

xhci_pci.c: reimplement XHCI_DISABLE_MSI and XHCI_DISABLE_MSIX

(dbj)

2021-02-07 01:53:54 UTC MAIN commitmail json YAML

libcurses: demonstrate bug in addch that doubles tab indentation

When adding "\t" via addch, win.curx advances by twice the spaces as
intended.  This bug was introduced somewhere between NetBSD 8.0 and 9.0.

Adding "\t" via addstr does not have this bug.

This bug causes the installation menu of sysinst to be have its menu
items indented by 16 characters instead of only 8.  This in turn
produces an ugly line break in the German translation.

The test framework for libcurses is not well integrated into ATF.
Whenever the expected output is longer than the actual output, or vice
versa, the test passes nevertheless.  This makes it necessary to
constantly look into atf-run.log to see whether the actual output is
indeed equal to the expected output, which is crucial, especially for
telling the difference between addstr and addnstr.

Reusing the .chk files for several tests is not a good idea either.  For
example, addstr and waddstr are supposed to produce the same result for
ASCII-only text, so it was tempting to use the same file.  But waddstr
seems to have a bug (maybe undefined behavior), at least waddstr returns
ERR in one case where it shouldn't.  This means that currently the
expected output (acknowledging the bug) must be different.

The "expected" test output in waddstr.chk looks completely broken, but
that's exactly what the test produces right now.

(rillig)

2021-02-06 22:00:59 UTC MAIN commitmail json YAML

Drop acorn32 entry, fixed.

(joerg)

2021-02-06 21:45:38 UTC MAIN commitmail json YAML

2021-02-06 21:40:14 UTC MAIN commitmail json YAML

make: sync comment for ApplyModifier_Assign with reality

In compat mode, empty shell commands are handled correctly since at
least 1993.

In jobs mode, empty shell commands are handled correctly since at least
job.c 1.93 from 2005-06-16.

The only place where empty shell commands led to problems was in
Cmd_Exec, but that has nothing to do with the example from the comment.
See var-op-shell.mk for more details.

(rillig)

2021-02-06 21:24:20 UTC MAIN commitmail json YAML

use __builtin_assume_aligned() on places where the memset() or memcpy()
parameters are known to be PAGE_SIZE-aligned, so compiler doesn't need
to emit atrocious alignment check code when inlining them

this particularly improves pmap_zero_page() and pmap_copy_page(),
which are now reduced to only 'rep stosq', and close to what a hand-written
assembly would do

Note: on CPUs supporting ERMS, 'rep stosb' would still be slightly faster, but
this is a solid stop-gap improvement

suggested by Mateusz Guzik in:
http://mail-index.netbsd.org/tech-kern/2020/07/19/msg026620.html

(jdolecek)

2021-02-06 21:08:51 UTC MAIN commitmail json YAML

Expose devhandle_t to standalone programs (fixes sparc* build etc)

(christos)

2021-02-06 20:09:43 UTC MAIN commitmail json YAML

libcurses: fix typos in introduction to the curses test framework

(rillig)

2021-02-06 19:41:14 UTC MAIN commitmail json YAML

libcurses: fix spelling in comment

(rillig)

2021-02-06 19:00:25 UTC MAIN commitmail json YAML

Run all make tests as unprileged user - makes checking permission issues
a lot easier.

(martin)

2021-02-06 18:26:03 UTC MAIN commitmail json YAML

Avoid test failures when more than one user run them.

Use a private  TMPDIR
a subdir of .OBJDIR if using it
otherwise /tmp/uid${.MAKE.UID}

(sjg)

2021-02-06 16:14:55 UTC MAIN commitmail json YAML

tools: allow MKCROSSGDB to work when not building gcc

(dbj)

2021-02-06 16:07:14 UTC MAIN commitmail json YAML

Wrap some definite-only-in-kernel-environment prototypees in _KERNEL.

(thorpej)

2021-02-06 16:03:31 UTC MAIN commitmail json YAML

defflag USBHIST_PRINT

(dbj)

2021-02-06 16:03:26 UTC MAIN commitmail json YAML

defparam DB_MAX_WIDTH

(dbj)

2021-02-06 16:02:43 UTC MAIN commitmail json YAML

distrib/amd64/cdroms: honor CDBOOTOPTIONS when installing EFI bootloader

(dbj)

2021-02-06 16:02:16 UTC MAIN commitmail json YAML

tsort: fix typo in comment

(dbj)

2021-02-06 15:31:03 UTC netbsd-9 commitmail json YAML

2021-02-06 15:30:14 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by simonb in ticket #1199):

lib/libc/arch/mips/sys/cerror.S: revision 1.20

For mips n32/n64 explicitly save the GP reg on the stack, and
restore it _after_ the call to __errno().  Fixes sending the
__errno() call off to nowhereland when this code is included
in another library (eg __posix_cerror() in libposix).  Failure
picked up by the ATF lib/libposix/posix1/t_rename test.

(martin)

2021-02-06 15:29:14 UTC netbsd-8 commitmail json YAML

2021-02-06 15:26:16 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by simonb in ticket #1648):

lib/libc/arch/mips/sys/cerror.S: revision 1.20

For mips n32/n64 explicitly save the GP reg on the stack, and
restore it _after_ the call to __errno().  Fixes sending the
__errno() call off to nowhereland when this code is included
in another library (eg __posix_cerror() in libposix).  Failure
picked up by the ATF lib/libposix/posix1/t_rename test.

(martin)

2021-02-06 15:22:20 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by simonb in ticket #1649):

sys/sys/param.h: revision 1.679
sys/conf/param.c: revision 1.69
sys/kern/init_main.c: revision 1.533 (via patch)

Set a better default for MAXFILES on larger RAM machines if not
otherwise specified the kernel config file.  Arbitary numbers are
20,000 files for 16GB RAM or more and 10,000 files for 1GB RAM or
more.

TODO: Adjust this and other values totally dynamically.

(martin)

2021-02-06 13:58:09 UTC MAIN commitmail json YAML

libncurses: fix grammar in manual page

(rillig)

2021-02-06 13:55:40 UTC MAIN commitmail json YAML

Fix various typos, etc

(nia)

2021-02-06 13:54:48 UTC MAIN commitmail json YAML

Do not cast memcpy arguments when the intention is unaligned access.
The standard is pretty explicit that misaligned pointers is UB and LLVM
does exploit the promised alignment on SPARC, resulting in kernel
crashes during early boot.

(joerg)

2021-02-06 13:02:28 UTC MAIN commitmail json YAML

Remove an extra mutex_spin_exit() in error path.
This is a part of rev 1.38.

(isaki)

2021-02-06 12:59:13 UTC MAIN commitmail json YAML

Remove an extra mutex_spin_exit() in yds_resume().
This one has been moved to before yds_init() in rev 1.59.

(isaki)

2021-02-06 12:55:34 UTC MAIN commitmail json YAML

Add a missing mutex_spin_exit().

(isaki)

2021-02-06 12:53:37 UTC MAIN commitmail json YAML

Fix "locking against myself".
halt_{input,output} will be called with sc_intr_lock held.

(isaki)

2021-02-06 12:50:04 UTC MAIN commitmail json YAML

2021-02-06 12:18:45 UTC MAIN commitmail json YAML

Mention fdisk(8) and x86/mbr(8) in example for x86, for careless
people like me ;).

Bump date.

(rin)

2021-02-06 12:13:44 UTC MAIN commitmail json YAML

Explain the format of the raw PCM data users can read from a pad(4).

Since it's headerless this is important so the data can be interpreted
properly. Also, ordinary audio ioctls cannot be used on a pad and the
format can't be changed, so applications that attempt to automatically
determine the format of a device like audiorecord don't work.

(nia)

2021-02-06 12:07:58 UTC MAIN commitmail json YAML

Slightly adjust wording.

It does seem to work with multiple applications concurrently writing to
the device in a quick test I did.

(nia)

2021-02-06 12:01:58 UTC MAIN commitmail json YAML

Add another example of recording the output of an application.

Explain something that confused me.

(nia)

2021-02-06 11:58:10 UTC MAIN commitmail json YAML

Use /dev/audioX rather than /dev/soundX in examples.

Avoids accidentally running into confusing behavior.

(nia)

2021-02-06 09:45:17 UTC MAIN commitmail json YAML

Hold sc_intr_lock in open()/close().
vtbl->{lock,unlock} (in fact ac97_{lock,unlock}) don't seem to need
releasing an interrupt lock.
Confirmed on auich.

(isaki)

2021-02-06 09:27:35 UTC MAIN commitmail json YAML

Remove sc_active flag.  sc_[pr]intr can be used instead of it.

(isaki)

2021-02-06 09:15:11 UTC MAIN commitmail json YAML

Remove something like counters.
- Counting {open,close} is done by the MI audio layer.
- trigger_* is not called again between trigger_* and halt_*.

(isaki)

2021-02-06 09:14:03 UTC MAIN commitmail json YAML

Remove sc_open flag.
Counting {open,close} is done by the MI audio layer.

(isaki)

2021-02-06 07:20:36 UTC MAIN commitmail json YAML

Calling halt_{input,output} is done by the MI audio layer if necessary.

(isaki)