Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (2h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 06:03:24 UTC Now

2022-01-26 12:16:03 UTC MAIN commitmail json YAML

make: clean up eat_dots for meta mode

No binary change.

(rillig)

2022-01-26 11:48:54 UTC MAIN commitmail json YAML

2022-01-25 22:01:35 UTC MAIN commitmail json YAML

2022-01-25 21:28:49 UTC MAIN commitmail json YAML

Remove excess shift since locale is no longer passed

(blymn)

2022-01-25 16:07:57 UTC MAIN commitmail json YAML

Add Intel 600 Series PCH (desktop) support.

(msaitoh)

2022-01-25 16:07:15 UTC MAIN commitmail json YAML

2022-01-25 16:06:44 UTC MAIN commitmail json YAML

Add Alder Lake devices and Intel 600 Series PCH devices.

(msaitoh)

2022-01-25 11:17:39 UTC MAIN commitmail json YAML

Accept USB 3.2 in xhci_id_protocols().

(msaitoh)

2022-01-25 10:51:36 UTC MAIN commitmail json YAML

- don't put const for CFATTACH_DECL_NEW()
- MDIO now senses PHY correctly.

(nisimura)

2022-01-25 10:38:56 UTC MAIN commitmail json YAML

- rectify attach messages.
- abandon irq to use for now.

(nisimura)

2022-01-25 03:40:29 UTC MAIN commitmail json YAML

Fix compile error for non __HAVE_ATOMIC64_LOADSTORE arch.

(msaitoh)

2022-01-25 03:23:05 UTC MAIN commitmail json YAML

Update of tests to account for output changes associated with wide char
fixes.  Also, default all tests to using UTF8 instead of doing a special
dance for the wide character tests and fix debug_test to force set the
locale to UTF8 so tests under debug don't throw spurious mismatches
when a wide character test is run.

(blymn)

2022-01-25 03:05:06 UTC MAIN commitmail json YAML

Correct (hopefully) the handling of wide characters.

* Remove the WCOL family of macros, these were "stealing" the upper bits
  of a character attribute to store the column width of a character.  No
  warning was given about this in curses.h which meant it was easy to
  accidentally reuse the bits in use by the WCOL macros (we already did).
  Add couple of 16bit ints to the character structure iff HAVE_WCHAR is
  true to hold the display width and wide char related flags (just
  continuation at the moment)
* Convert all instances of WCOL macros to just reference the column width
  in the char structure so it is not obfuscated.
* Fix cursor positioning so placing a cursor in the middle of a wide char
  actually does just that.
* Fix plod so it understands that if the cursor is going to be positioned
  in the middle of a wide char it cannot just reprint the char to get there.
* Fix plodput so it correctly counts the number of output characters for
  wide characters.
* Fix slk routines to properly size the wctomb() buffer.

(blymn)

2022-01-25 01:56:22 UTC MAIN commitmail json YAML

2022-01-24 22:59:50 UTC MAIN commitmail json YAML

2022-01-24 20:54:54 UTC MAIN commitmail json YAML

make: remove unsatisfiable condition in VarSubstExpr

At that point, emode can have only 2 values, none of which is
VARE_UNDEFERR.

No binary change since GCC had figured this out all the time, it just
didn't reveal this little secret.

(rillig)

2022-01-24 20:49:55 UTC MAIN commitmail json YAML

make: when expanding nested variables, check simple things first

No functional change, just a little performance improvement for
expressions that are not evaluated anyway but only parsed.

(rillig)

2022-01-24 09:42:14 UTC MAIN commitmail json YAML

2022-01-24 09:14:38 UTC MAIN commitmail json YAML

2022-01-24 01:57:52 UTC MAIN commitmail json YAML

Fix ixv.c rev. 1.176. Calculate 36bit counter correctly.

(msaitoh)

2022-01-24 01:50:20 UTC MAIN commitmail json YAML

Use 32bit for 32bit counter.

(msaitoh)

2022-01-24 00:15:09 UTC MAIN commitmail json YAML

put .note.Xen into PT_NOTE

this is where grub 2.02 and possibly other things expect
to find it.
Fixes booting with grub2 on prgmr.com.

(maya)

2022-01-23 22:12:16 UTC MAIN commitmail json YAML

make: merge nonints.h into make.h

No functional change.

(rillig)

2022-01-23 21:48:59 UTC MAIN commitmail json YAML

2022-01-23 21:07:28 UTC MAIN commitmail json YAML

librefuse: fix lint warnings about void function returning a value

lib/librefuse/refuse_compat.c(155):
    error: void function fuse_unmount cannot return value [213]
lib/librefuse/refuse/v30.c(57):
    error: void function fuse_destroy_v30 cannot return value [213]

(rillig)

2022-01-23 18:59:18 UTC MAIN commitmail json YAML

2022-01-23 18:15:29 UTC MAIN commitmail json YAML

tests/make: run nested makes with -r to reduce side effects

(rillig)

2022-01-23 18:00:54 UTC MAIN commitmail json YAML

2022-01-23 16:48:37 UTC MAIN commitmail json YAML

2022-01-23 16:47:46 UTC MAIN commitmail json YAML

2022-01-23 16:25:54 UTC MAIN commitmail json YAML

2022-01-23 16:09:39 UTC MAIN commitmail json YAML

2022-01-23 14:55:28 UTC MAIN commitmail json YAML

PR/56658: Juraj Hercek: Plain RSA keys are not loaded by racoon IKE daemon

(christos)

2022-01-23 14:35:45 UTC MAIN commitmail json YAML

2022-01-23 08:01:33 UTC MAIN commitmail json YAML

Use __MASK(4) in bus_dmatag_subregion.  NFCI.

(skrll)

2022-01-22 22:53:58 UTC MAIN commitmail json YAML

After 3 and a bit years, it is time...

(kre)

2022-01-22 21:50:42 UTC MAIN commitmail json YAML

2022-01-22 19:09:21 UTC MAIN commitmail json YAML

Explicitly cast a __MASK(48) to bus_addr_t (for 32bit bus_addr_t archs)

(martin)

2022-01-22 19:08:33 UTC MAIN commitmail json YAML

Explicitly cast a __MASK(40) to bus_addr_t (for 32bit bus_addr_t archs)

(martin)

2022-01-22 19:07:25 UTC MAIN commitmail json YAML

Explicitly cast a __MASK(40) to bus_addr_t (for 32bit bus_addr_t archs)

(martin)

2022-01-22 19:01:56 UTC MAIN commitmail json YAML

Explicitly cast a 40-bit mask to bus_addr_t in a dead branch (gcc apparently
is not clever enough and warns about the truncation)

(martin)

2022-01-22 18:59:24 UTC MAIN commitmail json YAML

make: add missing newline after "cannot continue" message

It was wrong of Parse_File to output an unfinished line and hope for
some other code to finish it.  As demonstrated in the test, PrintOnError
did not do that in the case of additional debug output.

To keep the overall behavior as close as possible to before, the other
callers of PrintOnError now have to pass the newline themselves. Passing
strings that start with newlines but don't end with them looked
suspicious anyway.

(rillig)

2022-01-22 17:10:51 UTC MAIN commitmail json YAML

2022-01-22 16:24:45 UTC MAIN commitmail json YAML

2022-01-22 16:23:56 UTC MAIN commitmail json YAML

2022-01-22 15:16:37 UTC MAIN commitmail json YAML

Add a note about bus_dmatag_subregion [min_addr, max_addr]

(skrll)

2022-01-22 15:10:32 UTC MAIN commitmail json YAML

2022-01-22 15:08:11 UTC MAIN commitmail json YAML

2022-01-22 14:08:19 UTC MAIN commitmail json YAML

2022-01-22 14:00:45 UTC MAIN commitmail json YAML

make siginfo handler print to /dev/tty.

(christos)

2022-01-22 13:25:55 UTC MAIN commitmail json YAML

Use sysconf(_SC_PAGESIZE) instead of PAGE_SIZE

It broke build on platforms where PAGE_SIZE was not defined in
<machine/vmparam.h>.

(pho)

2022-01-22 11:58:15 UTC MAIN commitmail json YAML

Add a function to compare 2 devhandles.

(thorpej)

2022-01-22 11:49:18 UTC MAIN commitmail json YAML

2022-01-22 11:16:00 UTC MAIN commitmail json YAML

Make the devhandle "integer" field an intptr_t to ensure that all
bits of the union are initialized when that field is used.

(thorpej)

2022-01-22 09:59:26 UTC MAIN commitmail json YAML

2022-01-22 09:22:41 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2022-01-22 08:58:48 UTC MAIN commitmail json YAML

2022-01-22 08:09:40 UTC MAIN commitmail json YAML

2022-01-22 08:07:02 UTC MAIN commitmail json YAML

Zero-clear the fuse_context in fuse_destroy(3)

(pho)

2022-01-22 08:06:21 UTC MAIN commitmail json YAML

Add some missing struct fields, structs, and constants that are part of the API

(pho)

2022-01-22 08:05:36 UTC MAIN commitmail json YAML

Support the FUSE option -ho

It is supposed to print a help message without the usage
line. Although it is deprecated and has been removed as of FUSE 3.0,
filesystems in the wild still use it.

(pho)

2022-01-22 08:03:32 UTC MAIN commitmail json YAML

Implement some missing functions that are part of the API

(pho)

2022-01-22 08:02:50 UTC MAIN commitmail json YAML

Correct the wrong prototype of fuse_daemonize(3) while retaining ABI compatibility

(pho)

2022-01-22 08:01:51 UTC MAIN commitmail json YAML

2022-01-22 08:01:12 UTC MAIN commitmail json YAML

Change the way how FUSE_*_VERSION are handled

* FUSE_MAKE_VERSION(maj, min) now generates a 3-digits number if the
  version is higher than 3.9. This is needed to support FUSE 3.10 API.

* FUSE_{MAJOR,MINOR}_VERSION no longer have a fixed value but are
  derived from FUSE_USE_VERSION specified by the user code. This is
  needed to support more FUSE filesystems in the wild.

(pho)

2022-01-22 08:00:17 UTC MAIN commitmail json YAML

Implement a dummy pathconf() which always returns EINVAL

(pho)

2022-01-22 07:59:33 UTC MAIN commitmail json YAML

Do not call fuse_operations.getattr() before initializing filesystem

(pho)

2022-01-22 07:58:32 UTC MAIN commitmail json YAML

2022-01-22 07:57:31 UTC MAIN commitmail json YAML

2022-01-22 07:56:16 UTC MAIN commitmail json YAML

2022-01-22 07:54:57 UTC MAIN commitmail json YAML

2022-01-22 07:53:06 UTC MAIN commitmail json YAML

2022-01-22 07:39:22 UTC MAIN commitmail json YAML

lib/librefuse: Implement logging API appeared on FUSE 3.7

(pho)

2022-01-22 07:38:45 UTC MAIN commitmail json YAML

lib/librefuse: Implement logging API appeared on FUSE 3.7

(pho)

2022-01-22 07:35:26 UTC MAIN commitmail json YAML

Allow calling puffs_mount(3) before puffs_daemon(3)

puffs_daemon(3) creates a pipe before forking, and the parent process
waits for the child to either complete puffs_mount(3) or fail. If a
user calls puffs_daemon(3) after puffs_mount(3), the function
deadlocks. While this error-reporting functionality is really a nice
thing to have, deadlocking is not great. If the filesystem has already
been mounted, puffs_mount(3) should just daemonize the process and
return.

This became an issue because fuse_daemonize(3) in FUSE API had no such
requirement and some FUSE filesystems in the wild suffered deadlocks.

(pho)

2022-01-21 21:40:32 UTC MAIN commitmail json YAML

s/compatile/compatible/

(andvar)

2022-01-21 21:39:33 UTC MAIN commitmail json YAML

s/comatible/compatible/

(andvar)

2022-01-21 21:00:26 UTC MAIN commitmail json YAML

when enumerating ports and endpoints treat missing 'reg' properties as zero
ok jmcneill:
Looking at Linux. If port or endpoint are missing a 'reg' property it defaults to 0.
Please make our code do the same.

see https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/graph.yaml

with this my pinebook has a usable console again

(macallan)

2022-01-21 19:22:56 UTC MAIN commitmail json YAML

Don't bother with prom_node_to_devhandle() if we're just forwarding along
our own node; use device_handle(self) instead.

(thorpej)

2022-01-21 19:14:14 UTC MAIN commitmail json YAML

2022-01-21 19:12:28 UTC MAIN commitmail json YAML

2022-01-21 15:55:37 UTC MAIN commitmail json YAML

Replace devhandle_invalidate(), which invalidates a devhandle, with
devhandle_invalid(), which returns an invalid devhandle.

(thorpej)

2022-01-21 15:07:34 UTC MAIN commitmail json YAML

tmux-3.2a out

(wiz)

2022-01-21 08:58:10 UTC MAIN commitmail json YAML

2022-01-20 19:49:51 UTC MAIN commitmail json YAML

dooutput can return if finish() does not find a chile process.

(christos)

2022-01-20 19:24:53 UTC MAIN commitmail json YAML

2022-01-20 19:16:25 UTC MAIN commitmail json YAML

tests/make: refine test for wrong diagnostic line

To trigger the faulty code path, the file where the targets gets its
first command must be included via its relative path.  That was the case
when running 'cd usr.bin/make && make test' but not when running the
tests via ATF.

(rillig)

2022-01-20 14:46:06 UTC MAIN commitmail json YAML

fix bug in the original code I copied from to scan_ffs

(christos)

2022-01-20 14:45:14 UTC MAIN commitmail json YAML

O_CLOEXEC is not a mode :-)

(christos)

2022-01-20 14:44:19 UTC MAIN commitmail json YAML

- use /dev/tty instead of stderr for SIGINFO messages
- use uintmax_t instead of ull
- print fractional percentage to show that we are making progress on large
  disks.

(christos)

2022-01-20 11:46:24 UTC netbsd-9 commitmail json YAML

2022-01-20 11:45:28 UTC netbsd-9 commitmail json YAML

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

usr.sbin/sysinst/net.c: revision 1.40
usr.sbin/sysinst/msg.mi.pl: revision 1.37
usr.sbin/sysinst/msg.mi.fr: revision 1.36
usr.sbin/sysinst/msg.mi.de: revision 1.35
usr.sbin/sysinst/msg.mi.en: revision 1.37
usr.sbin/sysinst/net.c: revision 1.37
usr.sbin/sysinst/net.c: revision 1.38
usr.sbin/sysinst/msg.mi.es: revision 1.31
usr.sbin/sysinst/net.c: revision 1.39

sysinst(8): Add initial support for connecting to Wi-Fi networks
by spawning wpa_supplicant.
Reviewed by martin.

sysinst(8): Avoid asking Wi-Fi questions about non-Wi-Fi devices.

sysinst(8): Add a "data" argument to do_ifreq that is set after the
ifr struct is zeroed.

This allows us to simplify the code by not having 2x socket creation
code for checking whether interfaces are wireless.
sysinst(8): use scan_ssid=1 so hidden wifi networks can be used

(martin)

2022-01-20 11:42:22 UTC netbsd-9 commitmail json YAML

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

sys/dev/acpi/acpi_display.c: revision 1.21

acpiout(4): Work around firmware that doesn't like some brightnesses.

Instead of just asking for cur - 5 or cur + 5, repeatedly ask for
that increment, check whether we actually made progress in that
direction, and if not keep going with another increment, until we hit
the bounds of brightness levels.

I can't find anything in the ACPI spec about this, but my laptop
seems to have trouble with certain levels: 15, 75, 85, 95.  It goes
in all other increments of 5 from 5 to 100, just not those ones --
acts as if the change just never happened, so with the old logic the
brightness up/down would get stuck unable to move in either
direction.

This should have no impact on machines where the first increment
actually takes.

(martin)

2022-01-20 07:30:25 UTC MAIN commitmail json YAML

Add return type of the __SHIFT* macros.  Bump date.

"looks right to me" from mrg@

(skrll)

2022-01-20 03:14:03 UTC MAIN commitmail json YAML

don't 'extern' some other .c file's data, espcially when it's
already in usbhist.h.

(mrg)

2022-01-19 22:10:41 UTC MAIN commitmail json YAML

tests/make: demonstrate wrong location in diagnostic (since 2018-12-22)

When a target has multiple places where commands are defined, the
diagnostics mixed up the filename in some cases.

(rillig)

2022-01-19 13:33:49 UTC MAIN commitmail json YAML

Use spi_compatible_lookup().

(thorpej)

2022-01-19 13:33:11 UTC MAIN commitmail json YAML

Provide a spi_compatible_lookup() function to go along with
spi_compatible_match().

(thorpej)

2022-01-19 12:58:06 UTC MAIN commitmail json YAML

Stash the device_t in spi_softc.

(thorpej)

2022-01-19 10:30:04 UTC MAIN commitmail json YAML

Improve ixv(4)'s some event counters.

- The virtual function's packet counter registers are not cleared on read.
  To solve this problem, <REGNAME>, base_<REGNAME>, last_<REGNAME> and
  saved_reset_<REGNAME> are in the struct ixgbevf_hw_stats and some
  functions use them. However, saved_reset_<REGNAME> is set but never
  referenced. base_<REGNAME> is set and it's only used for
  saved_reset_<REGNAME>, so it's also unused in reality. THERE ARE A LOT
  OF GARBAGE. Remove them.
- Call ixv_init_stats() in ixv_clear_evcnt() to make ifconfig -z ixvN
  work correctly.

(msaitoh)

2022-01-19 10:23:00 UTC MAIN commitmail json YAML

Now that an inline function dereferences it, make sure struct proc
is declared by including sys/proc.h here.

(martin)

2022-01-19 09:30:11 UTC MAIN commitmail json YAML

Try to fix the build.

(martin)

2022-01-19 05:21:44 UTC MAIN commitmail json YAML

2022-01-19 05:05:45 UTC MAIN commitmail json YAML

2022-01-19 01:40:05 UTC MAIN commitmail json YAML

add SIGINFO support.  now you can know how far along the scan is.

(mrg)

2022-01-18 20:43:37 UTC MAIN commitmail json YAML

skip out of memory test; on small machines we run out of swap

(christos)

2022-01-18 20:38:28 UTC MAIN commitmail json YAML

put back more links now that we have them.

(christos)

2022-01-18 20:03:03 UTC netbsd-9 commitmail json YAML

2022-01-18 20:02:23 UTC netbsd-9 commitmail json YAML

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

sys/dev/usb/usb_quirks.c: revision 1.102

Ignore new APC UPS devices when matching uhid devices.

(snj)

2022-01-18 20:00:00 UTC netbsd-9 commitmail json YAML

2022-01-18 19:58:54 UTC netbsd-9 commitmail json YAML

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

sys/dev/usb/usbdevs: revision 1.800

Add a new APC UPS device id.

(snj)

2022-01-18 18:48:53 UTC netbsd-9 commitmail json YAML

2022-01-18 18:48:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #1403):

sys/dev/usb/usb_quirks.c: revision 1.103

Add UQ_HID_IGNORE for the Microchip PICkit2 and 3 programmers.

(martin)

2022-01-18 18:46:21 UTC netbsd-9 commitmail json YAML

2022-01-18 18:45:24 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #1402):

sys/dev/usb/usbdevs: revision 1.801

Add the Microchip PICkit3 programmer

(martin)

2022-01-18 10:06:59 UTC MAIN commitmail json YAML

Update ixv_print_debug_info() to print similar data to ixg(4).

  The old hw.ixvN.debug=1 printed evcnt(9) data. The same values are printed
  by vmstat -e, so it's not worth to print. Remove all of the old output and
  make it similar to ixgbe_print_debug_info().

(msaitoh)

2022-01-18 09:58:40 UTC MAIN commitmail json YAML

Don't expose garbage data of hw.ixvN.debug.

(msaitoh)

2022-01-18 09:27:46 UTC MAIN commitmail json YAML

Don't clear mailbox related counters in ixgbe_upgrade_mbx_params_pf().

(msaitoh)

2022-01-18 09:16:38 UTC MAIN commitmail json YAML

Don't clear mailbox related counters in ixgbe_upgrade_mbx_params_vf().

(msaitoh)

2022-01-18 04:35:49 UTC MAIN commitmail json YAML

Use 64bit for lxon + lxoff.

(msaitoh)

2022-01-18 00:14:20 UTC thorpej-i2c-spi-conf2 commitmail json YAML

2022-01-17 23:12:41 UTC MAIN commitmail json YAML

2022-01-17 22:49:44 UTC MAIN commitmail json YAML

2022-01-17 22:47:43 UTC MAIN commitmail json YAML

2022-01-17 22:27:20 UTC MAIN commitmail json YAML

2022-01-17 22:27:10 UTC MAIN commitmail json YAML

use "non-null" instead of "nonnull" for readability

(wiz)

2022-01-17 20:56:03 UTC MAIN commitmail json YAML

2022-01-17 20:38:49 UTC MAIN commitmail json YAML

2022-01-17 20:10:37 UTC MAIN commitmail json YAML

sdhc: avoid taking adaptive mutex while holding spin mutex

the clock_bus pre- and post- callbacks used in sdhc_bus_clock_ddr()
are called with a spin mutex held, and the new sdhc@acpi ends up
calling into (sleeping) ACPI code, triggering lockdebug assertion.

introduce an adaptive mutex that is held around these callbacks,
and reduce the spin mutex held time in sdhc_bus_clock_ddr().

(mrg)

2022-01-17 20:01:43 UTC MAIN commitmail json YAML

2022-01-17 19:38:14 UTC MAIN commitmail json YAML

Pass the controller devhandle along to the GPIO layer.

(thorpej)

2022-01-17 19:36:54 UTC MAIN commitmail json YAML

2022-01-17 19:34:31 UTC MAIN commitmail json YAML

Minimal hack to pass child devices a devhandle created from the OF
or ACPI "cookie".  Temporary measure until the i2c autoconfiguration
overhaul is merged (which fixes this in a more generic way).

(thorpej)

2022-01-17 19:33:00 UTC MAIN commitmail json YAML

When initializing pins, try to get the default pin name from the
"gpio-line-names" property.  If not present, then fall back on the
default name for the pin from the parent, if there is one.

(thorpej)

2022-01-17 19:12:31 UTC MAIN commitmail json YAML

There is no more vaccess(9)

(christos)

2022-01-17 19:12:01 UTC MAIN commitmail json YAML

section 9 acl related changes

(christos)

2022-01-17 19:08:07 UTC MAIN commitmail json YAML

2022-01-17 18:03:22 UTC MAIN commitmail json YAML

Move the possible optimize_preference values back under the -o flag

(kim)

2022-01-17 17:56:48 UTC MAIN commitmail json YAML

PR/56640: Kimmo Suominen: Correct HISTORY section.

(christos)

2022-01-17 16:33:00 UTC MAIN commitmail json YAML

Re-factor and overhaul the "mcp23s17gpio" driver as "mcpgpio", and
add support for 8-bit and I2C variants of the chip:
- MCP23008 / MCP23S08: 8-bit (I2C / SPI)
- MCP23017 / MCP23S17: 16-bit (I2C / SPI)
- MCP23018 / MCP23S18: 16-bit (I2C / SPI), open-drain outputs

The MCP23x17 and MCP23x18 are essentially identical, software-wise; we
merely report different GPIO pin capabilities (no push-pull output for
MCP23x18).  Also, remove the tri-state capability that was previously
advertised by the old version of this driver; these chips have no way
to put the pin into a HI-Z mode.

All 3 I2C versions are supported, but the SPI front-end still only
supports the MCP23S17 for now (SPI autoconfiguration needs an overhaul).

mcp23s17gpio(4) remains present as a link to the new mcpgpio(4) man page.

XXX Still to-do: FDT integration, interrupt suppoort.

(File missed in prior commit.)

(thorpej)

2022-01-17 16:31:24 UTC MAIN commitmail json YAML

Re-factor and overhaul the "mcp23s17gpio" driver as "mcpgpio", and
add support for 8-bit and I2C variants of the chip:
- MCP23008 / MCP23S08: 8-bit (I2C / SPI)
- MCP23017 / MCP23S17: 16-bit (I2C / SPI)
- MCP23018 / MCP23S18: 16-bit (I2C / SPI), open-drain outputs

The MCP23x17 and MCP23x18 are essentially identical, software-wise; we
merely report different GPIO pin capabilities (no push-pull output for
MCP23x18).  Also, remove the tri-state capability that was previously
advertised by the old version of this driver; these chips have no way
to put the pin into a HI-Z mode.

All 3 I2C versions are supported, but the SPI front-end still only
supports the MCP23S17 for now (SPI autoconfiguration needs an overhaul).

mcp23s17gpio(4) remains present as a link to the new mcpgpio(4) man page.

XXX Still to-do: FDT integration, interrupt suppoort.

(thorpej)

2022-01-17 14:00:47 UTC MAIN commitmail json YAML

s/0xffffffff/UINT32_MAX/ in bus_dmatag_subregion call

(skrll)

2022-01-17 11:20:00 UTC MAIN commitmail json YAML

If the calling process is running under linux emulation, make /proc/xxx/fd/
return only symlinks pointing to the original file in the filesystem,
instead of a hard link. This matches the linux behavior, and some
linux programs relies on it (they unconditionally call readlink() on
/proc/xxx/fd/yy and don't deal with it returning EINVAL).
Proposed on tech-kern@ in
http://mail-index.netbsd.org/tech-kern/2022/01/11/msg027877.html

(bouyer)

2022-01-17 11:12:28 UTC MAIN commitmail json YAML

Add UQ_HID_IGNORE for the Microchip PICkit2 and 3 programmers.

(bouyer)

2022-01-17 11:11:42 UTC MAIN commitmail json YAML

Regen: Add the Microchip PICkit3 programmer

(bouyer)

2022-01-17 11:09:57 UTC MAIN commitmail json YAML

Add the Microchip PICkit3 programmer

(bouyer)

2022-01-17 08:47:04 UTC MAIN commitmail json YAML

etcupdate: fix error message for unimplemented option

noted by rudolf on source-changes-d

(lukem)

2022-01-17 08:45:10 UTC MAIN commitmail json YAML

Fix ierror counting again.

  ixgbe.c rev. 1.298 added total values kept in evcnt(9) instead of
  incremental values read from registers. Fix it.

(msaitoh)

2022-01-17 08:30:57 UTC MAIN commitmail json YAML

expat 2.4.3 out

(wiz)

2022-01-16 20:43:20 UTC MAIN commitmail json YAML

wg(4): Limit the size of ifdrv requests.

Avoids potential integer overflow or kernel memory exhaustion.

Reported by Thomas Leroy a while back.

(riastradh)

2022-01-16 20:25:37 UTC MAIN commitmail json YAML

xhci(4): Fix citation in comment.

4.15.2.1 is device-initiated resume, but we are doing host-initiated.

No functional change.

(riastradh)

2022-01-16 20:25:18 UTC MAIN commitmail json YAML

xhci(4): Fix copypasto in resume error message.

(riastradh)

2022-01-16 20:24:34 UTC MAIN commitmail json YAML

tpm(4): Fix suspend and rework I/O transaction lock.

Use sc->sc_lock over individual I/O transactions, not open/close of
the whole device.  This way there is a bounded time before the tpm is
unbusied even if userland is getting at it, so userland can't hold up
suspend indefinitely.  Of course, the tpm might be suspended and
resumed in the middle of the user's session this way -- tough.

This limits the response buffer to 1024 bytes -- which is already a
bit hefty to have on the stack (but it's probably not very deep on
the stack from userland so maybe not a big deal).  If it turns out we
need more, we can use kmem to allocate a buffer on the heap, with the
caveat that it might fail.  This is necessary so that suspend doesn't
block indefinitely on uiomove in tpmread.

(riastradh)

2022-01-16 19:04:00 UTC MAIN commitmail json YAML

If -e is specified exit with the exit status of the child process in
a shell-like format (nabijaczleweli)

(christos)

2022-01-16 18:16:07 UTC MAIN commitmail json YAML

Ensure make gets -r

Apart from ensuring no influence from /usr/share/mk
when bmake is built for the first time on a non-BSD
system, sys.mk will not be found

(sjg)

2022-01-16 10:52:19 UTC MAIN commitmail json YAML

libpam: remove stray semicolon

No binary change.

(rillig)

2022-01-16 10:50:02 UTC MAIN commitmail json YAML

aarch64/pmap: remove stray semicolon

No binary change.

(rillig)

2022-01-16 10:45:17 UTC MAIN commitmail json YAML

lagg: remove stray semicolon

No binary change.

(rillig)

2022-01-16 10:38:59 UTC MAIN commitmail json YAML

tests/libc/inet: remove stray semicolons

No binary change.

(rillig)

2022-01-16 10:30:45 UTC MAIN commitmail json YAML

libcurses: remove unreachable statements

Found by lint.

No binary change.

(rillig)

2022-01-16 10:11:38 UTC MAIN commitmail json YAML

tests/lint: document why accidental double semicolons are hard to detect

(rillig)

2022-01-16 09:41:28 UTC MAIN commitmail json YAML

make: condense code in Parse_IsVar

No functional change.

(rillig)

2022-01-16 09:38:04 UTC MAIN commitmail json YAML

tests/make: document more edge cases for the assignment modifier ':sh'

(rillig)

2022-01-16 08:40:31 UTC MAIN commitmail json YAML

2022-01-15 23:21:34 UTC MAIN commitmail json YAML

lint: warn about unreachable null statements

This warning flags the second semicolon of 'return;;' as being
unreachable.  It does not warn about these superfluous semicolons in
general though.

Seen in usr.bin/make/bmake_malloc.c.

(rillig)

2022-01-15 22:18:04 UTC MAIN commitmail json YAML

make: remove extra semicolon after statement

Lint will complain about this very soon.

No binary change.

(rillig)

2022-01-15 22:12:35 UTC MAIN commitmail json YAML

tests/lint: demonstrate undetected double semicolon

In a statement-list like 'return 0;;', the second semicolon is a
separate, unreachable statement.

(rillig)

2022-01-15 20:16:55 UTC MAIN commitmail json YAML

tests/make: fix comment in test

(rillig)

2022-01-15 19:38:05 UTC MAIN commitmail json YAML

desktop: update some details

The default WM was changed to ctwm by nia@ some time ago, remove that
item. While here, update the list of DEs that are available for NetBSD
via pkgsrc.

(gutteridge)

2022-01-15 19:34:11 UTC MAIN commitmail json YAML

dk(4): Omit redundant microoptimization around cv_broadcast.

cv_broadcast already has a fast path for the no-waiter case.

(riastradh)

2022-01-15 19:34:07 UTC MAIN commitmail json YAML

make: replace Var_Value with Var_Exists where applicable

The latter function already existed in 1993, no idea why it was not
used.

No functional change.

(rillig)

2022-01-15 19:33:59 UTC MAIN commitmail json YAML

sys/fs/fdesc: Delete silly vnop #define aliases.

(riastradh)

2022-01-15 19:13:08 UTC MAIN commitmail json YAML

make: use islower for parsing directives

None of the directives has an uppercase letter, so there is no need to
test for it.

No functional change.

(rillig)

2022-01-15 19:05:23 UTC MAIN commitmail json YAML

make: remove unnecessary functions for expanding variable names

In meta mode, the affected variable patterns do not contain a '$'.

Outside of meta mode, Global_SetExpand was only called a single time, so
inline that call.

No functional change.

(rillig)

2022-01-15 18:45:13 UTC MAIN commitmail json YAML

sun4v: update TODO with T2000 device configuration state

(palle)

2022-01-15 18:34:41 UTC MAIN commitmail json YAML

2022-01-15 18:02:33 UTC MAIN commitmail json YAML

2022-01-15 17:54:01 UTC MAIN commitmail json YAML

2022-01-15 17:33:42 UTC MAIN commitmail json YAML

2022-01-15 16:05:19 UTC MAIN commitmail json YAML

2022-01-15 15:54:40 UTC MAIN commitmail json YAML

acpi: sdhc: Read caps2 even if sdhci-caps{,-mask} doesn't touch the bits

SDHC_FLAG_HOSTCAPS means that the driver has to supply both caps and caps2
values.

(jmcneill)

2022-01-15 15:37:15 UTC MAIN commitmail json YAML

PR/56629: Andreas Gustafsson: Update documentation about the filter head
maintainance functions.

(christos)

2022-01-15 14:49:43 UTC MAIN commitmail json YAML

acpi: sdhc: Add support for RK356x eMMC controller.

RK356x has a DesignWare eMMC controller that is somewhat SDHCI compliant,
with one major problem -- the clock divisor doesn't actually work. To
change the clock card on Rockchip SoCs, the clock frequency needs to be
adjusted in the Clock & Reset Unit (CRU) directly.

The RK356x UEFI implementation introduces a DSM that allows drivers to
request firmware assistance in setting the card clock rate, for instances
like this where the divisor is broken.

From the UEFI README:

  Function 1: Set Card Clock

  The _DSM control method parameters for the Set Card Clock function are
  as follows:

  Arguments

  * Arg0: UUID = 434addb0-8ff3-49d5-a724-95844b79ad1f
  * Arg1: Revision = 0
  * Arg2: Function Index = 1
  * Arg3: Target card clock rate in Hz.

  Return

  The actual card clock rate in Hz. Will be less than or equal to the
  target clock rate. Returns 0 if the target clock rate could not be set.

(jmcneill)

2022-01-15 14:40:33 UTC MAIN commitmail json YAML

acpi: Add helper for querying DSM function 0.

(jmcneill)

2022-01-15 14:40:22 UTC MAIN commitmail json YAML

acpi: Add helper for querying DSM function 0.

(jmcneill)

2022-01-15 14:33:36 UTC MAIN commitmail json YAML

sdhc: High speed support capability flag applies to eMMC too.

(jmcneill)

2022-01-15 14:22:03 UTC MAIN commitmail json YAML

tests/lint: expect complete messages in feature tests

Previously, the tests contained many comments like /* expect: 123 */,
which were useless to a casual reader since nobody is expected to learn
lint's message IDs by heart.  Replace these with the complete
diagnostics, to show what lint is complaining about.

The tests named msg_*.c have been left unmodified since they mention the
full message text in their header comment.

No functional change.

(rillig)

2022-01-15 12:35:18 UTC MAIN commitmail json YAML

2022-01-15 10:59:40 UTC MAIN commitmail json YAML

Add Some definitions from AMD APM:

- CPUID Fn80000001 %ecx bit 30 AddrMaskExt.
- CPUID Fn80000008 %ebx bit 13 INT_WBINVD.
- CPUID Fn80000008 %ebx bit 19 IbrsSameMode.
- CPUID Fn80000008 %ebx bit 20 EferLmsleUnsupported.
- CPUID Fn80000008 %ebx bit 28 PSFD.
- CPUID Fn80000008 %edx bit 30 as "B30". Not documented.
- CPUID Fn8000001f %eax bit  8 SecureTSC.
- CPUID Fn8000001f %eax bit 24 VmsaRegProt.
- Tested by nonaka@.

(msaitoh)

2022-01-15 10:55:53 UTC MAIN commitmail json YAML

2022-01-15 10:55:06 UTC MAIN commitmail json YAML

2022-01-15 10:38:56 UTC MAIN commitmail json YAML

2022-01-15 10:32:32 UTC MAIN commitmail json YAML

Add 'mach cpuinfo' support

(skrll)

2022-01-15 10:09:15 UTC MAIN commitmail json YAML

Whitespace. No functional change.

(msaitoh)

2022-01-15 09:58:23 UTC MAIN commitmail json YAML

Move CPUID_CAPEX_FLAGS next to %eax because it's for %eax.

(msaitoh)

2022-01-15 09:55:14 UTC MAIN commitmail json YAML

No functional change.

- Modify comment. Add comment. Fix typo. Mainly taken from dragonfly.
- Use __BIT().

(msaitoh)

2022-01-15 09:08:57 UTC MAIN commitmail json YAML

make: remove trailing whitespace in meta.c

(rillig)

2022-01-15 08:56:41 UTC MAIN commitmail json YAML

2022-01-15 08:14:37 UTC MAIN commitmail json YAML

2022-01-15 07:39:04 UTC MAIN commitmail json YAML

The translations that need invalidation are always last level so remove
the (dubious) logic around tracking the level.  The "any level" TLB
invalidation maintenance operation are used, but this may change after
further testing.

before
======
1661.0u 420.2s 2:53.82 1197.3% 231+29k 10+33918io 102pf+0w
1646.8u 425.2s 2:52.96 1198.0% 232+29k 1+33937io 49pf+0w
1647.9u 425.7s 2:52.58 1201.6% 232+29k 0+33940io 32pf+0w

After
=====
1602.5u 420.8s 2:49.09 1196.6% 238+30k 24+33893io 54pf+0w
1600.7u 421.3s 2:51.53 1178.8% 238+30k 1+33914io 33pf+0w
1597.5u 424.3s 2:50.46 1186.1% 238+30k 0+33915io 17pf+0w

LGTM from ryo@

(skrll)