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 (176d)  thorpej-altq-separation (178d) 

2024-05-10 15:58:44 UTC Now

2021-08-04 00:02:33 UTC thorpej-cfargs2 commitmail json YAML

2021-08-04 00:01:52 UTC thorpej-cfargs2 commitmail json YAML

2021-08-04 00:00:00 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:57:22 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:56:15 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:53:38 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:44:31 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:43:45 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:41:24 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:24:35 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:21:07 UTC MAIN commitmail json YAML

revert rev 1.45:
  "PR/54435: Adjust for new kernel behavior of soreceive(9) clearing MSG_OOB"

That change was trying to make rlogin work again after the SIOCATMARK ioctl
was broken, but that kernel bug has now been fixed, so the original rlogin code
now works again.  Further, the changed rlogin code actually did the wrong thing,
by treating reception of the MSG_OOB byte as meaning that we are now
"at the mark", but that is not true... we are "at the mark" only when
we have reached the point in the stream where the MSG_OOB byte was originally,
as indicated by SIOCATMARK.  So going back to the previous code seems best
all around.  ok'd by christos.

(chs)

2021-08-03 23:20:34 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:19:53 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:14:59 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 23:12:14 UTC MAIN commitmail json YAML

2021-08-03 23:05:52 UTC thorpej-cfargs2 commitmail json YAML

2021-08-03 21:18:24 UTC MAIN commitmail json YAML

2021-08-03 21:09:26 UTC MAIN commitmail json YAML

lint: merge almost duplicate code from 'sametype' into 'eqtype'

In 'sametype', the branch for comparing array types was unreachable
since it requires both tspecs to be the same, but t2 underwent the
array-to-pointer conversion.

Previously, lint warned about enum type mismatches, even without -e for
strict enum mode.  Instead, it got the case for 'char *' wrong, which is
now fixed.  Now lint behaves like GCC 10.3.0 in this regard.  The
warning about enum mismatch is useful though, so it may be re-added in a
future commit.

(rillig)

2021-08-03 20:59:20 UTC MAIN commitmail json YAML

2021-08-03 20:57:06 UTC MAIN commitmail json YAML

2021-08-03 20:46:10 UTC MAIN commitmail json YAML

2021-08-03 20:34:23 UTC MAIN commitmail json YAML

2021-08-03 20:27:08 UTC MAIN commitmail json YAML

in sbsavetimestamp(), initialize struct timeval to 0 with memset() so that
the implicit padding is initialized.  this avoids later copying uninitialized
memory out to user space.  detected by KMSAN.

(chs)

2021-08-03 20:25:43 UTC MAIN commitmail json YAML

initialize wc_unused to 0, to avoid writing uninitialized memory to disk.
detected by KMSAN.

(chs)

2021-08-03 20:22:15 UTC MAIN commitmail json YAML

do not descend into the man or tests directory.
this avoids a problem where git sets the file timestamps differently
than CVS does and accidentally causes make to try to rebuild
various targets that don't work during the tools build.
this matches the change that was made to Makefile.am in our tree.

(chs)

2021-08-03 18:44:33 UTC MAIN commitmail json YAML

2021-08-03 18:38:02 UTC MAIN commitmail json YAML

2021-08-03 18:03:54 UTC MAIN commitmail json YAML

2021-08-03 17:44:59 UTC MAIN commitmail json YAML

lint: clean up and move 'sametype'

This function is only used by lint1.  That's good since the lint2 code
was completely broken, as it would regard any two struct types as being
the same.

Remove the large switch statement since it is unlikely that there will
be new type derivations in C anytime soon.

No functional change.

(rillig)

2021-08-03 17:27:48 UTC MAIN commitmail json YAML

lint: reduce number of negations in preprocessor condition

No functional change.

(rillig)

2021-08-03 17:20:02 UTC MAIN commitmail json YAML

lint: make memory management code easier to read

No functional change.

(rillig)

2021-08-03 16:14:21 UTC netbsd-9 commitmail json YAML

2021-08-03 16:10:24 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nia in ticket #1326):
distrib/sets/lists/man/mi: revision 1.1724
share/man/man4/man4.x86/amdccp.4: revision 1.1
share/man/man4/man4.x86/Makefile: revision 1.23 via patch
Add a man page for amdccp(4)

(snj)

2021-08-03 15:00:15 UTC thorpej-cfargs2 commitmail json YAML

Address concerns about limited compile-time type checking with the
tag-value mechanism of specifying arguments to config_search(),
config_found(), and config_attach() by replacing the tag-value scheme
with a "struct cfargs", a pointer to which is passed to the aforementioned
functions instead.

The structure has a version field to allow for future ABI versioning
flexibility.  The external structure is canononicalized internally
before use.

To ease the initialization of this structure, use a variadic preprocessor
macro, CFARGS(), to construct an anonymous "struct cfargs" inline, the
address of which is passed to the target function.  A CFARGS_NONE macro
provides a symbolic stand-in for when the caller doesn't want to pass
arguments (currently expands to NULL and is handled during canonicalization).

(thorpej)

2021-08-03 13:40:33 UTC MAIN commitmail json YAML

Cleanup alarm(3) handling in the timezone selection menu for error
cases, pointed out by RVP.

(martin)

2021-08-03 13:34:04 UTC MAIN commitmail json YAML

When reading output from a program we don't know how much it will
be - so scale the buffer (within reasonable limits).
Problem pointed out by RVP, triggered e.g. by disks with lots of GPT
partitions.

(martin)

2021-08-03 11:30:26 UTC MAIN commitmail json YAML

ssdfb: support having an optional reset pin

(tnn)

2021-08-03 09:25:44 UTC MAIN commitmail json YAML

2021-08-03 07:58:50 UTC MAIN commitmail json YAML

curses: clarify standout as the "best" _supported_ highlighting mode
of the current terminal

(nia)

2021-08-03 07:54:39 UTC MAIN commitmail json YAML

Use unsigned to avoid undefined behavior in sdmmc_mem_sd_switch().
Found by kUBSan.

(msaitoh)

2021-08-03 07:12:50 UTC MAIN commitmail json YAML

Document :On modifiers in more detail.

(wiz)

2021-08-03 05:15:20 UTC MAIN commitmail json YAML

Reverse devpubd dependeny to avoid dangling reference to zfs which is
an optional part of the build.

(mlelstv)

2021-08-03 04:46:49 UTC MAIN commitmail json YAML

tests/make: fix test for the variable modifier ':On'

The variable modifier ':On' sorts words numerically.  If these words are
not numeric at all, they get assigned the numeric value 0.  Internally,
':On' uses qsort for sorting the words.  Since qsort is not specified to
use a stable sorting algorithm, the test data must only use words that
either are written in the same way or that are numerically different.

The test varmod-order failed this requirement by trying to numerically
sort a list of non-numeric words.  This led to different results on BSD
and Ubuntu, as could be expected.

To fix the tests, distinguish between words and numbers in the tests.
While here, clean up the tests for all variants of the variable modifier
':O'.

Found by sjg on Ubuntu.

(rillig)

2021-08-03 01:44:11 UTC MAIN commitmail json YAML

Remove ixgbe because both ixg and ixv exist in the list.

(msaitoh)

2021-08-03 01:08:18 UTC MAIN commitmail json YAML

Fix locking against myself reported by rin@n.o.

In some machine, INTx interrupts occurs for some reason while holding
txq_lock in softint context.
e.g. https://dmesgd.nycbug.org/index.cgi?do=view&id=6139

The panic message is the following.
====================
[  50.1699480] panic: LOCKDEBUG: Mutex error: mutex_vector_enter,467: locking against myself
[  50.1800188] cpu0: Begin traceback...
[  50.1800188] 0xc7a29ac4: netbsd:db_panic+0xc
[  50.1900018] 0xc7a29adc: netbsd:vpanic+0x120
[  50.1999533] 0xc7a29af4: netbsd:aprint_debug
[  50.1999533] 0xc7a29b34: netbsd:lockdebug_abort1+0x18c
[  50.2099719] 0xc7a29b74: netbsd:lockdebug_wantlock+0x1e8
[  50.2199525] 0xc7a29bb4: netbsd:mutex_enter+0x288
[  50.2299642] 0xc7a29be4: netbsd:wm_intr_legacy+0x9c
[  50.2299642] 0xc7a29c2c: netbsd:i80321_intr_dispatch+0x138
[  50.2399631] 0xc7a29de4: netbsd:irq_entry+0x98
[  50.2499452] 0xc7a29e24: netbsd:entropy_enter+0x88
[  50.2599996] 0xc7a29e6c: netbsd:rnd_add_data_1+0x50
[  50.2699565] 0xc7a29ebc: netbsd:rnd_add_data+0x10c
[  50.2699565] 0xc7a29ed4: netbsd:rnd_add_uint32+0x28
[  50.2799524] 0xc7a29f1c: netbsd:wm_txeof+0x2c0
[  50.2899527] 0xc7a29f5c: netbsd:wm_handle_queue+0x44
[  50.3000257] 0xc7a29fac: netbsd:softint_thread+0x130
[  50.3100119] cpu0: End traceback...
====================

To fix this panic, stop wm(4) interrupts before calling softint.
This behavior is similar to MSI-X polling mode.

Reviewed by msaitoh@n.o, tested by rin@n.o, thanks.

(knakahara)

2021-08-02 23:49:26 UTC MAIN commitmail json YAML

update the list of ethernet drivers that have been MPSAFEified.

(mrg)

2021-08-02 23:14:15 UTC MAIN commitmail json YAML

drm: Plug another fence leak.

XXX pullup-9

(riastradh)

2021-08-02 22:37:29 UTC MAIN commitmail json YAML

Accidentally commited some other changes that weren't quite ready.  Add
these changes to fix the build.

(oster)

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

lint: expand abbreviations in definitions of operator properties

No functional change.

(rillig)

2021-08-02 20:31:15 UTC MAIN commitmail json YAML

Support on-demand re-scanning all devices to look for
autoconfig RAID sets.  raidctl now supports looking
for autoconfig RAID sets with a new '-L' flag.

(oster)

2021-08-02 20:20:54 UTC MAIN commitmail json YAML

drm: Release fence if we're about to return too.

Should fix another fence leak.

XXX pullup-9

(riastradh)

2021-08-02 17:45:10 UTC MAIN commitmail json YAML

fix typo in README.compileopts text.

(andvar)

2021-08-02 17:43:56 UTC MAIN commitmail json YAML

s/suported/supported in comments

(andvar)

2021-08-02 17:41:07 UTC MAIN commitmail json YAML

2021-08-02 14:00:48 UTC MAIN commitmail json YAML

ssdfb: define SSD1353 command set

also adjust some SSD1322 command names

(tnn)

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

2021-08-02 11:11:20 UTC MAIN commitmail json YAML

curses: clarify documentation regarding the standout attribute

(nia)

2021-08-01 22:42:46 UTC thorpej-i2c-spi-conf commitmail json YAML

2021-08-01 21:58:56 UTC MAIN commitmail json YAML

2021-08-01 21:56:27 UTC MAIN commitmail json YAML

add pcib(4), pceb(4), pcmb(4).
pcmb is a separate man page for i386 only, pceb and pcib are references to pci(4) only and mentioned in its bridges section.
ok riastradh

(andvar)

2021-08-01 21:12:32 UTC MAIN commitmail json YAML

tests/lint: fix test c11_generic_expression on ILP32

These platforms don't provide __uint128_t, at least not in lint.

The exact data type does not matter in this test, it just has to be
different from 'int'.

(rillig)

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

Document thorpej-cfargs2.

(thorpej)

2021-08-01 20:26:53 UTC MAIN commitmail json YAML

Move case 'l' to be in sorted order.  No functional change.

(oster)

2021-08-01 19:18:10 UTC MAIN commitmail json YAML

lint: clean up debug logging in the C grammar

(rillig)

2021-08-01 19:11:54 UTC MAIN commitmail json YAML

lint: merge duplicate debugging code

The functions 'debug_node' and 'display_expression' were similar enough
to be merged.

Migrate debug_node to use the existing debug logging functions.

Remove the now unused option 'd' from the options string.

(rillig)

2021-08-01 18:37:29 UTC MAIN commitmail json YAML

lint: remove option -d, clean up debug logging

The command line option -d was not used by /usr/bin/lint, and it only
triggered a handful of debug messages.  Move this debug logging over to
the compile-time -DDEBUG setting.

Move display_expression further up to avoid the forward declaration.

(rillig)

2021-08-01 18:13:54 UTC MAIN commitmail json YAML

2021-08-01 18:07:35 UTC MAIN commitmail json YAML

2021-08-01 18:02:22 UTC MAIN commitmail json YAML

fix typo in definition: s/threshhold/threshold/

(andvar)

2021-08-01 17:59:47 UTC MAIN commitmail json YAML

lint: remove xmapalloc

Just trust the standard malloc to be smart enough.

No functional change.

(rillig)

2021-08-01 16:29:28 UTC MAIN commitmail json YAML

2021-08-01 16:17:05 UTC MAIN commitmail json YAML

ssdfb(4): add an iic fdt attachment example also

(tnn)

2021-08-01 15:52:11 UTC MAIN commitmail json YAML

fix syntax error and typo in overwritten.

(andvar)

2021-08-01 15:35:47 UTC MAIN commitmail json YAML

ssdfb(4): nix BUGS section, add EXAMPLES section

(tnn)

2021-08-01 15:29:30 UTC MAIN commitmail json YAML

2021-08-01 14:56:18 UTC MAIN commitmail json YAML

ssdfb: support the 4-wire SPI interface

(tnn)

2021-08-01 14:51:41 UTC MAIN commitmail json YAML

2021-08-01 14:45:40 UTC MAIN commitmail json YAML

lint: remove unreachable code from usual arithmetic conversions

(rillig)

2021-08-01 14:42:21 UTC MAIN commitmail json YAML

2021-08-01 13:49:17 UTC MAIN commitmail json YAML

2021-08-01 13:45:14 UTC MAIN commitmail json YAML

lint: demonstrate wrong integer conversion for __uint128_t

(rillig)

2021-08-01 13:31:49 UTC MAIN commitmail json YAML

tests/lint: test the usual arithmetic conversions

The function 'balance' does not mention __uint128_t and nevertheless
works as expected.  Need to investigate further.

(rillig)

2021-08-01 13:09:38 UTC MAIN commitmail json YAML

tests/lint: document why lint does not check _Generic selections

(rillig)

2021-08-01 08:03:43 UTC MAIN commitmail json YAML

lint: remove hash value from symbol buffer

Conceptually, a symbol buffer does not need to remember its hash value
since that belongs to the symbol table.  This makes the code for the
symbol table simpler.  The number of hash calculations increases by
about 5%, which is negligible.

No functional change.

(rillig)

2021-08-01 07:46:51 UTC MAIN commitmail json YAML

lint: merge duplicate code for removing a symbol from the table

No functional change.

(rillig)

2021-08-01 06:58:58 UTC MAIN commitmail json YAML

lint: extract duplicate code for modifying the symbol table

No functional change.

(rillig)

2021-08-01 06:40:37 UTC MAIN commitmail json YAML

lint: add debug logging for symbol table, clean up debug logging

When I tried to fix msg_115, I quickly ran into a segmentation fault,
probably related to the symbol table.  To better understand this part,
log insertions and deletions.

The other debug log messages do not need to mention the current file
position anymore, this is what lex_next_line takes care of since scan.l
1.113 from 2021-01-05.

(rillig)

2021-07-31 20:55:46 UTC MAIN commitmail json YAML

2021-07-31 20:51:32 UTC MAIN commitmail json YAML

2021-07-31 20:29:37 UTC MAIN commitmail json YAML

2021-07-31 19:52:44 UTC MAIN commitmail json YAML

lint: improve support for __int128_t and __uint128_t

For the .ln files, I chose the letter 'J' to represent the 128-bit
integer types since it is close to 'I' for int.  The naming of 'L' for
'long' is obvious, but 'Q' for 64-bit integers is a quad-16-bit word,
which is an unusual measurement unit nowadays.  One benefit of choosing
'J' is that the next letter, 'K' can then be used for 256-bit integer
types.

Support for 128-bit integer types is still very basic.  Plus, it is only
supported on LP64 platforms, which means that lint cannot be
cross-compiled to check for an LP64 platform while running on an ILP32
platform.

(rillig)

2021-07-31 19:20:59 UTC MAIN commitmail json YAML

lint: initialize shared types in the same order as in tspec_t

This makes it easier to see whether there are any types missing, such as
__uint128_t.

No functional change.

(rillig)

2021-07-31 19:12:35 UTC MAIN commitmail json YAML

lint: do not evaluate arguments of debug_step

To analyze the unexpected test failure of op_shl_lp64, I had reverted
debug_step to evaluate its arguments.  I then accidentally committed
that without running the tests again.

Anyway, the previous commit can now be used as a demonstration that
initdecl is indeed missing the initialization for __uint128_t, which
leads to the internal error in op_shl_lp64.

(rillig)

2021-07-31 19:07:52 UTC MAIN commitmail json YAML

lint: clean up debug logging

The calls to debug_step, unlike printf, don't need a trailing newline.

Remove the debug_step0 macro and its relatives since lint already uses
enough other features from C99 that it essentially requires this
standard, which supports varargs macro arguments.  Among these features
are __func__ and printf("%zu").

In non-debug mode, do not evaluate the arguments of debug_step.
Evaluating the arguments had caused an internal error when running the
test op_shl_lp64.  This is indeed a bug since initdecl should have
initialized the type table for __uint128_t.  This had been forgotten
when support for __uint128_t was added in decl.c 1.69 from 2018-09-07.

No functional change.

(rillig)

2021-07-31 18:16:42 UTC MAIN commitmail json YAML

lint: extract debug logging to separate file

Lint currently has several different kinds of debug log:

* The -DDEBUG log is controlled at compile time.
* The -d command line options enables some other debug logging.
* The -DYYDEBUG log for parsing is controlled at compile time.
* The -y command line option only has an effect in -DYYDEBUG mode.

Extracting the logging into a separate file is a first step towards
unifying these logs and making the code for debug logging stand out less
than the current #ifdef DEBUG.

No functional change.

(rillig)

2021-07-31 17:09:21 UTC MAIN commitmail json YAML

2021-07-31 16:54:37 UTC MAIN commitmail json YAML

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

2021-07-31 14:51:25 UTC MAIN commitmail json YAML

Fix a silly mistake (missing return) in the DEBUG case of the kernel pmap
case of pmap_extract().

(thorpej)

2021-07-31 14:47:04 UTC MAIN commitmail json YAML

Run devpubd before volume managers and pseudo disks.

(mlelstv)

2021-07-31 14:36:33 UTC MAIN commitmail json YAML

2021-07-31 13:47:19 UTC MAIN commitmail json YAML

lint: reduce indentation in 'search'

No functional change.

(rillig)

2021-07-31 11:37:54 UTC MAIN commitmail json YAML

lint: in has_constant_member, don't reuse variables

No functional change.

(rillig)

2021-07-31 11:34:40 UTC MAIN commitmail json YAML

sunxi_platform: declare UART FIFO sizes for SoCs we support

(tnn)

2021-07-31 11:03:04 UTC MAIN commitmail json YAML

lint: merge duplicate code for generating unqualified type

This is a preparation for fixing the wrong warnings in msg_115.c.

No functional change.

(rillig)

2021-07-31 10:12:04 UTC MAIN commitmail json YAML

fix typos in comments

(andvar)

2021-07-31 10:09:03 UTC MAIN commitmail json YAML

tests/lint: demonstrate more wrong warnings for const struct members

The code 't_const = false' occurs 4 times in the lint code, each
corresponding to one of the wrong warnings in the test.

This bug has been existing at least since 2001.  Back then, the lint
output was:

2001.12.24.20.52.09
| (23): lint error: popctrl() 1
| (15): syntax error [249]
| (19): warning: left operand of 'FARG' must be modifiable lvalue [115]
| (21): syntax error [249]
| (23): warning: function initialize_const_struct_member falls off bottom without returning value [217]
| exit status 1

from 2002.12.06.03.27.39
| (23): lint error: func.c, 168: popctrl()
| (15): warning: left operand of '=' must be modifiable lvalue [115]
| (19): warning: left operand of 'FARG' must be modifiable lvalue [115]
| (21): syntax error [249]
| (23): warning: function initialize_const_struct_member falls off bottom without returning value [217]
| exit status 1
until 2003.10.27.00.12.44

(rillig)

2021-07-31 10:07:23 UTC MAIN commitmail json YAML

2021-07-31 10:04:13 UTC MAIN commitmail json YAML

only read cpr register if we're going to use the value

(tnn)

2021-07-31 09:30:17 UTC MAIN commitmail json YAML

make: fix lint warnings

The string functions from str.h are declared as 'static __unused' when
compiled with GCC, but lint explicitly undefines __GCC__ during
preprocessing.  Therefore, make those functions inline, to prevent
warnings that they are unused.

The macro UNCONST is used in a few places, and (again) since lint
undefines __GCC__, that macro expanded to a simple type cast, which lint
warned about.  To prevent this warning, implement UNCONST as a function
that works everywhere and hides the type cast.

In filemon_open, the code for closing F->in was obviously unreachable.

No functional change.

(rillig)

2021-07-31 09:14:47 UTC MAIN commitmail json YAML

tests/lint: demonstrate wrong error message for initialization

Seen in usr.bin/make/var.c:4022 in C99 mode, where a ModChain variable
is initialized and two of the members are const-qualified.

(rillig)

2021-07-31 00:17:05 UTC MAIN commitmail json YAML

make: clean up ApplyModifier_Order

No functional change.

(rillig)

2021-07-30 23:35:38 UTC MAIN commitmail json YAML

make: reword comment for ApplyModifier_Order

(rillig)

2021-07-30 23:28:04 UTC MAIN commitmail json YAML

make: handle parse errors in ':O' uniformly

Previously, the error handling for the variable modifier ':O' differed
depending on the exact variant and in some cases led to misleading
or missing diagnostics.

(rillig)

2021-07-30 22:19:51 UTC MAIN commitmail json YAML

make: merge duplicate code for sorting strings and numbers

No functional change.

(rillig)

2021-07-30 22:16:09 UTC MAIN commitmail json YAML

2021-07-30 22:07:14 UTC MAIN commitmail json YAML

2021-07-30 21:29:01 UTC MAIN commitmail json YAML

tests/make: register test varmod-order-numeric

(rillig)

2021-07-30 19:55:22 UTC MAIN commitmail json YAML

2021-07-30 13:44:09 UTC MAIN commitmail json YAML

ssdfb(4): remove code for dealing with non-MPSAFE attachment

spi(4) was marked MPSAFE some time ago, so we're always on an
MPSAFE parent device.

(tnn)

2021-07-30 12:46:46 UTC MAIN commitmail json YAML

com(4): fix FIFO for DW_APB on Allwinner A20 (got broken by com.c 1.360)

Older DesignWare UARTs do not advertise their FIFO length so we must
provide it via device properties.

(tnn)

2021-07-29 14:58:35 UTC MAIN commitmail json YAML

Skip the test when the dtrace_syscall module is not loaded and can't
be autoloaded, as may be the case on arm because securelevel.

(gson)

2021-07-29 13:42:38 UTC MAIN commitmail json YAML

gcc 11.2 out

(wiz)

2021-07-29 10:29:05 UTC MAIN commitmail json YAML

src/common/lib/libc/arch/aarch64/atomic/atomic_add_16.S@1.2 / diff / nxr@1.2
src/common/lib/libc/arch/aarch64/atomic/atomic_add_32.S@1.2 / diff / nxr@1.2
src/common/lib/libc/arch/aarch64/atomic/atomic_add_64.S@1.2 / diff / nxr@1.2
src/common/lib/libc/arch/aarch64/atomic/atomic_add_8.S@1.2 / diff / nxr@1.2
src/common/lib/libc/arch/aarch64/atomic/atomic_and_16.S@1.2 / diff / nxr@1.2
src/common/lib/libc/arch/aarch64/atomic/atomic_and_32.S@1.2 / diff / nxr@1.2
src/common/lib/libc/arch/aarch64/atomic/atomic_and_64.S@1.2 / diff / nxr@1.2
src/common/lib/libc/arch/aarch64/atomic/atomic_and_8.S@1.2 / diff / nxr@1.2
src/common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S@1.4 / diff / nxr@1.4
src/common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S@1.4 / diff / nxr@1.4
src/common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S@1.6 / diff / nxr@1.6
src/common/lib/libc/arch/aarch64/atomic/atomic_cas_8.S@1.4 / diff / nxr@1.4
src/common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S@1.5 / diff / nxr@1.5
src/common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S@1.5 / diff / nxr@1.5
src/common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S@1.5 / diff / nxr@1.5
src/common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S@1.5 / diff / nxr@1.5
src/common/lib/libc/arch/aarch64/atomic/atomic_op_asm.h@1.6 / diff / nxr@1.6
src/common/lib/libc/arch/aarch64/atomic/atomic_or_16.S@1.2 / diff / nxr@1.2
src/common/lib/libc/arch/aarch64/atomic/atomic_or_32.S@1.2 / diff / nxr@1.2
src/common/lib/libc/arch/aarch64/atomic/atomic_or_64.S@1.3 / diff / nxr@1.3
      :
(more 13 files)
As we're providing the legacy gcc __sync built-in functions for atomic
memory access we might as well get the memory barriers right...
From the gcc documentation:

In most cases, these built-in functions are considered a full barrier.
That is, no memory operand is moved across the operation, either forward
or backward. Further, instructions are issued as necessary to prevent the
processor from speculating loads across the operation and from queuing
stores after the operation.

type __sync_lock_test_and_set (type *ptr, type value, ...)

  This built-in function is not a full barrier, but rather an acquire
  barrier. This means that references after the operation cannot move to
  (or be speculated to) before the operation, but previous memory stores
  may not be globally visible yet, and previous memory loads may not yet
  be satisfied.

void __sync_lock_release (type *ptr, ...)

  This built-in function is not a full barrier, but rather a release
  barrier. This means that all previous memory stores are globally
  visible, and all previous memory loads have been satisfied, but
  following memory reads are not prevented from being speculated to
  before the barrier.

(skrll)

2021-07-29 06:35:21 UTC MAIN commitmail json YAML

make: in TryParseNumber, reset errno as late as possible

No functional change.

(rillig)

2021-07-29 06:31:18 UTC MAIN commitmail json YAML

tests/make: test spaces around numbers in comparisons

Just to see whether it is possible to write a conditional in the form
${ ${A} < ${B} :? ${A} : ${B} }, that is, with leading and trailing
whitespace, to make it easier for humans to read the code.

It's not possible, the result of this computation cannot be used in
further numeric comparisons, at least not in .if directives.  Leading
space would work, but trailing space wouldn't.

On the other hand, they would work in expressions of the form
${ ${A} < ${B} :? ... : ... } since in these, the condition is first
expanded and then parsed.  But that is an implementation detail that is
not documented and it is also difficult to understand.

(rillig)

2021-07-28 22:31:45 UTC MAIN commitmail json YAML

print Issuer Fingerprint subpacket 33 (rfc4880bis-08:5.2.3.28) rather than Unknown

(jhigh)

2021-07-28 22:17:49 UTC MAIN commitmail json YAML

fix off-by-one check in another KASSERT() for bcount

still related to PR port-xen/56328

(jdolecek)

2021-07-28 21:38:50 UTC MAIN commitmail json YAML

fix intentional, but eventually faulty off-by-one for the maximum number
of segments for I/O - this was supposed to allow MAXPHYS-size I/O even
with page offset, but actually ended up letting through I/O up to
MAXPHYS+PAGE_SIZE

the KASSERT(bcount < MAXPHYS) is kept as-is, since at that place the number
of segments should already be validated, so it's kernel bug if the size
is still too big there

fixes PR port-xen/56328 by Greg Oster

(jdolecek)

2021-07-28 15:00:31 UTC netbsd-9 commitmail json YAML

2021-07-28 14:59:02 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by isaki in ticket #1325):
sys/dev/audio/audio.c: revision 1.105
AUDIO_SETINFO: fix a bug that the gain and the balance could not be set
at the same time.  Fix PR kern/56308.

(snj)

2021-07-28 14:56:35 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #1324):
sys/arch/arm/rockchip/rk_anxdp.c: revision 1.4
rockchip: edp: Force VOPB as CRTC for eDP.
Fixes display init on Pinebook Pro w/ U-Boot 2021.07.

(snj)

2021-07-28 11:32:21 UTC MAIN commitmail json YAML

2021-07-28 11:31:07 UTC MAIN commitmail json YAML

Fix typos, improve wording.

(wiz)

2021-07-28 11:29:59 UTC MAIN commitmail json YAML

Fix typos, improve wording.

(wiz)

2021-07-28 08:01:10 UTC MAIN commitmail json YAML

2021-07-28 07:32:20 UTC MAIN commitmail json YAML

Remove memory barriers from the atomic_ops(3) atomic operations.  They're
not needed for correctness.

Add the correct memory barriers to the gcc legacy __sync built-in
functions for atomic memory access.  From the gcc documentation:

In most cases, these built-in functions are considered a full barrier.
That is, no memory operand is moved across the operation, either forward
or backward. Further, instructions are issued as necessary to prevent the
processor from speculating loads across the operation and from queuing
stores after the operation.

type __sync_lock_test_and_set (type *ptr, type value, ...)

  This built-in function is not a full barrier, but rather an acquire
  barrier. This means that references after the operation cannot move to
  (or be speculated to) before the operation, but previous memory stores
  may not be globally visible yet, and previous memory loads may not yet
  be satisfied.

void __sync_lock_release (type *ptr, ...)

  This built-in function is not a full barrier, but rather a release
  barrier. This means that all previous memory stores are globally
  visible, and all previous memory loads have been satisfied, but
  following memory reads are not prevented from being speculated to
  before the barrier.

(skrll)

2021-07-28 00:59:10 UTC MAIN commitmail json YAML

check temperatures a bit more often
while there, explain why the delay is variable

(macallan)

2021-07-28 00:36:00 UTC MAIN commitmail json YAML

adjust comments, break a long line
NFC

(macallan)

2021-07-27 23:38:42 UTC MAIN commitmail json YAML

first step towards abstracting thermal zone management out of the fcu driver
( and eventually, the smu driver )
todo:
- add sysctl()s to set zone parameters
- handle envsys
- adapt smu

(macallan)

2021-07-27 21:13:41 UTC MAIN commitmail json YAML

KNF and remove #include <sys/malloc.h>

Fixes the build - prompted by cjep.

(skrll)

2021-07-27 20:23:42 UTC MAIN commitmail json YAML

2021-07-27 15:29:22 UTC MAIN commitmail json YAML

Show the stderr from execsnoop so that we can see why it fails on arm.

(gson)

2021-07-27 12:40:07 UTC MAIN commitmail json YAML

Tie the maximum file lock per unprivilegied uid to kern.maxfiles

(manu)

2021-07-27 11:05:39 UTC MAIN commitmail json YAML

PR/53417 appears fixed now so remove atf_expect_fail (for Arm).

(skrll)

2021-07-27 09:32:55 UTC MAIN commitmail json YAML

Tie the maximum file lock per unprivilegied uid to kern.maxfiles

This makes the limit simple to raise at run time. While there, document
that fcntl(2) and flock(2) may return ENOMEM when this limit is reached.

(manu)

2021-07-27 05:52:53 UTC MAIN commitmail json YAML

lint: inline align_as in the grammar

This saves 500 bytes in the resulting binary.

No functional change.

(rillig)

2021-07-27 05:42:36 UTC MAIN commitmail json YAML

lint: provide a direct link to the documentation

No functional change.

(rillig)

2021-07-27 03:09:27 UTC MAIN commitmail json YAML

Missed cleaning up this "peek" routines the other day.  Take care of it now.

(oster)

2021-07-27 03:01:48 UTC MAIN commitmail json YAML

rf_CreateDiskQueueData() no longer uses waitflag, and will always succeed.
Cleanup the error path for the (no longer needed) PR_NOWAIT cases.

(oster)

2021-07-27 01:18:04 UTC MAIN commitmail json YAML

- Remove unused <sys/malloc.h> include.
- Rename ahb_ecb_phys_kv() to ahb_ecb_lookup().
- Remove a bogus comment.

(thorpej)

2021-07-26 22:50:36 UTC MAIN commitmail json YAML

Add support for detecting and configuring nested RAID setups at boot.

(oster)

2021-07-26 21:43:11 UTC MAIN commitmail json YAML

Revert rename back to OFSET, since the name follows historical PGOFSET definition. Noted by tsutsui.

(andvar)

2021-07-26 20:17:10 UTC MAIN commitmail json YAML

The BUGS sections is incorrect again for "modern" terminals.

For example, wscons and xterm both display standout differently to bold.

(nia)

2021-07-26 18:10:14 UTC MAIN commitmail json YAML

2021-07-26 18:06:43 UTC MAIN commitmail json YAML

tests/lint: show bug in conditional expression (since 2021-07-15)

Since cgram.y 1.325 from 2021-07-15, conditional expressions did not
accept a comma-expression in the then-branch anymore.  In practice, this
is an edge case though since comma expressions are rare.

(rillig)

2021-07-26 17:27:22 UTC MAIN commitmail json YAML

lint: fix parsing of chained assignments (since 2021-07-15)

The grammar rule for assignment_expression is quite different from those
of the other expressions, for 2 reasons: first, its precedence is
right-to-left.  Second, its left-hand side must be an lvalue, which
rules out all binary operators.  K&R C even had a grammar rule named
'lvalue' for this purpose.  Later C standards made the kinds of
expressions more fine-grained and used 'unary_expression' in this place.

(rillig)

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

lint: remove redundant associativity declarations

Since cgram.y 1.325 from 2021-07-15, these are not needed anymore.
Strangely, neither yacc nor Bison warned about this redundancy.

No functional change, the grammar rules are the same as before.

(rillig)

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

tests/lint: demonstrate bug in chained assignment (since 2021-07-15)

Since cgram.y 1.325 from 2021-07-15, lint has been parsing assignment
expressions correctly.  It got the associativity wrong.

(rillig)

2021-07-26 16:45:56 UTC MAIN commitmail json YAML

- Type hygiene.
- Rename ahb_ecb::hashkey to ahb_ecb::ecb_dma_addr, and use that value
  rather than recomputing it all the time.

(thorpej)

2021-07-26 16:22:24 UTC MAIN commitmail json YAML

lint: make typeok_scalar_strict_bool simpler

No functional change.

(rillig)

2021-07-26 12:49:13 UTC MAIN commitmail json YAML

Improve previous:

- Add suffix ``d'' for mkdep(1).
- Improve comment a little...

(rin)

2021-07-25 22:43:08 UTC MAIN commitmail json YAML

lint: split is_ctype_function into separate parts

This reduces the number of string comparisons for function names that
start with 'is' or 'to'.

The tests now cover function names that start with 'is' or 'to' but are
not one of the well-known functions from ctype.h.  This removes the '*'
in the output from gcov.

No functional change.

(rillig)

2021-07-25 22:31:22 UTC MAIN commitmail json YAML

2021-07-25 22:14:37 UTC MAIN commitmail json YAML

2021-07-25 22:03:43 UTC MAIN commitmail json YAML

2021-07-25 21:31:01 UTC MAIN commitmail json YAML

lint: revert previous commit; it didn't improve readability

No functional change.

(rillig)

2021-07-25 19:57:22 UTC MAIN commitmail json YAML

lint: merge duplicate code for abstract_declaration

No functional change; same code coverage outside of cgram.y.

(rillig)

2021-07-25 19:41:33 UTC MAIN commitmail json YAML

2021-07-25 19:27:26 UTC MAIN commitmail json YAML

lint: resolve conflicts in begin_type_specifier_qualifier_list

The 9 shift/reduce conflicts were all internal to the grammar rule
begin_type_specifier_qualifier_list.  Previously, there were two
possible ways to parse '__attribute__(()) const int':

1. '__attribute__(())' 'const int'
2. '__attribute__(()) const' 'int'

Both ways would produce the same result since __attribute__ has almost
no observable effects on the resulting type.

No functional change.

(rillig)

2021-07-25 19:22:08 UTC MAIN commitmail json YAML

2021-07-25 19:05:27 UTC MAIN commitmail json YAML

lint: reorder grammar rules

First the base cases, then the extensions, like in most other rules in
this file.

No functional change.

(rillig)

2021-07-25 18:48:47 UTC MAIN commitmail json YAML

2021-07-25 18:44:21 UTC MAIN commitmail json YAML

lint: fix parsing of __attribute__ before enum tag

The __attribute__ after the enumerators will be fixed in a follow-up
commit since lint exits after the 5th syntax error in a translation
unit, which up to now shadowed the error messages about the enumerators.

(rillig)

2021-07-25 18:34:44 UTC MAIN commitmail json YAML

2021-07-25 18:01:03 UTC MAIN commitmail json YAML

lint: add citations for a few grammar rules

No functional change.

(rillig)

2021-07-25 17:40:04 UTC MAIN commitmail json YAML

lint: fix parsing of GNU __attribute__ after __asm

GCC only accepts them in the order __asm __attribute__, not the other
way round.  So should lint.

(rillig)

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

2021-07-25 16:57:23 UTC MAIN commitmail json YAML

lint: wrap overly long lines

No functional change.

(rillig)

2021-07-25 15:58:24 UTC MAIN commitmail json YAML

lint: do not parse 'typeof(0)(void)' as function call

Previously, lint tried to parse 'typeof(0)(void)' as 'typeof'
'(0)(void)', which tries to call 0 as a function.

(rillig)

2021-07-25 15:51:32 UTC MAIN commitmail json YAML

Only expect failure on ARM

(gson)

2021-07-25 15:48:58 UTC MAIN commitmail json YAML

lint: fix parsing of 'typeof(double(typeof(0.0)))'

By removing the misplaced grammar rule 'abstract_declarator: T_TYPEOF',
the type expression 'typeof(double(typeof(0.0)))' is no longer
interpreted as a declarator, but rather as a type specifier, just as in
the GCC parser.

This resolves 7 shift/reduce conflicts.

(rillig)

2021-07-25 11:19:51 UTC MAIN commitmail json YAML

2021-07-25 11:14:16 UTC MAIN commitmail json YAML

rockchip: edp: Force VOPB as CRTC for eDP.

Fixes display init on Pinebook Pro w/ U-Boot 2021.07.

(jmcneill)

2021-07-25 10:57:38 UTC MAIN commitmail json YAML

2021-07-25 10:39:10 UTC MAIN commitmail json YAML

lint: add type information to message about invalid cast

This probably doesn't matter in practice since the compiler is supposed
to catch this kind of error.  Adding the type information mainly ensures
that parsing abstract type names works as specified.

(rillig)

2021-07-25 10:26:46 UTC MAIN commitmail json YAML

2021-07-25 10:21:44 UTC MAIN commitmail json YAML

Remove "pkill -9 execsnoop".  It's wrong on so many levels: first of
all, it does not actually kill anything because the process executing
the execsnoop script is called "sh", not "execsnoop".  And even if it
would somehow kill the shell running the execsnoop script, it still
would not kill the dtrace child process.  On the other hand, if there
happened to be an unrelated process actually called "execsnoop", it
would kill that.

The actual killing of the execsnoop sh and dtrace processes happens in
the ATF cleanup stage (as it always has).

(gson)

2021-07-25 10:11:32 UTC MAIN commitmail json YAML

Increase sleep waiting for execsnoop to start; one second is not sufficient
on a Dell Latitude D400 i386 laptop.

(gson)

2021-07-25 09:53:01 UTC MAIN commitmail json YAML

tests/lint: try harder to reduce 'abstract_declarator: T_TYPEOF'

At the top level of a type_name, declaration-specifiers take precedence,
but these cannot look inside the parentheses of a
direct-abstract-declarator.

(rillig)

2021-07-25 09:47:08 UTC MAIN commitmail json YAML

tests/lint: document unreachable 'abstract_declarator: T_TYPEOF'

(rillig)

2021-07-25 09:29:20 UTC MAIN commitmail json YAML

tests/lint: test parse errors in statements

These errors are really unrealistic.  Most parse errors that occur in
statements are already handled elsewhere and continue with the next
semicolon.

The tests had to be split into two separate files because lint assumes
that after the 5th parse error, it does not make sense to continue this
translation unit.

(rillig)

2021-07-25 08:52:03 UTC MAIN commitmail json YAML

Update to reflect current reality for template characters - the process
ID is not longer used and we replace each "X" with one of 64 values not
26 values.

(simonb)

2021-07-25 08:42:28 UTC MAIN commitmail json YAML

2021-07-25 07:35:55 UTC MAIN commitmail json YAML

2021-07-25 06:10:01 UTC MAIN commitmail json YAML

#include <sys/param.h> for COHERENCY_UNIT (and KNF)

(skrll)

2021-07-25 06:07:42 UTC MAIN commitmail json YAML

2021-07-25 06:06:40 UTC MAIN commitmail json YAML

If we're only doing a count-only kern.buf sysctl, just return the number
of active members in the pool cache (plus some slop) instead of looking
in all the free buffer list.  Should reduce CPU usage for "systat vm"
to << 1% especially for machines with a larger number of buffers.

(simonb)

2021-07-25 06:04:40 UTC MAIN commitmail json YAML

tests/lint: demonstrate internal error in parsing a declaration

(rillig)

2021-07-25 06:00:32 UTC MAIN commitmail json YAML

Add accessor functions to get the number of gets and puts on pools and
pool caches.

(simonb)