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

2024-05-10 12:49:37 UTC Now

2021-01-01 08:02:16 UTC MAIN commitmail json YAML

welcome 2021.  YES.

(mrg)

2021-01-01 07:41:46 UTC MAIN commitmail json YAML

add dts for odroid-N2 plus.

meson-g12b-odroid-n2-plus.dts of linux is not optimized for the odroid-N2plus CPU clock.
and the dts for odroid-n2-plus in the hardkernel repository is  significantly changed,
so cannot be imported without modification. Therefore, a simple meson-g12b-odroid-n2-plus.dts
has been added based on "meson-g12b-odroid-n2.dts" with only the cpu_opp_table and
regulator table changed.

(ryo)

2021-01-01 07:21:58 UTC MAIN commitmail json YAML

2021-01-01 07:18:23 UTC MAIN commitmail json YAML

fix to work with various clock frequencies, and add support "amlogic,meson-axg-dwmac"

(ryo)

2021-01-01 07:17:37 UTC MAIN commitmail json YAML

adapts to some register differences to add support "amlogic,meson-axg-mmc"

(ryo)

2021-01-01 07:15:18 UTC MAIN commitmail json YAML

add "amlogic,meson-axg-reset" to compatible

(ryo)

2021-01-01 03:07:51 UTC MAIN commitmail json YAML

- remove unnecessary code
- handle "enable-gpios" property, and enable/disable GPIOs in pwmregulator_enable()

pointed out by thorpej@, thanks

(ryo)

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

lint: rename basic_type_name to tspec_name

The term "basic type" is precisely defined in C99 6.2.5p14, and tspec_t
is close to that, but nowhere identical.

(rillig)

2021-01-01 01:38:14 UTC MAIN commitmail json YAML

lint: clean up warn_incompatible_types

Splitting the code arbitrarily in separate phases made the code harder
to understand, both for humans as well as automated tools.

One of these tools, check-msgs.lua, couldn't check whether the comments
match the actual messages, and of course, the comments were wrong.
There was no good reason to deviate from the pattern followed by all the
rest of the code.

(rillig)

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

lint: remove redundant printf arguments

(rillig)

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

2021-01-01 01:07:08 UTC MAIN commitmail json YAML

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

lint: align comments in code with actual messages

Redundancy is bad.  Especially in this case, separating the format
strings from the actual arguments prevents the compiler from
cross-checking them.

(rillig)

2020-12-31 22:48:33 UTC MAIN commitmail json YAML

lint: check messages and their IDs for consistency

(rillig)

2020-12-31 20:47:06 UTC MAIN commitmail json YAML

begin to make rock64 audio work.

- set status for "analog_sound" to enabled.
- add clocks for the i2s and spdif nodes.
- match "rockchip,rk3066-i2s", "rockchip,rk3188-i2s",
  and "rockchip,rk3288-i2s".

this gets i2s and ausoc to attach, but no audio(4) yet.

to complete this probably also needs a codec driver (appears
to be rk3328 specific, unlike eg pinebookpro's es8316), and
support for "audio-graph-card" type sound cards.

(mrg)

2020-12-31 18:51:28 UTC MAIN commitmail json YAML

2020-12-31 17:39:36 UTC MAIN commitmail json YAML

2020-12-31 16:19:05 UTC MAIN commitmail json YAML

lint: in mkops, replace printf with println

One less backslash per line of code.

(rillig)

2020-12-31 15:12:34 UTC MAIN commitmail json YAML

2020-12-31 15:10:46 UTC MAIN commitmail json YAML

2020-12-31 15:09:12 UTC MAIN commitmail json YAML

extend the timeout value. dwc_gmac_reset() sometimes takes more time.

(ryo)

2020-12-31 14:26:37 UTC MAIN commitmail json YAML

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

make(1): fix undefined behavior in SubstVarLong

A memcmp implementation that would check the start and end pointers
first would have detected this possible out-of-bounds memory read.

(rillig)

2020-12-31 13:56:56 UTC MAIN commitmail json YAML

make(1): make control flow in SubstVarLong of .for loops more obvious

(rillig)

2020-12-31 13:37:33 UTC MAIN commitmail json YAML

make(1): clean up SubstVarShort in .for loops

This function does not need to advance the parsing position, which
removes duplicate code.

(rillig)

2020-12-31 13:23:43 UTC MAIN commitmail json YAML

2020-12-31 12:34:33 UTC MAIN commitmail json YAML

Reduce code duplication. No functional change.

  Add new ixgbe_intr_admin_common() and use it in both ixgbe_msix_admin()
  and ixgbe_legacy_irq().

(msaitoh)

2020-12-31 11:36:13 UTC MAIN commitmail json YAML

Fix definition of RK3328_HCLK_I2S1_8CH

(jmcneill)

2020-12-31 07:54:13 UTC MAIN commitmail json YAML

Note update of tzdata to 2020f

(kre)

2020-12-31 07:50:44 UTC MAIN commitmail json YAML

2020-12-31 06:44:11 UTC MAIN commitmail json YAML

save the return value of fdtbus_clock_enable() so we can both
report it correctly instead of always 0, and also return failure
to the caller.

(mrg)

2020-12-31 04:38:55 UTC MAIN commitmail json YAML

make(1): move detailed comment to ForSubstBody

(rillig)

2020-12-31 04:31:36 UTC MAIN commitmail json YAML

make(1): extract ForSubstBody from ForReadMore

This leaves ForReadMore with the single responsibility of interfacing
with ReadMoreProc in Parse_SetInput.

(rillig)

2020-12-31 04:07:37 UTC MAIN commitmail json YAML

PR/55891 supress displaying separator when numbers supressed

Fix based on patch provided by Kobayashi Takashi. This brings nl(1) further
in to POSIX compliance. Verified behavior with classic SysV nl(1) and GNU
nl(1). There could still be edge cases here not specified by POSIX.

(ginsbach)

2020-12-31 03:49:36 UTC MAIN commitmail json YAML

make(1): rename ech to endc

Focusing on the "end" is more important than on the data type "ch".

(rillig)

2020-12-31 03:33:10 UTC MAIN commitmail json YAML

make(1): inline variable in ForReadMore

This variable was intended to help the compilers produce efficient code
by avoiding a duplicate memory read.  As it turned out, GCC 5.5 doesn't
need this help, and probably newer compilers don't need it either.  Well
done, GCC, keeping track of the memory locations even if the pointer to
it changes in the middle.

(rillig)

2020-12-31 03:19:01 UTC MAIN commitmail json YAML

make(1): clean up ForReadMore

After the previous clean up in for.c 1.123 from 2020-12-30, GCC 5.5 did
not inline the function SubstVarLong anymore since it was now called
from 2 places.  GCC didn't notice that the function call was essentially
the same since in differed only in the end character.

By combining the cases for ${V} and $(V), the code becomes even shorter
than before, while still being understandable.

(rillig)

2020-12-31 03:10:29 UTC MAIN commitmail json YAML

make(1): simplify termination condition for .for loop

At this point, the number of iteration items is always a multiple of the
number of iteration variables, which makes any addition more complicated
than absolutely necessary.

(rillig)

2020-12-31 03:05:12 UTC MAIN commitmail json YAML

2020-12-31 02:16:14 UTC MAIN commitmail json YAML

enet(4): fix refactoring accident.  Spotted by mrg@.

(uwe)

2020-12-30 15:12:38 UTC netbsd-9 commitmail json YAML

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

sys/dev/ic/ahcisata_core.c: revision 1.84
sys/dev/ic/ahcisata_core.c: revision 1.85
sys/dev/ic/ahcisata_core.c: revision 1.88
sys/dev/ic/ahcisata_core.c: revision 1.89
sys/arch/arm/nvidia/tegra_ahcisata.c: revision 1.13
sys/dev/ic/ahcisatavar.h: revision 1.26
sys/dev/ic/ahcisata_core.c: revision 1.90
sys/dev/ic/ahcisata_core.c: revision 1.91
sys/dev/ic/ahcisata_core.c: revision 1.92
sys/dev/ata/satareg.h: revision 1.6

ahci_exec_fis: wait for the correct amount of time when AT_WAIT is set

Retry clearing WDCTL_RST a few times before giving up. Makes SATA work in
Solidrun Honeycomb LX2K.

AHCI 1.3.1 specification says that it is good practice for system software
to 'zero-out' the memory allocated and referenced by PxCLB and PxFB.

ahci_intr: use ffs in the port bitmask instead of looping over all 32 bits

AHCI 1.3.1 section 5.5.3 "Processing Completed Commands" says that we
should clear PxIS before IS.IPS.

Add G3 and DevSleep definitions. This changes the mask used by
SControl_IPM_NONE from 0x3 to 0x7.

Make sure to ack IS after PxIS when polling and when using multiple MSI-X
messages.

Remove the AHCI_QUIRK_SKIP_RESET quirk now that the underlying issue is
fixed.

(martin)

2020-12-30 14:50:08 UTC MAIN commitmail json YAML

2020-12-30 14:28:32 UTC MAIN commitmail json YAML

make(1): improve .for loop documentation, clean up ForReadMore

The comma expression in ForReadMore may be a nice trick, but it's not as
easy to read as a simple if-then-else chain.  Test for '{' before '('
since BSD makefiles use braces by convention.

(rillig)

2020-12-30 13:42:19 UTC MAIN commitmail json YAML

lint: remove a bit of redundancy from the test suite

(rillig)

2020-12-30 13:41:27 UTC MAIN commitmail json YAML

2020-12-30 13:17:42 UTC MAIN commitmail json YAML

lint: split cluparg into separate functions

That function did more than its short name could express, and the things
it did were not related in any way.

(rillig)

2020-12-30 13:15:07 UTC MAIN commitmail json YAML

2020-12-30 12:22:52 UTC MAIN commitmail json YAML

lint: replace LERROR with lint_assert

This removes the redundancy of mentioning the function name in the error
message.  This redundancy had been correct in all but 2 cases:
build_real_imag and tsize.

(rillig)

2020-12-30 11:56:10 UTC MAIN commitmail json YAML

2020-12-30 11:47:16 UTC MAIN commitmail json YAML

lint: fix Clang-tidy warning about narrowing conversion

(rillig)

2020-12-30 11:43:13 UTC MAIN commitmail json YAML

lint: remove unused macro STRBLEN

(rillig)

2020-12-30 11:39:55 UTC MAIN commitmail json YAML

2020-12-30 11:14:03 UTC MAIN commitmail json YAML

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

2020-12-30 10:56:51 UTC MAIN commitmail json YAML

2020-12-30 10:49:10 UTC MAIN commitmail json YAML

2020-12-30 10:46:11 UTC MAIN commitmail json YAML

2020-12-30 10:35:38 UTC MAIN commitmail json YAML

2020-12-30 10:26:12 UTC MAIN commitmail json YAML

2020-12-30 10:03:16 UTC MAIN commitmail json YAML

2020-12-30 01:44:32 UTC MAIN commitmail json YAML

lint: reduce nesting of function calls

(rillig)

2020-12-30 01:42:31 UTC MAIN commitmail json YAML

nl: fix -d delim parsing for POSIX

POSIX specifies it is possible to specify a one delimiter character.
Fix the logic so that both one and two character delimiters are accepted.

(ginsbach)

2020-12-30 01:33:30 UTC MAIN commitmail json YAML

lint: reduce verbosity of assertions

Having 2 lines of source code per assertion is too much, especially
since most of this code is redundant anyway.  Extract the common code
and the additional negation into a simple function instead.

(rillig)

2020-12-30 01:02:38 UTC MAIN commitmail json YAML

lint: add debug logging to the parser

Even with -DDEBUG and -DYYDEBUG, the debug output is not detailed enough
to clearly see what happens.

Add some custom debug logging to the parser, mainly for demonstration
purposes, and also to find out how to fix the test d_struct_init_nested.

(rillig)

2020-12-29 23:12:48 UTC MAIN commitmail json YAML

2020-12-29 23:04:31 UTC MAIN commitmail json YAML

lint: rename functions that had very short names

(rillig)

2020-12-29 22:13:40 UTC MAIN commitmail json YAML

Honor LOCKPARENT for ".." of the root directory.

Reported-by: syzbot+f40b9f241b818fd12198@syzkaller.appspotmail.com

(chs)

2020-12-29 21:32:46 UTC MAIN commitmail json YAML

2020-12-29 20:56:28 UTC MAIN commitmail json YAML

lint: untangle conditions in initstack_next_nobrace

(rillig)

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

lint: clean up debug logging for initializations

(rillig)

2020-12-29 19:57:44 UTC MAIN commitmail json YAML

lint: make debug output for initializations more uniform

(rillig)

2020-12-29 19:09:53 UTC MAIN commitmail json YAML

lint: remove redundant function prototypes

(rillig)

2020-12-29 19:02:16 UTC MAIN commitmail json YAML

lint: improve debug output for initializing structs

Still trying to find out where the wrong warning in d_struct_init_nested
comes from.

(rillig)

2020-12-29 17:53:08 UTC MAIN commitmail json YAML

Add /var/db/obsolete/xdebug

(martin)

2020-12-29 17:29:31 UTC MAIN commitmail json YAML

2020-12-29 17:17:14 UTC MAIN commitmail json YAML

2020-12-29 17:16:15 UTC MAIN commitmail json YAML

>From the Infinitesimal Optimizations Department: in pmap_kremove(), update
the globally visible stats outside of the loop.

(thorpej)

2020-12-29 16:59:12 UTC MAIN commitmail json YAML

lint: split initstack_next into separate functions

(rillig)

2020-12-29 16:53:36 UTC MAIN commitmail json YAML

lint: split initstack_pop into separate functions

(rillig)

2020-12-29 16:48:53 UTC MAIN commitmail json YAML

2020-12-29 16:46:44 UTC MAIN commitmail json YAML

If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.

(martin)

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

Use C99 designated initializers for struct consdev.

(tsutsui)

2020-12-29 15:49:45 UTC MAIN commitmail json YAML

2020-12-29 15:49:13 UTC MAIN commitmail json YAML

More of the patch that adds support for Enhanced Allocations as seen in
the Cavium ThunderX based GIGABYTE MT30-GS2-00

>From thorpej@. Thanks!

(botched the copying of this from a branch previously)

(skrll)

2020-12-29 15:39:59 UTC MAIN commitmail json YAML

Add support for Enhanced Allocations as seen in the Cavium ThunderX based
GIGABYTE MT30-GS2-00

>From thorpej@. Thanks!

(skrll)

2020-12-29 13:33:03 UTC MAIN commitmail json YAML

2020-12-29 12:43:36 UTC MAIN commitmail json YAML

Mark resize debug info as obsolete

(martin)

2020-12-29 12:29:03 UTC MAIN commitmail json YAML

lint: remove redundant parentheses around return value

(rillig)

2020-12-29 12:18:42 UTC MAIN commitmail json YAML

2020-12-29 11:54:56 UTC MAIN commitmail json YAML

2020-12-29 11:35:11 UTC MAIN commitmail json YAML

2020-12-29 11:07:48 UTC MAIN commitmail json YAML

2020-12-29 11:05:57 UTC MAIN commitmail json YAML

Sort Cavium devices

(skrll)

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

Trailing whitespace

(skrll)

2020-12-29 10:24:22 UTC MAIN commitmail json YAML

lint: rename functions that had very short names

C99 guarantees that the first 31 characters of an identifier with
external linkage are significant.  This removes the need to use
abbreviations for common words.

(rillig)

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

During detach, re-use the functions that halt playback and record DMA.
Prevents a panic during shutdown when media is playing.

(jdc)

2020-12-29 08:00:48 UTC MAIN commitmail json YAML

Some more whitespace consistency / KNF

(skrll)

2020-12-29 07:56:22 UTC MAIN commitmail json YAML

Function declaration formating whitespace consistency.  NFCI.

(skrll)

2020-12-29 03:21:09 UTC MAIN commitmail json YAML

make(1): clean up code in extracted ExportVar functions

(rillig)

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

make(1): split ExportVar into separate functions

(rillig)

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

make(1): rename local variables in Var_ReexportVars

(rillig)

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

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

Add a driver for NXP PCA954x / PCA984x I2C switch / mux controllers.

(thorpej)

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

make(1): add test that explains how variables are exported

Exporting the variables at the right time and with the correct values is
a subtle issue.  The current implementation carefully marks variables as
ready to be exported, then exports them and at the same time tries to
export as few variables as possible, to avoid memory leaks.  This test
describes and explains how all this works in detail.

This test also justifies that the call to Var_ReexportVars happens in
the make process itself, not in the child processes, no matter whether
these are created with vfork or (only theoretically) with plain fork.
This has changed in compat.c 1.217, job.c 1.390 and main.c 1.504 from
2020-12-27.

(rillig)

2020-12-29 00:26:51 UTC MAIN commitmail json YAML

- Use __BIT() macro to define I2C_F_* bits.
- Define an I2C_F_SPEED bitfield that can be used to specify an
  I2C bus speed:

  -> Standard Mode (100Kb/s)
  -> Fast Mode (400Kb/s)
  -> Fast Mode Plus (1Mb/s)
  -> High Speed (3.4Mb/s)

The speed values are treated as advisory; if a controller does not support
the requested speed mode, fallback to a lower one is allowed.

(Currently, all controllers simply use Standard Mode.)

(thorpej)

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

2020-12-28 22:31:32 UTC MAIN commitmail json YAML

lint: rename confusing function setcompl

The previous function name suggested that it would set the complete flag
of the type, but it was the exact opposite.  To reduce confusion, negate
the meaning of the parameter.

(rillig)

2020-12-28 22:16:42 UTC MAIN commitmail json YAML

lint: remove trailing whitespace

(rillig)

2020-12-28 21:24:55 UTC MAIN commitmail json YAML

2020-12-28 20:29:57 UTC MAIN commitmail json YAML

Re-factor the "iicmux" driver to support other types of muxes that are
themselves i2c devices.

(thorpej)

2020-12-28 20:24:05 UTC netbsd-9 commitmail json YAML

2020-12-28 20:21:55 UTC netbsd-9 commitmail json YAML

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

sys/dev/hdaudio/hdaudio.c: revision 1.13

If the Subordinate Node Count returns 0 nodes, complain and return instead
of trying to kmem_zalloc 0 bytes later on.

(martin)

2020-12-28 20:19:50 UTC MAIN commitmail json YAML

Add more guards against NULL deref, since KUBSAN still complains.

(nia)

2020-12-28 20:18:09 UTC netbsd-9 commitmail json YAML

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

sys/dev/hdaudio/hdaudio.c: revision 1.12

Initialize DMA memory when allocating it. Should fix PR# 51734 (hdaudio
"RIRB timeout" on boot).

(martin)

2020-12-28 20:15:16 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1163):

distrib/notes/hp300/hardware: revision 1.21
distrib/notes/hp300/hardware: revision 1.22
distrib/notes/hp300/hardware: revision 1.23
distrib/notes/hp300/hardware: revision 1.24

Fix typo.

Move HP332 to "Supported hardware" list, as reported by Chris Hanson.

Now Xserver works on hp425e built-in EVRX framebuffer.

Add A1659A CRX framebuffer to "Supported hardware" list.

Also remove SGC support from "Unsupported hardware" list.

(martin)

2020-12-28 20:10:04 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1162):

sys/dev/ic/stivar.h: revision 1.11
sys/dev/ic/sti.c: revision 1.23
sys/dev/ic/sti.c: revision 1.24
sys/dev/ic/sti.c: revision 1.25
sys/arch/hp300/dev/sti_sgc.c: revision 1.4

Pull the latest OpenBSD sti(4) changes for bitmap framebuffer support.
- bitmap and colormap ops based on old HP ngle X11 driver:
  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/ic/sti.c#rev1.76
  > Work-in-progress support for non-accelerated X11 on *some* sti(4)
  > frame buffers; based upon the old HP ngle X11 driver.
  > Currently limited to CRX (720/735/750), Timber (710, old 715),
  > Artist (712, 715) and EG (B-series), however the
  > colormap isn't set up correctly on Timber and EG yet.
  >
  > Joint work with Artem Falcon, now in good enough shape to be worked further
  > in the tree.
- misc other cosmetic changes to reduce diffs
No particular comments on port-hp300@ and port-hppa@:
https://mail-index.netbsd.org/port-hp300/2020/12/19/msg000184.html
https://mail-index.netbsd.org/port-hp300/2020/12/20/msg000185.html

The MD hp300 attachment for SGC CRX (A1659-66001) will be committed
separately.

Add bitmap access ops support for SGC CRX (A1659-66001) framebuffer.
Also modify existing 425e EVRX attachment to use updated MI sti(4) ops
more efficiently.

The Xorg server and mlterm-wscons (that support wsdisplay bitmap) work
fine on SGC hp425t.

No particular comments on port-hp300@ and port-hppa@:
https://mail-index.netbsd.org/port-hp300/2020/12/19/msg000184.html
https://mail-index.netbsd.org/port-hp300/2020/12/20/msg000185.html

Special thanks to Miod Vallat again, for contributing the SGC CRX
framebuffer with the SGC connector and flexible cable for HP9000/425t.

He also contributed DIO-II "Hyperion" monochrome framebuffer and
1 plane grayscale SGC GRX (A1924-66001), and I've confirmed hyper(4)
just works even with Xorg server.  I will try GRX as the next project.

Handle WSSCREEN_REVERSE properly.  Based on OpenBSD's sti(4).

Also remove WSSCREEN_UNDERLINE from capabilities that is not handled
by sti(4) ROM routines.

Tested on HP9000/425t with CRX.

Ignore WSDISPLAYIO_PUTCMAP in WSDISPLAYIO_MODE_EMUL, i.e. text mode.

The hardware palette settings are handled by the STI ROM in STI_TEXTMODE
and changing cmap could cause mangled text colors at least on CRX on 425t.

Updating CMAP in EMUL mode isn't expected anyway.

Fixes "red or invisible text" after exiting mlterm-wscons on A1659 CRX.

(martin)

2020-12-28 20:02:30 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1161):

sys/arch/hp300/dev/dnkbd.c: revision 1.11
sys/arch/hp300/dev/hil_intio.c: revision 1.4

Fix a longstanding bug in hilkbd (and dnkbd) console attachment.
cn_tab->cn_dev is initialized in wsdisplay_emul_attach()
(but not in wsdiaplay_cnattach()) so it cannot be used
when hil(4) is attached before wsdisplay(4) is attached.

Instead, use exported wsdisplay_cnputc() that is actually
set in early wsdisplay_cnattach().

Now we can use ddb and RB_ASKNAME via HIL keyboard console.

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

(martin)

2020-12-28 20:01:46 UTC MAIN commitmail json YAML

Remove duplicate opt_ahcisata_pci.h include

(jmcneill)

2020-12-28 19:54:42 UTC netbsd-8 commitmail json YAML

2020-12-28 19:52:59 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1642):

sys/arch/hp300/dev/dnkbd.c: revision 1.11
sys/arch/hp300/dev/hil_intio.c: revision 1.4

Fix a longstanding bug in hilkbd (and dnkbd) console attachment.
cn_tab->cn_dev is initialized in wsdisplay_emul_attach()
(but not in wsdiaplay_cnattach()) so it cannot be used
when hil(4) is attached before wsdisplay(4) is attached.

Instead, use exported wsdisplay_cnputc() that is actually
set in early wsdisplay_cnattach().

Now we can use ddb and RB_ASKNAME via HIL keyboard console.

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

(martin)

2020-12-28 19:47:42 UTC MAIN commitmail json YAML

2020-12-28 19:38:54 UTC MAIN commitmail json YAML

2020-12-28 19:31:44 UTC MAIN commitmail json YAML

If the Subordinate Node Count returns 0 nodes, complain and return instead
of trying to kmem_zalloc 0 bytes later on.

(jmcneill)

2020-12-28 19:07:44 UTC MAIN commitmail json YAML

2020-12-28 19:02:16 UTC MAIN commitmail json YAML

2020-12-28 18:51:18 UTC MAIN commitmail json YAML

2020-12-28 18:49:02 UTC MAIN commitmail json YAML

2020-12-28 18:06:23 UTC MAIN commitmail json YAML

lint: fix typo in comment

(rillig)

2020-12-28 17:00:37 UTC MAIN commitmail json YAML

lint1: remove redundant description from tests

(rillig)

2020-12-28 16:49:58 UTC MAIN commitmail json YAML

Initialize DMA memory when allocating it. Should fix PR# 51734 (hdaudio
"RIRB timeout" on boot).

(jmcneill)

2020-12-28 16:02:57 UTC netbsd-8 commitmail json YAML

2020-12-28 16:02:34 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #1643):

etc/rc.d/ntpdate: revision 1.21

Adjust to "pool" usage in our standard ntp.conf, pointed out
by Connor McLaughlan.

(snj)

2020-12-28 16:00:51 UTC netbsd-9 commitmail json YAML

2020-12-28 16:00:19 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #1164):

etc/rc.d/ntpdate: revision 1.21

Adjust to "pool" usage in our standard ntp.conf, pointed out
by Connor McLaughlan.

(snj)

2020-12-28 15:42:53 UTC MAIN commitmail json YAML

2020-12-28 15:21:33 UTC MAIN commitmail json YAML

make(1): remove mmap for loading files, only allow files < 1 GiB

Using mmap is beneficial if the loaded data is read-only, or if it is
accessed in random order.  Neither of these applies here.  When loading
a file, make reads it strictly from top to bottom, once.  During
parsing, the loaded data is modified in-place to insert '\0' and '\n'
for terminating strings and lines.  Because of all of this, there is no
benefit in using mmap.

Reading the file using 2 calls to read(2) (one for the data, one for
checking for EOF) loads the data in a single pass, instead of producing
a page fault whenever the parser passes another page boundary.

Use a Buffer for loading the file data, to avoid calling bmake_realloc
directly.

Do not resize the loaded buffer at the end.  Each loaded file is
short-lived anyway, and only a few files are loaded at the same time, so
there is no point in optimizing this part for low memory usage.

(rillig)

2020-12-28 15:08:06 UTC MAIN commitmail json YAML

The i2c-mux bindings specify that if the mux device has a child node named
"i2c-mux", then it is that node that is the parent of the i2c bus children.
This is to accommodate mux devices that may also have other kinds of child
nodes in addition to i2c bus child nodes.

(thorpej)

2020-12-28 14:28:54 UTC MAIN commitmail json YAML

2020-12-28 14:08:42 UTC MAIN commitmail json YAML

Remove the AHCI_QUIRK_SKIP_RESET quirk now that the underlying issue is
fixed.

(jmcneill)

2020-12-28 13:59:50 UTC MAIN commitmail json YAML

Note update to dhcpcd-9.4.0

(roy)

2020-12-28 13:57:40 UTC MAIN commitmail json YAML

2020-12-28 13:12:24 UTC MAIN commitmail json YAML

Add second space indentation for bit field values for Enhanced Allocation
capabilities.  From thorpej.

(skrll)

2020-12-28 12:56:33 UTC MAIN commitmail json YAML

lint1: remove unused t_field

(rillig)

2020-12-28 12:52:45 UTC MAIN commitmail json YAML

2020-12-28 12:47:39 UTC MAIN commitmail json YAML

2020-12-28 12:38:45 UTC MAIN commitmail json YAML

2020-12-28 12:17:23 UTC MAIN commitmail json YAML

lint1: use tabular layout for listing the test cases

(rillig)

2020-12-28 12:01:25 UTC MAIN commitmail json YAML

lint1: remove redundancy from test definitions

Whether a test is supposed to produce lint warnings is determined by the
corresponding .exp file.  There is no need to encode this information
redundantly in the test driver.

(rillig)

2020-12-28 11:40:55 UTC MAIN commitmail json YAML

lint1: fix file list for recently added test output

(rillig)

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

lint1: enable test cvt_constant

This test had never been enabled.  In t_integration.sh 1.3 from
2014-04-17 it was supposed to be enabled, but due to a line continuation
backslash, the words "test_case check_valid" ended up as the description
of the previous test, cvt_in_ternary.

While here, add the expected test output for d_struct_init_nested to
FILES.

(rillig)

2020-12-28 11:05:54 UTC MAIN commitmail json YAML

Make sure to ack IS after PxIS when polling and when using multiple MSI-X
messages.

(jmcneill)

2020-12-28 10:26:23 UTC MAIN commitmail json YAML

lint1: add expected output for test d_struct_init_nested

(rillig)

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

2020-12-28 09:58:56 UTC MAIN commitmail json YAML

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

2020-12-28 03:48:41 UTC MAIN commitmail json YAML

Go into the resize directory to build/install the files since they're in the sets.

(htodd)

2020-12-28 00:46:25 UTC MAIN commitmail json YAML

make(1): replace global preserveUndefined with VARE_KEEP_UNDEF

Controlling the expansion of variable expressions using a global
variable and a VARE flag was inconsistent.

Converting the global variable into a flag had to prerequisites:

1.  The unintended duplicate variable assignment had to be fixed, as
done in parse.c 1.520 from 2020-12-27.  Without this fix, it would have
been necessary to add more flags to Var_Exists and Var_SetWithFlags, and
this would have become too complex.

2.  There had to be a unit test demonstrating that VARE_KEEP_DOLLAR only
applies to the top-level expression and is not passed to the
subexpressions, while VARE_KEEP_UNDEF applies to all subexpressions as
well.  This test is in var-op-expand.mk 1.10 from 2020-12-28, at least
for the ':@word@' modifier.  In ParseModifierPartSubst, VARE_KEEP_UNDEF
is not passed down either, in the same way.

(rillig)

2020-12-28 00:19:42 UTC MAIN commitmail json YAML

make(1): extend test for modifier parts in ':=' assignments

(rillig)

2020-12-28 00:14:18 UTC MAIN commitmail json YAML

provide (bug)compatibility with vga in WSDISPLAYIO_{PUT|GET}WSCHAR
if row == 0 treat col as linear index into the text / attribute buffer,
transform into proper coordinates as needed for putchar()

with this wsmoused works as expected

(macallan)

2020-12-27 23:25:33 UTC MAIN commitmail json YAML

make(1): add test for modifier parts in ':=' assignments

(rillig)

2020-12-27 22:29:37 UTC MAIN commitmail json YAML

make(1): fix edge case in := with undefined in variable name

Previously, the assignment "VAR${UNDEF} := value" actually assigned to 2
variables.  See var-op-expand.mk for details.

(rillig)

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

make(1): move test result of var-op-expand.mk from exp to mk

This makes it easier to run this test in older versions of make.  Empty
output means success.

(rillig)

2020-12-27 21:25:02 UTC MAIN commitmail json YAML

Make the new resize(1) manpage indistinguisable from the original

(reinoud)

2020-12-27 21:19:13 UTC MAIN commitmail json YAML

make(1): add more tests for ':=' assignments

(rillig)

2020-12-27 21:13:18 UTC MAIN commitmail json YAML

2020-12-27 20:56:14 UTC MAIN commitmail json YAML

Implement support for trapping REP CMPS instructions in NVMM.

Qemu would abort hard when NVMM would get a memory trap on the instruction
since it didn't know it.

(reinoud)

2020-12-27 20:45:52 UTC MAIN commitmail json YAML

make(1): add tests for variable assignments using the ':=' operator

(rillig)

2020-12-27 18:28:25 UTC MAIN commitmail json YAML

Note openresolv-3.12.0 update

(roy)

2020-12-27 18:26:50 UTC MAIN commitmail json YAML

2020-12-27 18:22:28 UTC MAIN commitmail json YAML

make(1): skip variable expansion in ParseDependencyTargetWord

The goal of the code is just to skip over the variable expression, thus
there is no need to evaluate it.

(rillig)

2020-12-27 18:20:26 UTC MAIN commitmail json YAML

2020-12-27 17:32:25 UTC MAIN commitmail json YAML

2020-12-27 17:17:47 UTC MAIN commitmail json YAML

make(1): add tests for parsing indirect modifiers in nested expressions

(rillig)

2020-12-27 16:52:01 UTC MAIN commitmail json YAML

Zero DMA memory after load, and add PREREAD sync op after to ensure it is visible

(jmcneill)

2020-12-27 16:31:58 UTC MAIN commitmail json YAML

make(1): remove dead code from ApplyModifiersIndirect

At that point, the expression can never be varUndefined.  At the
beginning of ParseVarnameLong, the expression is initialized to a simple
empty string, and that string is only ever converted to varUndefined at
the very end of Var_Parse.

(rillig)

2020-12-27 16:09:33 UTC MAIN commitmail json YAML

2020-12-27 15:15:45 UTC MAIN commitmail json YAML

Add G3 and DevSleep definitions. This changes the mask used by
SControl_IPM_NONE from 0x3 to 0x7.

(jmcneill)

2020-12-27 15:13:07 UTC MAIN commitmail json YAML

AHCI 1.3.1 section 5.5.3 "Processing Completed Commands" says that we
should clear PxIS before IS.IPS.

(jmcneill)

2020-12-27 14:41:25 UTC MAIN commitmail json YAML

make(1): remove outdated comment about string comparisons

Back in 1993, the variables in a context were stored in a linked list.
Searching such a list indeed required literally thousands of calls to
strcmp.  In make.h 1.22 from 1999-09-15, the linked list was replaced
with a hash table, requiring much fewer string comparisons.  Since then,
the rationale doesn't apply anymore.

(rillig)

2020-12-27 14:10:28 UTC netbsd-8 commitmail json YAML

2020-12-27 14:09:22 UTC netbsd-8 commitmail json YAML

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

usr.bin/calendar/calendars/calendar.judaic: revision 1.8-1.10

Update to 2021, hopefully less errors made in this year.

(martin)

2020-12-27 14:07:13 UTC netbsd-9 commitmail json YAML

2020-12-27 14:05:47 UTC netbsd-9 commitmail json YAML

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

usr.bin/calendar/calendars/calendar.judaic: revision 1.10

Update to 2021, hopefully less errors made in this year.

(martin)

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

make(1): remove unnecessary VPR_ERR_SILENT

(rillig)

2020-12-27 13:15:44 UTC MAIN commitmail json YAML

make(1): do not inspect output variables in ParseVarnameShort

(rillig)

2020-12-27 13:12:34 UTC MAIN commitmail json YAML

make(1): move error handling code out of UndefinedShortVarValue

(rillig)

2020-12-27 12:45:33 UTC MAIN commitmail json YAML

reduce indentation for the main processing loop in kqueue_scan(), this also
makes the code more similar to FreeBSD; NFCI

part of PR kern/50094

(jdolecek)

2020-12-27 11:47:04 UTC MAIN commitmail json YAML

make(1): exit 2 on technical errors

This allows the -q option to distinguish errors from out-of-date
targets.  Granted, it's an edge case but it should be solved
consistently anyway.

The majority of cases in which make exits with exit status 1, even in -q
mode, is when there are parse errors.  These have been kept as-is for
now as they affect many of the unit tests.

The technical errors, on the other hand, occur so rarely that it's hard
to write reliable tests for them that fail consistently on all platforms
supported by make.

(rillig)

2020-12-27 11:03:00 UTC MAIN commitmail json YAML

make(1): split Var_Subst into easily understandable functions

Extracting the character-level details makes the essence of Var_Subst
visible in the code, which is to iterate over the given text, handling a
few types of tokens.

(rillig)

2020-12-27 10:53:23 UTC MAIN commitmail json YAML

make(1): clean up VarParseResult constants

The many constants were invented because at that time I didn't quite
understand the actual outcomes of Var_Parse that need to be
distinguished.  There are only a few:

(1) Errors, whether they are parse errors, or evaluation errors or
    undefined variables.  The old constants VPR_PARSE_MSG and
    VPR_UNDEF_MSG are merged into VPR_ERR.

(2) Undefined expressions in a situation in which they are allowed.
    Previously the documentation for VPR_UNDEF_SILENT talked about
    undefined expressions in situations where they were not allowed.
    That case is fully covered by VPR_ERR instead.

(3) Errors that are silently ignored.  These are probably bugs.

(4) Everything went fine, the expression has a defined value.

(rillig)

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

make(1): remove unnecessary VPR_UNKNOWN for error handling

There is no sensible way for a caller of Var_Parse to deal with an error
state of "maybe successful, maybe not", therefore remove the constant
for it.

(rillig)

2020-12-27 10:04:32 UTC MAIN commitmail json YAML

make(1): add error handling for .for loop items

Right now, Var_Subst always returns VPR_OK, even if there had been parse
errors or evaluation errors.  If that is no longer true, the errors will
be reported properly.

(rillig)

2020-12-27 09:58:35 UTC MAIN commitmail json YAML

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

make(1): re-export variables from the actual make process

Since make uses vfork if available, re-exporting the variables happens
in the address space of the main process anyway, so there is no point in
mentioning anything about "our client process" anywhere.

(rillig)

2020-12-27 05:11:40 UTC MAIN commitmail json YAML

make(1): add test for expansion errors in jobs mode

Since compat mode and jobs mode are implemented separately and vary in
lots of small details, each of them needs to be tested on its own.

(rillig)

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

make(1): align names of VarExportMode with the directives

(rillig)

2020-12-26 22:28:35 UTC MAIN commitmail json YAML

2020-12-26 22:15:37 UTC MAIN commitmail json YAML

Add WayTech USB to Serial device to quirks routines, in order to prevent
uhid(4) from attaching and leave it to ugen(4) so libusb can query it.

It is used by some UPS peripherals for their management, especially the
ones from Infosec and Megatec.

Tested with Infosec E3 UPS through ups-nut-usb and `blazer_usb' driver
using the following configuration (ups.conf):

        [infosec]
                driver = blazer_usb
                port = auto
                vendorid = 0665
                productid = 5161

Make sure the associated /dev/ugenXXX is accessible to `nut' user if you
use ups-nut.

(jym)

2020-12-26 22:11:20 UTC MAIN commitmail json YAML

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

Add WayTech Development USB to Serial product.

It is used by some UPS devices, notably Infosec and Megatec.

The vendor ID (0x0665) is known differently from various mainstream OSes;
but it is officially registered by USB-IF as `WayTech Development, Inc.'. So
be it.

(jym)