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

2024-05-10 05:44:43 UTC Now

2021-12-19 00:47:41 UTC MAIN commitmail json YAML

2021-12-19 00:47:33 UTC MAIN commitmail json YAML

Declare struct seq_file; save some debugfs/sysfs ifdef trouble.

(riastradh)

2021-12-19 00:47:24 UTC MAIN commitmail json YAML

Make <linux/mutex.h> side-load <linux/spinlock.h>.

Upstream actually side-loads <linux/spinlock_types.h> so you just get
spinlock_t without all the other spinlock operations, but whatever.

Reduce some diffs that this renders unnecessary.

(riastradh)

2021-12-19 00:47:17 UTC MAIN commitmail json YAML

drm_waitqueue_t needs <drm/drm_wait_netbsd>.

(riastradh)

2021-12-19 00:47:09 UTC MAIN commitmail json YAML

Make sure uapi drm.h defines __u* and __s* types even in kernel.

(riastradh)

2021-12-19 00:47:00 UTC MAIN commitmail json YAML

Reduce some unnecessary diff, unused now.

(riastradh)

2021-12-19 00:46:51 UTC MAIN commitmail json YAML

2021-12-19 00:46:44 UTC MAIN commitmail json YAML

2021-12-19 00:46:36 UTC MAIN commitmail json YAML

2021-12-19 00:46:30 UTC MAIN commitmail json YAML

struct timer_list needs <linux/timer.h>.

(riastradh)

2021-12-19 00:46:23 UTC MAIN commitmail json YAML

2021-12-19 00:46:16 UTC MAIN commitmail json YAML

2021-12-19 00:46:08 UTC MAIN commitmail json YAML

ktime_t needs <linux/ktime.h>; need struct drm_unique forward decl.

(riastradh)

2021-12-19 00:46:00 UTC MAIN commitmail json YAML

spinlock_t needs <linux/spinlock.h>; need forward decl of drm_crtc.

Disable waitqueue for now.  We won't be using the .c code; we just
need the .h file to compile.

(riastradh)

2021-12-19 00:45:28 UTC MAIN commitmail json YAML

2021-12-19 00:32:11 UTC MAIN commitmail json YAML

2021-12-19 00:32:03 UTC MAIN commitmail json YAML

2021-12-19 00:31:53 UTC MAIN commitmail json YAML

2021-12-19 00:31:43 UTC MAIN commitmail json YAML

fence -> dma_fence in linux_reservation.c.

(riastradh)

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

2021-12-19 00:31:28 UTC MAIN commitmail json YAML

2021-12-19 00:30:25 UTC MAIN commitmail json YAML

No need for <linux/fence.h> in linux_dma_buf.c.

(riastradh)

2021-12-19 00:30:18 UTC MAIN commitmail json YAML

Define IS_ENABLED and IS_REACHABLE on the command line.

Header file is too late for it, apparently.

XXX Find a way to put this into a header file; command-line -D
arguments are ugly.

(riastradh)

2021-12-19 00:30:11 UTC MAIN commitmail json YAML

2021-12-19 00:30:01 UTC MAIN commitmail json YAML

2021-12-19 00:29:17 UTC MAIN commitmail json YAML

Define IS_ENABLED and IS_REACHABLE.

(riastradh)

2021-12-19 00:29:10 UTC MAIN commitmail json YAML

2021-12-19 00:29:02 UTC MAIN commitmail json YAML

2021-12-19 00:28:55 UTC MAIN commitmail json YAML

2021-12-19 00:28:37 UTC MAIN commitmail json YAML

fence -> dma_fence in <linux/reservation.h>.

(riastradh)

2021-12-19 00:28:31 UTC MAIN commitmail json YAML

2021-12-19 00:28:20 UTC MAIN commitmail json YAML

2021-12-19 00:28:12 UTC MAIN commitmail json YAML

2021-12-19 00:27:52 UTC MAIN commitmail json YAML

No more hacks for dist/uapi -- got moved to dist/include/uapi.

(riastradh)

2021-12-19 00:27:46 UTC MAIN commitmail json YAML

Stub <linux/irqreturn.h> to just include drm_irq_netbsd.h.

(riastradh)

2021-12-19 00:27:36 UTC MAIN commitmail json YAML

Reimplement GPL <linux/llist.h> using only the upstream comments.

Hope I gathered what this is trying to do...!

(riastradh)

2021-12-19 00:27:25 UTC MAIN commitmail json YAML

2021-12-19 00:27:17 UTC MAIN commitmail json YAML

2021-12-19 00:27:09 UTC MAIN commitmail json YAML

2021-12-19 00:27:01 UTC MAIN commitmail json YAML

2021-12-19 00:26:41 UTC MAIN commitmail json YAML

2021-12-19 00:26:27 UTC MAIN commitmail json YAML

Disable GPL drm_writeback.c, minimal stub for drm_writeback.h.

(riastradh)

2021-12-19 00:26:17 UTC MAIN commitmail json YAML

Disable *_trace_points.c.

I accidentally deleted these in the import, because the *_trace.h
files got in the way and I forgot the *_trace_points.c files were
fine.

There's nothing important in them anyway, so nothing of value is
lost.  Maybe next time I will remember to delete the *_trace.h files
on import but not the *_trace_points.c to reduce diffs, but that's
too much trouble at this point.

(riastradh)

2021-12-19 00:26:09 UTC MAIN commitmail json YAML

2021-12-19 00:25:53 UTC MAIN commitmail json YAML

2021-12-19 00:25:41 UTC MAIN commitmail json YAML

Allow maximum number of bits in DMA_BIT_MASK.

(riastradh)

2021-12-19 00:25:35 UTC MAIN commitmail json YAML

2021-12-19 00:25:26 UTC MAIN commitmail json YAML

Handle more kinds of empty lines.

Author: Maya Rashish <maya@NetBSD.org>

(riastradh)

2021-12-19 00:25:20 UTC MAIN commitmail json YAML

Break down and use gmake for i915drmkms2netbsd too.

Author: Maya Rashish <maya@NetBSD.org>

(riastradh)

2021-12-19 00:25:13 UTC MAIN commitmail json YAML

Set CONFIG_DRM_VM=1, apparently needed for nouveau now.

Author: Maya Rashish <maya@NetBSD.org>

(riastradh)

2021-12-19 00:25:05 UTC MAIN commitmail json YAML

2021-12-18 23:54:51 UTC MAIN commitmail json YAML

drm: Temporarily restore some local files deleted upstream.

These had local changes which needed to be distributed into other
files upstream, but that didn't happen in the merge commit.  It will
happen, and the files will be deleted, in a later commit.

(riastradh)

2021-12-18 23:45:46 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/dist/drm/Kconfig@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/Makefile@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/acp/amdgpu_acp_hw.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/acp/include/acp_gfx_if.h@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/Kconfig@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/Makefile@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ObjectID.h@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu.h@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_acp.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_acp.h@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_acpi.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_acpi.h deleted
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_afmt.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_amdkfd.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_amdkfd.h@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_amdkfd_fence.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c@1.4 / diff / nxr@1.4
      :
(more 3733 files)
Merge linux-drm-v5-6-rc3

(riastradh)

2021-12-18 18:05:55 UTC MAIN commitmail json YAML

2021-12-18 17:58:49 UTC MAIN commitmail json YAML

src/sys/external/bsd/acpica/dist/common/dmtbinfo.c@1.20 / diff / nxr@1.20
src/sys/external/bsd/acpica/dist/compiler/aslfiles.c@1.18 / diff / nxr@1.18
src/sys/external/bsd/acpica/dist/compiler/aslutils.c@1.31 / diff / nxr@1.31
src/sys/external/bsd/acpica/dist/compiler/dttable.c@1.16 / diff / nxr@1.16
src/sys/external/bsd/acpica/dist/compiler/dtutils.c@1.19 / diff / nxr@1.19
src/sys/external/bsd/acpica/dist/dispatcher/dsopcode.c@1.17 / diff / nxr@1.17
src/sys/external/bsd/acpica/dist/events/evregion.c@1.14 / diff / nxr@1.14
src/sys/external/bsd/acpica/dist/events/evrgnini.c@1.19 / diff / nxr@1.19
src/sys/external/bsd/acpica/dist/executer/exconfig.c@1.18 / diff / nxr@1.18
src/sys/external/bsd/acpica/dist/executer/exdebug.c@1.15 / diff / nxr@1.15
src/sys/external/bsd/acpica/dist/include/acapps.h@1.18 / diff / nxr@1.18
src/sys/external/bsd/acpica/dist/include/acdisasm.h@1.24 / diff / nxr@1.24
src/sys/external/bsd/acpica/dist/include/acpixf.h@1.32 / diff / nxr@1.32
src/sys/external/bsd/acpica/dist/include/actables.h@1.16 / diff / nxr@1.16
src/sys/external/bsd/acpica/dist/include/actypes.h@1.26 / diff / nxr@1.26
src/sys/external/bsd/acpica/dist/resources/rsdumpinfo.c@1.13 / diff / nxr@1.13
src/sys/external/bsd/acpica/dist/tables/tbdata.c@1.17 / diff / nxr@1.17
src/sys/external/bsd/acpica/dist/tables/tbfadt.c@1.17 / diff / nxr@1.17
src/sys/external/bsd/acpica/dist/tables/tbinstal.c@1.17 / diff / nxr@1.17
src/sys/external/bsd/acpica/dist/tables/tbutils.c@1.19 / diff / nxr@1.19
      :
(more 2 files)
merge changes from acpica-20210930 to acpica-20211217

(christos)

2021-12-18 16:41:37 UTC MAIN commitmail json YAML

arm: Forward-declare `struct proc' before using in prototype.

(riastradh)

2021-12-18 16:31:53 UTC MAIN commitmail json YAML

Add some missing includes to uvm_device.h.

- sys/types.h for dev_t
- sys/queue.h for LIST_ENTRY
- uvm/uvm_object.h for complete struct uvm_object type
- uvm/uvm_param.h for voff_t/vsize_t
- uvm/uvm_prot.h for vm_prot_t

(riastradh)

2021-12-18 16:31:40 UTC MAIN commitmail json YAML

CTASSERT requires <lib/libkern/libkern.h>.

(riastradh)

2021-12-18 16:31:06 UTC MAIN commitmail json YAML

arm: Need files.acpi for drm to discover NACPICA=0.

(riastradh)

2021-12-18 14:48:14 UTC MAIN commitmail json YAML

Fix two bugs

i)  EHCI_HCSPARAMS should be read with EREAD4 (and not EOREAD4). Spotted by
    jmcneill

ii) Apply brackets so that ?: vs | operator precedence doesn't give the
    wrong result.

(skrll)

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

lint: document wrong data structures for modelling initializations

No functional change.

(rillig)

2021-12-18 13:06:33 UTC MAIN commitmail json YAML

lint: move maximum seen subscript from brace level to initialization

There is no need to store this information at every brace level since in
any translation unit that survives a conforming C99 compiler, an array
of unknown size is only possible once per initialization, not once per
brace level.

(rillig)

2021-12-18 11:37:00 UTC MAIN commitmail json YAML

lint: format grammar consistently

No binary change.

(rillig)

2021-12-18 11:25:15 UTC MAIN commitmail json YAML

lint: use vector instead of list for designation in initialization

This change is a prerequisite for fixing the current bugs in handling
initializations.  Part of the fix will be designation_pop, which is
costly for a singly linked list.

As a side benefit, memory management becomes simpler and needs fewer
malloc calls.

No functional change.

(rillig)

2021-12-18 10:50:48 UTC MAIN commitmail json YAML

Compensate for changes made in mixerctl.c rev 1.29
Usage msg now appears on stderr, and causes exit status to be 1

(kre)

2021-12-17 19:27:57 UTC MAIN commitmail json YAML

only write the mask register if we're actually changing it

(macallan)

2021-12-17 18:51:02 UTC MAIN commitmail json YAML

cg14_invert():
- use only 32bit accesses
- use byte mask / ROPs for partial writes

(macallan)

2021-12-17 17:27:20 UTC MAIN commitmail json YAML

lint: reduce code for beginning an initialization

No functional change.

(rillig)

2021-12-17 17:21:48 UTC MAIN commitmail json YAML

lint: inline sub-cases of brace_level_sub_type

Having the code in separate functions did not add to the clarity of the
code.  The additional information from the function names can be grasped
as easily from the case labels.

No functional change.

(rillig)

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

One build break fixed, another appears...

Use the correct pointer, not the one used in the other piece of
code that changed at the same time..

(kre)

2021-12-17 15:52:30 UTC MAIN commitmail json YAML

2021-12-17 15:29:44 UTC MAIN commitmail json YAML

Remove an unnecessary test for NULL (the same thing is done in the
following lines) along with an incorrect return of nothing if it is
found (the following version correctly returns NULL).  Should unbreak build.

(kre)

2021-12-17 13:50:10 UTC MAIN commitmail json YAML

fix error messages, usage, add static, more checks for ioctl, KNF

(christos)

2021-12-17 13:42:06 UTC MAIN commitmail json YAML

Provide a clipping function and use it to prevent setting values out of bounds.
(from RVP)

(christos)

2021-12-17 13:36:36 UTC MAIN commitmail json YAML

If the step is 0, use 1 instead of always incrementing step by one to avoid
zerodivide (from RVP)

(christos)

2021-12-17 13:14:54 UTC MAIN commitmail json YAML

more protection from unset threads from RVP

(christos)

2021-12-17 11:06:16 UTC MAIN commitmail json YAML

lint: fix initialization with few braces from function

Seen in Postfix, smtp_proto.c.

(rillig)

2021-12-17 10:51:45 UTC MAIN commitmail json YAML

tests/lint: demonstrate another initialization with few braces

Seen in Postfix, smtp_proto.c.

(rillig)

2021-12-17 10:33:24 UTC MAIN commitmail json YAML

lint: fix initialization of array with fewer braces

Seen in Postfix, cleanup_strerror.c.

(rillig)

2021-12-17 10:22:30 UTC MAIN commitmail json YAML

tests/lint: demonstrate another initialization that lint cannot handle

Seen in external/ibm-public/postfix/dist/src/global/cleanup_strerror.c.

(rillig)

2021-12-17 09:12:46 UTC MAIN commitmail json YAML

lint: work around lint bug in initialization with few braces

Needs a proper fix later, but for now, this workaround allows to run
lint on Postfix again.

(rillig)

2021-12-17 08:27:06 UTC MAIN commitmail json YAML

Add missing WM_TX_{,INTR_}PROCESS_LIMIT_DEFAULT options same as RX side.

(knakahara)

2021-12-17 08:17:40 UTC MAIN commitmail json YAML

add two additional cyperpower ups ids for ignore hid.

(mrg)

2021-12-17 08:17:05 UTC MAIN commitmail json YAML

2021-12-17 08:16:15 UTC MAIN commitmail json YAML

add two more models of cyperpower UPS.

(mrg)

2021-12-17 08:07:12 UTC MAIN commitmail json YAML

In vattr_init_mask() check for va_flags and if set add to the mask of
to the things that setattr is interested in.
Fixes chflags(2) on ZFS.

Thanks riastradh@ for fix.

(simonb)

2021-12-17 06:28:20 UTC MAIN commitmail json YAML

2021-12-17 06:26:14 UTC MAIN commitmail json YAML

2021-12-17 03:50:18 UTC MAIN commitmail json YAML

curses: spell "foreground" correctly in comments

(uwe)

2021-12-17 01:24:01 UTC MAIN commitmail json YAML

lint: rename is_string_array to is_character_array

The old name was too confusing.

No functional change.

(rillig)

2021-12-17 01:00:50 UTC MAIN commitmail json YAML

lint: demonstrate wrong error message in initialization

History of the new test fragment:

libexec/2021.09.14.19.44.40-plain/lint1
| (14): error: cannot initialize 'struct typedef histogram_entry'
|    from 'pointer to char' [185]
| exit status 1
libexec/2021.04.01.14.20.30-plain/lint1

libexec/2021.03.30.20.23.30-plain/lint1
| (14): error: cannot initialize 'struct typedef histogram_entry'
|    from 'pointer to char' [185]
| (14): error: cannot initialize 'struct typedef histogram_entry'
|    from 'int' [185]
| (15): error: cannot initialize 'struct typedef histogram_entry'
|    from 'pointer to char' [185]
| (15): error: cannot initialize 'struct typedef histogram_entry'
|    from 'int' [185]
| exit status 1
libexec/2021.03.30.14.25.28-plain/lint1

libexec/2021.03.29.21.34.17-plain/lint1
| (15): error: too many struct/union initializers [172]
| exit status 1
libexec/2021.03.28.15.36.37-plain/lint1

libexec/2021.03.28.14.13.18-plain/lint1
| (18): error: too many struct/union initializers [172]
| exit status 1
libexec/2021.03.21.20.44.59-plain/lint1

libexec/2021.03.21.20.30.19-plain/lint1
| (18): too many struct/union initializers [172]
| exit status 1
libexec/2014.11.20.20.49.06-plain/lint1

libexec/2014.11.20.20.48.33-plain/lint1
| exit status 0

(rillig)

2021-12-17 00:05:24 UTC MAIN commitmail json YAML

lint: in GCC mode, declare alloca and variants

The prototype declarations define the correct parameter types of these
functions so that they are no longer subject to the default argument
promotions (C11 6.5.2.2p6).

The GCC builtins are only recognized in GCC mode (-g).

(rillig)

2021-12-16 23:46:21 UTC MAIN commitmail json YAML

lint: narrow down parameter of build_name

Passing an arbitrary tokenizer symbol left too much freedom and
uncertainty to the caller, and 0 was a magic number in this context.

No functional change.

(rillig)

2021-12-16 22:24:11 UTC MAIN commitmail json YAML

Fix typo: reader -> header

(reinoud)

2021-12-16 22:19:09 UTC MAIN commitmail json YAML

Fix serious issue with recordable media formatted with Win10. When closing it
after modification the VAT was written out corrupted making the disc
unreadable anymore on remount. Thanks for ig@ for spotting it in the wild!

(reinoud)

2021-12-16 21:39:53 UTC MAIN commitmail json YAML

Make sysctl udf.verbose dependent on UDF_DEBUG instead of DEBUG

(reinoud)

2021-12-16 21:14:59 UTC MAIN commitmail json YAML

tests/lint: ensure that tests on a message mention this message

(rillig)

2021-12-16 20:23:40 UTC MAIN commitmail json YAML

tests/lint: fix test on platforms where char is unsigned

In tree.c 1.385 from 2021-10-09, the format of the message changed.  The
test for platforms where char is unsigned was not updated in that commit
because I had forgotten about it, and because lint1/check-msgs.lua only
checks the message in tests named exacty msg_000.c, but not msg_000_*.c.

Found by martin@.

(rillig)

2021-12-16 16:30:56 UTC MAIN commitmail json YAML

Remove bogus architecture detection voodo - tsan is not available
on most architectures, so just state it that way.

(martin)

2021-12-16 11:36:26 UTC MAIN commitmail json YAML

interlim commit to snapshot SC2A11 GbE progress.

(nisimura)

2021-12-16 11:32:23 UTC MAIN commitmail json YAML

improve SC2A11 hardware register description.

(nisimura)

2021-12-16 11:00:15 UTC MAIN commitmail json YAML

tests/lint: remove generated shell program on 'make clean'

(rillig)

2021-12-16 10:48:49 UTC MAIN commitmail json YAML

Print NVM image version on 82598.

  FreeBSD ix-3.3.29 added code to decode NVM version. On 82598, the NVM
  offset is NVM_EEP_OFFSET_82598(== 0x2a). My own three different 82598
  cards' value in NVM_EEP_OFFSET_82598 are 0xffff. Instead, the dev starter
  version (0x29) has the value. Two of them have 0x1070 and another has 0x2090.
  The 82598 specification update notes about 2.9.0.

(msaitoh)

2021-12-16 09:38:54 UTC MAIN commitmail json YAML

tests/lint: fix copy-and-paste typo in comment

(rillig)

2021-12-16 03:53:13 UTC MAIN commitmail json YAML

lint: improve error message for missing newline in .ln file

(rillig)

2021-12-16 03:44:48 UTC MAIN commitmail json YAML

tests/lint: demonstrate bad error message on missing newline

(rillig)

2021-12-15 22:02:30 UTC MAIN commitmail json YAML

While searching the VAT on recordable media, search the last sector too!
This fixes Win10 formatted discs from being mounted incorrectly.

(reinoud)

2021-12-15 21:07:12 UTC MAIN commitmail json YAML

Fix for PR lib/56298

Remove the DIAGASSERT for str being NULL in the puts/putp functions,
add protection so that the functions just return OK if str is NULL.
This prevents the assert firing when libcurses passes through a NULL
due to an undefined terminfo entry.

(blymn)

2021-12-15 16:27:10 UTC MAIN commitmail json YAML

Grr: need NOLINT=yes for the Makefiles that include Makefile.xf86-driver
early, and MKLINT:=no for the ones that include it late. Should fix that.

(christos)

2021-12-15 15:45:26 UTC MAIN commitmail json YAML

Lint2 is broken, so disable lint for now.

(christos)

2021-12-15 15:27:30 UTC MAIN commitmail json YAML

2021-12-15 15:24:11 UTC MAIN commitmail json YAML

2021-12-15 15:20:51 UTC MAIN commitmail json YAML

2021-12-15 13:29:14 UTC MAIN commitmail json YAML

2021-12-15 13:28:29 UTC MAIN commitmail json YAML

2021-12-15 13:22:34 UTC MAIN commitmail json YAML

2021-12-15 13:03:33 UTC MAIN commitmail json YAML

make: amend leftover cleanups from the previous commits

No functional change.

(rillig)

2021-12-15 12:58:01 UTC MAIN commitmail json YAML

2021-12-15 12:52:36 UTC MAIN commitmail json YAML

2021-12-15 12:24:13 UTC MAIN commitmail json YAML

2021-12-15 12:08:25 UTC MAIN commitmail json YAML

2021-12-15 11:58:40 UTC MAIN commitmail json YAML

make: remove space after ':' in bit-field declarations

As seen in /usr/share/misc/style.

(rillig)

2021-12-15 11:01:39 UTC MAIN commitmail json YAML

make: remove bmake_free

It was only used in 2 places, and in both these places, the pointer was
never null.

(rillig)

2021-12-15 10:57:01 UTC MAIN commitmail json YAML

make: in CLEANUP mode, free interned strings at the very end

Noticed by sjg.

(rillig)

2021-12-15 10:12:20 UTC MAIN commitmail json YAML

make: in ParseDependencyCheckSpec, move default branch to the bottom

No functional change.

(rillig)

2021-12-15 10:07:53 UTC MAIN commitmail json YAML

make: change return type of HashTable_Set to void

None of the callers needs the HashEntry for further manipulation.

No functional change.

(rillig)

2021-12-15 10:04:49 UTC MAIN commitmail json YAML

make: change return type of Compat_RunCommand from int to bool

The documentation was wrong before since status was not restricted to
only 0 or 1.

No functional change.

(rillig)

2021-12-15 09:54:56 UTC MAIN commitmail json YAML

Change DCB credit parameters. No functional change.

  - From FreeBSD ix-3.3.24.
  - No functional change because NetBSD doesn't support DCB.

(msaitoh)

2021-12-15 09:53:42 UTC MAIN commitmail json YAML

make: mark several functions whose result must be used

Suggested by sjg, to catch more bugs like the memory leak in cond.c
1.303 from 2021-12-13.

No binary change.

(rillig)

2021-12-15 09:52:44 UTC MAIN commitmail json YAML

Remove dead code. No functional change.

  FreeBSD: 0b487fb4547ad1a939be0d523e555557c94b7cd1
  DPDK:    a6395d471e14e5a7432875dad8fb3533238c5167

(msaitoh)

2021-12-15 09:50:21 UTC MAIN commitmail json YAML

Check host interface return status. No functional change on NetBSD.

  - FreeBSD: c1a56b6f5ffd6f3180a654d058c1783ccb808e8b or ix-3.3.18
    DPDK:    db18e37090a3b9af47d6a6886248520f6b220bf9

      Writing to read-only fields returns a non-OK Return Status
      for shadow RAM write command for X550.
      This information was previously discarded.

  - No functional change on NetBSD because our ixg has no interface to
    write the NVM.

(msaitoh)

2021-12-15 09:29:56 UTC MAIN commitmail json YAML

make: prevent memory leaks from buffers

The warning about unused function results would have prevented the
memory leak that was fixed in cond.c 1.303 from 2021-12-13.

(rillig)

2021-12-15 09:19:35 UTC MAIN commitmail json YAML

Match X550_PHY_ID correctly on X550.

  - Sync with FreeBSD ix-3.3.18.
    - phy_id's revision field is cleared, so use new X550_PHY_ID.
  - Before this commit, phy_id was set to ixgbe_phy_cu_unknown on X550.
    Now it's set to ixgbe_phy_aq.

(msaitoh)

2021-12-15 09:19:28 UTC MAIN commitmail json YAML

When running the tests under "qemu -accel kvm" on a Linux host,
isQEMU_TCG() should return false.  Fixes multiple test cases that were
failing with "Test case was expecting a failure but none were raised"
on that platform.

(gson)

2021-12-15 08:42:48 UTC MAIN commitmail json YAML

Improve PHY's dmesg output for non-MIIVERBOSE case.

(msaitoh)

2021-12-15 08:28:22 UTC MAIN commitmail json YAML

Cosmetic change for the output of mii_get_descr().

(msaitoh)

2021-12-15 07:47:22 UTC MAIN commitmail json YAML

Fix typo in comment.

(knakahara)

2021-12-15 00:44:05 UTC MAIN commitmail json YAML

lint: unexport struct_or_union_member

Strangely, lint2 didn't notice this unnecessary export.

(rillig)

2021-12-14 23:57:48 UTC MAIN commitmail json YAML

Disable lint, some of the code is c++ and some we can't handle __extension__
in struct in libctf ctf-error.c

(christos)

2021-12-14 22:47:07 UTC MAIN commitmail json YAML

Don't install a symlink for when there's already a file.

Caused some cryptic issues in the builds far further along.
Pointed out by paulg, thanks.

(maya)

2021-12-14 21:38:24 UTC MAIN commitmail json YAML

2021-12-14 21:38:06 UTC MAIN commitmail json YAML

avoid __extension__ redefinition

(christos)

2021-12-14 21:37:06 UTC MAIN commitmail json YAML

Another instance of transparent struct/union

(christos)

2021-12-14 21:12:03 UTC MAIN commitmail json YAML

Avoid NULL deref if there is no current thread. From RVP.
Prints "No applicable message"

(christos)

2021-12-14 20:13:13 UTC MAIN commitmail json YAML

2021-12-14 20:12:48 UTC MAIN commitmail json YAML

don't gut restrict for lint.

(christos)

2021-12-14 19:06:08 UTC netbsd-9 commitmail json YAML

2021-12-14 19:05:11 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1393):

sys/dev/cgd.c: revision 1.141

cgd(4): Wait for worker threads to complete before destroying mutex.

Fixes PR kern/56546 (probably!).

(martin)

2021-12-14 18:26:39 UTC MAIN commitmail json YAML

tests/lint: demonstrate missing support for anonymous members

(rillig)

2021-12-14 16:55:45 UTC MAIN commitmail json YAML

provide an expanded description for -W

(christos)

2021-12-14 16:27:20 UTC MAIN commitmail json YAML

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

Add expected-fail test for kern/56549

consecutive sem_open() calls do not return the same address

(wiz)

2021-12-14 16:22:30 UTC MAIN commitmail json YAML

2021-12-14 16:22:07 UTC MAIN commitmail json YAML

2021-12-14 16:13:37 UTC MAIN commitmail json YAML

-Wno-comment for everyone (including lint)

(christos)

2021-12-14 15:13:42 UTC MAIN commitmail json YAML

PR/56548: RVP: mail(1) segfaults if thread commands are used in ~/.mailrc

(christos)

2021-12-14 14:43:43 UTC MAIN commitmail json YAML

2021-12-14 12:13:39 UTC MAIN commitmail json YAML

don't conditionalize the installation of nouveau directories

(maya)

2021-12-14 11:06:50 UTC MAIN commitmail json YAML

ffs: fix the creation of device nodes on file systems with ACLs enabled.

(chs)

2021-12-14 11:06:12 UTC MAIN commitmail json YAML

ffs: support extattrs (and thus ACLs) on fifos.

(chs)

2021-12-14 05:37:44 UTC MAIN commitmail json YAML

Use adapter->mta for the multicast array memory instead of the on-stack array.

  - Same as ixv-1.5.22.
  - Same as ixg(4).

(msaitoh)

2021-12-14 05:35:46 UTC MAIN commitmail json YAML

Wait longer for link after fiber MAC setup.

  - FreeBSD:
        aaa3af802f90d93fdffb99100fe56f0bc3dda119
        96ef6eb3ae9d622906fb838c82ede3074f864cdc

    DPDK:
        64f1c8539c8ce99214b9eb1fb728a2c6745f3300
        73247f1ced303c16987bb366d38a2d8a0fc40db4

    After setting up the link on a fiber port, the maximum wait time for
    the link to come up is 500 ms in ixgbe_setup_mac_link_multispeed_fiber().
    On an x550 SFP+ port, this is often not sufficiently long for the link
    to come up. This can result in never being able to retrieve accurate
    link status for the port using rte_eth_link_get_nowait().

    Increase the maximum wait time in ixgbe_setup_mac_link_multispeed_fiber()
    to 1 s.

(msaitoh)

2021-12-14 05:33:08 UTC MAIN commitmail json YAML

Use macro. No functional change. Same as FreeBSD.

(msaitoh)

2021-12-14 05:31:12 UTC MAIN commitmail json YAML

Add some missing error counters to ierror.

  - FreeBSD: afb1aa4e6df245d38fd2ba683fa521d5dabe8392 or ix-ix-3.3.22
  - Note that the checksum error is not added to the ierror.

(msaitoh)

2021-12-14 05:28:46 UTC MAIN commitmail json YAML

Change error level in ixgbe_fc_autoneg().

  - FreeBSD: f511cd22586a9c0358b86334a51e3db60ca2db01 or ix-3.3.18
    DPDK:    ab6ac48d483ef7f906b90f45182f2ddf3254d876

  - No functional change in NetBSD.

(msaitoh)

2021-12-14 05:26:08 UTC MAIN commitmail json YAML

Add IPv6 mask for flow director.

  - FreeBSD: c4f73d5d6a6c0117e08a03920cce69202865ba13 or ix-3.3.18
    DPDK:    21feefa2fcd5899ee26a10be405c17c0a1109860

    Write FDIRIP6M register to allow flow director filter
    to set ipv6 rules without setting ipv6 source/destination address.

  - No functional change because NetBSD doesn't support flow director.

(msaitoh)

2021-12-14 01:18:14 UTC MAIN commitmail json YAML

make: condense repetetive code in ParseDirective

No functional change.

(rillig)

2021-12-14 01:00:04 UTC MAIN commitmail json YAML

2021-12-14 00:46:43 UTC MAIN commitmail json YAML

call buf_destroy() after buf_init().  hopefully fixes the lockdebug
problem shown here:

  http://mail-index.netbsd.org/tech-kern/2021/12/10/msg027851.html

but seems unlikely to fix the original problem.

tested on i386/anita.  ok oster@

XXX: pullup-9 (netbsd-8 uses old APIs.)

(mrg)

2021-12-14 00:45:11 UTC MAIN commitmail json YAML

make: remove dead code for handling traditional include directives

This code is not reached, a line containing only the word "include" is
categorized as error before.

No functional change.

(rillig)

2021-12-14 00:38:32 UTC MAIN commitmail json YAML

2021-12-14 00:17:53 UTC MAIN commitmail json YAML

make: clean up parsing of variable assignments

Assign pairs of variables in a consistent order, as far as possible.

Use string functions instead of raw byte access, to make the code more
human-readable.  GCC 10 optimizes the code reasonably.

No functional change.

(rillig)

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

make: remove unreachable code for parsing the dependency operator

At the point where ParseDependencyOp is called, cp is guaranteed to
point to either ':' or '!'.

No functional change.

(rillig)

2021-12-13 23:59:42 UTC MAIN commitmail json YAML

Add newer nouveau firmware build goo

Symlinks inferred from linux-firmware/WHENCE and compared to a linux distro's
firmware.

Note: said linux distro appears to have some mistakes compared to the
linux-firmware repo in linking ucode_unload.bin to unload_bl.bin and vice
versa in some places.
I didn't replicate this aspect, and lack the hardware to test it.

(maya)

2021-12-13 23:38:55 UTC MAIN commitmail json YAML

2021-12-13 22:26:21 UTC MAIN commitmail json YAML

make: convert debugging flags from enum to bit-field

This gets rid of the magic numbers, making it possible to add another
debug flag without renumbering the others.

No functional change.

(rillig)

2021-12-13 21:15:26 UTC MAIN commitmail json YAML

cgd(4): Wait for worker threads to complete before destroying mutex.

Fixes PR kern/56546 (probably!).

(riastradh)

2021-12-13 20:53:23 UTC MAIN commitmail json YAML

Disable lint and explain why.

(christos)

2021-12-13 08:19:12 UTC MAIN commitmail json YAML

Update -m description to reflect reality.  Kernel dynamic memory tracking
was removed long ago; only pool usage is reported.

(simonb)

2021-12-13 07:47:07 UTC MAIN commitmail json YAML

make: condense CondParser_ComparisonOp

No functional change.

(rillig)

2021-12-13 07:06:39 UTC MAIN commitmail json YAML

make: fix memory leak when parsing '.if ${expr}' (since 2004-04-13)

$ (
echo 'VAR=value'
perl -e 'printf(".if \${VAR}\n.endif\n" x 5000);';
echo 'all:'
printf '\t%s\n' \
    '@pid=$$$$; \' \
    'ppid=$$(ps -o ppid -p "$$pid" | sed 1d); \' \
    'ps -o vsz,rsz -p $$ppid | sed 1d'
) > leak-cond2.mk

$ make-2004.04.08.07.24.26 -r -f leak-cond.mk
2668
$ make-2004.04.13.16.06.23 -r -f leak-cond.mk
3964

$ echo $(((3964 - 2668) * 1000 / 5000))
259

This 259 is close enough to the 256 from Buf_Init in CondParser_Leaf.

(rillig)

2021-12-13 06:11:34 UTC MAIN commitmail json YAML

make: clean up loading of files

The call to Buf_DoneData was useless since ownership of the buffer data
has already been passwed on to loadedfile_create and the local variable
'buf' goes out of scope after that statement.

Except for cleaning up in debug mode, there is no reason to call
Buf_DoneData and then discard the returned value.

No functional change.

(rillig)

2021-12-13 05:25:04 UTC MAIN commitmail json YAML

make: fix memory leak for filenames in .for loops (since 2013-06-18)

Previously, each time a .for directive pushed its buffer on the input
file stack, the current filename was duplicated.  This was a waste of
memory.

The name of a file is typically only used while it is read in.  There is
one situation when the filename is needed for longer, which is when a
target is defined.

Since .for loops are implemented as a special form of included files,
each .for loop duplicated the current filename as well.

$ cat << EOF > for.mk
.for i in 1 2 3 4 5 6 7 8 9 0
.for i in 1 2 3 4 5 6 7 8 9 0
.for i in 1 2 3 4 5 6 7 8 9 0
.for i in 1 2 3 4 5 6 7 8 9 0
.for i in 1 2 3 4 5 6 7 8 9 0
.for i in 1 2 3 4 5 6 7 8 9 0
.for i in 1 2 3 4 5 6 7 8 9 0
.endfor
.endfor
.endfor
.endfor
.endfor
.endfor
.endfor

all:
@ps -o rsz -p ${.MAKE.PID}
EOF

$ make-2021.12.13.03.55.16 -r -f for.mk
  RSZ
10720

$ ./make -r -f for.mk
RSZ
1716

The difference is 8 MB, which amounts to 1 million .for loops.

(rillig)

2021-12-13 04:18:01 UTC MAIN commitmail json YAML

make: fix memory leak when parsing a variable name

To trigger the memory leak, the expanded variable name must not be a
prefix of the textual variable name.

textual name expanded name
ok: UNDEF.${undef} UNDEF.
leak: UNDEF.${undef}. UNDEF..

(rillig)

2021-12-13 03:55:16 UTC MAIN commitmail json YAML

make: reduce memory allocation in modifier ':?'

The memory allocation was in LazyBuf_DoneGet.  The substring for the
untaken branch had been allocated even though it was not necessary.

No functional change.

(rillig)

2021-12-13 03:41:57 UTC MAIN commitmail json YAML

make: reduce memory allocations in modifier ':C'

The memory allocation was in the call to LazyBuf_DoneGet.

No functional change.

(rillig)

2021-12-13 03:19:32 UTC MAIN commitmail json YAML

make: condense RegexReplace for the modifier ':C'

No functional change.

(rillig)

2021-12-13 03:17:50 UTC MAIN commitmail json YAML

mv out: label into the #ifdef _KERNEL section, as it is only
referenced from there.  Hopefully ubbreak buikd of usr.sbin/crash

(kre)

2021-12-13 03:03:42 UTC MAIN commitmail json YAML

make: in the modifier ':C', don't call strlen unnecessarily

No functional change.

(rillig)

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

make: extract RegexReplaceBackref from RegexReplace

No functional change.

(rillig)

2021-12-13 02:53:43 UTC MAIN commitmail json YAML

Use unsigned to avoid undefined behavior. Found by kUBSan.

Reported-by: syzbot+699ce32cd32e2a670788@syzkaller.appspotmail.com

(msaitoh)

2021-12-13 02:34:15 UTC MAIN commitmail json YAML

make: merge duplicate code for memory handling in Var_Parse

No functional change.

(rillig)

2021-12-13 02:22:14 UTC MAIN commitmail json YAML

make: fix remaining memory leak for .SUFFIXES (since yesterday)

(rillig)

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

make: distinguish between short-lived and environment variables

No functional change.

(rillig)

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

make: rename VarFreeEnv to VarFreeShortLived

The newly added "variable" .SUFFIXES is short-lived as well, which makes
it necessary to distinguish between environment variables and
short-lived variables.

No binary change.

(rillig)

2021-12-13 01:51:12 UTC MAIN commitmail json YAML

make: fix indentation in meta.c

(rillig)

2021-12-13 01:37:51 UTC MAIN commitmail json YAML

make: clean up code for freeing short-lived variables

Since yesterday's addition of the short-lived "variable" named
.SUFFIXES, not only environment variables are short-lived.  Clean up the
code to prepare for fixing the remaining memory leaks.

No functional change.

(rillig)

2021-12-13 01:33:32 UTC MAIN commitmail json YAML

revert rev 1.4 ("Add garbage instructions at end of kern_assert after vpanic.")

that change had no effect because vpanic() is marked __dead / noreturn
and thus the compiler would optimize away everything after a call to vpanic().
the original problem has now been fixed differently (but only for x86 so far).

(chs)

2021-12-13 01:25:29 UTC MAIN commitmail json YAML

ddb: fix function names of "noreturn" functions in stack traces.

when looking up function names for stack traces (where the addresses are the
return addresses of function calls), if the address is the first instruction
in the function, assume that the function being called is marked "noreturn"
and that the function containing the call is actually the function immediately
before the address that we looked up.  to find the correct function name,
do the lookup again with (address - 1) and then add one to the offset within
the function that we find.

(chs)

2021-12-13 01:00:11 UTC MAIN commitmail json YAML

make: fix memory leak when evaluating ${.SUFFIXES} (since yesterday)

perl -e '
    printf(".SUFFIXES: %s\n", "x" x 224);
    printf("_:=\${.SUFFIXES}\n" x 100_000);
    printf("all:\n");
' \
| MALLOC_CONF=stats_print:true \
    ./make -r -f - 2>&1 \
| awk '/bins:/,/^ *256/ { print $1 "\t" $4}'

Roughly 100000 less allocations for bin size 16, for the variable name.

(rillig)