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

2024-05-10 21:31:27 UTC Now

2021-01-30 21:26:33 UTC MAIN commitmail json YAML

Sync with OpenBSD r1.98. Lots of improvements including checksum offload,
hardware vlan tagging, and support for multiple receive queues.

(jmcneill)

2021-01-30 21:25:10 UTC MAIN commitmail json YAML

2021-01-30 21:24:46 UTC MAIN commitmail json YAML

2021-01-30 21:24:30 UTC MAIN commitmail json YAML

Add some more product IDs for mcx(4)

(jmcneill)

2021-01-30 21:23:08 UTC MAIN commitmail json YAML

Add symmetric toeplitz implementation with integration for NICs, from OpenBSD.

(jmcneill)

2021-01-30 21:18:14 UTC MAIN commitmail json YAML

make(1): remove __predict_false

The effect (at least on x86_64) is so minimal that it is not worth
cluttering the code.

(rillig)

2021-01-30 21:03:32 UTC MAIN commitmail json YAML

2021-01-30 20:59:29 UTC MAIN commitmail json YAML

make(1): only clean up the Buffer data in CLEANUP mode

Cleaning up the members is only useful during debugging but not during
use in production.

(rillig)

2021-01-30 20:53:29 UTC MAIN commitmail json YAML

make(1): split Buf_Destroy into Buf_Done and Buf_DoneData

In all cases except one, the boolean argument to Buf_Destroy was
constant.  Removing that argument by splitting the function into two
separate functions makes the intention clearer on the call site.  It
also removes the possibility for using the return value of Buf_Done,
which would have made no sense.

The function Buf_Done now pairs with Buf_Init, just as in HashTable and
Lst.

Even though Buf_Done is essentially a no-op, it is kept as a function,
both for symmetry with Buf_Init and for clearing the Buffer members
after use (this will be done only in CLEANUP mode, in a follow-up
commit).

(rillig)

2021-01-30 19:20:44 UTC MAIN commitmail json YAML

Add a few network interface offload feature initialisms

(jakllsch)

2021-01-30 18:16:45 UTC MAIN commitmail json YAML

2021-01-30 18:14:25 UTC MAIN commitmail json YAML

lint: fix type conversion for very large data types

Data types that are 4 GB or larger are an edge case.  Nevertheless,
compute their size correctly.

(rillig)

2021-01-30 18:12:07 UTC MAIN commitmail json YAML

lint: remove redundant parentheses

No functional change.

(rillig)

2021-01-30 17:56:29 UTC MAIN commitmail json YAML

lint: remove message 189, add tests for a few other messages

Message 189 would have applied to traditional C and was supposed to
detect assignments between struct and union types.  The corresponding
check had never been implemented though.

Traditional C has been superseded for 30 years now, therefore there is no
point in adding this check retroactively.

(rillig)

2021-01-30 17:38:57 UTC MAIN commitmail json YAML

Add the standard compat string from the Device Tree bindings.

(thorpej)

2021-01-30 17:38:28 UTC MAIN commitmail json YAML

Add standard compat strings from the Device Tree bindings.

(thorpej)

2021-01-30 17:37:25 UTC MAIN commitmail json YAML

Add the standard compat string from the Device Tree bindings.

(thorpej)

2021-01-30 17:02:58 UTC MAIN commitmail json YAML

2021-01-30 16:05:45 UTC MAIN commitmail json YAML

make(1): run lint with strict bool mode

The make code is not supposed to use constructs such as "if (strcmp(s1,
s2))" or "if (p && *p)", instead all boolean expressions have a form
that would be accepted by a C#, Go or Java compiler as well.  This also
ensures that pre-C99 compilers generate equivalent code as C99
compilers, at least regarding boolean expressions.

(rillig)

2021-01-30 15:53:55 UTC MAIN commitmail json YAML

make(1): fix lint warning about empty declarations

(rillig)

2021-01-30 15:48:42 UTC MAIN commitmail json YAML

make(1): reduce boilerplate for printing bit sets in debug mode

No functional change.

(rillig)

2021-01-30 13:50:18 UTC MAIN commitmail json YAML

make(1): update documentation of test lint.mk

(rillig)

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

make(1): clean up JobWriteShellCommands

(rillig)

2021-01-30 13:02:54 UTC MAIN commitmail json YAML

make(1): clean up comments in JobSaveCommands and JobStart

(rillig)

2021-01-30 12:46:38 UTC MAIN commitmail json YAML

2021-01-30 12:14:08 UTC MAIN commitmail json YAML

make(1): explain test opt-touch-jobs

(rillig)

2021-01-30 11:46:25 UTC MAIN commitmail json YAML

Print the path that we failed to open on error

(jmcneill)

2021-01-30 11:34:28 UTC MAIN commitmail json YAML

Fix "Cannot allocate memory" failure on amd64.

BIOCGBLEN ioctl of bpf(4) requires u_int, not size_t.
The problem is reported by Kenji Aoyama.

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

(tsutsui)

2021-01-30 09:48:59 UTC MAIN commitmail json YAML

Don't print undefined interrupt value

(skrll)

2021-01-30 09:36:46 UTC MAIN commitmail json YAML

2021-01-30 07:53:01 UTC MAIN commitmail json YAML

Improve handling of receive overflows.  When we get an overflow, don't
reset the chip if we are still receiving packets.  Real overflows can
happen when network and CPU(s) are loaded, so the reset is not needed
in this case.
Add a counter to track receive overflows (when GEM_COUNTERS is defined).

This reverts some changes (always reset on overflow) from
PR port-sparc64/46260.

(jdc)

2021-01-30 01:23:08 UTC MAIN commitmail json YAML

Add a proper compat string for this device, following the standard
conventions.

(thorpej)

2021-01-30 01:22:06 UTC MAIN commitmail json YAML

If we're going to keep a reference on the "props" dictionary from
the i2c_attach_args, we should retain it.

(thorpej)

2021-01-29 23:45:35 UTC MAIN commitmail json YAML

make(1): explain seemingly redundant condition in jobs mode

(rillig)

2021-01-29 23:33:24 UTC MAIN commitmail json YAML

make(1): remove unnecessary fflush for empty shell files

If nothing is done to any file, there is no need to flush stdout.  Move
the call to each of the remaining branches, except for -t mode, where
Job_Touch already takes care of everything.

(rillig)

2021-01-29 23:06:41 UTC MAIN commitmail json YAML

make(1): rename JobOpenTmpFile to JobWriteShellCommands

The old name didn't reflect that the function not only opens the
temporary file for writing but also actually writes the shell commands
to that file.

(rillig)

2021-01-29 22:52:29 UTC MAIN commitmail json YAML

make(1): do not create empty shell files in jobs mode

In a chain of dependencies such as "all: build; build: do-build", the
intermediate targets do not have any commands.  In jobs mode,
nevertheless, an empty file was created and fed to the shell.  This was
unnecessary.  See jobs-empty-commands.mk.

The case of the special command line "...", which was suggested on
current-users, is not optimized since it doesn't occur in practice.

Suggested by Mateusz Guzik on current-users:
https://mail-index.netbsd.org/current-users/2021/01/26/msg040215.html

(rillig)

2021-01-29 22:38:17 UTC MAIN commitmail json YAML

2021-01-29 21:01:53 UTC netbsd-9 commitmail json YAML

2021-01-29 20:58:19 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by lukem in ticket #1190):

usr.bin/ftp/progressbar.c: revision 1.24
usr.bin/ftp/ssl.c: revision 1.9
usr.bin/ftp/progressbar.h: revision 1.9
usr.bin/ftp/ftp.c: revision 1.171
usr.bin/ftp/version.h: revision 1.92

ftp: don't use restartable signals

Refactor to not rely upon restartable signals (SA_RESTART),
possibly fixing intermittent failures with -q QUITTIME.
ftp transfers: handle EINTR/EAGAIN in copy_bytes(),
instead of relying upon restartable signals.

http/https transfers: Explicitly print an error similar to
progressmeter() when timing-out for -Q QUITTIME in fetch_wait(),
and set errno to ETIMEDOUT so that the warn() in fetch_url()
prints a more accurate error message.

PR/55857

(martin)

2021-01-29 18:27:05 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by lukem in ticket #1189):

usr.bin/progress/progress.c: revision 1.23

progress: handle EINTR in writes. PR/55914

(martin)

2021-01-29 18:19:22 UTC netbsd-8 commitmail json YAML

2021-01-29 18:18:25 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #1647):

sys/dev/hyperv/if_hvn.c: revision 1.20 (via patch)
sys/dev/hyperv/hvkbd.c: revision 1.7 (via patch)
sys/dev/hyperv/vmbus.c: revision 1.12 (via patch)

hvkbd(4): Don't wait forever.
vmbus(4): Don't wait forever.
hvn(4): Don't wait forever.

(martin)

2021-01-29 15:49:55 UTC MAIN commitmail json YAML

2021-01-29 15:24:00 UTC MAIN commitmail json YAML

2021-01-29 15:20:13 UTC MAIN commitmail json YAML

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

fdtbus_intr_establish -> fdtbus_intr_establish_xname

(skrll)

2021-01-29 14:11:14 UTC MAIN commitmail json YAML

2021-01-29 13:10:08 UTC MAIN commitmail json YAML

2021-01-29 13:07:32 UTC MAIN commitmail json YAML

Sort headers. No binary changes.

(rin)

2021-01-29 07:58:57 UTC MAIN commitmail json YAML

the last_fault_code DEBUG variable is not MP safe, so don't compile it in.

(skrll)

2021-01-29 07:00:28 UTC MAIN commitmail json YAML

2021-01-29 06:24:19 UTC MAIN commitmail json YAML

Fix previous; sunxidrm(4) couldn't be probed on Allwinner A64 due to
trailing whitespace in compat string.

(rin)

2021-01-29 06:22:05 UTC MAIN commitmail json YAML

2021-01-29 06:00:08 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2021-01-29 04:38:49 UTC MAIN commitmail json YAML

hvn(4): Don't wait forever.

(nonaka)

2021-01-29 04:38:34 UTC MAIN commitmail json YAML

vmbus(4): Don't wait forever.

(nonaka)

2021-01-29 04:38:18 UTC MAIN commitmail json YAML

hvkbd(4): Don't wait forever.

(nonaka)

2021-01-29 02:26:58 UTC MAIN commitmail json YAML

Use acpi_compatible_match().

(thorpej)

2021-01-28 19:46:54 UTC MAIN commitmail json YAML

Don't try print an error message when there is none.

(christos)

2021-01-28 19:42:27 UTC MAIN commitmail json YAML

PR/55962: Andreas Gustafsson: Some tar(1) error messages lack file name and
newline

(christos)

2021-01-28 18:52:43 UTC MAIN commitmail json YAML

Fix sanity check to match the fixed off-by-one logic in the sizing
logic.

(joerg)

2021-01-28 17:40:00 UTC MAIN commitmail json YAML

fix logic botch from previous - if we're asked to draw the cursor somewhere
else and it's still visible we need to clear it

(macallan)

2021-01-28 15:53:46 UTC MAIN commitmail json YAML

In device_is_a(), handle dev or dev->dv_cfdriver being NULL.  This
makes the calling pattern:

device_is_a(device_parent(dev), "whatever")

safe.

(thorpej)

2021-01-28 15:43:13 UTC MAIN commitmail json YAML

Rewrite and streamline virtio device config read/write and explicitly cater
for the Aarch64-eb bus problem with Qemu. This removes lots of bus_space
`magic' and cleans up the code.

(reinoud)

2021-01-28 14:57:43 UTC MAIN commitmail json YAML

No need to consult ia->ia_ncompat before calling iic_compatible_lookup().

(thorpej)

2021-01-28 14:42:45 UTC MAIN commitmail json YAML

Use iic_compatible_lookup() in ssdfb_i2c_attach().

(thorpej)

2021-01-28 14:35:11 UTC MAIN commitmail json YAML

Use iic_compatible_lookup() in admtemp_setflags().

(thorpej)

2021-01-28 11:45:31 UTC MAIN commitmail json YAML

port-arm/55957: Odroid C2 can not access eMMC card

A few changes to clock setup:
- Disable clock while changing dividers
- Set / clear DDR flag before changing clock
- Adjust TX/RX/core phases

(jmcneill)

2021-01-28 10:36:27 UTC MAIN commitmail json YAML

Modify the generated make wrapper to avoid complaints about
non-writable OBJDIR from make (which happen a lot when cross-building
kernels re-using a makewrapper build for some other user).

(martin)

2021-01-28 01:57:31 UTC MAIN commitmail json YAML

Remove x86_genfb_mtrr_init. PATs have been available since the Pentium III
and this code has been #if notyet'd shortly after being introduced.

(jmcneill)

2021-01-27 22:42:53 UTC MAIN commitmail json YAML

add optional glyph cache for genfb
enable with options GENFB_GLYPHCACHE=n
with n being the desired size of the cache in MB. Should be enough to cache
at least 900 glyphs in whatever video mode used in order to be effective
in 32bit per pixel that's about 1MB

(macallan)

2021-01-27 17:39:13 UTC MAIN commitmail json YAML

Don't silently ignore the errors from npfctl_run_op. We end up returning
packets to userland that are missing required fields (like in rule_add the
id of the rule) and npfctl aborts.

(christos)

2021-01-27 15:52:46 UTC MAIN commitmail json YAML

2021-01-27 15:29:27 UTC MAIN commitmail json YAML

binutils-2.36 out.

(wiz)

2021-01-27 14:25:22 UTC MAIN commitmail json YAML

if_rge.c: avoid aprint_error*() abuse

(jakllsch)

2021-01-27 13:50:17 UTC MAIN commitmail json YAML

Trailing whitespace... heh

(skrll)

2021-01-27 12:06:10 UTC MAIN commitmail json YAML

vcaudio: Do not report recording mode in hardware format

(nia)

2021-01-27 08:40:32 UTC MAIN commitmail json YAML

2021-01-27 06:59:08 UTC MAIN commitmail json YAML

Fix non-DIAGNOSTIC build

(skrll)

2021-01-27 05:27:01 UTC MAIN commitmail json YAML

Note support for QEMU "mipssim" emulator.

(simonb)

2021-01-27 05:24:16 UTC MAIN commitmail json YAML

2021-01-27 05:11:54 UTC MAIN commitmail json YAML

Introduce weighted matching for ACPI autoconfiguration, and provide
acpi_compatible_match() based around device_compatible_entry.  Matches
against _HID score big, matches against _CID are weighted in the
standard most-to-least-specific ordering, less than _HID.

Also provide a maching value for _CLS, that's always less than _HID
and _CID matches, and use that in acpi_match_class().

Also provide acpi_compatible_lookup(), that returing the matching
entry based on the same criteria.

(thorpej)

2021-01-27 05:00:16 UTC MAIN commitmail json YAML

Introduce autoconfiguration helpers based around device_compatible_entry:
- pci_compatible_match(): matches against the PCI ID.
- pci_compatible_match_subsys(): matches against PCI SUBSYS ID.
- pci_compatible_lookup(): look up entry by PCI ID.
- pci_compatible_lookup_subsys(): look up entry by PCI SUBSYS ID.
- pci_compatible_lookup_id(): look up entry by an arbitrary ID using the
  PCI ID code conventions.

- Define PCI_COMPAT_EOL as a compat data array sentinel.

(thorpej)

2021-01-27 04:55:42 UTC MAIN commitmail json YAML

2021-01-27 04:54:08 UTC MAIN commitmail json YAML

Add device_compatible_match_id() and device_compatible_lookup_id(), which
are like device_compatible_match() and device_compatible_lookup(), but
take a single scalar value as an ID.

Add a "uintptr_t id" field to device_compatible_entry, in an anonymous
union with the existing "const char *compat" field.

(thorpej)

2021-01-27 04:35:15 UTC MAIN commitmail json YAML

2021-01-27 04:31:36 UTC MAIN commitmail json YAML

Add eisa_compatible_match() and eisa_compatible_lookup().

(thorpej)

2021-01-27 03:17:24 UTC MAIN commitmail json YAML

There is not much point in of_compatible() returning -1 for "no match"
and >= 0 for "match".  Just make it return 0 for "no match" and >0 for
"match" so it can be treated like a boolean expression.

(thorpej)

2021-01-27 03:16:37 UTC MAIN commitmail json YAML

Rename of_match_compat_data() to of_compatible_match().  Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

(thorpej)

2021-01-27 03:10:22 UTC MAIN commitmail json YAML

2021-01-27 02:32:31 UTC MAIN commitmail json YAML

2021-01-27 02:31:35 UTC MAIN commitmail json YAML

2021-01-27 02:31:03 UTC MAIN commitmail json YAML

2021-01-27 02:29:48 UTC MAIN commitmail json YAML

2021-01-27 02:28:37 UTC MAIN commitmail json YAML

Replace 2 uses of of_match_compatible().  Also use DEVICE_COMPAT_EOL.

(thorpej)

2021-01-27 02:24:10 UTC MAIN commitmail json YAML

2021-01-27 02:20:03 UTC MAIN commitmail json YAML

2021-01-27 02:17:28 UTC MAIN commitmail json YAML

2021-01-27 02:14:49 UTC MAIN commitmail json YAML

2021-01-27 02:12:16 UTC MAIN commitmail json YAML

2021-01-27 02:09:39 UTC MAIN commitmail json YAML

2021-01-27 02:03:10 UTC MAIN commitmail json YAML

Use DEVICE_COMPAT_EOL.

(thorpej)

2021-01-27 02:01:53 UTC MAIN commitmail json YAML

2021-01-27 02:00:02 UTC MAIN commitmail json YAML

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

2021-01-27 01:54:06 UTC MAIN commitmail json YAML

2021-01-27 01:49:36 UTC MAIN commitmail json YAML

2021-01-27 01:47:40 UTC MAIN commitmail json YAML

2021-01-27 01:00:05 UTC MAIN commitmail json YAML

Define a macro to terminate the common usage of device_compatible_entry
arrays, in order to placate the angry hordes objecting to use of a GCC
extension.

(thorpej)

2021-01-27 00:02:38 UTC MAIN commitmail json YAML

2021-01-26 23:51:20 UTC MAIN commitmail json YAML

make(1): demonstrate irrelevant message about warnings as errors

(rillig)

2021-01-26 23:44:56 UTC MAIN commitmail json YAML

make(1): in -dp mode, print stack trace with each diagnostic

This makes it easier to track down where a warning or an error
originated from.  This information could be further enriched for .for
loops, to also include the variable names and their values.  For now,
it's good enough to replace the large comment describing how a stack
trace _could_ be generated with actual code that implements that idea.

The syntax of the locations is <filename>:<lineno>, which intentionally
differs from the traditional "<filename>" line <lineno>, since the
former is more widely supported by editors and IDEs.

Having this stacktrace information is especially intended for
complicated systems built upon make, such as pkgsrc.

(rillig)

2021-01-26 21:25:55 UTC MAIN commitmail json YAML

Fix potential off-by-one error when using hash fudging. It needs to
round up to 2/4 and not one less to guarantee that the adjusted hash
fits into array.

(joerg)

2021-01-26 19:09:18 UTC MAIN commitmail json YAML

call f_touch with kq_lock held, and without KERNEL_LOCK() - for this
adjust EVFILT_USER, which is the only filter actually using that hook

kqueue_scan() now doesn't need to exit/enter the kq_lock when calling
f_touch, which removes another possible race

part of PR kern/50094

(jdolecek)

2021-01-26 18:38:58 UTC MAIN commitmail json YAML

lint: remove __noinline attribute from string interning function

I had committed this accidentally while ensuring that the generated code
is still efficient even though the source code looks heavy with the
double pointer indirection.

(rillig)

2021-01-26 18:08:33 UTC MAIN commitmail json YAML

remove outdated comment

(macallan)

2021-01-26 16:40:16 UTC MAIN commitmail json YAML

Fix indexing bug in clean up code on error in virtio PCI v1.0 attach code.
Thanks go to Rin Okuyama for spotting it.

(reinoud)

2021-01-26 16:24:18 UTC MAIN commitmail json YAML

- refactor vcons_cursor_noread() a bit so it works the same way as the other
  _noread() methods instead of duplicating half of vcons_cursor()
- skip clearing the cursor only if we use all _noread() methods
- clear RI_CURSOR in all copy*_noread() methods as well if we overwrite the
  cursor

(macallan)

2021-01-26 15:30:05 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2021-01-26 15:29:42 UTC MAIN commitmail json YAML

2021-01-26 15:08:02 UTC MAIN commitmail json YAML

llvmlockdir -> lvmlockdir

(martin)

2021-01-26 14:55:57 UTC MAIN commitmail json YAML

Replace use of of_match_compatible().

(thorpej)

2021-01-26 14:55:34 UTC MAIN commitmail json YAML

Replace 2 uses of of_match_compatible().

(thorpej)

2021-01-26 14:49:41 UTC MAIN commitmail json YAML

There is not much point in of_compatible() returning -1 for "no match"
and >= 0 for "match".  Just make it return 0 for "no match" and >0 for
"match" so it can be treated like a boolean expression.

As such of_match_compatible() (a wrapper around of_compatible()) is now
obsolete, and will be removed once all call sites are converted to an
appropriate replacement.

(thorpej)

2021-01-26 14:09:11 UTC MAIN commitmail json YAML

Minor comment changes.

(thorpej)

2021-01-26 13:31:19 UTC MAIN commitmail json YAML

Rename etc/rc.d/llvmlockdir to lvmlockdir - it has nothing to do with LLVM,
the name probably was a freudian slip of my fingers when I split that
fragment out of another rc.d script.

(martin)

2021-01-26 10:51:27 UTC MAIN commitmail json YAML

2021-01-26 10:50:20 UTC MAIN commitmail json YAML

2021-01-26 02:33:55 UTC MAIN commitmail json YAML

Now that the ACPI layer no longer does this for us, evaluate the _DSM
that returns the HID descriptor address at attach time.

(thorpej)

2021-01-26 01:23:08 UTC MAIN commitmail json YAML

Don't map ACPI _HID / _CID strings to "compatible" strings from the
Device Tree bindings.  Just pass those strings in the standard
most-specific-to-least-specific order to the drivers and let them
deal.

(thorpej)

2021-01-26 01:15:39 UTC MAIN commitmail json YAML

Back out unintended change in previous.

(thorpej)

2021-01-26 00:29:22 UTC MAIN commitmail json YAML

acpipchb is a bus, so claim all child ACPI device nodes

(jmcneill)

2021-01-26 00:23:16 UTC MAIN commitmail json YAML

2021-01-26 00:19:53 UTC MAIN commitmail json YAML

Add a device_t parameter to acpi_enter_i2c_devs. If non-NULL, all child
acpi_devnodes will be claimed by that device so we don't later try to
attach a duplicate device to that node at acpinodebus.

(jmcneill)

2021-01-25 20:07:55 UTC MAIN commitmail json YAML

In the lam(1) example with a literal newline, use newish sh syntax.

Bump date (as of when I wrote the change and discussed it, in October;
forgot to commit since)

(dholland)

2021-01-25 20:05:30 UTC MAIN commitmail json YAML

avoid needing <machine/promlib.h>.  fixes sparc64 build.

(mrg)

2021-01-25 19:59:49 UTC MAIN commitmail json YAML

s/boolean_t/bool/.  boolean_t is obsolete (from Mach), and this
also fixes a new build issue in libkvm on sparc*.

(mrg)

2021-01-25 19:57:05 UTC MAIN commitmail json YAML

put back clearing of KN_QUEUED and check for re-queue - as rev. 1.53 notes,
it's necessary for correct function

fixes PR kern/55946, thanks to Paul Goyette for testing

part of PR kern/50094 fix

(jdolecek)

2021-01-25 19:39:34 UTC MAIN commitmail json YAML

make(1): split For_Eval into separate functions

(rillig)

2021-01-25 19:21:11 UTC MAIN commitmail json YAML

Fix a thundering herd problem in pipes.

Wake only one waiter when data becomes available, not all of them.
Waking them all is not a usual case, but turns up with make's job
token pipes. (Probably make's job signalling scheme should also be
revised, assuming rillig hasn't already done that, but that's a
separate issue.)

This change will not do us much good for the moment because we don't
distinguish cv_signal from cv_broadcast for interruptible sleeps, but
that's also a separate problem.

Seen on FreeBSD; from mjg at freebsd a couple months ago. Patch was
mine (iirc) but the real work in this sort of thing is discovering the
problem.

(dholland)

2021-01-25 19:10:57 UTC MAIN commitmail json YAML

make(1): extract ForLoop_New to separate function

(rillig)

2021-01-25 19:05:39 UTC MAIN commitmail json YAML

make(1): rename struct For to struct ForLoop

This removes the ambiguity whether For_Free is meant to be a
module-exported function or a local function associate with that struct.
Rename the affected functions as well.

(rillig)

2021-01-25 17:18:55 UTC MAIN commitmail json YAML

s/npf_config_lock/npf->config_lock/ in the comments

(christos)

2021-01-25 17:17:19 UTC MAIN commitmail json YAML

Fix locking issue: npf_default_pass needs to be called with the config lock
held.

(christos)

2021-01-25 16:21:41 UTC MAIN commitmail json YAML

2021-01-25 14:25:09 UTC MAIN commitmail json YAML

2021-01-25 14:20:39 UTC MAIN commitmail json YAML

2021-01-25 14:16:00 UTC netbsd-9 commitmail json YAML

2021-01-25 14:14:23 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nia in ticket #1188):

sys/arch/arm/broadcom/bcm2835_vcaudio.c: revision 1.16

vcaudio: don't advertise CAPTURE when all functions return EINVAL

(martin)

2021-01-25 14:12:50 UTC netbsd-9 commitmail json YAML

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

sys/kern/kern_threadpool.c: revision 1.23

threadpool(9): Fix synchronization between cancel and dispatch.
- threadpool_cancel_job_async tried to prevent
  threadpool_dispatcher_thread from taking the job by setting
  job->job_thread = NULL and then removing the job from the queue.
- But threadpool_cancel_job_async didn't notice job->job_thread is
  null until after it also removes the job from the queue =>
  double-remove, *boom*.

The solution is to teach threadpool_dispatcher_thread to wait until
it has acquired the job lock to test whether job->job_thread is still
valid before it decides to remove the job from the queue.

Fixes PR kern/55948.

XXX pullup-9

(martin)

2021-01-25 13:30:20 UTC MAIN commitmail json YAML

2021-01-25 13:08:05 UTC MAIN commitmail json YAML

Remove #undefs against INTERRUPT_SAVEREG and INTERRUPT_RESTOREREG.

They have been defined in <m68k/asm.h> for years.

(tsutsui)

2021-01-25 12:45:49 UTC MAIN commitmail json YAML

Build strlist.c.

(Sigh, missed in original commit.)

(thorpej)

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

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

NetBSD 9.99.79 - struct i2c_attach_args adds 'ia_cookietype' field

(jmcneill)

2021-01-25 12:15:33 UTC MAIN commitmail json YAML

Add "cookietype" to i2c attach args, so the consumer knows if ia_cookie
is either an OF phandle or an ACPI_HANDLE. Add NXP0002 compatible mapping
while here.

(jmcneill)

2021-01-25 12:09:59 UTC MAIN commitmail json YAML

Configure clocks and enable NXP Layerscape quirks in motoi2c

(jmcneill)

2021-01-25 12:08:47 UTC MAIN commitmail json YAML

NXP Layerscape LX2160A has an almost compatible controller, with a few
quirks:
- IBCR bit 7 is "module disable" instead of "module enable".
- Status bits in IBSR are W1C.
Add quirk flags for both.

(jmcneill)

2021-01-25 02:11:41 UTC MAIN commitmail json YAML

clear the RI_CURSOR flag when we overwrite the cursor so we can skip clearing
it when asked to do it later on
saves a bunch of framebuffer writes

(macallan)

2021-01-24 22:08:37 UTC MAIN commitmail json YAML

Correct date for previous (tzdata 2021a update) - seems I cannot read
the output of the date(1) command any more...

(kre)

2021-01-24 22:02:47 UTC MAIN commitmail json YAML

Note update of tzdata to 2021a

(kre)

2021-01-24 21:59:37 UTC MAIN commitmail json YAML

2021-01-24 21:48:38 UTC MAIN commitmail json YAML

malloc(9) -> kmem(9)

(thorpej)

2021-01-24 20:11:55 UTC MAIN commitmail json YAML

make(1): convert SearchPath to struct

This prepares for making dotLast a simple struct member instead of a
fake CachedDir, which is easier to understand.

(rillig)

2021-01-24 20:09:03 UTC MAIN commitmail json YAML

Rewrite of_network_decode_media() to use strlist_next() and
device_compatible_lookup().

(thorpej)

2021-01-24 19:48:11 UTC MAIN commitmail json YAML

make(1): describe expansion of nested variables in .for values

These edge cases are not documented anywhere, and their behavior is
non-intuitive.  For now, just describe them, don't try to fix them.
There may be people out there relying on exactly this behavior.

(rillig)

2021-01-24 19:38:49 UTC MAIN commitmail json YAML

remove part of previous that was committed by mistake

(jmcneill)

2021-01-24 19:38:37 UTC MAIN commitmail json YAML

Rewrite of_compatible() using strlist_match().

(thorpej)

2021-01-24 19:37:45 UTC MAIN commitmail json YAML

trailing whitespace

(jmcneill)

2021-01-24 19:35:45 UTC MAIN commitmail json YAML

trailing whitespace

(jmcneill)

2021-01-24 19:35:21 UTC MAIN commitmail json YAML

trailing whitespace

(jmcneill)

2021-01-24 19:30:18 UTC MAIN commitmail json YAML

make(1): let the test directive-for-escape exit successfully

There is no reason for a non-zero exit status here.

(rillig)

2021-01-24 18:02:51 UTC MAIN commitmail json YAML

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

2021-01-24 17:55:41 UTC MAIN commitmail json YAML

lint: add test for message 325, undefined static function

(rillig)

2021-01-24 17:44:37 UTC MAIN commitmail json YAML

lint: add test for message 329, union cast with incompatible type

(rillig)

2021-01-24 17:44:16 UTC MAIN commitmail json YAML

Implement of_match_compat_data() using device_compatible_match_strlist().
Implement of_search_compatible() using device_compatible_lookup_strlist().

(thorpej)

2021-01-24 17:42:37 UTC MAIN commitmail json YAML

Refactor and simplify device_compatible_match(), and also provide
device_compatible_p{match,lookup}() which treats the strings in the
driver compatible data as pmatch(9) patterns.

Add device_compatible_{,p}{match,lookup}_strlist(), which are the same, but
take an OpenFirmware-style string list rather than an array of strings
for the device data.

(thorpej)

2021-01-24 17:29:11 UTC MAIN commitmail json YAML

Add kmem_tmpbuf_alloc(), a utility function for allocating memory for
temporary use where allocation on the stack is desirable, but only up to
a certain size.  If the requested size fits within the specified stack
buffer, the stack buffer is returned.  Otherwise, memory is allocated with
kmem_alloc().  Add a corresponding kmem_tmpbuf_free() function that frees
the memory using kmem_free() if it is not the tempory stack buffer location.

(thorpej)

2021-01-24 16:55:10 UTC MAIN commitmail json YAML

lint: make path to lint data configurable

This is needed for strict bool mode, to make the custom header stdbool.h
available when lint is run as part of build.sh.

(rillig)

2021-01-24 16:45:41 UTC MAIN commitmail json YAML

2021-01-24 16:33:48 UTC MAIN commitmail json YAML

Attach dwiic(4) to AMD FCH I2C controllers. These busses are separate
from the SMBus that we attach to piixpm(4) today, and support direct
config via ACPI.

(jmcneill)

2021-01-24 16:23:06 UTC MAIN commitmail json YAML

Change of_search_compable() to return NULL on no-match, which is much more
sensible than the previous behavior.  As such, back out rev 1.7 of
sunxi_sramc.c.  All other of_search_compable() call sites have been audited.

(thorpej)

2021-01-24 16:22:55 UTC MAIN commitmail json YAML

lint: fix path to installed stdbool.h for strict bool mode

(rillig)

2021-01-24 16:12:45 UTC MAIN commitmail json YAML

2021-01-24 15:59:35 UTC MAIN commitmail json YAML

Remove incorrect comment. It would violate the specs.

VirtIO PCI v1.0 attachments can only happen on revision 1 devices as they have
a radical different register layout. Transitional devices have to use revision
0 and have to use the VirtIO PCI v0.9 attachment method but can allow for
features to be negotiated normally found in later versions.

(reinoud)

2021-01-24 15:43:23 UTC MAIN commitmail json YAML

2021-01-24 15:43:09 UTC MAIN commitmail json YAML

Install lint's custom stdbool.h and make lint search for it in the right place.

(christos)

2021-01-24 15:34:08 UTC MAIN commitmail json YAML

Redefining bus_space functions in drivers is a bad idea, and we just
should't be in the habit of doing so.  Besides, the previous "solutions"
still did not compile correctly, and this does, so let's be done with
this nonsense, shall we?

(thorpej)

2021-01-24 15:33:02 UTC MAIN commitmail json YAML

On error unmap the pci_mapreg_map()d regions using bus_space_unmap() as
suggested by jak@

(reinoud)

2021-01-24 14:51:01 UTC MAIN commitmail json YAML

2021-01-24 14:47:43 UTC MAIN commitmail json YAML

2021-01-24 14:37:32 UTC MAIN commitmail json YAML

fstyp: Fix exfat detection

taken-from FreeBSD ddf61156132b610915325769cbb93ea11be0d433

(tkusumi)

2021-01-24 14:33:49 UTC MAIN commitmail json YAML

Move definition of NMAPREG to the start

(reinoud)

2021-01-24 14:17:11 UTC MAIN commitmail json YAML

Fix a tyop in a comment.

(simonb)

2021-01-24 14:12:36 UTC MAIN commitmail json YAML

Prevent potential buffer over runs in number of BARS

(reinoud)

2021-01-24 13:33:56 UTC MAIN commitmail json YAML

2021-01-24 12:51:32 UTC MAIN commitmail json YAML

Use 32K as the default NFSv3 read and write data sizes on aarch64, matching
i386 and amd64.

(jmcneill)

2021-01-24 11:55:57 UTC MAIN commitmail json YAML

lint: merge duplicate code for interning type names

(rillig)