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 (45m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-09 22:13:53 UTC Now

2020-09-27 19:36:54 UTC MAIN commitmail json YAML

Note that opening and closing the tun/tap devices affects link state.

And how this influences Duplicate Address Detection.

(roy)

2020-09-27 19:25:54 UTC MAIN commitmail json YAML

tun: Report link state based on if the interface has been opened or not

This mirrors tap(4).

(roy)

2020-09-27 19:17:03 UTC MAIN commitmail json YAML

make(1): remove nonexistent function from header

(rillig)

2020-09-27 19:16:28 UTC MAIN commitmail json YAML

bridge: When an interface joins then mark addresses on it as tentative

The exact flow is detatch addresses, join bridge and then mark detached
addresses as tentative.
This ensures that Duplicate Address Detection for the joining interface
are performed across all members of the bridge.

(roy)

2020-09-27 19:15:43 UTC MAIN commitmail json YAML

make(1): fix type of Shell.noPLen

(rillig)

2020-09-27 19:13:46 UTC MAIN commitmail json YAML

make(1): reduce line noise in Job_ParseShell

The generated code is exactly the same.

(rillig)

2020-09-27 19:08:11 UTC MAIN commitmail json YAML

Wups, forgot to commit this with vether.

(roy)

2020-09-27 19:06:47 UTC MAIN commitmail json YAML

make(1): fix indentation in Job_ParseShell

(rillig)

2020-09-27 18:17:35 UTC MAIN commitmail json YAML

add -s option for 'power' command, this instructs the controller to save
the value so it persists resets/whatnot; the NVMe specification lists
this as optional, so this only works if the controller supports it

(jdolecek)

2020-09-27 18:11:31 UTC MAIN commitmail json YAML

make(1): add test cases for the :range variable modifier

(rillig)

2020-09-27 17:51:49 UTC MAIN commitmail json YAML

If there is no current partitioning manager assume we are editing the
current system and make target_already_root() return true.
Fixes various fallout when using sysinst post installation.

(martin)

2020-09-27 17:36:40 UTC MAIN commitmail json YAML

2020-09-27 17:27:08 UTC MAIN commitmail json YAML

print current power state and workload as separate values for
'nvmectl power nvme0'

(jdolecek)

2020-09-27 17:17:01 UTC MAIN commitmail json YAML

make(1): fix punctuation and add paragraphs in config.h comments

(rillig)

2020-09-27 16:59:03 UTC MAIN commitmail json YAML

make(1): in the Buffer functions, rename bp to buf

It's not necessary to emphasize on the pointerness of the variable since
that's obvious from the context.

(rillig)

2020-09-27 16:58:11 UTC MAIN commitmail json YAML

de-quadruplicate, remove unused argument

(christos)

2020-09-27 16:52:22 UTC MAIN commitmail json YAML

make(1): rename Buf_Size to Buf_Len

The new name better matches the field name Buffer.len as well as the
variables around the calls to this function.

(rillig)

2020-09-27 16:45:21 UTC MAIN commitmail json YAML

show APSTA support status in identify

(jdolecek)

2020-09-27 16:44:24 UTC MAIN commitmail json YAML

add definition of the bit indicating support for APSTA

(jdolecek)

2020-09-27 16:38:32 UTC MAIN commitmail json YAML

make(1): prefer positive array index in Buf_AddByte

Ideally the condition for allocating more memory would have been
(old_len + 2 > bp->cap) since that's the actually intended wording.  But
GCC 5 neglected to generate good code for that on x86_64, so be it.

(rillig)

2020-09-27 16:21:06 UTC MAIN commitmail json YAML

make(1): rename Buffer fields

It was confusing to have a function Buf_Size that returns buf->count
even though there is also buf->size.

(rillig)

2020-09-27 16:10:07 UTC MAIN commitmail json YAML

make(1): replace direct access to Buffer fields with inline function

This way, renaming the fields of the buffer is restricted to only buf.h
and buf.c.

(rillig)

2020-09-27 15:42:48 UTC MAIN commitmail json YAML

bridge(4): Note that the bridge does not allow assignment of IP addresses

Document using vether(4) instead to get the same effect.

(roy)

2020-09-27 15:19:04 UTC MAIN commitmail json YAML

tap(4): Improve the description to differentiate from vether(4)

(roy)

2020-09-27 13:59:24 UTC MAIN commitmail json YAML

Fix punctuation nit and add RCS Id.

(wiz)

2020-09-27 13:48:55 UTC MAIN commitmail json YAML

2020-09-27 13:46:19 UTC MAIN commitmail json YAML

Note import of vether(4)

(roy)

2020-09-27 13:44:47 UTC MAIN commitmail json YAML

tap: Report link state based on if the interface has been opened or not

While a nice addition, it does render tap(4) useless as a bridge(4)
endpoint. We now have vether(4) for use as bridge endpoint.

(roy)

2020-09-27 13:31:04 UTC MAIN commitmail json YAML

vether: Implement a virtual ethernet interface

The vether interface simulates a normal Ethernet interface by encapsulating
standard network frames with an Ethernet header, specifically for use as
a member in a bridge(4).

To use vether the administrator needs to configure an address onto the
interface so that packets can be routed to it. An Ethernet header will
be prepended and, if the vether interface is a member of a bridge(4),
the frame will show up there.

Taken from OpenBSD.

(roy)

2020-09-27 13:27:50 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEachUntil in Make_ExpandUse

The tricky detail here is that the current node from the iteration is
removed if it is no longer needed.

The Lst_FindDatum that has been removed was both inefficient and
misleading since it could never return null, yet there was a null check
for it.  The callback API from Lst_ForEachUntil would have required to
define a custom struct for passing this parameter to the callback
function, in addition to the parent node.

Inlining the whole Lst_ForEach and passing the list node as a parameter
is much more obvious.

(rillig)

2020-09-27 13:18:30 UTC MAIN commitmail json YAML

make(1): run tests with jemalloc debugging enabled

This protects against very simple memory allocation bugs such as
migrating Lst_ForEachUntil to Lst_ForEach without remembering that
Lst_ForEachUntil can handle the situation where the current list node is
removed from the list, but Lst_ForEach cannot.  This happens in
Make_ExpandUse, for example.

(rillig)

2020-09-27 12:42:10 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEachUntil when parsing dependency lines

This avoids a few operations on void pointers.

(rillig)

2020-09-27 12:26:24 UTC MAIN commitmail json YAML

make(1): remove redundant null checks for the active targets

Before August 2020, the Lst library passed null pointers through.  This
was a confusing design pattern that has been removed since.  Now the Lst
functions fail fast on null pointers.

The 'targets' list is one of the few places where there is indeed an
optional list that may sometimes be null.  Back then, there was not
enough inline documentation to understand when the targets list was null
and when it wasn't.

Now that the documentation is there, the redundant and thereby
misleading null checks are no longer useful.

(rillig)

2020-09-27 12:10:51 UTC MAIN commitmail json YAML

make(1): inline PrintNode

Having a separate function had only been necessary for Lst_ForEachUntil.

(rillig)

2020-09-27 12:05:04 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEachUntil in ParseDoDependency

(rillig)

2020-09-27 11:57:28 UTC MAIN commitmail json YAML

Use HAVE_NVMM for nvmm headers

(jmcneill)

2020-09-27 11:53:04 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEachUntil in Targ_PrintNodes

Printing a node does not modify the structure of the node, therefore the
additional housekeeping of Lst_ForEachUntil is not needed here.

Inlining the callback function also removes a lot of pointer stuff that
is more difficult to read than necessary.

(rillig)

2020-09-27 11:43:46 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEachUntil in Compat_Make

This avoids the extra local function and a few conversions to void
pointers, to gain additional type safety.

The code in Compat_RunCommand does not modify gn->commands structurally,
therefore it does not need the extra complexity of Lst_ForEachUntil.  It
does have access to a list node to exactly this list.  This list node is
only used to set the command to NULL after processing it, not for
removing the node from the list.

(rillig)

2020-09-27 11:39:02 UTC MAIN commitmail json YAML

make(1): rename local variable in MakeNodes

By convention, list nodes are named ln to distinguish them from GNodes,
which are called gn.

(rillig)

2020-09-27 11:37:19 UTC MAIN commitmail json YAML

make(1): make parameter of Compat_RunCommand const

(rillig)

2020-09-27 11:14:03 UTC MAIN commitmail json YAML

make(1): clean up comments in job.c and make.c

(rillig)

2020-09-27 10:35:57 UTC MAIN commitmail json YAML

only look for cpunode.h on OCTEON.  that's the only direct
caller of *_kern_nonmaskable_intr().

(mrg)

2020-09-27 10:34:32 UTC netbsd-8 commitmail json YAML

2020-09-27 10:33:45 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kardel in ticket #1610):

sys/dev/ic/ld_nvme.c: revision 1.24 (patch)
sys/dev/ic/nvme.c: revision 1.50 (patch)

PR kern/55674:
move name space availability check from ld_nvme.c:ld_nvme_attach()
to nvme.c:nvme_rescan().
this avoids allocation of ld(4) instances for every possible
name space, even if it is not usable. it also reduces the device
node flood generated from that strategy.

(martin)

2020-09-27 10:31:09 UTC netbsd-9 commitmail json YAML

2020-09-27 10:30:16 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kardel in ticket #1094):

sys/dev/ic/ld_nvme.c: revision 1.24
sys/dev/ic/nvme.c: revision 1.50

PR kern/55674:
move name space availability check from ld_nvme.c:ld_nvme_attach()
to nvme.c:nvme_rescan().
this avoids allocation of ld(4) instances for every possible
name space, even if it is not usable. it also reduces the device
node flood generated from that strategy.

(martin)

2020-09-27 09:53:41 UTC MAIN commitmail json YAML

2020-09-27 01:07:12 UTC MAIN commitmail json YAML

fix usr.bin/make build (which uses more warnings):

remove static only prototype TargPrintOnlySrc().
PrintOnlySources() does not return a value, make it void.

(mrg)

2020-09-27 00:34:44 UTC MAIN commitmail json YAML

rump: Add weak alias for bridge_calc_link_state

(roy)

2020-09-27 00:32:22 UTC MAIN commitmail json YAML

note GMP 6.2.0 is in -current.

(mrg)

2020-09-27 00:32:17 UTC MAIN commitmail json YAML

bridge: Calculate link state as the best link state of any member

If any member is LINK_STATE_UP then it's LINK_STATE_UP.
Otherwise if any member is LINK_STATE_UNKNOWN then it's LINK_STATE_UNKNOWN.
Otherwise it's LINK_STATE_DOWN.

(roy)

2020-09-27 00:31:54 UTC MAIN commitmail json YAML

src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/Makefile.inc@1.2 / diff / nxr@1.2
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h@1.2 / diff / nxr@1.2
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.m4@1.2 / diff / nxr@1.2
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/gmp-mparam.h@1.2 / diff / nxr@1.2
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/gmp.h@1.2 / diff / nxr@1.2
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/srcs.mk@1.1 / diff / nxr@1.1
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/Makefile.inc@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h@1.5 / diff / nxr@1.5
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/gmp.h@1.5 / diff / nxr@1.5
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/srcs.mk@1.1 / diff / nxr@1.1
src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc@1.8 / diff / nxr@1.8
src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h@1.5 / diff / nxr@1.5
src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.m4@1.4 / diff / nxr@1.4
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp-mparam.h@1.4 / diff / nxr@1.4
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp.h@1.4 / diff / nxr@1.4
src/external/lgpl3/gmp/lib/libgmp/arch/arm/srcs.mk@1.1 / diff / nxr@1.1
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc@1.8 / diff / nxr@1.8
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4@1.5 / diff / nxr@1.5
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp-mparam.h@1.4 / diff / nxr@1.4
      :
(more 91 files)
mknative-gmp output for GMP 6.2.0.

(mrg)

2020-09-27 00:30:26 UTC MAIN commitmail json YAML

2020-09-27 00:17:56 UTC MAIN commitmail json YAML

2020-09-26 23:43:26 UTC MAIN commitmail json YAML

ifconfig: We already have struct if_data in ifa_data.

So let's not bother with an ioctl we don't need.

(roy)

2020-09-26 21:07:48 UTC MAIN commitmail json YAML

2020-09-26 20:58:48 UTC MAIN commitmail json YAML

update slightly to enable 'native-gmp' target from tools/gmp to work.
call the awk script on 'config.log', which has (almost) the same output
as the stdout of ./configure, and automatically store it as 'srcs.mk'.

(mrg)

2020-09-26 20:56:53 UTC MAIN commitmail json YAML

initial working version of native-gmp support.

does not use mknative.common yet, so always updates files and does
not mark them with NetBSD rcsid.  (not a regression from the manual
version at least.)

(mrg)

2020-09-26 20:38:27 UTC MAIN commitmail json YAML

redo much of rev 1.45 and make the _KERNEL path look like it
used to before.

while it uses less total lines of code and looks less ugly,
the merged crash+ddb code here is less correct and harder to
follow for the kernel path.

(mrg)

2020-09-26 19:38:45 UTC MAIN commitmail json YAML

tap: Remove media from this virtual interface

It serves no purpose at all.

(roy)

2020-09-26 18:38:09 UTC MAIN commitmail json YAML

vlan: match the interface link state with that of the parent

Now addresses on a vlan will detach and undergo duplicate address
dectection on link state changes just as on a standard interface.

(roy)

2020-09-26 18:35:12 UTC MAIN commitmail json YAML

net: Add a callback to ifnet to notify of link state changes

(roy)

2020-09-26 17:49:51 UTC MAIN commitmail json YAML

2020-09-26 17:39:45 UTC MAIN commitmail json YAML

make(1): revert migration from Lst_ForEachUntil to Lst_ForEach

There is a crucial difference between these functions, in that
Lst_ForEachUntil can cope with a few concurrent modifications while
iterating over the list.  This is something that Lst_ForEach doesn't do.

This difference led to a crash very early in NetBSD's build.sh.

(rillig)

2020-09-26 17:15:20 UTC MAIN commitmail json YAML

make(1): inline and remove LstNode_Prev and LstNode_Next

These functions made the code larger than necessary.  The prev and next
fields are published intentionally since navigating in a doubly-linked
list is simple to do and there is no need to wrap this in a layer of
function calls, not even syntactically.  (On the execution level, the
function calls had been inlined anyway.)

(rillig)

2020-09-26 17:02:11 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEach in Targ_PrintGraph

(rillig)

2020-09-26 16:55:58 UTC MAIN commitmail json YAML

2020-09-26 16:41:42 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEachUntil in Compat_Make

(rillig)

2020-09-26 16:27:27 UTC MAIN commitmail json YAML

make(1): clean up obsolete comments about TARG constants

(rillig)

2020-09-26 16:21:17 UTC MAIN commitmail json YAML

make(1): remove useless comment from TargFreeGN

GNode.fname is a const char *, therefore it cannot be freed anyway.

(rillig)

2020-09-26 16:18:44 UTC MAIN commitmail json YAML

make(1): inline Targ_FindNodeImpl

The 3 callers of this function passed different flags, and these flags
led to code paths that almost did not overlap.

It's a bit strange that GCC 5 didn't get that, and even marking the
function as inline did not produce much smaller code, even though the
conditions inside that function were obviously constant.  Clang 9 did a
better job here.

But even for human readers, inlining the function and then throwing away
the dead code leads to much easier code.

This pattern of squeezing completely different code into a single
function has already occurred in a different part of make, though I
don't remember where exactly.

(rillig)

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

make(1): clean up API for finding and creating GNodes

The previous API had complicated rules for the cases in which the single
function returned NULL or what it did.  The flags for that function were
confusing since passing TARG_NOHASH would create a new node even though
TARG_CREATE was not included in that bit mask.

Splitting the function into 3 separate functions avoids this confusion.
It also reveals several places where the complicated API led to
unreachable code.  Such code has been removed.

(rillig)

2020-09-26 15:41:53 UTC MAIN commitmail json YAML

make(1): add test for '::' dependency operator with .ALLTARGETS

(rillig)

2020-09-26 14:59:21 UTC MAIN commitmail json YAML

make(1): replace Hash_FindEntry with Hash_FindValue in Targ_FindNode

(rillig)

2020-09-26 14:48:31 UTC MAIN commitmail json YAML

2020-09-26 14:18:06 UTC MAIN commitmail json YAML

2020-09-26 12:58:23 UTC MAIN commitmail json YAML

2020-09-26 11:57:05 UTC MAIN commitmail json YAML

net: Fix the setting of if_link_state

Link state changes are not dependant on the interface being up, but we also
need to guard against more link state changes being scheduled when the
interface is being detached.

We do this by clearing the link queue but keeping if_link_sheduled = true.
We can check for this in both if_link_state_change() and
if_link_state_change_work() to abort early as there is no point in doing
anything if the interface is being detached because if_down() is called
in if_detach() after the workqueue has been drained to the same overall
effect.

(roy)

2020-09-26 11:39:17 UTC MAIN commitmail json YAML

Moving pointers could fail if realloc() allocates a new memory region
where the difference between old and new address exceeds an int. Use
ptrdiff_t for calculations instead.

(mlelstv)

2020-09-26 10:56:37 UTC MAIN commitmail json YAML

2020-09-26 10:06:27 UTC MAIN commitmail json YAML

2020-09-26 08:21:27 UTC MAIN commitmail json YAML

Expose the atomicvec vectors via EXPORT_OBJECT so ksyms(4) address
lookups can find them.

(simonb)

2020-09-26 08:21:10 UTC MAIN commitmail json YAML

Use EXPORT for start and EXPORT_OBJECT for kernel_text instead of
by-hand exporting.  Using EXPORT_OBJECT for kernel_text also fixes
"bt/a" from DDB.

(simonb)

2020-09-26 08:19:11 UTC MAIN commitmail json YAML

Add EXPORT_OBJECT - export definition of symbol of symbol type Object,
visible to ksyms(4) address search.

(simonb)

2020-09-26 08:02:35 UTC MAIN commitmail json YAML

note mpfr needs a cleaning.

(mrg)

2020-09-26 07:59:18 UTC MAIN commitmail json YAML

note mpc (1.2.0) and mpfr (4.1.0) have new versions and are also
updated to them.  note gmp has a new release (6.2.0).

(mrg)

2020-09-26 07:57:56 UTC MAIN commitmail json YAML

2020-09-26 07:50:41 UTC MAIN commitmail json YAML

2020-09-26 07:40:50 UTC MAIN commitmail json YAML

empty PATCHES is needed.  revert a local change that is wrong now.

(mrg)

2020-09-26 07:29:58 UTC MAIN commitmail json YAML

2020-09-26 07:01:40 UTC MAIN commitmail json YAML

we don't have a patch version for a while now.

(mrg)

2020-09-26 06:09:33 UTC MAIN commitmail json YAML

Use 'lr' instead of 'x30' in an instruction for clarity

(skrll)

2020-09-26 06:08:41 UTC MAIN commitmail json YAML

2020-09-26 04:31:53 UTC MAIN commitmail json YAML

Whitespace consistency nit.

(simonb)

2020-09-26 04:11:48 UTC MAIN commitmail json YAML

Including <ddb/db_access.h> once should be sufficient.

(simonb)

2020-09-26 02:50:42 UTC MAIN commitmail json YAML

Support CPU interrupt affinity on Tsunami systems.

(thorpej)

2020-09-26 02:46:28 UTC MAIN commitmail json YAML

Add support for CPU interrupt affinity for PCI interrupts:
- Keep a bitmap of eligible interrupt-handling CPUs in the pci_chipset_tag_t.
  If this bitmap is 0, then we assume that all PCI interrupts should be
  routed to the primary CPU.
- Add an optional PCI chipset callback for setting the CPU affinity of
  an interrupt.
- When an establishing an interrupt handler, select the CPU that will
  handle this irq using the following algorithm:
  ==> If the irq already has a CPU assignment, keep it.
  ==> Otherwise, find the CPU with the fewest registered handlers that
      is eligible from both a hardware (based on the pci_chipset_tag_t)
      and software (based on cpu_info::ci_schedstate.spc_flags) perspectives.
  ==> Fall back to the primary CPU failing all else.

(thorpej)

2020-09-26 02:35:31 UTC MAIN commitmail json YAML

- Fix some bugs in previous, mainly related to indexing the correct
  interrupt queue.
- Make sure to update cpu_info::ci_nintrhand if an irq moves from
  one CPU to another.

(thorpej)

2020-09-26 00:03:29 UTC MAIN commitmail json YAML

make(1): replace a few Lst_ForEachUntil with simpler Lst_ForEach

(rillig)

2020-09-25 23:42:43 UTC MAIN commitmail json YAML

make(1): fix grammar and style in test dep-colon-bug-cross-file

(rillig)

2020-09-25 23:39:51 UTC MAIN commitmail json YAML

make(1): remove redundant variable inLine from parse.c

This variable has served at least 27 years bringing unnecessary
redundancy to the code.  It was already redundant at 1993-03-21, when
the code was imported to NetBSD.

(rillig)

2020-09-25 23:35:25 UTC MAIN commitmail json YAML

make(1): rename ParseFinishLine to FinishDependencyGroup

Even after 27 or more years, it's not too late to fix bad function
names.  This one for example does not finish a line but a dependency
group.

(rillig)

2020-09-25 23:30:16 UTC MAIN commitmail json YAML

2020-09-25 23:24:49 UTC MAIN commitmail json YAML

make(1): add test for harmless bug in Parse_File

When there is a dependency group at the end of a top-level makefile,
this dependency group is not finished properly.  This allows to add
further commands to the targets of this dependency group, which was not
intended.

(rillig)

2020-09-25 23:18:59 UTC MAIN commitmail json YAML

make(1): fix undefined behavior for .MAKEFLAGS: -f file

Since at least 1993-03-21, adding other makefiles in a .MAKEFILES
dependency has invoked undefined behavior because the command line
arguments were copied directly into the global makefiles variable,
without a proper strdup.  Shortly after that, the word list created by
Str_Words (formerly brk_string) was freed.

This applies to both the -f and the -v and -V options.  Luckily it is an
edge case to use these options in .MAKEFLAGS at all.

The -T option had already been fixed at 2000-12-30, but not the other
options.

(rillig)

2020-09-25 21:13:44 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEachUntil in ParseLine_ShellCommand

(rillig)

2020-09-25 20:57:22 UTC MAIN commitmail json YAML

make(1): extract ParseLine_ShellCommand from Parse_File

Parsing a single shell command from a line does not belong in
Parse_File, its proper place is in Parse_Line.  Having the whole
detailed code inline in Parse_File is even more confusing.

(rillig)

2020-09-25 20:48:23 UTC MAIN commitmail json YAML

make(1): rename variables cp2 to be more expressive

(rillig)

2020-09-25 20:11:06 UTC MAIN commitmail json YAML

2020-09-25 19:50:04 UTC MAIN commitmail json YAML

make(1): declare strings for suff.c constant

(rillig)

2020-09-25 19:40:23 UTC MAIN commitmail json YAML

make(1): extract parsing of the -dF option into separate function

(rillig)

2020-09-25 19:24:56 UTC MAIN commitmail json YAML

make(1): extract InitVarTarget from main

(rillig)

2020-09-25 18:58:12 UTC MAIN commitmail json YAML

make(1): in FindSuffByName, return the suffix instead of a list node

None of the callers was interested in the list node.

(rillig)

2020-09-25 18:18:25 UTC MAIN commitmail json YAML

2020-09-25 17:55:19 UTC MAIN commitmail json YAML

make(1): migrate suff.c from Lst_ForEachUntil to Lst_ForEach

(rillig)

2020-09-25 17:14:32 UTC MAIN commitmail json YAML

make(1): convert int to size_t for string lengths

Just for formal reasons.  There is no practical scenario in which any
filename suffix would grow larger than a few kilocharacters.

(rillig)

2020-09-25 16:28:29 UTC MAIN commitmail json YAML

make(1): don't use reserved names in type names

(rillig)

2020-09-25 16:27:15 UTC MAIN commitmail json YAML

make(1): replace Lst_Find with FindSuffByName

(rillig)

2020-09-25 15:54:51 UTC MAIN commitmail json YAML

make(1): add tags to some of the unnamed structs

The tags prevent the structs from accidentally becoming compatible
types.

While here, remove a few typedefs for structs that are single-purpose,
since there is no point in abstracting from the actual representation of
these types.

(rillig)

2020-09-25 15:40:06 UTC MAIN commitmail json YAML

make(1): rename local variables in ParseFuncArg

(rillig)

2020-09-25 14:49:51 UTC MAIN commitmail json YAML

make(1): inline ArchFindArchive into ArchStatMember

This avoids a few void pointers and unnecessary function calls.

(rillig)

2020-09-25 14:41:35 UTC MAIN commitmail json YAML

make(1): make code in ArchSVR4Entry simpler

(rillig)

2020-09-25 14:10:10 UTC MAIN commitmail json YAML

make(1): fix type of local variable in ParseModifierPart

Thanks, Clang-Tidy.

(rillig)

2020-09-25 14:07:12 UTC MAIN commitmail json YAML

make(1): fix type of local variable in ApplyModifiers

Thanks, Clang-Tidy.

(rillig)

2020-09-25 14:00:17 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEach in MakeUnmark

By the way, the additional argument to Lst_ForEach was not used at all.

(rillig)

2020-09-25 13:08:00 UTC MAIN commitmail json YAML

spelling fixes in sd.c comments

(jakllsch)

2020-09-25 12:52:59 UTC MAIN commitmail json YAML

Add one more place to notify blocklistd

(christos)

2020-09-25 12:52:13 UTC MAIN commitmail json YAML

Notify blacklistd about smtp auth failures (Jeff Rizzo)

(christos)

2020-09-25 06:49:13 UTC MAIN commitmail json YAML

make(1): replace a few calls to Lst_Open with simple loops

This avoids relying on the internal iterator of the list, which is
supposed to be removed in the near future.

(rillig)

2020-09-25 06:47:24 UTC MAIN commitmail json YAML

2020-09-25 06:22:33 UTC MAIN commitmail json YAML

Add a function to copy AC-Name and Service-Name

(yamaguchi)

2020-09-25 06:20:45 UTC MAIN commitmail json YAML

make(1): document details on why JobRun runs .END in compat mode

(rillig)

2020-09-25 06:15:30 UTC MAIN commitmail json YAML

update test cases for AC-Name and Service-Name

(yamaguchi)

2020-09-25 06:12:33 UTC MAIN commitmail json YAML

Clear AC-Name and Service-Name if params are not specified

(yamaguchi)

2020-09-25 06:07:31 UTC MAIN commitmail json YAML

Add test cases for AC-Name and Service-Name

(yamaguchi)

2020-09-25 06:06:15 UTC MAIN commitmail json YAML

make(1): document expansion of undefined variables in Var_Subst

>From reading the code alone, it is not obvious what effects this
innocent-looking code has.

(rillig)

2020-09-25 05:56:59 UTC MAIN commitmail json YAML

2020-09-25 05:04:51 UTC MAIN commitmail json YAML

make(1): rename local variables in Var_Subst

The variable name "str" did not make it clear enough that the pointer is
constantly moving, to parse the given string.  The name "p" expresses
this more clearly.

(rillig)

2020-09-25 04:18:11 UTC MAIN commitmail json YAML

make(1): fix build on Debian 9

lst.h:92:5: error: unknown type name 'uint8_t'

It had been broken since the previous commit on 2020-09-24 08:23:29.

(rillig)

2020-09-25 03:40:12 UTC MAIN commitmail json YAML

Changes to make interrupt {,dis}establish MP-safe on Alpha:
- Protect all of the system interrupt linkage with the cpu_lock mutex.
- Re-order some of the stores to the SCB vector table to make it safe
  in the face of lockless interrupt dispatch.
- Add a framework for routing interrupts to specific CPUs.  Interrupts
  are still funneled only to the primary CPU, but that will change for
  some systems soon.  Ensure that interrupt handler lists are manipulated
  only on the CPUs that handle that specific interrupt source.  This required
  a re-factor of the alpha_shared_intr_*() family of functions.
- Enable __HAVE_INTR_CONTROL, although interrupt redistribution is still
  a no-op.
- Reduce code duplication in the Jenson direct-SCB interrupt handlers.

(thorpej)

2020-09-24 17:20:53 UTC MAIN commitmail json YAML

lfs: Include lfs_debug.c only if DEBUG is enabled.

(riastradh)

2020-09-24 16:15:49 UTC MAIN commitmail json YAML

fix *_bs_rm_4_swap(). it was only reading 2 bytes, not 4 bytes.

pointed out by skrll@ thanks.

(ryo)

2020-09-24 14:54:03 UTC MAIN commitmail json YAML

2020-09-24 14:53:35 UTC MAIN commitmail json YAML

2020-09-24 14:53:17 UTC MAIN commitmail json YAML

2020-09-24 14:14:18 UTC MAIN commitmail json YAML

As indicated at the top of the file, don't simply remove entries.  Instead
we need to mark them "obsolete" so they will get removed if already in the
$DESTDIR

(pgoyette)

2020-09-24 11:02:02 UTC MAIN commitmail json YAML

2020-09-24 09:59:11 UTC MAIN commitmail json YAML

no need to swap pt.cmd.cdwXX at nvme_set_number_of_queues(). cmd.cdwXX will be swapped in nvme_pt_fill().

(ryo)

2020-09-24 09:37:07 UTC MAIN commitmail json YAML

apply more _KERNEL and fix the amd64 (and probably more) build.

(mrg)

2020-09-24 09:04:38 UTC MAIN commitmail json YAML

fix bugs in *_bs_rm_8_swap(). it was only reading 4 bytes, not 8 bytes.

(ryo)

2020-09-24 08:50:09 UTC MAIN commitmail json YAML

need to swap on big endian machines.

"The ITS command queue uses a little endian memory order model." (GIC Architecture Specification)

(ryo)

2020-09-24 08:23:29 UTC MAIN commitmail json YAML

make(1): make the API of the List partially public

Accessing the fields List.first, List.last, ListNode.prev, ListNode.next
and ListNode.datum in read-only mode should be more efficient than a
whole function call.

All modifications to the lists or their nodes must still happen via
function calls.

This change reduces the code size, makes the code faster to execute and
allows Lst_ForEach to be written inline without the visual overhead of
function calls.

(rillig)

2020-09-24 08:14:08 UTC MAIN commitmail json YAML

fix build on non rmx or octeon systems.

(mrg)

2020-09-24 08:02:32 UTC MAIN commitmail json YAML

make(1): remove redundant function prototypes in suff.c

(rillig)

2020-09-24 08:00:59 UTC MAIN commitmail json YAML

Small fixes from knakahara:

- Check return value correctly in wm_lv_jumbo_workaround_ich8lan().
- Fix comment.

(msaitoh)

2020-09-24 07:59:33 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEach in Targ_PrintCmds

(rillig)

2020-09-24 07:53:32 UTC MAIN commitmail json YAML

make(1): migrate printCMD in meta mode to Lst_ForEach

(rillig)

2020-09-24 07:49:58 UTC MAIN commitmail json YAML

make(1): inline Lst_ForEach for debugging output in search paths

(rillig)

2020-09-24 07:37:42 UTC MAIN commitmail json YAML

make(1): migrate MakeTimeStamp and MakeUnmark to Lst_ForEach

(rillig)

2020-09-24 07:34:35 UTC MAIN commitmail json YAML

make(1): migrate MakeAddAllSrc to Lst_ForEach

(rillig)

2020-09-24 07:32:04 UTC MAIN commitmail json YAML

make(1): move documentation for MakeAddAllSrc to its correct place

(rillig)

2020-09-24 07:23:26 UTC MAIN commitmail json YAML

make(1): merge Lst_ForEachFrom into Lst_ForEachUntil

(rillig)

2020-09-24 07:11:29 UTC MAIN commitmail json YAML

make(1): rename Lst_ForEach to Lst_ForEachUntil

Since the callback function returns a terminating condition, this is not
really a foreach loop.

Many of the calls to Lst_ForEachUntil don't make use of the terminating
condition, and several don't modify the list structurally, which means
they don't need this complicated implementation.

In a follow-up commit, Lst_ForEach will be added back with a much
simpler implementation that iterates over the list naively, without a
terminating condition and without taking the iteration state from
Lst_Open/Lst_Next/Lst_Close into account.  The migration to this simpler
implementation will be done step by step since each callback function
needs to be examined closely.

(rillig)

2020-09-24 06:52:48 UTC MAIN commitmail json YAML

revert; use system.ctwmrc from xsrc until I understand why the build fails

(nia)

2020-09-24 06:45:59 UTC MAIN commitmail json YAML

make(1): refactor add_wait_dep to not use Lst_ForEachFrom anymore

It was the last remaining use of that function outside of lst.c.

While here, clean up the code of add_wait_dep by removing unreachable
code (the GNode lists never contain NULL, only the GNode.commands lists
do that).

(rillig)

2020-09-24 06:45:58 UTC MAIN commitmail json YAML

2020-09-24 06:03:45 UTC MAIN commitmail json YAML

make(1): extend documentation in the varname-empty test

(rillig)

2020-09-24 05:43:30 UTC MAIN commitmail json YAML

2020-09-24 05:38:16 UTC MAIN commitmail json YAML

2020-09-24 05:13:03 UTC MAIN commitmail json YAML

add __aligned() to all __packed structures.

suppress warnings, and allow to compiler to generate more efficent code.

(ryo)

2020-09-24 05:09:47 UTC MAIN commitmail json YAML

no need to swap 32bit-packed macaddr on big endian

(ryo)

2020-09-24 03:17:18 UTC MAIN commitmail json YAML

skip kernel-only code on crash.

XXX: we could make verylocore work with a symbol look for crash.

(mrg)

2020-09-24 03:06:01 UTC MAIN commitmail json YAML

Make gdbserver almost work

The only missing thing is the lack of generated version.c.

(kamil)

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

fix octeon !DDB builds.

(mrg)

2020-09-23 23:39:18 UTC MAIN commitmail json YAML

Switch GDB on i386 to 1100

Confirmed to build and work.

(kamil)

2020-09-23 23:38:24 UTC MAIN commitmail json YAML

note more about AVE EMAC design

(nisimura)

2020-09-23 23:37:00 UTC MAIN commitmail json YAML

2020-09-23 23:21:29 UTC MAIN commitmail json YAML

2020-09-23 18:48:51 UTC MAIN commitmail json YAML

Define a constant for the SIO IRQ line, and keep a shadow copy of
the interrupt enables.

(thorpej)

2020-09-23 18:47:21 UTC MAIN commitmail json YAML

Use a wrapper to acquire the kernel lock for non-MPSAFE interrupts,
rather than doing it in alpha_shared_intr_establish() directly.

(thorpej)

2020-09-23 18:46:02 UTC MAIN commitmail json YAML

Use a wrapper to acquire the kernel lock for non-MPSAFE interrupts,
rather than doing it in alpha_shared_intr_establish() directly.

(thorpej)

2020-09-23 15:32:13 UTC MAIN commitmail json YAML

enable the ctwm applications menu

(nia)

2020-09-23 15:30:36 UTC MAIN commitmail json YAML

add a script for dynamically generating a menu in the ctwm desktop

this parses the files in /usr/pkg/share/applications and provides a
submenu for launching applications.

TODO: make /usr/pkg configurable somehow?

(nia)

2020-09-23 14:39:23 UTC MAIN commitmail json YAML

fstyp: Sync hammer2_disk.h with DragonFly BSD

taken-from: DragonFly BSD

(tkusumi)

2020-09-23 14:32:47 UTC netbsd-8 commitmail json YAML

2020-09-23 14:31:47 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jakllsch in ticket #1609):

sys/dev/pci/virtio_pci.c: revision 1.13 (patch)
(applied to sys/dev/pci/virtio.c)

Ensure MSI-X is disabled if allocation of MSI-X interrupts fail.

The virtio device config space moves out from under us when MSI-X
remains enabled, and/or INTx interrupts are masked if we don't ensure
this.

This un-breaks virtio devices that run out of MSI-X interrupts.
Particularly a problem on uniproc x86, where there are only 8 or 9
vectors available, allowing for only about 4 virtio devices to use
MSI-X.

(martin)

2020-09-23 13:45:14 UTC MAIN commitmail json YAML

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

Don't dump the CPU topology in the uninspiring case of a single CPU.

(simonb)

2020-09-23 10:48:12 UTC MAIN commitmail json YAML

ifconfig: test cases want LINK_STATE_UNKNOWN to be treated as up.

(roy)

2020-09-23 09:56:33 UTC MAIN commitmail json YAML

make !DDB kernels build.

(mrg)

2020-09-23 09:52:02 UTC MAIN commitmail json YAML

The current MIPS DDB stacktrace code doesn't work if no symbols are
available, so fall back to old-fashioned unwind code if no symbols.

(simonb)

2020-09-23 08:48:07 UTC netbsd-9 commitmail json YAML

2020-09-23 08:46:54 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1093):

sys/dev/pci/if_wmreg.h: revision 1.120
sys/dev/pci/if_wmvar.h: revision 1.46
sys/dev/pci/if_wm.c: revision 1.686
sys/dev/pci/if_wm.c: revision 1.687
sys/dev/mii/inbmphyreg.h: revision 1.20
sys/dev/pci/if_wm.c: revision 1.688
sys/dev/pci/if_wm.c: revision 1.689

s/ressource/resource/. Found by knakahara.

  Add new flag named WM_F_CRC_STRIP and use it. No functional change.

  This change also sets the RCTL_SECRC bit on I211 but it doesn't change
the behavior because I211 always strips CRC like I35[04] and I210.

  Add a workaround for jumbo frame on PCH2 and newer. Tested by chs@.

- Add wm_lv_jumbo_workaround_ich8lan() and use it. From FreeBSD.
  XXX For KUMCTRLSTA_OFFSET_HD_CTRL register modification, it's doubtful.
  FreeBSD and Linux do the same thing that they set the same value on both
  jumbo frame's enable case and the disable case. It seems the default value
  is 0x0b0c and it's not changed on the enable case, so it might be a bug
  on the enable case or the modification is not required.
- Rename I219_UNKNOWN1 to I82579_UNKNOWN1.
  Use 12K for packet buffer for jumbo frame on PCH2 and newer.

XXX Note that Linux Use 14K.

(martin)

2020-09-23 08:11:28 UTC MAIN commitmail json YAML

2020-09-23 07:54:08 UTC MAIN commitmail json YAML

make(1): remove debug output from counter tests

Now that the tests work as intended, the debug information is no longer
necessary.  It was only intended to track down the cause of the
unexpected behavior.

(rillig)

2020-09-23 07:50:59 UTC MAIN commitmail json YAML

make(1): fix unexpected behavior in ::= variable modifier

Previously, the ::= modifier had returned an error value, which caused
the variable expression to be preserved.  This behavior was not useful
in this case; it had only been intended to be used for undefined
variables.

To fix it, distinguish between parse errors, undefined variables and
regular empty strings.

(rillig)

2020-09-23 07:30:12 UTC MAIN commitmail json YAML

make(1): merge duplicate code for delayed commands

(rillig)

2020-09-23 07:02:59 UTC MAIN commitmail json YAML

fix syntax. it only wants the number of columns.

(nia)

2020-09-23 07:01:49 UTC MAIN commitmail json YAML

fix syntax. ctwm does not use ,

(nia)

2020-09-23 06:18:20 UTC MAIN commitmail json YAML

Add a limit for auth at a test for invalid account

(yamaguchi)