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

2024-05-10 17:10:59 UTC Now

2020-12-05 21:27:31 UTC MAIN commitmail json YAML

Don't bother with gdbserver for archs that don't build it.

(christos)

2020-12-05 21:27:07 UTC MAIN commitmail json YAML

src/external/gpl3/gdb/bin/Makefile@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libbfd/Makefile@1.11 / diff / nxr@1.11
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfd-in3.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfd.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfd_stdint.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfdver.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/config.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/defs.mk@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/targmatch.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64/config.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64/gstdint.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/defs.mk@1.4 / diff / nxr@1.4
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/init.c@1.4 / diff / nxr@1.4
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/jit-reader.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/version.c@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/xml-builtin.c@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libiberty/arch/aarch64/defs.mk@1.2 / diff / nxr@1.2
src/external/gpl3/gdb/lib/libopcodes/arch/aarch64/config.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libreadline/arch/aarch64/config.h@1.3 / diff / nxr@1.3
src/external/gpl3/gdb/lib/libreadline/arch/aarch64/defs.mk@1.2 / diff / nxr@1.2

fix and rege aarch64

(christos)

2020-12-05 21:26:43 UTC MAIN commitmail json YAML

2020-12-05 20:34:05 UTC MAIN commitmail json YAML

xsrc/external/mit/xorg-server/dist/Xi/xichangehierarchy.c@1.6 / diff / nxr@1.6
xsrc/external/mit/xorg-server/dist/Xi/xipassivegrab.c@1.5 / diff / nxr@1.5
xsrc/external/mit/xorg-server/dist/configure@1.8 / diff / nxr@1.8
xsrc/external/mit/xorg-server/dist/configure.ac@1.10 / diff / nxr@1.10
xsrc/external/mit/xorg-server/dist/dix/devices.c@1.11 / diff / nxr@1.11
xsrc/external/mit/xorg-server/dist/dix/events.c@1.5 / diff / nxr@1.5
xsrc/external/mit/xorg-server/dist/exa/exa_accel.c@1.6 / diff / nxr@1.6
xsrc/external/mit/xorg-server/dist/hw/xfree86/ddc/xf86DDC.h@1.4 / diff / nxr@1.4
xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/driver.c@1.5 / diff / nxr@1.5
xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/driver.h@1.5 / diff / nxr@1.5
xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/drmmode_display.c@1.6 / diff / nxr@1.6
xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/present.c@1.5 / diff / nxr@1.5
xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/vblank.c@1.6 / diff / nxr@1.6
xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_init.c@1.11 / diff / nxr@1.11
xsrc/external/mit/xorg-server/dist/include/dix-config.h.in@1.6 / diff / nxr@1.6
xsrc/external/mit/xorg-server/dist/include/os.h@1.10 / diff / nxr@1.10
xsrc/external/mit/xorg-server/dist/os/backtrace.c@1.3 / diff / nxr@1.3
xsrc/external/mit/xorg-server/dist/os/io.c@1.5 / diff / nxr@1.5
xsrc/external/mit/xorg-server/dist/test/xi1/protocol-xchangedevicecontrol.c@1.3 / diff / nxr@1.3
xsrc/external/mit/xorg-server/dist/test/xi2/protocol-xigetclientpointer.c@1.5 / diff / nxr@1.5
      :
(more 4 files)
merge xorg-server 1.20.10.

(mrg)

2020-12-05 19:46:04 UTC MAIN commitmail json YAML

make(1): indent parse.c with tabs instead of spaces

(rillig)

2020-12-05 19:08:50 UTC MAIN commitmail json YAML

update the rump copy of uvm_page_unbusy() to match the real version,
in particular handle PG_PAGEOUT.  fixes a few atf tests.

(chs)

2020-12-05 19:06:51 UTC MAIN commitmail json YAML

make(1): reduce indentation in ParseDependencySourceKeyword

(rillig)

2020-12-05 19:03:46 UTC MAIN commitmail json YAML

make(1): extract ParseDependencySourceWait

(rillig)

2020-12-05 18:57:21 UTC MAIN commitmail json YAML

Inform the default installation directory in the official ftp server.

(tsutsui)

2020-12-05 18:52:06 UTC MAIN commitmail json YAML

Use proper release version strings ("9.1" rather than "91") in banners.

Also define and use "MACHINE" variable to describe port names
(no uname(1) or sysctl(8) in miniroot binary list by default).

I guess the short format like "91" by ${DISTRIBREV} was used only
for split sets for floppies in 1990's releases.

Worth to pullup to netbsd-9.

(tsutsui)

2020-12-05 18:38:02 UTC MAIN commitmail json YAML

2020-12-05 18:33:47 UTC MAIN commitmail json YAML

Explicitly sort set names fetched via ftp nlist.

Several binary sets are stored as symbolic links on releases and
it seems some ftpd doesn't sort nlist outputs by name in such case.

Worth to pullup to netbsd-9 and netbsd-8.

(tsutsui)

2020-12-05 18:29:50 UTC MAIN commitmail json YAML

Appease awk warnings on suppressing dmesg timestamps.

> awk: warning: escape sequence `\[' treated as plain `['
>  source line number 1
>  context is
>        { h=$0; >>>  gsub("^[ <<<
> awk: warning: escape sequence `\]' treated as plain `]'
>  source line number 1

Should be pulled up to netbsd-9.

(tsutsui)

2020-12-05 18:27:39 UTC MAIN commitmail json YAML

Add missing md_get_partition_range() that causes installation failure.

Also reported by Martin Trusler on testing hp300 miniroot.
Should be pulled up to netbsd-9 and netbsd-8.

(tsutsui)

2020-12-05 18:24:10 UTC MAIN commitmail json YAML

Add modules set for default sets on miniroot installation.

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

(tsutsui)

2020-12-05 18:17:01 UTC MAIN commitmail json YAML

Refactor interval timers to make it possible to support types other than
the BSD/POSIX per-process timers:

- "struct ptimer" is split into "struct itimer" (common interval timer
  data) and "struct ptimer" (per-process timer data, which contains a
  "struct itimer").

- Introduce a new "struct itimer_ops" that supplies information about
  the specific kind of interval timer, including it's processing
  queue, the softint handle used to schedule processing, the function
  to call when the timer fires (which adds it to the queue), and an
  optional function to call when the CLOCK_REALTIME clock is changed by
  a call to clock_settime() or settimeofday().

- Rename some fuctions to clearly identify what they're operating on
  (ptimer vs itimer).

- Use kmem(9) to allocate ptimer-related structures, rather than having
  dedicated pools for them.

Welcome to NetBSD 9.99.77.

(thorpej)

2020-12-05 18:16:11 UTC MAIN commitmail json YAML

The kernel and X sets should be specified in MD miniroot scripts.

Otherwise they are not listed at least on ftp installation.
The problem was reported by Martin Trusler on port-hp300@:
https://mail-index.netbsd.org/port-hp300/2020/11/21/msg000174.html

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

(tsutsui)

2020-12-05 18:15:40 UTC MAIN commitmail json YAML

2020-12-05 18:13:44 UTC MAIN commitmail json YAML

make(1): add test for unknown modifier in :C modifier replacement

(rillig)

2020-12-05 17:46:42 UTC MAIN commitmail json YAML

make(1): remove unused parameter from meta_needed

(rillig)

2020-12-05 17:44:22 UTC MAIN commitmail json YAML

make(1): remove unused parameter from JobOutput

(rillig)

2020-12-05 17:42:29 UTC MAIN commitmail json YAML

Remove unnecessary inclusion of <sys/timevar.h>

(thorpej)

2020-12-05 17:40:00 UTC MAIN commitmail json YAML

2020-12-05 17:33:54 UTC MAIN commitmail json YAML

2020-12-05 17:25:42 UTC MAIN commitmail json YAML

make(1): refuse to use vsnprintf that is prone to buffer overflows

Several parts of make intentionally depend on the guarantee that
snprintf and vsnprintf do not overflow their buffer.  If an
implementation cannot provide this guarantee, refuse to use it.

(rillig)

2020-12-05 17:17:38 UTC MAIN commitmail json YAML

make(1): remove unused variable from ArchFindMember

(rillig)

2020-12-05 17:12:02 UTC MAIN commitmail json YAML

make(1): extract ExpandChildrenRegular from ExpandChildren

(rillig)

2020-12-05 16:59:47 UTC MAIN commitmail json YAML

make(1): indent suff.c with tabs instead of spaces

ExpandChildren is way too deeply nested.

(rillig)

2020-12-05 16:23:08 UTC MAIN commitmail json YAML

pkg_install updated to 20201205

(wiz)

2020-12-05 16:21:26 UTC MAIN commitmail json YAML

2020-12-05 15:57:02 UTC MAIN commitmail json YAML

make(1): don't concatenate identifiers in Targ_PrintType

Concatenating identifiers makes it difficult to spot them when searching
the code.  This gets rid of the special case for OP_MEMBER and MEMBER.

The same pattern is applied in the DEBUG macro, by the way.

(rillig)

2020-12-05 15:35:34 UTC MAIN commitmail json YAML

make(1): indent targ.c with tabs instead of spaces

Explain the tricky details of GNode_Free.

Invert a condition in Targ_PrintNode to reduce the overall indentation.

(rillig)

2020-12-05 15:31:18 UTC MAIN commitmail json YAML

make(1): extract ShuffleStrings from ApplyModifier_Order

(rillig)

2020-12-05 15:08:21 UTC MAIN commitmail json YAML

When matching, try a read in case this is an optional device and isn't
actually present.

(jdc)

2020-12-05 15:02:29 UTC MAIN commitmail json YAML

Return "match_result", not "1".  Pointed out by jmcneill.

(jdc)

2020-12-05 14:55:17 UTC MAIN commitmail json YAML

make(1): indent remaining code of var.c with tabs instead of spaces

(rillig)

2020-12-05 14:50:33 UTC MAIN commitmail json YAML

Make sure that we set sc->sc_sme to NULL in failure cases in order to avoid
calling sysmon_envsys_unregister() with an invalid struct when we detach.

(jdc)

2020-12-05 14:48:09 UTC MAIN commitmail json YAML

When matching, try a read in case this is an optional device and isn't
actually present.
Make sure that we set sc->sc_sme to NULL in failure cases and when we
detach in order to avoid calling sysmon_envsys_unregister() with an
invalid struct.

(jdc)

2020-12-05 14:28:09 UTC MAIN commitmail json YAML

make(1): indent large parts of var.c with tabs instead of spaces

The few remaining functions need to be cleaned up before being indented
further, to reduce the overall indentation.

(rillig)

2020-12-05 13:01:33 UTC MAIN commitmail json YAML

2020-12-05 11:18:21 UTC MAIN commitmail json YAML

2020-12-05 08:04:51 UTC MAIN commitmail json YAML

for boot -1, don't attach more than the boot CPU most others

(mrg)

2020-12-05 03:42:15 UTC MAIN commitmail json YAML

2020-12-04 23:04:58 UTC MAIN commitmail json YAML

Correct typo in previous.

(kre)

2020-12-04 23:03:11 UTC MAIN commitmail json YAML

PR kern/55839:
handle multiple nvme_rescan()s correctly by doing the
name-space identify only once per nsid.

fixes issue where modloading triggers multiple
rescans.

(kardel)

2020-12-04 22:47:57 UTC MAIN commitmail json YAML

make(1): extract UnexportEnv from Var_UnExport

(rillig)

2020-12-04 22:35:40 UTC MAIN commitmail json YAML

make(1): extract UnexportVar from Var_UnExport

(rillig)

2020-12-04 21:39:26 UTC MAIN commitmail json YAML

gicv3: Only use 1 of N SPI distribution when the feature is available.

A GICv3+ implementation is not guaranteed to support 1 of N SPI
distribution. Support for this feature is indicated in GICD_TYPER.No1N.

When No1N=1, route all interrupts to the primary PE by default and only
allow a single CPU target when updating affinity.

(jmcneill)

2020-12-04 20:39:10 UTC MAIN commitmail json YAML

Add __null_sentinel

(christos)

2020-12-04 20:38:44 UTC MAIN commitmail json YAML

add __null_sentinel (from FreeBSD)

(christos)

2020-12-04 20:23:33 UTC MAIN commitmail json YAML

make(1): rename parse functions

The word "Do" was not necessary.

(rillig)

2020-12-04 20:11:48 UTC MAIN commitmail json YAML

2020-12-04 20:08:07 UTC MAIN commitmail json YAML

2020-12-04 18:44:49 UTC MAIN commitmail json YAML

2020-12-04 18:43:48 UTC MAIN commitmail json YAML

2020-12-04 18:42:50 UTC MAIN commitmail json YAML

2020-12-04 18:28:55 UTC MAIN commitmail json YAML

new libfido2new libfido2new libfido2new libfido2new libfido2new libfido2new libfido2new libfido2new libfido2

(christos)

2020-12-04 18:27:44 UTC MAIN commitmail json YAML

2020-12-04 18:27:18 UTC MAIN commitmail json YAML

2020-12-04 17:56:04 UTC MAIN commitmail json YAML

__sentinel__ = __sentinel__(0)

(christos)

2020-12-04 14:51:46 UTC MAIN commitmail json YAML

make(1): improve variable names in Arch_ParseArchive

The variable buf used to be a Buffer, now it is a simple string pointer.

(rillig)

2020-12-04 14:39:56 UTC MAIN commitmail json YAML

2020-12-04 14:28:50 UTC MAIN commitmail json YAML

make(1): use fixed format for debug output of the directory cache

The previous output format had a %-20s conversion specifier.  This
produced different output depending on the length of the pathname, which
was too difficult to normalize.  By moving the directory name to the
end, it is no longer necessary to fill up any space, and the numbers are
always aligned properly.

As a result, 3 of the unit tests no longer need any special
postprocessing of their output.

(rillig)

2020-12-04 08:29:11 UTC MAIN commitmail json YAML

2020-12-04 08:24:41 UTC MAIN commitmail json YAML

Ensure translation table updates are visible to the hardware walker(s)
in pmapboot_enter.

(skrll)

2020-12-04 08:00:53 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2020-12-04 07:12:57 UTC MAIN commitmail json YAML

Use __func__ in panic calls (and misc style changes)

(skrll)

2020-12-04 07:11:35 UTC MAIN commitmail json YAML

Update stats in the coherent case.  Reported by jmcneill.

(skrll)

2020-12-04 00:44:39 UTC MAIN commitmail json YAML

Build ip_sync.c with -Wno-error to avoid failing due to excessive stack
usage.

(thorpej)

2020-12-04 00:43:00 UTC MAIN commitmail json YAML

Build x86emu.c with -fno-inline, otherwise all of the auto-inlining
the compiler does causes stack usage to exceed the limits we've set.

(thorpej)

2020-12-04 00:41:10 UTC MAIN commitmail json YAML

In pfr_fix_anchor(), change an overlapping bcopy() call to a memmove()
call.

(thorpej)

2020-12-04 00:38:08 UTC MAIN commitmail json YAML

- malloc(9) -> kmem(9)
- In ibm561_set_cmap(), allocating 3K on the stack is not polite; allocate
  a temporary buffer for the cmap data using kmem_alloc().

(thorpej)

2020-12-04 00:26:16 UTC MAIN commitmail json YAML

Rewrite linux_sys_alarm() to use dogetitimer() / dosetitimer(), rather
than fiddling with process timers directly.

(thorpej)

2020-12-03 22:10:21 UTC MAIN commitmail json YAML

Add some missing channel order related ioctl defines.

These are no-ops (unimplemented) on both FreeBSD and Solaris
and the one piece of code I've found that uses it seems to assume the
call will fail so it should be safe to leave this returning EINVAL.

However, it does need the definitions to compile...

(nia)

2020-12-03 18:43:02 UTC MAIN commitmail json YAML

make(1): format coverage summary as a table

This is only used interactively, not in the official builds, therefore
the additional dependency on Perl doesn't matter.  The same result could
have been achieved in any other programming language, but probably not
as concisely.

(rillig)

2020-12-03 10:23:45 UTC MAIN commitmail json YAML

tlb_print_*() are used only if _ARM_ARCH_7; caught by clang -Wunused-function.

(rin)

2020-12-03 08:48:06 UTC MAIN commitmail json YAML

2020-12-03 08:25:57 UTC MAIN commitmail json YAML

PR bin/55834

count blocks written in unsigned 64 bit counter
rather than signed int which overflows after 2^31-1
blocks (2TiB) after which neither the 5 minute
status updates or SIGINFO (^T) reports are issued
until the negative numbers increase past 0 and
wildly inaccurate reports would be written.

(kre)

2020-12-03 07:45:53 UTC MAIN commitmail json YAML

2020-12-02 14:20:20 UTC MAIN commitmail json YAML

2020-12-02 14:18:13 UTC MAIN commitmail json YAML

Update default pkgsrc database location from /var/db/pkg to /usr/pkg/pkgdb.

(wiz)

2020-12-02 14:09:18 UTC MAIN commitmail json YAML

Mention pkg_install update.

(wiz)

2020-12-02 13:54:25 UTC MAIN commitmail json YAML

Define PREFIX for pkg_install build.

(wiz)

2020-12-02 13:53:50 UTC MAIN commitmail json YAML

2020-12-02 02:21:43 UTC MAIN commitmail json YAML

Explicitly link liblber and libssl when ldap support is enabled.
Fix sun2, i.e., MKPIC=no build.

(rin)

2020-12-01 22:16:36 UTC MAIN commitmail json YAML

2020-12-01 22:09:43 UTC MAIN commitmail json YAML

Add missig date for previous.

(rin)

2020-12-01 20:47:52 UTC MAIN commitmail json YAML

make(1): rename local variable in Dir_SetPATH

The variable name should reflect the close relationship to the .DOTLAST
keyword that can be used in search paths.

(rillig)

2020-12-01 20:37:30 UTC MAIN commitmail json YAML

2020-12-01 20:15:23 UTC MAIN commitmail json YAML

make(1): add test for parse errors in variable name in Var_SetWithFlags

(rillig)

2020-12-01 19:37:23 UTC MAIN commitmail json YAML

make(1): document handling of irrelevant conditions before 2020-07-09

(rillig)

2020-12-01 19:33:50 UTC MAIN commitmail json YAML

make(1): adjust condition descriptions in test cond-short

Before, the conditions in the output had been expanded, which made them
illegible.  The expanded conditions were unrealistic as well since the
evaluation flags differ between a condition and normal evaluation
(VARE_WANTRES, VARE_UNDEFERR).

(rillig)

2020-12-01 19:28:32 UTC MAIN commitmail json YAML

make(1): remove Dir_InitDir

The function name had been too ambiguous since it didn't mention the
particular directory that was initialized.  Instead of that function,
Dir_InitCur is called directly from main_Init.

The pseudo CachedDir entry ".DOTLAST" is initialized at the very
beginning.  The observable behavior is unchanged since this a
memory-only object with no connection to the file system.

(rillig)

2020-12-01 17:50:04 UTC MAIN commitmail json YAML

2020-12-01 14:53:48 UTC MAIN commitmail json YAML

G/C MUTEX_PAUSE_{PAUSE,WAKE}

(skrll)

2020-12-01 14:52:36 UTC MAIN commitmail json YAML

2020-12-01 13:11:55 UTC MAIN commitmail json YAML

Simplify the simplification... basically always set sctlr.u before setting
cpsr.e

(skrll)

2020-12-01 10:10:57 UTC MAIN commitmail json YAML

Enable ldap support in racoon(8). Proposed on tech-userlevel,
"Go for it" from christos@

(bouyer)

2020-12-01 08:39:39 UTC MAIN commitmail json YAML

2020-12-01 08:35:31 UTC MAIN commitmail json YAML

2020-12-01 04:39:03 UTC MAIN commitmail json YAML

Dequeue aqb from sc_atq_live even when the last command is failed

iavf(4) didn't dequeue aqb from sc_atq_live that is a list for
buffer in use when a command is failed by ETIMEDOUT.

This causes a panic in the following sequence:

1. enqueue an aqb to sc_atq_live at iavf_aqb_post()
2. the last command is failed by ETIMEDOUT
3. enqueue the aqb used in the failed command to sc_atq_idle
    at an error handling in iavf_attach()
4. dequeue the same aqb from sc_atq_live and enqueue sc_atq_idle
    again at iavf_cleanup_admin_queue()
  - sc_atq_idle is broken at that time
5. free the aqb in sc_atq_idle more than once

Fix PR/55822

reviewed by knakahara@n.o.

(yamaguchi)

2020-12-01 04:36:06 UTC MAIN commitmail json YAML

Raspberry Pi [0-3] have been supported in big-endian mode.

Thanks ryo and skrll for their kind review!

(rin)

2020-12-01 04:21:26 UTC MAIN commitmail json YAML

2020-12-01 04:21:10 UTC MAIN commitmail json YAML

rpi.img: Bump boot partition in a similar manner to other images.

(rin)

2020-12-01 04:20:21 UTC MAIN commitmail json YAML

Build RPI and RPI2 kernels also for earmv6{,hf}eb.

(rin)

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

Do not attach vchiq(4) in big-endian mode.

For big-endian mode, all data written to and read from DMA buffer must be
byte-swapped. This requires heavy modifications to third party codes.

Also, we will switch to vc4 drm driver, hopefully soon.

(rin)

2020-12-01 04:18:27 UTC MAIN commitmail json YAML

Link RPI and RPI2 kernels in BE8 format for big-endian variants.

(rin)

2020-12-01 04:17:10 UTC MAIN commitmail json YAML

bcm2835-fb seems byte-swapped to CPU when running in big-endian mode.

(rin)

2020-12-01 04:16:18 UTC MAIN commitmail json YAML

Data written to and read from bcm283x UART registers should be in little-endian.

(rin)

2020-12-01 04:15:04 UTC MAIN commitmail json YAML

2020-12-01 04:14:31 UTC MAIN commitmail json YAML

2020-12-01 03:28:08 UTC MAIN commitmail json YAML

2020-12-01 02:55:15 UTC MAIN commitmail json YAML

earmv6{,hf}eb has been switched to BE8.

Thanks for discussion in port-arm and tech-toolchain, especially
thorpej and mrg for useful comments.

(rin)

2020-12-01 02:48:29 UTC MAIN commitmail json YAML

Fix confusions related to encoding of instructions.

For __ARMEB__ in BE8 mode, instructions are encoded in little-endian.
Therefore, we need to swap bytes against these in native byte order.

In other cases, i.e., __ARMEL__ and __ARMEB__ in BE32 mode, instructions
are in native byte order, and we don't need to swap them.

(rin)

2020-12-01 02:46:19 UTC MAIN commitmail json YAML

Fix earmv6{,hf}eb start-up routines:

- Turn on U-bit in SCTLR before E-bit is turned on by ``setend be'',
  in order to avoid undefined condition. ARM1176JZF-S, at least, halts
  if only E-bit is turned on.

- Turn on EE-bit in SCTLR instead of B-bit as we've switched to BE8.

(rin)

2020-12-01 02:43:18 UTC MAIN commitmail json YAML

Be consistent with mark-up of vop_reclaim

(pgoyette)

2020-12-01 02:43:14 UTC MAIN commitmail json YAML

Switch earmv6{,hf}eb to BE8 in kernel side.

My strategy here is to define _ARM_ARCH_BE8 macro in arm/cdefs.h, if
__ARMEB__ && _ARM_ARCH_6.

Use this macro to determine whether system is compiled for and running on
BE8 mode or not.

Note that, for __ARMEB__, some conditions become compile-time constants
determined by _ARM_ARCH_BE8 macro, e.g., whether BE8 or BE32 are accepted
as a userland binary, or unaligned memory access is possible or not.

(rin)

2020-12-01 02:39:48 UTC MAIN commitmail json YAML

gcc.old: Switch earmv6{,hf}eb to BE8, ported from gcc.

(rin)

2020-12-01 02:39:09 UTC MAIN commitmail json YAML

Switch earmv6{,hf}eb from BE32 (deprecated) to BE8 (new), which enables

- binary compatibility with earmv7{,hf}eb and later, as well as
  COMPAT_NETBSD32 on aarch64eb
- unaligned memory access

whereas compatibility with earmv5{,hf}eb and prior is lost.

As we have never released kernel and userland for earmv6{,hf}eb yet,
this does not causes any compatibility problems.

Discussed on port-arm and tech-toolchain.

(rin)

2020-11-30 22:26:30 UTC MAIN commitmail json YAML

Unbreak the lint build (sync to elftoolchain [r3912]).

(jkoshy)

2020-11-30 21:36:52 UTC MAIN commitmail json YAML

2020-11-30 21:10:15 UTC MAIN commitmail json YAML

2020-11-30 21:06:56 UTC MAIN commitmail json YAML

Ensure stores are observed before the 'sev' instructions.

(skrll)

2020-11-30 20:25:37 UTC MAIN commitmail json YAML

make(1): clean up variable names in Dir_FindFile

The special path entry is called .DOTLAST, therefore the local variable
should have the same name.

A variable named 'base' must not point to the slash of a pathname.  It
may only point to the character after the slash, everything else is
confusing, even if it's only for a brief moment.

(rillig)

2020-11-30 20:17:00 UTC MAIN commitmail json YAML

make(1): document difference between 'cur' and 'dot'

(rillig)

2020-11-30 20:12:29 UTC MAIN commitmail json YAML

make(1): add test for directory cache and exists()

(rillig)

2020-11-30 18:49:58 UTC MAIN commitmail json YAML

make(1): fix memory leak for lstat cache in -DCLEANUP mode

(rillig)

2020-11-30 18:32:49 UTC MAIN commitmail json YAML

2020-11-30 18:20:20 UTC MAIN commitmail json YAML

make(1): document how short-circuit evaluation behaved on 2020-07-03

(rillig)

2020-11-30 17:06:02 UTC MAIN commitmail json YAML

Work in progress on dom0 PVH support. kernel boots and xl info works,
but we can't start a domU yet.

(bouyer)

2020-11-30 17:05:02 UTC MAIN commitmail json YAML

Switch some debug/informational printf to device_printf(). Usefull
for multiprocessor environnement.

(bouyer)

2020-11-30 17:02:27 UTC MAIN commitmail json YAML

Introduce smap_enable()/smap_disable() functions, to be used from
C code.

(bouyer)

2020-11-30 14:27:23 UTC MAIN commitmail json YAML

man.conf(5): Drop support for .me files

The .me troff macros are unused for any known man-pages.

(kamil)

2020-11-30 07:53:42 UTC MAIN commitmail json YAML

Apply ixgbe.c rev. 1.204 which was for ixgbe_msix_admin() to
ixgbe_legacy_irq(), too.

>  An interrupt might not arrive when a module is inserted. When an link
> status change interrupt occurred and the driver still regard SFP as
> unplugged, issue the module softint before issuing LSC interrupt.

TODO: Reduce duplicated code.

(msaitoh)

2020-11-30 05:33:32 UTC MAIN commitmail json YAML

2020-11-30 05:30:56 UTC MAIN commitmail json YAML

2020-11-30 00:48:35 UTC MAIN commitmail json YAML

uhid(4): Omit needless softint indirection.

USB xfer callbacks already run in softint context at IPL_SOFTSERIAL,
and I see no reason why the call to psignal must happen instead at
the lower priority of IPL_SOFTCLOCK, so let's avoid using up the
scarce resource of softints for something that doesn't need 'em.

While here, use atomic_store_relaxed to update sc->sc_async and
atomic_load_relaxed to optimisitcally test it without acquiring
proc_lock.

(riastradh)

2020-11-30 00:21:36 UTC MAIN commitmail json YAML

Note that open(O_ASYNC) does not work as advertised.

This matches Linux, which also advertises the same semantics and
fails to implement it, according to:

https://man7.org/linux/man-pages/man2/fcntl.2.html

(At what point should we collectively stop advertising the semantics
that doesn't work and call the bug a feature?)

(riastradh)

2020-11-30 00:04:03 UTC MAIN commitmail json YAML

Add sgx, sgx_lc, serialize and tsxldtrk.

(msaitoh)

2020-11-29 22:54:51 UTC MAIN commitmail json YAML

usb: Overhaul uhid(4) and uhidev(4) locking.

- uhidev API rules:

  1. Call uhidev_open when you want exclusive use of a report id.
    After it succeeds, you will get interrupts.

  2. Call uhidev_close when done with exclusive use of a report id.
    After it returns, you will no longer get interrupts.

    => uhidev_open/close do not nest.

  3. uhidev_write no longer requires the caller to have exclusive
    access -- if there is a write in progress, it will block
    interruptibly until done.  This way drivers for individual
    report ids need not work separately to coordinate their writes.

  4. You must uhidev_stop to abort any pending writes on the same
    report id.  (uhidev_stop no longer does anything else -- to
    ensure no more interrupts, just use uhidev_close.)

- Fix uhidev_open/close locking -- uhidev now has an interruptible
  config lock held only on first open and last close by any report id
  in the device, to serialize the transition between zero and nonzero
  numbers of references which requires opening/closing pipes and
  allocating/freeing buffers.

- Make /dev/uhidN selnotify(POLLHUP) when the device is yanked.

- Factor uhid device lookup and reference counting and dying
  detection and so on into uhid_enter/exit.

- Nix struct uhid_softc::sc_access_lock.  This served no purpose but
  to confuse me when trying to understand the logic of this beast
  (and to ensure uhidev_write exclusion, but it was uninterruptible,
  which is wrong for something that implements userland operations,
  and didn't actually work because uhidev_write did nothing to
  coordinate between different report ids).

- Fix locking in select/poll.

- Use atomics to manage UHID_IMMED to keep it simple.  (sc_lock would
  be fine too but it makes the code more verbose.)

- Omit needless UHID_ASLP -- cv_broadcast already has this
  micro-optimization.

With these changes, my Pinebook survives

for i in `jot 100`; do
        echo '###' $i
        for j in `jot 16`; do
                usbhidctl -rf /dev/uhid$j >/dev/null &
        done
        wait
done

while plugging and unplugging uhid(4) devices (U2F keys), and the U2F
keys still work as U2F keys.

ok nick, mrg

XXX pullup-9
XXX pullup-8?

Note on ABI and pullups: This changes the layout of struct
uhidev_softc, but with the sole exception of ucycom(4) -- which at
the moment is completely broken and unusable -- the only members that
USB HID drivers use are sc_udev and sc_iface, which haven't changed.
The layout of struct uhidev, which is allocated by each USB HID
driver in its own softc structure, is unchanged.

(riastradh)

2020-11-29 21:50:50 UTC MAIN commitmail json YAML

make(1): initialize global variables in dir.c

Calling CachedDir_Assign requires that the variable be initialized.  On
most systems, NULL is represented as all-zero bits already.  This change
is only for the few other systems.

Add some comments explaining the implementation of Dir_AddDir since that
is tricky to read from the code alone.

(rillig)

2020-11-29 21:31:55 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in meta_oodate

(rillig)

2020-11-29 21:28:06 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in meta mode

(rillig)

2020-11-29 21:27:08 UTC MAIN commitmail json YAML

make(1): add test variant for reference counting logging

(rillig)

2020-11-29 18:49:36 UTC MAIN commitmail json YAML

make(1): clean up memory management for CachedDirs

Previously, the reference count for a newly created CacheDir had been
set to 1 in CacheNewDir.  This was wrong because at that point, the
object had not been referenced by any nonlocal variable.  The reference
count is no longer incremented at this point.

All callers of CacheNewDir either append the newly created CachedDir to
a SearchPath via Lst_Append and CachedDir_Ref, or they assign it to a
global variable via CachedDir_Assign.

Since the reference count is no longer wrongly incremented, it does not
need to be decremented more than necessary in Dir_End.  To keep the code
simple and maintainable, all assignments to global variables are now
handled by CachedDir_Assign.  Adding a CachedDir to a list is still done
manually via Lst_Append, and the corresponding code for decrementing is
in SearchPath_Clean and SearchPath_Free.  These details may be cleaned
up in a follow-up commit.

As a result, when OpenDirs_Done is called in the unit tests, the list of
open directories is empty.  It had been non-empty in a single unit test
before (dep-wildcards.mk), as a result of calling Dir_Expand.

The additional debug logging for the reference counting is not enabled
by default since it contains memory addresses, which makes the output
dependent on the memory allocator.

The function CachedDir_Destroy has been merged into CachedDir_Undef,
which had only been used in Dir_End before.  The new name emphasizes
that it corresponds to CachedDir_Ref.

(rillig)

2020-11-29 16:37:10 UTC MAIN commitmail json YAML

make(1): fix the reference count of dotLast going negative

The memory management for dotLast is quite simple.  It is initialized
exactly once main_Init > Init_Objdir > Dir_InitDir and freed exactly
once in main_CleanUp > Dir_End.  Previously, dotLast was not freed at all.

The first call to CachedDir_Unref decremented the refCount to 0 but
didn't free anything.  Next, CachedDir_Destroy was called, which
decremented the reference count to -1, therefore skipping the actual
freeing.  This was probably an implementation mistake.

Since Dir_End is called at the very end of main_CleanUp, no code
accesses dotLast after it has been freed.

(rillig)

2020-11-29 16:04:34 UTC MAIN commitmail json YAML

make(1): move CachedDir_Destroy up to the related functions

(rillig)

2020-11-29 15:58:37 UTC MAIN commitmail json YAML

make(1): extract CachedDir_Free0 from CachedDir_Destroy

(rillig)

2020-11-29 15:14:33 UTC MAIN commitmail json YAML

make(1): remove wrong comment in Dir_InitCur

In a makefile with repeated ".CURDIR=." lines, Dir_AddDir is called with
a NULL path, once per line.  Since the path is NULL, the search for
OpenDirs_Find is skipped and the directory is always read from disk.
The freshly read directory has a refCount of 1, and the refCount never
raises above 2.

In Dir_InitCur, the directory of the previous .CURDIR has a refCount of
2, which is decremented twice and then freed.  After this, the new
directory is placed in the global 'cur', after incrementing its refCount
to 2.

It still seems wrong that the refCount of 'cur' is 2 instead of 1, but
it works well.

(rillig)

2020-11-29 14:29:20 UTC MAIN commitmail json YAML

make(1): add debug logging for OpenDirs_Done

(rillig)

2020-11-29 12:38:44 UTC MAIN commitmail json YAML

Message buffer is too small, since timestamps were enforced.

(phx)

2020-11-29 12:30:40 UTC MAIN commitmail json YAML

make(1): extract CacheNewDir from Dir_AddDir

Change the debug output for directories that are not found.

(rillig)

2020-11-29 11:41:49 UTC netbsd-9 commitmail json YAML

2020-11-29 11:39:45 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by yhardy in ticket #1138):

external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c: revision 1.19

Use vn_close to release the vnodes in the error handling blocks, since
the vnodes were opened for writing. Fix proposed on tech-kern
and improved by hannken@.

(martin)

2020-11-29 11:36:46 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #1137):

usr.sbin/sysinst/arch/evbarm/md.c: revision 1.20

Make sure the kernel set is selected, even if extracting parts of it
manually.

(martin)

2020-11-29 11:34:04 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1136):

sys/external/bsd/drm2/dist/drm/i915/intel_sprite.c: revision 1.11

Match linux here and wait without interrupts.

>From David H. Gutteridge in PR port-amd64/55555
There's a second part to the patch, but "make our code behave the way
the upstream code does" is very welcome.

Also PR kern/54515 and possibly others.

(martin)

2020-11-29 11:25:31 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by is in ticket #1135):

lib/libc/net/getaddrinfo.c: revision 1.120
lib/libc/net/gethnamaddr.c: revision 1.93
include/arpa/nameser_compat.h: revision 1.8

Don't complain about additional DNAME records received when resolving A or
AAAA (like already done for SIG/KEY and CNAME).

(martin)

2020-11-29 11:20:10 UTC netbsd-8 commitmail json YAML

2020-11-29 11:18:54 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by is in ticket #1625):

lib/libc/net/getaddrinfo.c: revision 1.120
lib/libc/net/gethnamaddr.c: revision 1.93
include/arpa/nameser_compat.h: revision 1.8

Don't complain about additional DNAME records received when resolving A or
AAAA (like already done for SIG/KEY and CNAME).

(martin)

2020-11-29 11:17:41 UTC MAIN commitmail json YAML

make(1): make documentation of CachedDir.refCount more precise

(rillig)

2020-11-29 10:57:16 UTC MAIN commitmail json YAML

make(1): add debug logging for reference counting of CachedDir

(rillig)

2020-11-29 09:51:39 UTC MAIN commitmail json YAML

make(1): normalize order of declarations in dir.c

(rillig)

2020-11-29 09:42:54 UTC MAIN commitmail json YAML

make(1): remove comment about returning const

The callers modify the reference count of the CachedDir, therefore it
must be modifiable.

(rillig)

2020-11-29 09:38:04 UTC MAIN commitmail json YAML

make(1): rename Dir_Destroy to CachedDir_Destroy

It is no longer exported by the Dir module.

(rillig)

2020-11-29 09:27:40 UTC MAIN commitmail json YAML

2020-11-29 09:15:33 UTC MAIN commitmail json YAML

style: fix typo

(rillig)

2020-11-29 08:48:24 UTC MAIN commitmail json YAML

make(1): unexport CachedDir internals

(rillig)

2020-11-29 01:40:26 UTC MAIN commitmail json YAML

2020-11-29 01:35:33 UTC MAIN commitmail json YAML

make(1): reduce memory allocations for parsing dependencies

(rillig)

2020-11-29 01:30:38 UTC MAIN commitmail json YAML

make(1): reduce memory allocations in suffix storage

(rillig)

2020-11-29 01:24:18 UTC MAIN commitmail json YAML

make(1): reduce memory allocations in suffix handling

(rillig)

2020-11-29 01:19:11 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in ExpandWildcards for suffixes

(rillig)

2020-11-29 01:16:38 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in ExpandChildren for suffixes

(rillig)

2020-11-29 01:12:45 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in suffix candidate search

(rillig)

2020-11-29 01:10:08 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in suffix rule handling

(rillig)

2020-11-29 01:05:08 UTC MAIN commitmail json YAML

make(1): reduce memory allocation for target handling

(rillig)

2020-11-29 00:54:43 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in suffix handling

The function Lst_MoveAll previously freed the source list.  This
function was only used in a few places, and none of them really needed
the allocation.

(rillig)

2020-11-29 00:42:01 UTC MAIN commitmail json YAML

make(1): fix main_CleanUp in -DCLEANUP mode (broken since 1 hour)

Broken since main.c 1.486 from 2020-11-28, about 1 hour ago.

(rillig)

2020-11-29 00:04:23 UTC MAIN commitmail json YAML

make(1): reduce memory allocation for targets

This change moves the initialization and finalization of the list of
targets to the same function.  They had been split before.

(rillig)

2020-11-28 23:50:58 UTC MAIN commitmail json YAML

make(1): reduce memory allocation for toBeMade

(rillig)

2020-11-28 23:48:36 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in Make_ProcessWait

(rillig)

2020-11-28 23:45:25 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in Make_ExpandUse

(rillig)

2020-11-28 23:43:14 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in ReadBuiltinRules

(rillig)

2020-11-28 23:39:58 UTC MAIN commitmail json YAML

2020-11-28 23:35:44 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in CmdOpts.variables

(rillig)

2020-11-28 23:32:22 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in CmdOpts.makefiles

(rillig)

2020-11-28 23:22:15 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in OpenDirs

(rillig)

2020-11-28 23:13:28 UTC MAIN commitmail json YAML

make(1): reduce memory allocation in Arch_ParseArchive

(rillig)

2020-11-28 22:59:53 UTC MAIN commitmail json YAML

make(1): replace void pointer in Dir_Destroy with proper pointer

(rillig)

2020-11-28 22:56:01 UTC MAIN commitmail json YAML

make(1): replace Dir_Destroy with SearchPath_Free

The function Dir_Destroy is an implementation detail of the cached
directories, and it should not be exported to the other modules.  The
search paths, on the other hand, are the high-level API that may be used
by the other modules, as the concept of search paths is documented in
the manual page.

(rillig)

2020-11-28 22:53:06 UTC MAIN commitmail json YAML

Use vn_close to release the vnodes in the error handling blocks, since
the vnodes were opened for writing. Fix proposed on current-users
and improved by hannken@.

(yhardy)

2020-11-28 22:16:23 UTC MAIN commitmail json YAML

evbarm: Bump efirng entropy estimate.

I'm not really happy with this, but my lack of confidence in the
remaining question marks about this (no real documentation about the
underlying physical processes, and a slightly self-inconsistent uefi
spec) is outweighed by the value of not distracting people with
entropy warnings on systems that are almost certainly fine.

(riastradh)

2020-11-28 22:13:56 UTC MAIN commitmail json YAML

make(1): rename some Dir functions to SearchPath

These functions have the search path as their main subject.

(rillig)

2020-11-28 19:26:10 UTC MAIN commitmail json YAML

make(1): reduce pointer indirection for archives

(rillig)

2020-11-28 19:22:32 UTC MAIN commitmail json YAML

2020-11-28 19:20:04 UTC MAIN commitmail json YAML

2020-11-28 19:16:53 UTC MAIN commitmail json YAML

2020-11-28 19:12:28 UTC MAIN commitmail json YAML

2020-11-28 18:55:52 UTC MAIN commitmail json YAML

2020-11-28 16:36:19 UTC MAIN commitmail json YAML

make(1): improve type of local variable in Var_Export1

(rillig)