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 (26m)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

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

2022-05-29 23:39:59 UTC MAIN commitmail json YAML

ESR_EL1 and FAR_EL1 are not required in interrupt trapframe and their values are meaningless.
To identify it as an interrupt trap frame, store -1 and 0.

(ryo)

2022-05-29 23:24:09 UTC MAIN commitmail json YAML

2022-05-29 23:09:43 UTC MAIN commitmail json YAML

tests/lint: demonstrate wrong errors 'size/alignment of bit-field'

Since tree.c 1.444 from 2022-05-26, which added range and bit checks for
integer expressions, not taking into account that querying for the size
of a bit-field type triggers an error message.

(rillig)

2022-05-29 22:26:21 UTC MAIN commitmail json YAML

Apply extra delay quirk for

- Intel 7 Series (mobile) SATA Controller (AHCI):
  rev. 0x04 sometimes fails to probe Seagate ST500LT012.

Reported by RVP. Thanks!

(rin)

2022-05-29 22:03:29 UTC MAIN commitmail json YAML

gomoku: clean up variable names, add empty lines

No binary change.

(rillig)

2022-05-29 21:47:12 UTC MAIN commitmail json YAML

gomoku: clean up color handling in 'pickmove'

Instead of searching for the best black and white moves, search instead
for our and their best moves. This makes the code simpler and more
uniform, as the strategy is the same for Black and White.

No functional change.

(rillig)

2022-05-29 21:38:36 UTC MAIN commitmail json YAML

gomoku: clean up 'pickmove' stylistically

No functional change.

(rillig)

2022-05-29 21:02:37 UTC MAIN commitmail json YAML

gomoku: migrate remaining functions to type player_color

No functional change.

(rillig)

2022-05-29 20:21:29 UTC MAIN commitmail json YAML

gomoku: make parsing of the debug command 'o' robust

Previously, the (invalid) debug command 'o,' succeeded to parse and led
to out-of-bounds memory access. Add proper parsing for the arguments of
that debug command. Add a short usage for that debug command, as
guessing the usage from the previous code was time-consuming due to the
large amount of ad-hoc low-level parsing code.

When leaving debug mode, clear the debug prompt.

(rillig)

2022-05-29 18:25:39 UTC MAIN commitmail json YAML

gomoku: clean up overlap info in 'checkframes'

In 2009, GCC had complained that the overlap_info might only be
partially filled. All possible code paths are sane though, so that was
probably a bug in GCC.

Remove the comment and the unnecessary initialization, rename the
variable since it doesn't match its behavior anymore. Sync nearby
comments with reality; there is no array anywhere near.

No functional change.

(rillig)

2022-05-29 18:05:25 UTC MAIN commitmail json YAML

gomoku: do not scan the upper border for combos

Adding the '+ 1' to the row coordinate added an offset of 20, while the
intended offset was 1.

No functional change, just a bit faster.

(rillig)

2022-05-29 17:01:42 UTC MAIN commitmail json YAML

gomoku: refine the type of some functions and variables

Assisted by WARNS=6. At that level, there are several warnings about
type conversion between small integer types that would only clutter the
code, therefore stay at WARNS=5. Same for lint's -aa option.

No functional change.

(rillig)

2022-05-29 16:45:00 UTC MAIN commitmail json YAML

- Display "cpu[<CPUINDEX>]" instead of "cpu[<CPUID>]".
- Also add cpu_info->ci_onproc to display.

(ryo)

2022-05-29 16:39:22 UTC MAIN commitmail json YAML

Use the PAR register to check for accessibility in db_(read|write)_bytes().

db_(read|write)_bytes() uses the TTBR[01] at that time, so it must check
if it is accessible in context at that time, not pmap_extract()
which uses the struct pmap of the process.

- It also checks if the address is writable.
- db_write_bytes() also requires ARMV81_PAN control.

(ryo)

2022-05-29 16:30:44 UTC MAIN commitmail json YAML

gomoku: when starting a new game, start in the middle of the board

Previously, when starting a new game, the user coordinate was kept at
the previously selected spot. Since playing in the center is common
sense, reset the coordinate.

(rillig)

2022-05-29 16:19:52 UTC MAIN commitmail json YAML

gomoku: after accepting a spot via the mouse, clear current coordinate

(rillig)

2022-05-29 16:14:42 UTC MAIN commitmail json YAML

fix build without options DDB

(ryo)

2022-05-29 16:13:41 UTC MAIN commitmail json YAML

Simplified termination conditions for ddb backtrace.

Exit backtrace when the user trapframe is invalid. (Mainly in kernel threads).

(ryo)

2022-05-29 15:31:12 UTC MAIN commitmail json YAML

2022-05-29 15:23:21 UTC MAIN commitmail json YAML

2022-05-29 15:16:11 UTC MAIN commitmail json YAML

gomoku: use unsigned integers for bit sets

As all access to the bit sets happens through the unsigned spot_index
type, drop the type casts in the macros.

No functional change on 2s complement machines.

(rillig)

2022-05-29 14:50:37 UTC MAIN commitmail json YAML

gomoku: provide a more gentle introduction to the code

No binary change.

(rillig)

2022-05-29 14:37:44 UTC MAIN commitmail json YAML

2022-05-29 14:01:58 UTC MAIN commitmail json YAML

gomoku: consistently name the offset of a spot in a frame 'off'

Leave 'i' for general purpose loops.

No functional change.

(rillig)

2022-05-29 13:49:10 UTC MAIN commitmail json YAML

gomoku: add data type for one of the 4 directions of a frame

No functional change.

(rillig)

2022-05-29 12:44:17 UTC MAIN commitmail json YAML

gomoku: clean up four_in_a_row

No functional change.

(rillig)

2022-05-29 12:40:36 UTC MAIN commitmail json YAML

Expand and escape comments. One minor change to variable expansion
as requested by uwe.

(nia)

2022-05-29 12:20:07 UTC MAIN commitmail json YAML

gomoku: extract quick_check from scanframes

No functional change.

(rillig)

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

Make it compile again

(martin)

2022-05-29 11:55:05 UTC MAIN commitmail json YAML

Fix insn field definitions for MD and MDS formats.

No one uses these yet.

(rin)

2022-05-29 11:36:12 UTC MAIN commitmail json YAML

gomoku: use proper types when indexing 'board' and 'frames'

No functional change.

(rillig)

2022-05-29 11:18:33 UTC MAIN commitmail json YAML

Apply extra delay quirk for followings:

- Intel Braswell AHCI: rev. 0x35 fails for Seagate ST2000LX001.

- Intel 8 Series (desktop) SATA Controller (AHCI): rev. 0x04 fails for
  Seagate ST1000LX015 and WD WD10JPVX, whereas it works without the
  quirk for some SSD models...

Reported by Matthias Petermann. Thanks!

(rin)

2022-05-29 10:58:09 UTC MAIN commitmail json YAML

Avoid null SEGV if libargon passed string with too few $

Seen on netbsd-9 built xscreensaver running on a current system.
Whatever triggered this should also be fixed, but in the meantime
we can improve the behaviour from "Segmentation Fault"

(abs)

2022-05-29 10:51:42 UTC MAIN commitmail json YAML

2022-05-29 10:51:41 UTC MAIN commitmail json YAML

Free strdup'd value in libargon decode_option error paths

If its worth freeing in the success path, its worth freeing in the
error path... (given we don't _exit or similar)

(abs)

2022-05-29 10:47:40 UTC MAIN commitmail json YAML

2022-05-29 10:45:05 UTC MAIN commitmail json YAML

2022-05-29 10:43:46 UTC MAIN commitmail json YAML

Audit unload/unmap v.s. free against DMA buffer for sys/dev;
make sure that bus_dmamap_unload(9) [or bus_dmamap_destroy(9)] or
bus_dmamem_unmap(9) are preceding to freeing DMA buffer, if it is
loaded or mapped, respectively.

This is mandatory for some archs. See, e.g.:

http://www.nerv.org/netbsd/?q=id:20210511T013030Z.013443cc790088147e4beed43f53dedabeaf9312
http://www.nerv.org/netbsd/?q=id:20220511T172220Z.561179f0b6fcc5b9cd73e274f69d74e2ce9e4c93

For some drivers, resource leaks for error paths are fixed at
the same time.

XXX XXX XXX
Compile test only (at least one arch per driver).

(rin)

2022-05-29 10:43:19 UTC MAIN commitmail json YAML

2022-05-29 10:37:21 UTC MAIN commitmail json YAML

gomoku: turn spotstr.s_frame into a frame index

Most calculations are done on the frame index, not the pointer. This
avoids dealing with ptrdiff_t conversion to int.

Changing the type of s_frame changes the size of struct spotstr, it is
now 56 bytes on LP64 and 48 bytes on ILP32, neither of which is a power
of two. Remove the dummy padding since compilers no longer generate
division instructions for divisions by small integer constants, so that
optimization is no longer necessary.

No functional change.

(rillig)

2022-05-29 10:06:43 UTC MAIN commitmail json YAML

gomoku: document where to fix the unnecessarily long thinking time

(rillig)

2022-05-29 08:15:47 UTC MAIN commitmail json YAML

2022-05-29 08:11:15 UTC MAIN commitmail json YAML

One more typo; this is called _atomic_swap_64, not _8.

(rin)

2022-05-29 08:10:00 UTC MAIN commitmail json YAML

2022-05-29 08:09:19 UTC MAIN commitmail json YAML

Fix typo; this is "and", not "add".

(rin)

2022-05-29 08:06:40 UTC MAIN commitmail json YAML

Add missing Hyper-V devices from GENERIC.

(rin)

2022-05-29 06:06:14 UTC MAIN commitmail json YAML

2022-05-29 05:53:02 UTC MAIN commitmail json YAML

2022-05-29 01:45:56 UTC MAIN commitmail json YAML

CHANGES: minor grammar fixes

(gutteridge)

2022-05-29 01:34:49 UTC MAIN commitmail json YAML

gomoku: migrate 'makemove' to using spot_index instead of pointer

No functional change.

(rillig)

2022-05-29 01:17:55 UTC MAIN commitmail json YAML

gomoku: migrate pickmove to use spot_index instead of pointers

Using spot_index instead of pointers leads to simpler code since there
is no need to deal with conversion from ptrdiff_t to spot_index.

No functional change.

(rillig)

2022-05-29 00:38:26 UTC MAIN commitmail json YAML

gomoku: migrate spot_index from int to unsigned short

This matches the type of 'intersect'.

No functional change.

(rillig)

2022-05-29 00:12:11 UTC MAIN commitmail json YAML

gomoku: use consistent variable names

Previously, the name 's' was used for the index of a spot on the board,
as well as for the value of a combo, and for a few other purposes. Use
different names and mark the spot indexes using a custom type.

No binary change.

(rillig)

2022-05-28 23:05:45 UTC MAIN commitmail json YAML

gomoku: use custom magic value for end of file input

This allows the type for a spot index to be changed to an unsigned type.

No functional change.

(rillig)

2022-05-28 22:33:42 UTC MAIN commitmail json YAML

s/heigth/height/ in a function argument name.

(andvar)

2022-05-28 22:16:44 UTC MAIN commitmail json YAML

2022-05-28 22:08:47 UTC MAIN commitmail json YAML

2022-05-28 22:00:56 UTC MAIN commitmail json YAML

2022-05-28 21:57:39 UTC MAIN commitmail json YAML

2022-05-28 21:54:56 UTC MAIN commitmail json YAML

2022-05-28 21:48:21 UTC MAIN commitmail json YAML

gomoku: use unsigned arithmetic for bitboard

No functional change.

(rillig)

2022-05-28 21:31:41 UTC MAIN commitmail json YAML

gomoku: document that 'whatsup' is called on ^C as well

(rillig)

2022-05-28 21:14:58 UTC MAIN commitmail json YAML

2022-05-28 20:57:26 UTC MAIN commitmail json YAML

gomoku: allow saving a finished game without pressing Shift

(rillig)

2022-05-28 20:54:31 UTC MAIN commitmail json YAML

gomoku: remove redundant parentheses, braces, newlines, clean up get_key

No functional change.

(rillig)

2022-05-28 19:47:24 UTC MAIN commitmail json YAML

gomoku: clean up initialization of overlap information

Fix variable names 'ia' and 'ib', which I forgot in the previous commit.

Move the documentation in the right places.

Split off another part of init_overlap, to make each function fit on a
single screen. Reducing the number of nested 'for' loops allows the
indentation to follow the NetBSD style.

No functional change.

(rillig)

2022-05-28 18:55:16 UTC MAIN commitmail json YAML

gomoku: clean up local variable names in init_overlap

By clearly associating each variable to either frame A or frame B,
suddenly the code becomes understandable. For the benefit of future
readers, explain the naming scheme.

No functional change.

(rillig)

2022-05-28 17:51:27 UTC MAIN commitmail json YAML

gomoku: split initialization of the board into smaller functions

The comments about the "top border" and "bottom border" had been wrong
all the time. Mention the corners in the comments, to remove the magic
from the various '+ 1' in the code.

No functional change.

(rillig)

2022-05-28 15:57:18 UTC MAIN commitmail json YAML

fixed typo with another typo in my last commit. fixing it again.

(andvar)

2022-05-28 14:31:12 UTC MAIN commitmail json YAML

2022-05-28 12:36:56 UTC MAIN commitmail json YAML

Fix typo. Hopefully this didn't break anyone's build, sorry.

(nia)

2022-05-28 11:17:36 UTC MAIN commitmail json YAML

2022-05-28 10:36:24 UTC MAIN commitmail json YAML

2022-05-28 09:41:51 UTC MAIN commitmail json YAML

doc/CHANGES: summarize latest changes to gomoku

(rillig)

2022-05-28 08:32:56 UTC MAIN commitmail json YAML

2022-05-28 08:19:19 UTC MAIN commitmail json YAML

2022-05-28 08:09:22 UTC MAIN commitmail json YAML

gomoku: split makemove into smaller functions

No functional change.

(rillig)

2022-05-28 07:58:36 UTC MAIN commitmail json YAML

gomoku: announce tie as early as possible

(rillig)

2022-05-28 06:25:35 UTC MAIN commitmail json YAML

gomoku: extract update_overlap_different_direction

No functional change.

(rillig)

2022-05-28 05:44:41 UTC MAIN commitmail json YAML

gomoku: extract separate function update_overlap_same_direction

No functional change.

(rillig)

2022-05-28 05:14:34 UTC MAIN commitmail json YAML

gomoku: reduce number of variables in update_overlap

No functional change.

(rillig)

2022-05-28 04:52:23 UTC MAIN commitmail json YAML

gomoku: reduce scope of local variable

No functional change.

(rillig)

2022-05-28 01:07:47 UTC MAIN commitmail json YAML

2022-05-28 00:53:41 UTC MAIN commitmail json YAML

Document hw.wmX.txex_workqueue sysctl

(manu)

2022-05-27 23:29:16 UTC MAIN commitmail json YAML

gomoku: reduce variable reuse, make code more uniform

No functional change.

(rillig)

2022-05-27 23:10:54 UTC MAIN commitmail json YAML

gomoku: reduce scope of local variables

No binary change.

(rillig)

2022-05-27 21:43:26 UTC MAIN commitmail json YAML

gcc 9.5.0 out.

(wiz)

2022-05-27 21:02:27 UTC MAIN commitmail json YAML

i915: Fix missing newlines in custom warning message macros.

(riastradh)

2022-05-27 20:48:43 UTC MAIN commitmail json YAML

gomoku: allow Black to win the game in the very last move

(rillig)

2022-05-27 20:35:58 UTC MAIN commitmail json YAML

gomoku: fix off-by-one error when deciding that the game is a tie

(rillig)

2022-05-27 19:59:56 UTC MAIN commitmail json YAML

gomoku: replace 1-based movenum with 0-based nmoves

No functional change, not even the TIE that is wrongly announced when
the very last spot on the board is yet to be filled by Black.  Even
without this off-by-one error, it could be that filling the very last
spot completes a frame, so that code has been wrong all the time.

In practical terms, this situation only arises when the human player is
unconcentrated or the computer player has a bad strategy.  The latter
may well be, as the computer moves in the (boring) endgame are not
directed towards winning -- they fill irrelevant spots before relevant
ones.

(rillig)

2022-05-27 19:30:56 UTC MAIN commitmail json YAML

gomoku: split local variable into separate variables

No binary change.

(rillig)

2022-05-27 19:05:29 UTC MAIN commitmail json YAML

Only set dpi when necessary to avoid divide by zero on very small screens

(nia)

2022-05-27 18:35:38 UTC MAIN commitmail json YAML

xenevt_setipending(): also increase xenevt_ih->ih_pending, so that
the handler will be called when the IPL is lowered.

(bouyer)

2022-05-27 17:58:54 UTC MAIN commitmail json YAML

More DPI magic... allow most modern GTK and Qt apps to automatically scale

(nia)

2022-05-27 17:04:16 UTC MAIN commitmail json YAML

ctwmrc: Use a slightly more muted orange color.

(nia)

2022-05-27 16:59:19 UTC MAIN commitmail json YAML

2022-05-27 14:23:23 UTC MAIN commitmail json YAML

In xterm, use TrueType fonts rather than Spleen at higher DPIs.

Requested by jmcneill.

(nia)

2022-05-27 09:25:39 UTC MAIN commitmail json YAML

... and more MKLFS here

(nia)

2022-05-27 09:25:08 UTC MAIN commitmail json YAML

2022-05-27 07:28:22 UTC MAIN commitmail json YAML

2022-05-26 20:17:40 UTC MAIN commitmail json YAML

lint: do not warn about 'uint32_t = uint64_t >> 32'

If all possible values fit into the destination type, there is no
possibility of losing accuracy.

Enhances PR 36668.

(rillig)

2022-05-26 19:55:57 UTC MAIN commitmail json YAML

tests/lint: demonstrate wrong warnings about loss of accuracy

(rillig)

2022-05-26 18:08:33 UTC MAIN commitmail json YAML

lint: do not pre-multiply pointer expressions 'ptr + int'

In the AST, it is confusing to see that 'stderr == __sF + 304', it
should rather be 'stderr == __sF + 2'.

No functional change.

(rillig)

2022-05-26 17:23:09 UTC MAIN commitmail json YAML

lint: improve local variable and function names

No functional change.

(rillig)

2022-05-26 17:11:05 UTC MAIN commitmail json YAML

In ddb, fixed "trace/u" and user process memory read/write to work correctly.

In the softint context, curlwp points the kernel lwp, so to get the pmap
of a user process, we had to use curcpu()->ci_onproc->l_proc instead of
curproc (curlwp->l_proc). Adviced by ad@.

(ryo)

2022-05-26 16:52:30 UTC MAIN commitmail json YAML

lint: reduce scope of local variables in build_plus_minus

No functional change.

(rillig)

2022-05-26 16:45:25 UTC MAIN commitmail json YAML

lint: fix spacing and line breaks in debug logging

The spacing between function arguments in a declaration info was too
big, it was the indentation level instead of a single space.

The function debug_sym is used for two purposes: own-line and in-line,
which coincidentally are distinguished by whether the suffix string is
"\n".

(rillig)

2022-05-26 15:23:33 UTC MAIN commitmail json YAML

libc/ptree: remove CONSTCOND comments

Since 2021-01-31, lint does not need them anymore.

(rillig)

2022-05-26 15:05:11 UTC MAIN commitmail json YAML

Remove duplicated function declarations.

(tsutsui)

2022-05-26 14:39:30 UTC MAIN commitmail json YAML

altq.9: remove CONSTCOND comment from example code

Since 2021-01-31, lint no longer needs CONSTCOND in a do-while loop.

(rillig)

2022-05-26 14:33:29 UTC MAIN commitmail json YAML

2022-05-26 14:30:36 UTC MAIN commitmail json YAML

2022-05-26 14:30:11 UTC MAIN commitmail json YAML

Make a readonly array const.

(tsutsui)

2022-05-26 14:28:56 UTC MAIN commitmail json YAML

2022-05-26 14:27:43 UTC MAIN commitmail json YAML

Make local functions and variable static.

(tsutsui)

2022-05-26 14:24:42 UTC MAIN commitmail json YAML

mk.conf(5): Don't make "experimental" comment stand out.

(uwe)

2022-05-26 13:40:49 UTC MAIN commitmail json YAML

2022-05-26 13:02:04 UTC MAIN commitmail json YAML

Use CPUID_PERF_* macros defined in specialreg.h. No functional change.

(msaitoh)

2022-05-26 12:47:20 UTC MAIN commitmail json YAML

lint: merge debug and non-debug code for saving and restoring warnings

No functional change.

(rillig)

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

lint: remove assertion about saving and restoring warning flags

The assertion only triggers in debug mode, which is generally not used
as it adds lots of debug logging.  In production mode, the assumption
didn't hold for many years now, so remove the assertion.

(rillig)

2022-05-26 12:04:56 UTC MAIN commitmail json YAML

lint: improve debug logging for NAME expressions

In a NAME expression, the name is an essential part, so put it to the
front, in natural reading order.

(rillig)

2022-05-26 11:54:33 UTC MAIN commitmail json YAML

lint: add missing newlines in debug_node

(rillig)

2022-05-26 11:06:14 UTC MAIN commitmail json YAML

aprint_debug(): if a hypercall fail, print the return code.

(bouyer)

2022-05-26 10:48:47 UTC MAIN commitmail json YAML

lint: re-order conditions for lossy conversions

Now that can_represent does more work, put it at the end of the
conditions.

No functional change.

(rillig)

2022-05-26 09:55:31 UTC MAIN commitmail json YAML

sys/common_int_const.h: fix typo in error message

(rillig)

2022-05-26 09:26:00 UTC MAIN commitmail json YAML

lint: do not warn about loss in accuracy if the actual value fits

The expression 'any & 0xff' can always be assigned to 'uint8_t' without
loss of any value bits.  In the same way, '(any & 0xff) << 8' can always
be assigned to 'uint16_t'.

Previously, lint warned about these cases.  Fix these wrong warnings by
tracking the possible values of integer expressions across a single
expression.

Fixes PR 36668, so that <sys/endian.h> does not need to be cluttered
with useless casts anymore.

(rillig)

2022-05-26 08:06:58 UTC MAIN commitmail json YAML

Literal backslashes need to be quoted for roff.

(mlelstv)

2022-05-26 07:03:03 UTC MAIN commitmail json YAML

tests/lint: demonstrate wrong 'may lose accuracy' warning

Reported in PR 36668, fixed in sys/sys/endian.h 1.26 from 2007-07-20,
unfixed in sys/sys/endian.h 1.29 from 2014-03-18.

(rillig)

2022-05-26 06:48:36 UTC MAIN commitmail json YAML

w: add -A to usage

(wiz)

2022-05-26 06:43:58 UTC MAIN commitmail json YAML

lint: remove long list of node types in switch statement

No functional change.

(rillig)

2022-05-26 06:33:03 UTC MAIN commitmail json YAML

Document some more build options. Delint.

(nia)

2022-05-26 06:23:57 UTC MAIN commitmail json YAML

mk: Document that some options were enabled by default on aarch64

(nia)

2022-05-26 05:34:04 UTC MAIN commitmail json YAML

port-hppa/56849: Wacko kernel memory accounting in current/hppa

Two fixes:
- Don't include direct mapped memory in pmap statistics
- Decrement pmap statistics counts in pmap_kremove

(skrll)

2022-05-26 02:24:00 UTC MAIN commitmail json YAML

default to not sorting tty names with alphabetical sort and add
a new -A switch to sort them again.

enable the sorting code if either utmp or utmpx are enabled,
not just both.  shouldn't matter as we enable both.

(mrg)

2022-05-26 02:16:44 UTC MAIN commitmail json YAML

only link acpi_pci*.c if acpi & pci, not just acpi.

(mrg)

2022-05-25 21:25:47 UTC MAIN commitmail json YAML

2022-05-25 21:01:04 UTC MAIN commitmail json YAML

be lazy about clearing the cursor since most likely we're going to overwrite
it anyway. Same logic as in cgsix.

(macallan)

2022-05-25 20:44:02 UTC MAIN commitmail json YAML

2022-05-25 15:52:25 UTC MAIN commitmail json YAML

Move <xen/include/public/vcpu.h> so it's always inclued. Fixes Xen PV builds.

(bouyer)

2022-05-25 14:35:16 UTC MAIN commitmail json YAML

PVH and HVM guests can easily have more than XEN_LEGACY_MAX_VCPUS (32) cpus.
Support up to HVM_MAX_VCPUS (256). This requires resizing a few arrays in
evtchn.c, and using
VCPUOP_register_vcpu_info for vcpuid >= XEN_LEGACY_MAX_VCPUS
Tested with 96 vCPUs.

(bouyer)

2022-05-25 12:47:41 UTC MAIN commitmail json YAML

debug pieces should also be installed conditionally based on MKMBONE

(nia)

2022-05-25 10:18:30 UTC MAIN commitmail json YAML

2022-05-25 09:35:58 UTC MAIN commitmail json YAML

2022-05-25 08:54:18 UTC MAIN commitmail json YAML

doc: GPU driver update

(nia)

2022-05-25 08:51:20 UTC MAIN commitmail json YAML

doc: More miscellaneous changes by other developers

(nia)

2022-05-25 08:12:42 UTC MAIN commitmail json YAML

x86: Reserve device major for VirtualBox Guest Additions

(uwe)

2022-05-25 07:51:28 UTC MAIN commitmail json YAML

Even more changes from other developers (mostly efiboot related)

(nia)

2022-05-25 07:30:37 UTC MAIN commitmail json YAML

Spell Jason's name correctly.

(nia)

2022-05-25 07:27:10 UTC MAIN commitmail json YAML

doc: Add various CHANGES entries on behalf of other developers.

Sorry if I got yours wrong! Please adjust it.

While here, attempt to fix the syntax of riastradh's recent entry.

(nia)

2022-05-25 06:17:19 UTC MAIN commitmail json YAML

Add note about tprof(4) for people like me who forget to load tprof_x86.

(msaitoh)

2022-05-25 04:15:44 UTC MAIN commitmail json YAML

ipsec: don't assert for the format of incoming packets

(ozaki-r)

2022-05-24 22:47:53 UTC MAIN commitmail json YAML

Position input fields without overlap.

(mlelstv)

2022-05-24 21:42:38 UTC MAIN commitmail json YAML

tests/dd: add more test cases for swapping bytes

To demonstrate that the fix from PR 56433 works as intended.

(rillig)

2022-05-24 20:50:21 UTC MAIN commitmail json YAML

2022-05-24 20:08:38 UTC MAIN commitmail json YAML

2022-05-24 20:00:49 UTC MAIN commitmail json YAML

2022-05-24 19:55:10 UTC MAIN commitmail json YAML

2022-05-24 19:37:39 UTC MAIN commitmail json YAML

2022-05-24 17:06:08 UTC MAIN commitmail json YAML

PR kern/56853: add a dummy acpi_md_vbios_reset variable so that we
can again enable vga at pci for Xen.
Note that this only works in BIOS mode, not UEFI mode.

(bouyer)

2022-05-24 16:01:25 UTC MAIN commitmail json YAML

Looks like we finally can enable MSI/MSI-X on Xen
Should fix PR kern/56793 and PR kern/55667

(bouyer)

2022-05-24 15:55:19 UTC MAIN commitmail json YAML

Some devices (e.g. ixg in MSI-X mode) don't to have their handlers called
when no interrupt are pending. So add an extra ih_pending field
to struct intrhand, which is incremeted when the handler is not called because
of IPL level and reset to 0 when called. Check this in Xen's resume
assembly to call only handlers that are really pending.

(bouyer)

2022-05-24 15:51:10 UTC MAIN commitmail json YAML

Remove useless info from debug printf, fix format warning on i386

(bouyer)

2022-05-24 14:53:15 UTC MAIN commitmail json YAML

xdm: Revert font changes. Requested by martin.

In addition, we must lower innerFramesWidth to prevent the new-old
fonts from causing the two text input boxes to overlap. xdm really
could be more clever about text layout...

PR xsrc/56855

(nia)

2022-05-24 14:11:15 UTC MAIN commitmail json YAML

Add information for Spleen fonts.

(fcambus)

2022-05-24 14:00:24 UTC MAIN commitmail json YAML

- msipic_construct_msix_pic(): set mp_table_base to memaddr (without
  table_offset), this is what Xen wants
while there use pci_conf_write16() in msi_set_msictl_enablebit() too,
for consistency (it seems that Xen accepts the 32bit write at this point,
but this may change).

- xen_map_msix_pirq(): don't forget to set map_irq.table_base in the
  MSI-X case, otherwise Xen maps it as MSI
- call pic_hwunmask() after pirq_establish() in msi/msix case, to make sure
  the msi-x vector is unmasked.

Now MSI-X works with Xen so stop disabling it in pci_attach_hook().

(bouyer)

2022-05-24 13:52:52 UTC MAIN commitmail json YAML

Note that GCC 12.1 has been released on May 6th.

While there, switch home page to HTTPS.

(fcambus)

2022-05-24 08:35:47 UTC MAIN commitmail json YAML

Workaround for Atom C2000 series (Rangeley) qat, ok'ed by hikaru@n.o.

C2000 qat has two engines, however it doesn't have arbiter.
If we enable both engines, qat interrupts twice wrongly (and second
interrupt notice invalid data).  So, we enable only one engine.

(knakahara)

2022-05-24 06:28:02 UTC MAIN commitmail json YAML

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

2022-05-24 06:18:34 UTC MAIN commitmail json YAML

2022-05-24 02:22:47 UTC MAIN commitmail json YAML

Reduce diff among vmxnet3_{legacy_intr,txrxq_intr,handle_que}(). NFCI.

(msaitoh)

2022-05-23 22:33:56 UTC MAIN commitmail json YAML

tests/make: document and demonstrate .for i containing .if empty(i)

PR bin/43821 describes the inconsistency that in a '.for i' loop, the
condition '.if ${i:M*.c}' works since 2009 while the seemingly
equivalent condition '.if !empty(i:M*.c)' does not access the variable
'i' from the .for loop but instead the global 'i'.

Resolving this situation in a backwards-compatible and non-surprising
way is hard, as make has grown several features during the last 20 years
that interact in various edge cases.  For now, document the most obvious
pitfalls.

(rillig)

2022-05-23 21:46:12 UTC MAIN commitmail json YAML

2022-05-23 19:52:35 UTC MAIN commitmail json YAML

2022-05-23 19:21:30 UTC MAIN commitmail json YAML

2022-05-23 16:58:38 UTC MAIN commitmail json YAML

2022-05-23 16:54:29 UTC MAIN commitmail json YAML

Make local functions and variable static.

(tsutsui)

2022-05-23 16:20:00 UTC MAIN commitmail json YAML

Fix a wrong comment about mouse buttons, probably derived from Inside X68000.

(tsutsui)

2022-05-23 15:03:05 UTC MAIN commitmail json YAML

Work in progress on MSI/MSI-X on Xen (MSI works on my hardware, more work
needed for MSI-X):
- Xen silently rejects 32 bits writes to MSI configuration registers
  (especially when setting PCI_MSI_CTL_MSI_ENABLE/PCI_MSIX_CTL_ENABLE),
  it expects 16 bits writes. So introduce a pci_conf_write16(),
  only available on XENPV (and working only for mode 1 without
  PCI_OVERRIDE_CONF_WRITE) and use it to enable MSI or MSI-X on XENPV.
- for multi-MSI vectors, Xen allocates all of them in a single hypercall,
  so it's not convenient to do it at intr_establish() time.
  So do it at alloc() time and register the pirqs in the msipic structure.
  xen_pic_to_gsi() now just returns the values cached in the msipic.
  As a bonus, if the PHYSDEVOP_map_pirq hypercall fails we can fail
  the alloc() and we don't need the xen_pci_msi*_probe() hacks.

options NO_PCI_MSI_MSIX still on by default for XEN3_DOM0.

(bouyer)

2022-05-23 13:53:37 UTC MAIN commitmail json YAML

Audit unload/unmap v.s. free against DMA buffer for sys/dev/pci;
make sure that bus_dmamap_unload(9) [or bus_dmamap_destroy(9)] or
bus_dmamem_unmap(9) are preceding to freeing DMA buffer, if it is
loaded or mapped, respectively.

This is mandatory for some archs. See, e.g.:

http://www.nerv.org/netbsd/?q=id:20210511T013030Z.013443cc790088147e4beed43f53dedabeaf9312
http://www.nerv.org/netbsd/?q=id:20220511T172220Z.561179f0b6fcc5b9cd73e274f69d74e2ce9e4c93

XXX XXX XXX
Compile test only (for amd64/ALL).

Thanks riastradh@ for double check.

(rin)

2022-05-23 12:17:17 UTC MAIN commitmail json YAML

Add comments why delta Y of mouse input is inverted.

(tsutsui)

2022-05-22 21:39:44 UTC MAIN commitmail json YAML

uncompress: if the source is broken, don't delete the target

Fixes the second half of PR bin/19722, reported by Giorgos Keramidas.

(rillig)

2022-05-22 21:31:48 UTC MAIN commitmail json YAML

sys/param.h: Welcome to 9.99.97, courtesy of opencrypto cleanup.

crypto_dispatch, crypto_kdispatch, and crypto_freesession now return
void, as does the opencrypto driver's freesession callback.

(riastradh)

2022-05-22 21:18:12 UTC MAIN commitmail json YAML

i915: Fix sense of conditional for gmbus wait.

This enables i915 to again retrieve EDID data from displays over the
I2C DDC.

Embarrassing.

(riastradh)

2022-05-22 21:16:50 UTC MAIN commitmail json YAML

uncompress: if the source doesn't exist, don't touch the target

Fixes part of PR bin/19722, reported by Giorgos Keramidas.

(rillig)

2022-05-22 20:49:12 UTC MAIN commitmail json YAML

tests/compress: extend tests for compressing and uncompressing

For PR bin/19722.

(rillig)

2022-05-22 20:35:20 UTC MAIN commitmail json YAML

i915: Raise gmbus_wait timeout from 10ms to 50ms to match upstream.

(riastradh)

2022-05-22 19:41:50 UTC MAIN commitmail json YAML

compress: normalize indentation and spacing

No binary change.

(rillig)

2022-05-22 19:32:42 UTC MAIN commitmail json YAML

Restore Makefile.installimage include after variables are set. Makes amd64
USB install images bootable again.

(jmcneill)

2022-05-22 18:41:22 UTC MAIN commitmail json YAML

i915: Fix bug in gmbus_wait: test status passed, not GMBUS_ACTIVE.

(riastradh)

2022-05-22 18:41:14 UTC MAIN commitmail json YAML

linux: Repeat i2c transfer if driver fails with EAGAIN.

The Intel GMBUS (graphics management bus, i2c controller) relies on
this now to fall back from interrupt-driven xfers to bit-banging.

(riastradh)

2022-05-22 17:55:09 UTC MAIN commitmail json YAML

2022-05-22 13:58:59 UTC MAIN commitmail json YAML

2022-05-22 13:53:39 UTC MAIN commitmail json YAML

tests/lint: demonstrate wrong warning for switch on enum

(rillig)

2022-05-22 13:38:08 UTC MAIN commitmail json YAML

gomoku: add mouse support

NetBSD 10 provides the mouse handling functions from <curses.h> but does
not actually implement the mouse handling.  For the benefit of other
platforms, add mouse support; when linked with ncurses instead of
curses, it works.

Depending on the input device, mouse clicks are either reported as
"button 1 clicked" (mouse) or "button 1 pressed/released" (touchpad);
support both.

Be strict about the X coordinate when clicking.  Since the coordinates
are integer numbers, getting the location between two spots is
ambiguous, as it could be just one pixel away or right in the middle of
the space between the spots.

(rillig)

2022-05-22 13:20:44 UTC MAIN commitmail json YAML

2022-05-22 12:42:54 UTC MAIN commitmail json YAML

gomoku: clean up coordinate calculations in get_coord

No functional change.

(rillig)

2022-05-22 12:30:05 UTC MAIN commitmail json YAML

gomoku: make coordinates in get_coord 1-based

The rest of the game has 1-based coordinates as well.

No functional change.

(rillig)

2022-05-22 11:40:54 UTC MAIN commitmail json YAML

opencrypto: Assert session id is valid in crypto_freesession.

This gives us the opportunity to detect usage mistakes like
use-after-free.

Exception: Continue to silently ignore sid=0.

(riastradh)