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

2024-05-10 04:13:08 UTC Now

2024-02-08 18:14:02 UTC MAIN commitmail json YAML

PR/57910: Jan-Benedict Glaw: Fix typo preventing reproducible builds

(christos)

2024-02-08 18:10:34 UTC MAIN commitmail json YAML

PR/57909: Jan-Benedict Glaw: Don't include (build) timestamp when doing a
reproducible build

(christos)

2024-02-08 17:57:54 UTC MAIN commitmail json YAML

2024-02-08 11:31:00 UTC MAIN commitmail json YAML

2024-02-08 10:30:26 UTC MAIN commitmail json YAML

s/Reciever/Receiver/ in comment.

(andvar)

2024-02-08 10:05:01 UTC MAIN commitmail json YAML

Regen with typo fixed.

Regeneration script doesn't seem to react to description changes only, thus
regenerated it twice by changing device name locally and putting it back
to original value.

(andvar)

2024-02-08 09:59:35 UTC MAIN commitmail json YAML

igc: Add missing igc_check_for_link() call.

It's required to set the collision distance, configure flow control
from the negotiated result and set the LTR thresholds.
With this change, ifconfig igcN show the flow control status correctly.

(msaitoh)

2024-02-08 07:13:10 UTC MAIN commitmail json YAML

Some fixes from Roland Illig
- fix a locking bug
- '\n' at the end of error messages

(skrll)

2024-02-08 02:54:13 UTC MAIN commitmail json YAML

Document the -d posix-datetime arg variation, to allow specifying
fractional seconds.  (Alternate ways to achieve that for the other
ways of specifying the date and time may be forthcoming in a future
update).

Also add a warning about the (still far) future likely change of
the interpretation of 2 digit years (the coming POSIX standard
contains a similar warning).

While here, clean up wording, some macro usage, etc etc etc...

(kre)

2024-02-08 02:54:07 UTC MAIN commitmail json YAML

Check that mktime() (or timegm() the one time it is used) do not
alter any of the material fields of the struct tm that was handed
to it.  If any were altered, then the time string passed in was
not a valid time representation, and so should be rejected.

This one is not an invisible change, it prevents use of things like
"-t 202402300000"  (which previously would have been interpreted as
"-t 202403010000" - the day after the 29th of Feb in 2024).

I believe this is an improvement however, and in line with the
general intent that if you specify a date and time, that exact
date and time is what touch should be using.  It does mean that
specifying "60" for the seconds field is almost guaranteed to
fail on any POSIX system, as leap seconds simply don't exist
there (on a non-POSIX-conforming system that uses leap seconds,
the :60 should work, if specified with the correct date and time
at which the leap second actually occurs).

The one exception is when parsedate(3) is used, as that does not
do this check (which allows things like "-1 day" on the 1st of
a month to work).

(This is the last of this sequence of updates to touch.c, an
update to touch.1 follows).

(kre)

2024-02-08 02:53:53 UTC MAIN commitmail json YAML

Properly implement the POSIX format -d option.

Previously we have hacked that using parsedate(3) - but parsedate()
returns a time_t and consequently while it "handles" fractional seconds,
all that meant (all it really can mean) is that they're ignored.

The POSIX spec expects that (at least if the filesystem supports them)
fractional seconds can be set using the -d option.

Handle that by first attempting to parse the -d arg as a posix format
date-time string (using a reasonably strict parser), and if that fails,
then fall back on parsedate(3) to parse the arg.

If the posix format parse succeeds, the result will be the same as
parsedate(3) would return for the same string - except any fractional
seconds will be handled properly.  If it fails, then nothing changes
from what we currently do.

Note the POSIX string is
YYYY-MM-DDThh:mm:ss[.frac][Z]
where YYYY is (at least) 4 digits (leading 0's are acceptable if
you really must!) all the MM DD hh mm ss fields are exactly 2
digits, T is either 'T' or ' ', '.' is either itself, or ',',
and 'frac' is one or more digits.  Z (if given) is 'Z'.  The
[.,]frac and Z fields are optional.  Specify a time in a
slight shorthand like 2024-2-8T7:44:20  and the POSIX parse
will fail, leaving parsedate() to handle that (which it should).
But any fractional seconds which were given would be ignored.

Doc update coming - note the doc will call the YYYY field CCYY
instead, that's just a convenience to make other parts of what
is there make more sense - it is still one 4 (or more) digit field.

This should be an almost invisible change.

(kre)

2024-02-08 02:53:40 UTC MAIN commitmail json YAML

Sprinkle come const - but not too much of a good thing.

NFCI

(kre)

2024-02-08 02:53:28 UTC MAIN commitmail json YAML

Parameterise the "if year < 69 it is 20xx and if >=69 it is 19xx" rule
to make it simpler to (eventually, many years hence) to change that rule
to be "if year is < NN it is 21xx and if >= NN it is 20xx" instead.

Avoid comparing a time_t to -1 directly, as time_t might be unsigned.
Instead define NO_TIME as ((time_t)-1) and compare with that instead.
This makes no difference at all when time_t is signed (as it is on
NetBSD).

Use "ss" rather than "SS" as the seconds indicators (in messages)
to match with hh (hours) and mm (minutes) rather than looking like
some relation to YY (year) MM (month) and DD (day).  Why this was
ever written as SS is beyond me, but it has been that way forever.
(doc update will follow).

Minor improvement to the error message if the arg to a -t option
is unable to be parsed correctly.

NMFCI (No meaningful...)

(kre)

2024-02-08 02:53:13 UTC MAIN commitmail json YAML

KNF (space after keyword, and 80 column police).

NFCI

(This is the first of a series of changes to be committed
in rapid sequence).

(kre)

2024-02-07 22:59:28 UTC MAIN commitmail json YAML

tests/lint: sync test for integer constant type on ILP32 platforms

The test was broken since lex.c 1.214 from today.

(rillig)

2024-02-07 18:01:48 UTC MAIN commitmail json YAML

xf86-input-ws: print log message about touchpad scrolling only once.

(rhialto)

2024-02-07 17:17:59 UTC MAIN commitmail json YAML

2024-02-07 17:03:35 UTC MAIN commitmail json YAML

Use <space><tab> consistently

(skrll)

2024-02-07 09:18:20 UTC MAIN commitmail json YAML

expat 2.6.0 out

(wiz)

2024-02-07 08:00:37 UTC MAIN commitmail json YAML

lint: use consistent variable names, reduce code for reading a byte

No functional change.

(rillig)

2024-02-07 07:42:50 UTC MAIN commitmail json YAML

lint: unify rules for determining the type of an integer constant

Previously, in traditional C mode, large decimal numbers were treated as
unsigned, which disagreed with the book from 1978.

(rillig)

2024-02-07 07:21:22 UTC MAIN commitmail json YAML

make: remove redundant comments

No functional change.

(rillig)

2024-02-07 07:12:17 UTC MAIN commitmail json YAML

add turbosparc to the list of known sparc machines.

reported by Ken Wellsch on port-sparc.

config.guess knows that this CPU is a turbosparc, and that's what
passes "turbosparc" not "sparc" further down.

XXX: pullup-10.

(mrg)

2024-02-07 06:43:02 UTC MAIN commitmail json YAML

make: remove unneeded conditional-compilation toggles

The toggles INCLUDES, LIBRARIES, POSIX, SYSVINCLUDE, SYSVVARSUB,
GMAKEEXPORT and SUNSHCMD are no longer needed, they were unconditionally
set.

The toggle NO_REGEX was configurable from the command line, but
disabling it would result in various error messages about the unknown
':C' modifier.

OK sjg@.

(rillig)

2024-02-07 04:25:58 UTC MAIN commitmail json YAML

2024-02-07 04:20:29 UTC MAIN commitmail json YAML

2024-02-07 04:02:36 UTC MAIN commitmail json YAML

2024-02-07 04:00:11 UTC MAIN commitmail json YAML

2024-02-06 23:57:41 UTC MAIN commitmail json YAML

avoid different struct type problem.

(mrg)

2024-02-06 22:47:21 UTC MAIN commitmail json YAML

lint: tab-align message numbers in err.c

By replacing block comments with end-of-line comments, the comments take
up less space and thus no longer require to be indented by 6 spaces.

The messages and their comments are used in 3 places: the manual page
lint.7, the err-msgs.h header for debug mode, and check-msgs.lua to
verify that the comments above the message IDs correspond to the actual
messages.

No functional change.

(rillig)

2024-02-06 21:28:16 UTC MAIN commitmail json YAML

lint.7: remove implementation details from message list

From a user's perspective, it's irrelevant whether a lint message is
generated using '%s' or '%.*s'; same for the integer widths, as they are
platform-dependent.

(rillig)

2024-02-06 20:25:11 UTC MAIN commitmail json YAML

check the right variable

(christos)

2024-02-06 12:38:53 UTC netbsd-10 commitmail json YAML

2024-02-06 12:37:08 UTC netbsd-10 commitmail json YAML

2024-02-06 12:34:48 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #588):

sys/dev/pci/ppb.c: revision 1.75

ppb(4): Print out PCIe Gen5 link speed correctly

(martin)

2024-02-06 12:33:18 UTC netbsd-10 commitmail json YAML

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

sys/arch/evbppc/wii/dev/wiifb.c: revision 1.6

wiifb: Misc fixes.

Add a 16-pixel border on the top and bottom of the FB, and fix an error
path to properly blink the slot LED when the current video mode is not
supported.

(martin)

2024-02-06 12:30:23 UTC netbsd-10 commitmail json YAML

Note changes, requested by kre in ticket #586:

doc/3RDPARTY (manual edit)

Note tzdata update to 2024a

(martin)

2024-02-06 12:22:42 UTC netbsd-10 commitmail json YAML

Pull up the following, requested by kre in ticket #586:

external/public-domain/tz/dist/Makefile        up to 1.1.1.38
external/public-domain/tz/dist/NEWS            up to 1.1.1.45
external/public-domain/tz/dist/TZDATA_VERSION  up to 1.37
external/public-domain/tz/dist/africa          up to 1.1.1.33
external/public-domain/tz/dist/asia            up to 1.12
external/public-domain/tz/dist/australasia      up to 1.9
external/public-domain/tz/dist/checknow.awk    up to 1.1.1.2
external/public-domain/tz/dist/etcetera        up to 1.1.1.8
external/public-domain/tz/dist/europe          up to 1.1.1.39
external/public-domain/tz/dist/leap-seconds.list up to 1.7
external/public-domain/tz/dist/leapseconds      up to 1.7
external/public-domain/tz/dist/leapseconds.awk  up to 1.1.1.14
external/public-domain/tz/dist/northamerica    up to 1.1.1.35
external/public-domain/tz/dist/southamerica    up to 1.1.1.25
external/public-domain/tz/dist/theory.html      up to 1.1.1.19
external/public-domain/tz/dist/version          up to 1.12
external/public-domain/tz/dist/zishrink.awk    up to 1.1.1.9
external/public-domain/tz/dist/zonenow.tab      up to 1.1.1.2

Updated tzdata to 2024a

(martin)

2024-02-06 12:18:56 UTC netbsd-10 commitmail json YAML

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

sys/dev/usb/ehcireg.h: revision 1.38
sys/dev/usb/ehci.c: revision 1.321

Fix DMA sync flags in ehci_append_sqtd

Ensure proper alignment/padding of EHCI hardware descriptors.

These descriptor structs are embedded in structs that contain additional
context for software. With a non cache coherent device and non-padded
descriptors, the device may issue a read/modify/write past the end of
the descriptor, clobbering software state in the process. This was the
root cause of multiple crashes on evbppc with a non cache coherent EHCI.

(martin)

2024-02-06 12:16:26 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #584):

usr.bin/rpcinfo/rpcinfo.c: revision 1.38

Use IANA registerd service name "sunrpc" instead of "rpcbind".

(martin)

2024-02-05 23:48:35 UTC MAIN commitmail json YAML

wiifb: Misc fixes.

Add a 16-pixel border on the top and bottom of the FB, and fix an error
path to properly blink the slot LED when the current video mode is not
supported.

(jmcneill)

2024-02-05 23:11:23 UTC MAIN commitmail json YAML

2024-02-05 23:07:42 UTC MAIN commitmail json YAML

Ensure proper alignment/padding of EHCI hardware descriptors.

These descriptor structs are embedded in structs that contain additional
context for software. With a non cache coherent device and non-padded
descriptors, the device may issue a read/modify/write past the end of
the descriptor, clobbering software state in the process. This was the
root cause of multiple crashes on evbppc with a non cache coherent EHCI.

(jmcneill)

2024-02-05 23:04:18 UTC MAIN commitmail json YAML

Fix DMA sync flags in ehci_append_sqtd

(jmcneill)

2024-02-05 22:18:18 UTC MAIN commitmail json YAML

2024-02-05 22:08:05 UTC MAIN commitmail json YAML

2024-02-05 21:57:00 UTC MAIN commitmail json YAML

Notre tzdata update to 2024a

(kre)

2024-02-05 21:52:39 UTC MAIN commitmail json YAML

2024-02-05 21:46:07 UTC MAIN commitmail json YAML

2024-02-05 21:39:52 UTC MAIN commitmail json YAML

2024-02-05 21:20:09 UTC MAIN commitmail json YAML

s/formated/formatted/ in comment and distrib sets descriptions.

(andvar)

2024-02-04 21:42:24 UTC MAIN commitmail json YAML

mention if we are prunning.

(christos)

2024-02-04 20:50:30 UTC MAIN commitmail json YAML

2024-02-04 20:47:26 UTC MAIN commitmail json YAML

2024-02-04 18:52:36 UTC MAIN commitmail json YAML

2024-02-04 18:47:27 UTC MAIN commitmail json YAML

s/interrrupt/interrupt/ in comment and editline(3) man page.

(andvar)

2024-02-04 18:44:54 UTC MAIN commitmail json YAML

getrawpartition(3): reword to clarify return value, use .Pq

"'a' == 0" is, stricly speaking false, and since 'a' is an int, it's
not immediately clear if it's 'a' or 0 that is returned.  Try to
clarify this.

(uwe)

2024-02-04 16:19:12 UTC MAIN commitmail json YAML

2024-02-04 11:29:46 UTC netbsd-10 commitmail json YAML

2024-02-04 11:20:15 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jdolecek in ticket #583):

sys/kern/uipc_socket.c: revision 1.308
sys/kern/uipc_syscalls.c: revision 1.211
sys/sys/socketvar.h: revision 1.168
sys/net/if_gre.c: revision 1.185

fix PIPE_SOCKETPAIR variant of pipe1() to apply correctly the 'flags'
passed when called via pipe2(2), fixing repeatable process hang during
compilation with 'gcc -pipe'

refactor fsocreate() to return the new socket and file pointers,
expect the caller to call fd_affix() once initialization is fully complete
use the new fsocreate() to replace the duplicate open-coded 'flags' handling
in makesocket() used for socketpair(2), and in the PIPE_SOCKETPAIR pipe1()
this also fixes lib/libc/sys/t_pipe2 pipe2_cloexec test to succeed
on PIPE_SOCKETPAIR kernel

fixes PR kern/55690

(martin)

2024-02-04 11:09:44 UTC netbsd-10 commitmail json YAML

2024-02-04 11:07:41 UTC netbsd-10 commitmail json YAML

Pull up the following, requested by mrg in ticket #582:

usr.bin/gzip/gzip.1                            up to 1.32
usr.bin/gzip/gzip.c                            up to 1.122
usr.bin/gzip/unlz.c                            up to 1.8
usr.bin/gzip/unpack.c                          up to 1.4

Sync usr.bin/gzip to HEAD to fix a few minor issues, including
PR 57858 and PR 57855.

(martin)

2024-02-04 11:04:11 UTC netbsd-10 commitmail json YAML

Apply patch, requested by tsutsui in ticket #581:

doc/CHANGES (apply patch)

Sync doc/CHANGES with doc/CHANGES.prev in HEAD.

(martin)

2024-02-04 10:59:54 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #580):

distrib/utils/embedded/files/creds_msdos: revision 1.6

properly quote arguments.

(martin)

2024-02-04 10:03:10 UTC MAIN commitmail json YAML

2024-02-04 09:56:24 UTC MAIN commitmail json YAML

make: in parse-only mode, don't evaluate modifiers

Previously, the ':S', ':ts', ':tA' and ':from=to' modifiers were
evaluated in parse-only mode, unnecessarily.  This is only noticeable
when an indirect modifier is evaluated in parse-only mode, which is
another bug that will be fixed in a follow-up commit.

(rillig)

2024-02-04 09:29:50 UTC MAIN commitmail json YAML

tests/make: extend test for wrong evaluation in parse-only mode

(rillig)

2024-02-04 08:51:57 UTC MAIN commitmail json YAML

tests/make: indirect modifiers are evaluated in parse-only mode

Found by sjg@.

(rillig)

2024-02-04 05:54:21 UTC MAIN commitmail json YAML

note this documents bozohttpd 20240126.

(mrg)

2024-02-04 05:43:07 UTC MAIN commitmail json YAML

2024-02-04 00:16:59 UTC MAIN commitmail json YAML

PR/57904: Ricardo Branco: Mask file permissions we get from mount_ntfs
-m option

(christos)

2024-02-03 22:40:29 UTC MAIN commitmail json YAML

bump copyright and version.

(mrg)

2024-02-03 22:39:27 UTC MAIN commitmail json YAML

add checks for id and mask in the update case (thanks hannken)

(christos)

2024-02-03 21:25:03 UTC MAIN commitmail json YAML

Add entries added to CHANGES in netbsd-10 but missed here.

(tsutsui)

2024-02-03 21:00:45 UTC MAIN commitmail json YAML

Note several visible changes pulled up to netbsd-10 branch.

- X.org server on newsmips
- gas(1) fix for MIPS1
- X.org server on vax smg(4)

(tsutsui)

2024-02-03 20:38:50 UTC MAIN commitmail json YAML

Move entries pulled up to netbsd-10 from CHANGES to CHANGES.prev.

(tsutsui)

2024-02-03 20:10:11 UTC MAIN commitmail json YAML

lint: warn about short octal escape followed by '8' or '9'

These mistakes is typically found in snprintb format directives but is
probably a typo everywhere else as well.

(rillig)

2024-02-03 19:37:02 UTC MAIN commitmail json YAML

2024-02-03 19:25:16 UTC MAIN commitmail json YAML

2024-02-03 19:18:36 UTC MAIN commitmail json YAML

tests/lint: extend tests for hexadecimal character escapes

(rillig)

2024-02-03 19:05:15 UTC MAIN commitmail json YAML

fix PIPE_SOCKETPAIR variant of pipe1() to apply correctly the 'flags'
passed when called via pipe2(2), fixing repeatable process hang during
compilation with 'gcc -pipe'

refactor fsocreate() to return the new socket and file pointers,
expect the caller to call fd_affix() once initialization is fully complete

use the new fsocreate() to replace the duplicate open-coded 'flags' handling
in makesocket() used for socketpair(2), and in the PIPE_SOCKETPAIR pipe1()

this also fixes lib/libc/sys/t_pipe2 pipe2_cloexec test to succeed
on PIPE_SOCKETPAIR kernel

fixes PR kern/55690

(jdolecek)

2024-02-03 18:58:05 UTC MAIN commitmail json YAML

lint: allow hexadecimal character escapes up to UINT_MAX

Previously, any value larger than INT_MAX was regarded as negative and
thus terminated the loop around get_escaped_char.

(rillig)

2024-02-03 18:45:50 UTC MAIN commitmail json YAML

need the new args pointer...

(christos)

2024-02-03 18:44:43 UTC MAIN commitmail json YAML

fix MNT_UPDATE (thanks hannken)

(christos)

2024-02-03 17:38:22 UTC MAIN commitmail json YAML

Provide backwards compatibility (pointed out by hannken)

(christos)

2024-02-03 16:35:10 UTC MAIN commitmail json YAML

Misc cleanup.

- move function declarations after struct declarations and
  before global variables
- sort function declarations per actual implementation
- some KNF

No functional change.

(tsutsui)

2024-02-03 16:21:25 UTC MAIN commitmail json YAML

Make local variables static.

(tsutsui)

2024-02-03 16:18:10 UTC MAIN commitmail json YAML

Misc cleanup.

- move function declarations after struct declarations and
  before global variables
- sort function declarations per actual implementation
- explicitly denote 'static' for static functions
- some KNF

No functional change (though gcc generates different binary).

(tsutsui)

2024-02-03 15:47:44 UTC MAIN commitmail json YAML

sync usage with man page

(wiz)

2024-02-03 15:28:01 UTC netbsd-10 commitmail json YAML

2024-02-03 15:26:35 UTC MAIN commitmail json YAML

cd9660_mountroot: must initialize new args "fmask" and "dmask".

(hannken)

2024-02-03 14:34:45 UTC netbsd-10 commitmail json YAML

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

etc/etc.vax/ttys: revision 1.11

Use "wsvt25" rather than "sun" for (commented out) wscons tty lines.

Note historically vax port seems to use "ttyw?" rather than common "ttyE?"
for wscons (wsdisplay) tty devices in ttys(5).

No particular comment on port-vax@:
https://mail-index.netbsd.org/port-vax/2024/01/thread1.html#004828

(martin)

2024-02-03 14:33:15 UTC netbsd-10 commitmail json YAML

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

etc/etc.vax/MAKEDEV.conf: revision 1.20

Make sure to create wscons devices on the default "MAKEDEV all" target.
Necessary to make the X.org server work on the default installation.

Proposed on port-vax@, and ok'ed by mrg@:
https://mail-index.netbsd.org/port-vax/2024/01/thread1.html#004828

(martin)

2024-02-03 14:31:38 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #577):

bin/sh/jobs.c: revision 1.119

PR bin/57894

For jobs -p for a non-job-control job, avoid just printing 0 (as
there is no process group pid) and instead output what we used to,
the pid of one of the processes in the job (usually the right one!)

(martin)

2024-02-03 14:28:16 UTC netbsd-8 commitmail json YAML

2024-02-03 14:27:05 UTC netbsd-8 commitmail json YAML

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

sys/dev/hdaudio/hdafg.c: revision 1.29

ignore NULL for hdaudio_audiodev in hdafg_freem

also guard against NULL in ad_{capture,playback}
observed during shutdown on Lenovo W510

(martin)

2024-02-03 14:26:27 UTC netbsd-9 commitmail json YAML

2024-02-03 14:24:38 UTC netbsd-9 commitmail json YAML

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

sys/dev/hdaudio/hdafg.c: revision 1.29

ignore NULL for hdaudio_audiodev in hdafg_freem

also guard against NULL in ad_{capture,playback}
observed during shutdown on Lenovo W510

(martin)

2024-02-03 14:23:33 UTC netbsd-10 commitmail json YAML

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

sys/dev/hdaudio/hdafg.c: revision 1.29

ignore NULL for hdaudio_audiodev in hdafg_freem

also guard against NULL in ad_{capture,playback}
observed during shutdown on Lenovo W510

(martin)

2024-02-03 14:17:03 UTC netbsd-10 commitmail json YAML

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

sys/dev/pci/agp_i810.c: revision 1.126

agp_i810(4): Use ipi(9) for chipset flush on all CPUs, not xcall(9).

i915 now calls into this with a spin lock held, so we have to use
ipi(9), which spin-waits for the other CPUs to complete, rather than
xcall(9), which may sleep-wait.

Fortunately, this is just to execute WBINVD on x86 (and if this code
ever runs on other architectures, which it probably doesn't, it'll be
a similar barrier instruction), so spinning to wait for that on all
CPUs isn't too costly.

PR kern/57878

(martin)

2024-02-03 14:15:51 UTC MAIN commitmail json YAML

ofwboot(8): improve formatting

(uwe)

2024-02-03 14:15:01 UTC netbsd-10 commitmail json YAML

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

usr.sbin/postinstall/postinstall.in: revision 1.58

postinstall(8): Don't say /etc/openssl/certs.conf already exists.

It's confusing when all the other `postinstall fix' actions are
silent in the event they don't have anything to do.

PR install/57885

(martin)

2024-02-03 14:12:49 UTC netbsd-10 commitmail json YAML

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

external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c: revision 1.49

Handle "LSBit is left" bitorder VRAM of smg(4) and qv(4) on VAXen.

Confirmed on smg(4) on my VAXstation 3100/30.

(martin)

2024-02-03 14:05:47 UTC netbsd-10 commitmail json YAML

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

distrib/sets/lists/xserver/md.alpha: revision 1.62
distrib/sets/lists/xdebug/md.sgimips: revision 1.18
distrib/sets/lists/xdebug/md.netwinder: revision 1.14
distrib/sets/lists/xdebug/md.alpha: revision 1.22
distrib/sets/lists/xdebug/md.vax: revision 1.16
distrib/sets/lists/xserver/md.vax: revision 1.28
distrib/sets/lists/xserver/md.sgimips: revision 1.70
distrib/sets/lists/xserver/md.netwinder: revision 1.48
distrib/sets/lists/xcomp/mi: revision 1.241

Put back xorg_server_ver=110 specific files lost in 21.1.3 updates.
Also fix syspkg names and reorder entries for readabilities.

Fixes "fail to load libfb.so" errors on X.org 1.10 server ports.
Ok'ed by mrg@ on tech-x11@:

https://mail-index.netbsd.org/tech-x11/2024/01/24/msg002434.html

(martin)

2024-02-03 12:57:12 UTC MAIN commitmail json YAML

2024-02-03 12:56:02 UTC netbsd-10 commitmail json YAML

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

sys/arch/vax/vsa/smg.c: revision 1.66

Fix mmap(2) address for smg(4) as other framebuffers.

Now X.org server can render onto framebuffer (but inverted bitorder).

(martin)

2024-02-03 12:48:39 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #568):

sys/arch/hppa/hppa/machdep.c: revision 1.19

Don't duplicate PIM_CPU_BITS in one printf.
PIM_CPU_HPMC_BITS already includes PIM_CPU_HPMC_BITS

(martin)

2024-02-03 12:46:19 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #567):

sys/arch/hppa/hppa/pim.h: revision 1.3

Fix one by one bugs I committed back in 2009.  Spotted by rillig@.

(martin)

2024-02-03 12:41:30 UTC netbsd-9 commitmail json YAML

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

sys/dev/sdmmc/ld_sdmmc.c: revision 1.43

ld@sdmmc(4): Hack around deadlock in cache sync on detach.

Yanking a card triggers the sdmmc discovery task, which runs in the
sdmmc task thread, to detach any attached child devices.

Detaching ld@sdmmc triggers a cache flush (via ldbegindetach ->
disk_begindetach -> ld_lastclose -> ld_flush -> ioctl DIOCCACHESYNC),
which is implemented by scheduling a task to do sdmmc_mem_flush_cache
and then waiting for it to complete.

The sdmmc_mem_cache_flush is done by an sdmmc task so it happens
after all previously scheduled I/O operations -- that way the cache
flush doesn't complete until the previously scheduled I/O operations
are complete.

However, when the cache flush task is issued from the discovery task,
this doesn't work, because the cache flush task can't start until the
discovery task has returned -- but the discovery task won't return
until the cache flush task has completed.

To work around this deadlock, which usually happens only when the
device has been yanked anyway so further I/O would be lost anyway,
just do the cache flush synchronously in DIOCCACHESYNC if we're
running in the task thread.

This isn't quite right -- implementation details of the task thread
shouldn't bleed into ld@sdmmc, and running the cache sync _before_
any subsequently scheduled I/O tasks is asking for trouble -- but it
should serve to avoid the deadlock in PR kern/57870 until we can fix
a host of concurrency bugs in sdmmc by fixing the locking scheme and
running discovery in a separate thread from tasks.

(martin)

2024-02-03 12:39:17 UTC netbsd-10 commitmail json YAML

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

sys/dev/sdmmc/ld_sdmmc.c: revision 1.43

ld@sdmmc(4): Hack around deadlock in cache sync on detach.

Yanking a card triggers the sdmmc discovery task, which runs in the
sdmmc task thread, to detach any attached child devices.

Detaching ld@sdmmc triggers a cache flush (via ldbegindetach ->
disk_begindetach -> ld_lastclose -> ld_flush -> ioctl DIOCCACHESYNC),
which is implemented by scheduling a task to do sdmmc_mem_flush_cache
and then waiting for it to complete.

The sdmmc_mem_cache_flush is done by an sdmmc task so it happens
after all previously scheduled I/O operations -- that way the cache
flush doesn't complete until the previously scheduled I/O operations
are complete.

However, when the cache flush task is issued from the discovery task,
this doesn't work, because the cache flush task can't start until the
discovery task has returned -- but the discovery task won't return
until the cache flush task has completed.

To work around this deadlock, which usually happens only when the
device has been yanked anyway so further I/O would be lost anyway,
just do the cache flush synchronously in DIOCCACHESYNC if we're
running in the task thread.

This isn't quite right -- implementation details of the task thread
shouldn't bleed into ld@sdmmc, and running the cache sync _before_
any subsequently scheduled I/O tasks is asking for trouble -- but it
should serve to avoid the deadlock in PR kern/57870 until we can fix
a host of concurrency bugs in sdmmc by fixing the locking scheme and
running discovery in a separate thread from tasks.

(martin)

2024-02-03 12:17:03 UTC netbsd-8 commitmail json YAML

Pull up the following, requested by msaitoh in ticket #1933:

sys/dev/pci/ixgbe/ix_txrx.c 1.105-1.116 via patch
sys/dev/pci/ixgbe/ixgbe.c 1.345-1.346,1.349 via patch
sys/dev/pci/ixgbe/ixgbe.h 1.94-1.98
sys/dev/pci/ixgbe/ixgbe_type.h 1.62
sys/dev/pci/ixgbe/ixv.c 1.193,1.195-1.196

- Clear the WTHRESH bit field before writing it.
- Optimize ixgbe_txeof().
- Use kmem_zalloc() instead of malloc(,M_ZERO).
- Add QPRDC(Queue Packet Receive Drop Count) into iqdrops.
- No functional change
  - Move assignment of TXD.
  - ixv(4): Remove unused IFF_OACTIVE.
  - Don't include the Flow Director related members to reduce the
    size of struct tx_ring. On amd64 and aarch64, the real size is
    not changed because of the alignment.
  - The descriptor ring size and the alignment are tested in the
    attach function, so it's not required to use
    roundup2(size, DBA_ALIGN).
  - Use #ifdef LRO more to reduce the size of struct rx_ring.
  - Change "me" from 32bit to 8bit because the max is 128.
    This commit doesn't change the real size of ix_queue, tx_ring
    and rx_ring because of the alignment.
  - Th RSC (hardware receive side coalescing) feature has been
    disabled all along, so enclose the code with #ifdef RSC.
  - Remove unused.
  - Modify for the readability.
  - Modify comment.
  - Fix comment. Whitespace.

(martin)

2024-02-03 12:13:33 UTC netbsd-9 commitmail json YAML

Pull up the following, requested by msaitoh in ticket #1792:

sys/dev/pci/ixgbe/ix_txrx.c 1.105-1.116 via patch
sys/dev/pci/ixgbe/ixgbe.c 1.345-1.346,1.349 via patch
sys/dev/pci/ixgbe/ixgbe.h 1.94-1.98
sys/dev/pci/ixgbe/ixgbe_type.h 1.62
sys/dev/pci/ixgbe/ixv.c 1.193,1.195-1.196

- Clear the WTHRESH bit field before writing it.
- Optimize ixgbe_txeof().
- Use kmem_zalloc() instead of malloc(,M_ZERO).
- Add QPRDC(Queue Packet Receive Drop Count) into iqdrops.
- No functional change
  - Move assignment of TXD.
  - ixv(4): Remove unused IFF_OACTIVE.
  - Don't include the Flow Director related members to reduce the
    size of struct tx_ring. On amd64 and aarch64, the real size is
    not changed because of the alignment.
  - The descriptor ring size and the alignment are tested in the
    attach function, so it's not required to use
    roundup2(size, DBA_ALIGN).
  - Use #ifdef LRO more to reduce the size of struct rx_ring.
  - Change "me" from 32bit to 8bit because the max is 128.
    This commit doesn't change the real size of ix_queue, tx_ring
    and rx_ring because of the alignment.
  - Th RSC (hardware receive side coalescing) feature has been
    disabled all along, so enclose the code with #ifdef RSC.
  - Remove unused.
  - Modify for the readability.
  - Modify comment.
  - Fix comment. Whitespace.

(martin)

2024-02-03 12:09:07 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #565):

sbin/blkdiscard/blkdiscard.c: revision 1.2
sbin/blkdiscard/blkdiscard.c: revision 1.3
sbin/blkdiscard/blkdiscard.8: revision 1.3

determine the tty width instead off writing 100 chars before a new line.

blkdiscard: avoid asserting when passed a bsd disklabel raw device

PR#57856 shows when using blkdiscard on eg, /dev/ld0 it asserts because
'0' is not between 'a' and 'p'.  switch this to using DISKPART() on the
returned st_rdev, so it works on 'ld0c' or 'ld0' (rawpart=2.)

(martin)

2024-02-03 12:04:07 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_wm.c: revision 1.793

Add Intel I219-{LM,V}(20,21) support.

(martin)

2024-02-03 12:02:58 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/if_wm.c: revision 1.793

Add Intel I219-{LM,V}(20,21) support.

(martin)

2024-02-03 12:01:59 UTC netbsd-10 commitmail json YAML

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

sys/dev/pci/if_wm.c: revision 1.793

Add Intel I219-{LM,V}(20,21) support.

(martin)

2024-02-03 11:58:53 UTC netbsd-10 commitmail json YAML

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

sys/dev/pci/ixgbe/ix_txrx.c: revision 1.110
sys/dev/pci/ixgbe/ixgbe.c: revision 1.345
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.111
sys/dev/pci/ixgbe/ixgbe.c: revision 1.346
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.112
sys/dev/pci/ixgbe/ixgbe_type.h: revision 1.62
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.113
sys/dev/pci/ixgbe/ixgbe.c: revision 1.348
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.114
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.115
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.116
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.105
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.106
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.107
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.108
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.109
sys/dev/pci/ixgbe/ixv.c: revision 1.193
sys/dev/pci/ixgbe/ixv.c: revision 1.195
sys/dev/pci/ixgbe/ixv.c: revision 1.196
sys/dev/pci/ixgbe/ixgbe.h: revision 1.94
sys/dev/pci/ixgbe/ixgbe.h: revision 1.95
sys/dev/pci/ixgbe/ixgbe.h: revision 1.96
sys/dev/pci/ixgbe/ixgbe.h: revision 1.97
sys/dev/pci/ixgbe/ixgbe.h: revision 1.98

ixgbe: Fix comment. No functional change.
ixgbe: Whitespace. No functional change.
ixgbe(4): Move assignment of TXD. NFCI.
ixgbe(4): Modify comment. No functional change.
ixgbe_tx_ctx_setup() may or may not consume one TX descriptor.
ixv(4): Remove unused IFF_OACTIVE. No functional change.
ixgbe: Clear the WTHRESH bit field before writing it.
ixgbe: Modify for the readability. No functional change.
ixgbe: micro-optimize ixgbe_txeof()
Update txr->tx_avail and txr->txr_no_space outside the loop in ixgbe_txeof().
ixgbe: Update if_opackets outside the loop in ixgbe_txeof().
ixgbe: micro-optimize ixgbe_txeof()
Update txr->packets outside the loop in ixgbe_txeof().
ixgbe: Use #ifdef IXGBE_FDIR more
Don't include the Flow Director related members to reduce the size of
struct tx_ring. On amd64 and aarch64, the real size is not changed
because of the alignment.
ixgbe: Simplify. No functional change.
The descriptor ring size and the alignment are tested in the attach
function, so it's not required to use roundup2(size, DBA_ALIGN).
ixgbe: Use kmem_zalloc() instead of malloc(,M_ZERO).
ixgbe: Remove unused to reduce the size of struct rx_ring.
ixgbe: Use #ifdef LRO more to reduce the size of struct rx_ring.
ixgbe: Change "me" from 32bit to 8bit because the max is 128.
This commit doesn't change the real size of ix_queue, tx_ring and rx_ring
because of the alignment.
ixgbe: Use #ifdef RSC
This feature (hardware receive side coalescing) has been disabled all along,
so enclose the code with #ifdef RSC.

(martin)

2024-02-03 11:49:31 UTC netbsd-10 commitmail json YAML

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

external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c: revision 1.48
external/mit/xf86-video-wsfb/dist/src/wsfb.h: revision 1.11

xf86-video-wsfb: Add support for Nintendo Wii

The Wii's framebuffer is YUY2, so add a custom shadowproc that converts
from RGB565 to YUY2 on the fly.

(martin)

2024-02-03 11:47:08 UTC netbsd-10 commitmail json YAML

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

etc/etc.evbppc/Makefile.inc: revision 1.15
sys/arch/evbppc/wii/dev/wiifb.c: revision 1.1
sys/arch/evbppc/wii/dev/wiifb.c: revision 1.2
sys/arch/evbppc/wii/dev/bwdsp.c: revision 1.1
sys/arch/evbppc/wii/dev/wiifb.c: revision 1.3
sys/arch/evbppc/wii/dev/bwdsp.c: revision 1.2
distrib/utils/embedded/files/evbppc_wii_icon.png: revision 1.1
usr.sbin/sysinst/arch/evbppc/md.h: revision 1.4
sys/arch/evbppc/wii/dev/wiifb.c: revision 1.4
sys/arch/evbppc/wii/dev/viio.h: revision 1.1
sys/arch/evbppc/wii/dev/wiifb.c: revision 1.5
sys/arch/evbppc/wii/dev/mainbus.h: revision 1.1
distrib/utils/embedded/conf/wii.conf: revision 1.1
distrib/utils/embedded/conf/wii.conf: revision 1.2
distrib/utils/embedded/conf/wii.conf: revision 1.3
sys/dev/sdmmc/sdhcvar.h: revision 1.34
sys/dev/sdmmc/sdhc.c: revision 1.118
sys/arch/evbppc/wii/dev/resetbtn.c: revision 1.1
distrib/utils/embedded/conf/evbppc.conf: revision 1.1
sys/dev/wsfb/genfb.c: revision 1.91
sys/arch/evbppc/wii/dev/resetbtn.c: revision 1.2
sys/dev/wscons/wsconsio.h: revision 1.127
sys/arch/powerpc/oea/oea_machdep.c: revision 1.85
sys/arch/evbppc/wii/dev/hollywood.h: revision 1.1
sys/arch/evbppc/conf/std.wii: revision 1.1
sys/arch/evbppc/wii/dev/hollywood.h: revision 1.2
sys/arch/evbppc/wii/dev/hollywood.c: revision 1.1
sys/arch/evbppc/conf/std.wii: revision 1.2
sys/arch/evbppc/wii/dev/hollywood.c: revision 1.2
sys/arch/evbppc/conf/std.wii: revision 1.3
sys/arch/powerpc/oea/cpu_subr.c: revision 1.109
sys/arch/evbppc/wii/wii_mmuinit.S: revision 1.1
sys/dev/usb/usb.h: revision 1.124
sys/arch/evbppc/wii/machdep.c: revision 1.1
sys/arch/evbppc/wii/dev/rtcsram.c: revision 1.1
sys/arch/powerpc/include/oea/hid.h: revision 1.14
sys/arch/evbppc/wii/mainbus.c: revision 1.1
sys/arch/evbppc/wii/machdep.c: revision 1.2
sys/arch/evbppc/wii/dev/ehci_hollywood.c: revision 1.1
sys/arch/evbppc/wii/mainbus.c: revision 1.2
sys/arch/evbppc/wii/machdep.c: revision 1.3
sys/arch/evbppc/wii/dev/ehci_hollywood.c: revision 1.2
sys/arch/evbppc/wii/mainbus.c: revision 1.3
sys/arch/evbppc/wii/machdep.c: revision 1.4
sys/arch/evbppc/wii/dev/hwgpio.c: revision 1.1
sys/arch/evbppc/wii/dev/sdhc_hollywood.c: revision 1.1
sys/arch/evbppc/wii/dev/sdhc_hollywood.c: revision 1.2
sys/arch/evbppc/wii/wii_locore.S: revision 1.1
sys/arch/evbppc/conf/files.wii: revision 1.1
sys/arch/evbppc/wii/wii_locore.S: revision 1.2
sys/arch/evbppc/include/wii.h: revision 1.1
sys/arch/evbppc/conf/files.wii: revision 1.2
sys/arch/evbppc/wii/dev/exi.c: revision 1.1
sys/arch/evbppc/include/wii.h: revision 1.2
sys/arch/evbppc/conf/files.wii: revision 1.3
sys/arch/powerpc/powerpc/clock.c: revision 1.18
sys/arch/evbppc/include/wii.h: revision 1.3
sys/arch/evbppc/conf/files.wii: revision 1.4
sys/arch/evbppc/include/wii.h: revision 1.4
sys/arch/evbppc/wii/dev/exi.h: revision 1.1
sys/arch/evbppc/wii/dev/avenc.c: revision 1.1
sys/arch/evbppc/include/wii.h: revision 1.5
sys/arch/evbppc/include/wii.h: revision 1.6
sys/arch/evbppc/include/wii.h: revision 1.7
sys/arch/evbppc/wii/dev/avenc.h: revision 1.1
distrib/utils/embedded/mkimage: revision 1.79
sys/arch/evbppc/conf/WII: revision 1.1
sys/arch/evbppc/conf/INSTALL_WII: revision 1.1
distrib/utils/embedded/files/evbppc_wii_meta.xml: revision 1.1
sys/arch/evbppc/wii/dev/vireg.h: revision 1.1
sys/arch/evbppc/conf/WII: revision 1.2
distrib/utils/embedded/files/evbppc_wii_meta.xml: revision 1.2
sys/arch/evbppc/wii/dev/vireg.h: revision 1.2
sys/arch/evbppc/conf/WII: revision 1.3
sys/arch/evbppc/conf/WII: revision 1.4
usr.sbin/sysinst/arch/evbppc/md.c: revision 1.11
sys/arch/evbppc/wii/dev/ohci_hollywood.c: revision 1.1
sys/dev/usb/ehcivar.h: revision 1.52
sys/arch/evbppc/wii/pic_pi.c: revision 1.1
sys/arch/evbppc/wii/dev/ohci_hollywood.c: revision 1.2
etc/etc.evbppc/ttys: revision 1.8
sys/arch/evbppc/wii/dev/bwai.c: revision 1.1
sys/arch/evbppc/wii/dev/bwai.c: revision 1.2
sys/arch/evbppc/wii/dev/bwai.c: revision 1.3
sys/arch/evbppc/wii/autoconf.c: revision 1.1
sys/arch/evbppc/conf/Makefile.wii.inc: revision 1.1
sys/arch/evbppc/wii/dev/bwai.h: revision 1.1
sys/arch/evbppc/wii/autoconf.c: revision 1.2
sys/arch/evbppc/conf/Makefile.wii.inc: revision 1.2

powerpc: oea: Fix prefetchable mappings
Prefetchable mappings need PMAP_NOCACHE to get write-combine semantics.
powerpc: oea: Decode IBM750CL L2 cache information.
sdmmc: add support for optional delay after register write
wscons: Add HOLLYWOOD display and YUY2 pixel format types
wsfb: add support for optional "devcmap" property
A hardware driver can supply a pointer to a 16x 32-bit array to override
the default rasops device colour map in the "devcmap" property.
ehci: add EHCIF_32BIT_ACCESS flag to force 32-bit MMIO
fix comments: HID0 ICFI/DCFI are "flash invalidate", not "flush invalidate"
powerpc: fix delay for large (> ~5sec) values
When calculating the target timebase, promote '1000' on the RHS to ULL
to force 64-bit calculation, otherwise 'n * 1000' will overflow.
usb: increase USB_PORT_RESET_RECOVERY from 10ms to 20ms
I changed this from 250ms to 10ms back in 2021 based on a similar FreeBSD
change, but it seems to be a bit too aggressive for some platforms.
evbppc: Add initial support for the Nintendo Wii
wii: support RB_POWERDOWN
build fix: use dd with count=1 for compat with NetBSD dd(1)
wii: Add NTSC 480p support.
In addition to this, add VIIO_{GET,SET}REGS ioctl support to allow for
poking at video interface registers from userland. This is helpful for
debugging display issues.
wii: Add 128x48 icon to SD card image
wii: Fix a comment
wii: Add drivers for Broadway DSP and Audio interface.
0: [*] audio0 @ bwdsp0: Broadway DSP
      playback: 16, 2ch, 48000Hz
      record:  unavailable
      (P-) slinear_be 16/16, 2ch, { 48000 }
wii: Add screenblank support.
wii: Use screen dimming register for screen blanking.
wii: Add GPIO, I2C, and basic A/V encoder driver.
wii: Use A/V encoder volume controls instead of using a software filter.
wii: Simply DSP driver - no interrupt handler required.
wii: provide device names to intr_establish
wii$ intrctl list
interrupt id      CPU0  device name(s)
pi irq 14        64769* hollywood0
hollywood irq 36  5872* ehci0
hollywood irq 39 58907* sdhc0
hollywood irq 40    4* sdhc1
hollywood irq 49    0* resetbtn0
pi irq 5            0* bwai0
wii: Add support for passing boot options to the kernel.
wii: Add External interface bus and RTC support
wii: Remove objcopy after kernel build.
HBC will do the right thing.
Add wsvt25 entries (off by default) for ttyE0-ttyE3.
Add support for "PAL" (576i) mode on Wii.

(martin)

2024-02-03 11:32:33 UTC netbsd-8 commitmail json YAML

2024-02-03 11:30:32 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/pcidevs: revision 1.1477
sys/dev/pci/pcidevs: revision 1.1494
sys/dev/pci/pcidevs: revision 1.1498
sys/dev/pci/pcidevs: revision 1.1499
sys/dev/pci/pcidevs: revision 1.1500
sys/dev/pci/pcidevs: revision 1.1501
sys/dev/pci/pcidevs: revision 1.1502

Add ID for the EXAR XR17V354 PCIe UART.
From Hakan Engvall.
PR kern/57202

pcidevs: Add missing I225/I226 series devices

pcidevs: Add Mellanox ConnectX-6 Lx.

add some newer Areca boards in prep for updating driver

Add Intel C26[26] eSPI.

Update Intel Raptor Lake devices.

Add Intel I219-{LM,V}(20,21)

(martin)

2024-02-03 11:26:39 UTC netbsd-9 commitmail json YAML

2024-02-03 11:24:19 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/pcidevs: revision 1.1494
sys/dev/pci/pcidevs: revision 1.1498
sys/dev/pci/pcidevs: revision 1.1499
sys/dev/pci/pcidevs: revision 1.1500
sys/dev/pci/pcidevs: revision 1.1501
sys/dev/pci/pcidevs: revision 1.1502

pcidevs: Add missing I225/I226 series devices
pcidevs: Add Mellanox ConnectX-6 Lx.
add some newer Areca boards in prep for updating driver
Add Intel C26[26] eSPI.
Update Intel Raptor Lake devices.
Add Intel I219-{LM,V}(20,21)

(martin)

2024-02-03 11:20:32 UTC netbsd-10 commitmail json YAML

2024-02-03 11:19:21 UTC netbsd-10 commitmail json YAML

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

sys/dev/pci/pcidevs: revision 1.1499
sys/dev/pci/pcidevs: revision 1.1500
sys/dev/pci/pcidevs: revision 1.1501
sys/dev/pci/pcidevs: revision 1.1502

add some newer Areca boards in prep for updating driver
Add Intel C26[26] eSPI.
Update Intel Raptor Lake devices.
Add Intel I219-{LM,V}(20,21)
add some newer Areca boards in prep for updating driver
Add Intel C26[26] eSPI.
Update Intel Raptor Lake devices.
Add Intel I219-{LM,V}(20,21)

(martin)

2024-02-03 11:15:12 UTC netbsd-10 commitmail json YAML

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

sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_stolen.c: revision 1.6
sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_stolen.c: revision 1.7
sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_pages.c: revision 1.7
sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_phys.c: revision 1.9
sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_mman.c: revision 1.22
sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_region.c: revision 1.5
sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_region.c: revision 1.6

i915_gem_region: Reduce diff from upstream a little.
No functional change intended.
Prompted by upcoming nearby changes related to PR kern/57833.

i915_gem: Avoid walking off end of sg_pgs.
sg_npgs currently fails to match obj->base.size/PAGE_SIZE only due to
bugs in the construction of sg_pgs in various i915 gem object types,
which we should also fix, but let's avoid compounding it here.
Related to PR kern/57833.

i915_gem: Assert page array size.
Let's detect the bug of sg_npgs failing to match
obj->base.size/PAGE_SIZE earlier.
Related to PR kern/57833.

i915_gem_phys: Fill sg_pgs.
This is needed by i915 gem fault, which maps user virtual addresses
to those pages, and by i915 gem object destruction, which does
pmap_page_protect on the pages to remove any of those user virtual
mappings.
This needs pmap_kenter_pa rather than pmap_enter(pmap_kernel(), ...)
in order to preserve the _kernel's_ mapping of the pages after
pmap_page_protect.
But bus_dmamem_map currently uses pmap_enter(pmap_kernel(), ...)
instead which creates a mapping that is removed by pmap_page_protect.
So we use a variant of bus_dmamem_map that uses pmap_kenter_pa
instead.  Perhaps bus_dmamem_map should do this itself, but this
change is less risky to pull up than a change to bus_dmamem_map
itself.
PR kern/57833: kernel panic on xorg exit

i915_gem_region: Fill sg_pgs, with size/PAGE_SIZE entries.
Use sg_alloc_table_from_bus_dmamem to do this.
i915_gem_mman.c vm_fault_cpu and i915_gem_object_release_mmap_offset
both rely on sg_pgs to be a page array, so using something else like
size >> ilog2(mem->mm.chunk_size) entries doesn't work.  And they
rely on the sg_pgs entries to be initialized, which we weren't doing
before, and which sg_alloc_table_from_bus_dmamem does for us.
Related to PR kern/57833.

i915_gem_stolen: Fix memory leak.
Found while trying to address the PR 57833 class of problems.

i915_gem_stolen: Fill sg_pgs, with size/PAGE_SIZE entries.
Use sg_alloc_table_from_bus_dmamem to do this.

i915_gem_mman.c vm_fault_cpu and i915_gem_object_release_mmap_offset
both rely on sg_pgs to be a page array, so providing a table with
only one entry doesn't work (except by accident, if the object is
page-sized anyway).  And they rely on the sg_pgs entries to be
initialized, which we weren't doing before, and which
sg_alloc_table_from_bus_dmamem does for us.
Related to PR kern/57833.

(martin)

2024-02-03 10:56:18 UTC MAIN commitmail json YAML

lint: remove unused code for converting multibyte character sequences

(rillig)

2024-02-03 10:55:38 UTC MAIN commitmail json YAML

mblen.3: clean up wording and grammar

(rillig)

2024-02-03 10:01:59 UTC MAIN commitmail json YAML

2024-02-03 09:36:14 UTC MAIN commitmail json YAML

tests/lint: test octal escapes in character and wide strings

(rillig)

2024-02-03 09:17:06 UTC MAIN commitmail json YAML

Sort options in man page.

(wiz)

2024-02-03 00:20:23 UTC MAIN commitmail json YAML

make: state of save_dollars affects what is a parse error

When save_dollars is false it is not a parse error to
encounter $$ rather than \$.

(sjg)

2024-02-02 23:36:01 UTC MAIN commitmail json YAML

lint: use the locale for interpreting wide character strings

(rillig)

2024-02-02 23:30:39 UTC MAIN commitmail json YAML

2024-02-02 22:58:26 UTC MAIN commitmail json YAML

PR/57892: Roberto Branco: Print full pathname in error messages

(christos)

2024-02-02 22:45:48 UTC MAIN commitmail json YAML

tests/lint: add UTF-8 test for string literals

(rillig)

2024-02-02 22:43:12 UTC MAIN commitmail json YAML

s/maintenace/maintenance/ in command status code description.

(andvar)

2024-02-02 22:39:10 UTC MAIN commitmail json YAML

2024-02-02 22:33:43 UTC MAIN commitmail json YAML

2024-02-02 22:26:58 UTC MAIN commitmail json YAML

2024-02-02 22:23:54 UTC MAIN commitmail json YAML

s/tranceiver/transceiver/ in comment and definition.

(andvar)

2024-02-02 22:19:13 UTC MAIN commitmail json YAML

2024-02-02 22:19:05 UTC MAIN commitmail json YAML

2024-02-02 22:14:05 UTC MAIN commitmail json YAML

2024-02-02 22:00:34 UTC MAIN commitmail json YAML

2024-02-02 21:52:23 UTC MAIN commitmail json YAML

2024-02-02 21:16:42 UTC MAIN commitmail json YAML

Make the err(3) manual clearer to read.

- Mention that the 'fmt' argument to these functions holds
  a printf(3)-like format specification.
- Clarify that the err()/warn()/errc()/warnc() family of functions
  will append an additional error message to the output.
- Add whitespace to separate paragraphs describing distinct
  concepts.
- Move the sentence mentioning the final output newline to
  a less ambiguous location within the text.
- Add a cross-reference to printf(3).

(jkoshy)

2024-02-02 20:50:28 UTC MAIN commitmail json YAML

s/supressing/suppressing/.

(andvar)

2024-02-02 20:27:26 UTC MAIN commitmail json YAML

2024-02-02 19:07:58 UTC MAIN commitmail json YAML

2024-02-02 18:29:18 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by uwe in ticket #558):

sys/arch/macppc/conf/GENERIC: revision 1.378

macppc: enable FFS_EI in GENERIC

I'd say it should be enabled for anything with USB.

ok macallan

(martin)

2024-02-02 18:27:51 UTC netbsd-10 commitmail json YAML

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

sys/arch/vax/conf/files.vax: revision 1.127

Add missed "rasops1" attribute to smg(4) rasops'fied a year ago.

This fixes silent boot failure on VS3100 with smg(4) framebuffer console.

(martin)

2024-02-02 16:25:59 UTC MAIN commitmail json YAML

lint: fix debug output for strings, reduce code size

The debug output contained too many newlines.

The buffer functions were built into lint2 even though they weren't
used.

Enable the query for invisible characters in string literals, to make
sure that a newline in a string literal does not trigger that query.

(rillig)

2024-02-02 16:05:37 UTC MAIN commitmail json YAML

2024-02-02 15:59:30 UTC MAIN commitmail json YAML

Add WSDISPLAY_GINFO, LINEBYTES, and SMODE ioctl(2)s and mmap(2) support.

mlterm-wscons partially works (no 2 bpp support) with these APIs.
XXX: Xorg server needs wsmouse support.

(tsutsui)

2024-02-02 15:44:43 UTC MAIN commitmail json YAML

2024-02-01 22:26:19 UTC MAIN commitmail json YAML

Use "wsvt25" rather than "sun" for (commented out) wscons tty lines.

Note historically vax port seems to use "ttyw?" rather than common "ttyE?"
for wscons (wsdisplay) tty devices in ttys(5).

No particular comment on port-vax@:
https://mail-index.netbsd.org/port-vax/2024/01/thread1.html#004828

(tsutsui)

2024-02-01 22:22:05 UTC MAIN commitmail json YAML

Make sure to create wscons devices on the default "MAKEDEV all" target.

Necessary to make the X.org server work on the default installation.
Proposed on port-vax@, and ok'ed by mrg@:
https://mail-index.netbsd.org/port-vax/2024/01/thread1.html#004828

Worth to pull up to netbsd-10.

(tsutsui)

2024-02-01 22:18:34 UTC MAIN commitmail json YAML

snprintb.3: fix examples, clean up wording

In the examples using hex escape sequences, there must be a delimiter
between the escape sequence and the following description if the
description starts with [A-Fa-f], as hex escape sequences are not
limited in length.

Distinguish between a 'directive' (bit + length + description) and a
'description' (only the text).

The fmt parameter is not a string, as strings only reach to the first
'\0' byte, but the new-style format may include additional '\0' as bit
numbers.

(rillig)

2024-02-01 22:02:18 UTC MAIN commitmail json YAML

s/againt/against/ in comment.

(andvar)

2024-02-01 22:00:29 UTC MAIN commitmail json YAML

s/Prototol/Protocol/ and s/Umimplemented/Unimplemented/ in comments.

(andvar)

2024-02-01 21:19:13 UTC MAIN commitmail json YAML

lint: reuse buffer editing code across lint1

Fix cat_strings to update the capacity of the buffer, to prevent
quadratic runtime when concatenating string literals.

(rillig)

2024-02-01 18:37:07 UTC MAIN commitmail json YAML

2024-02-01 10:06:08 UTC MAIN commitmail json YAML

new mozilla-certdata out

(wiz)

2024-02-01 06:50:36 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2024-02-01 02:44:17 UTC MAIN commitmail json YAML

phantomas.4: minor grammar fix

(gutteridge)

2024-02-01 02:41:56 UTC MAIN commitmail json YAML

sti.c: fix a typo in a comment

(gutteridge)

2024-01-31 08:15:00 UTC MAIN commitmail json YAML

Make this work properly on PCI Visualize EG:
- use bus_space_*_stream() for all register accesses in order to avoid
  byte order conversion on PCI devices
- when switching to framebuffer mode, request as many text planes as STI allows
- request access to both text and non-text planes in fb mode
With this and the bus_space commit a few days ago I have usable X on my C360
and a PCI Visualize EG.
This needs testing on quite literally everything else.

(macallan)

2024-01-30 19:05:07 UTC MAIN commitmail json YAML

PR bin/57894

For jobs -p for a non-job-control job, avoid just printing 0 (as
there is no process group pid) and instead output what we used to,
the pid of one of the processes in the job (usually the right one!)

XXX pullup -10 (9 and earlier not affected).

(kre)

2024-01-30 16:57:32 UTC MAIN commitmail json YAML

Skip the dtb set if the /boot partition is not mounted.

(martin)

2024-01-30 10:24:39 UTC MAIN commitmail json YAML

Fix previous, use sed to fix up the set.${set} line in non-METAFILE mode

(martin)

2024-01-29 23:14:46 UTC MAIN commitmail json YAML

binutils-2.42 is out

(wiz)

2024-01-29 22:01:58 UTC MAIN commitmail json YAML

2024-01-29 21:55:24 UTC MAIN commitmail json YAML

PR/57891: Ricardo Branco: add symbolic flags printing (from FreeBSD)

(christos)

2024-01-29 21:30:25 UTC MAIN commitmail json YAML

lint: do not remember content of wide string literals

The plain char literals are needed for checking printf/scanf format
strings; lint has no similar check for wide strings. These format
strings are checked by modern compilers, making this check less
relevant.

(rillig)

2024-01-29 21:04:21 UTC MAIN commitmail json YAML

lint: check getopt call more strictly

Previously, '(c = getopt(...)) != -2' would match as well.

(rillig)

2024-01-29 18:58:54 UTC MAIN commitmail json YAML

hdaudio(4): KNF, no functional change intended

(riastradh)

2024-01-29 18:55:51 UTC MAIN commitmail json YAML

hdaudio(4): Tighten hdafg_freem.

The fix for PR kern/57890 in hdafg.c 1.29 included more conditionals
than needed, covering cases that can't happen: if allocm returns
null, audio(4) does not call freem; and if hdafg_allocm returns
nonnull, then what audio(4) passes to hdafg_freem had better be
either the playback or the capture buffer address.

(riastradh)

2024-01-29 18:27:15 UTC MAIN commitmail json YAML

2024-01-29 16:31:53 UTC MAIN commitmail json YAML

+HPKE, PKE  (hybrid) public key encryption  (see also: RFC9180)

(jschauma)

2024-01-29 16:09:46 UTC MAIN commitmail json YAML

2024-01-29 15:56:49 UTC MAIN commitmail json YAML

When building in priviledged mode, remove the entry for the output file
from etc/mtree/set.* - it may exist and contain stale data.

(martin)

2024-01-29 06:24:51 UTC MAIN commitmail json YAML

wm(4): Fix compile error without WM_EVENT_COUNTERS.

(msaitoh)

2024-01-29 06:05:11 UTC MAIN commitmail json YAML

wm(4): Drop frames if the RX descriptor ring has no room on multiqueue system.

Drop frames if the RX descriptor ring has no room. This is enabled only on
multiqueue system to avoid bad influence to other queues. The drop count
can be seen by the RQDPC counter (wmN rxqXXdrop evcnt).

(msaitoh)

2024-01-29 05:46:55 UTC MAIN commitmail json YAML

2024-01-29 05:42:41 UTC MAIN commitmail json YAML

style: One more typo, NFC

(rin)

2024-01-29 05:02:06 UTC MAIN commitmail json YAML

wm(4): Add RQDPC(Receive Queue Drop Packet Count) to iqdrops.

The iqdrops counter should include not only MPC(Missed Packet Count)
but also RQDPC(Receive Queue Drop Packet Count). Same as ixgbe(4) and igc(4).

Note that the RQDPC is not currently counted because SRRCTL_DROP_EN
is not set.

(msaitoh)

2024-01-29 01:05:55 UTC MAIN commitmail json YAML

agp_i810(4): Use ipi(9) for chipset flush on all CPUs, not xcall(9).

i915 now calls into this with a spin lock held, so we have to use
ipi(9), which spin-waits for the other CPUs to complete, rather than
xcall(9), which may sleep-wait.

Fortunately, this is just to execute WBINVD on x86 (and if this code
ever runs on other architectures, which it probably doesn't, it'll be
a similar barrier instruction), so spinning to wait for that on all
CPUs isn't too costly.

PR kern/57878

XXX pullup-10

(riastradh)

2024-01-29 00:57:38 UTC MAIN commitmail json YAML

postinstall(8): Don't say /etc/openssl/certs.conf already exists.

It's confusing when all the other `postinstall fix' actions are
silent in the event they don't have anything to do.

PR install/57885

(riastradh)

2024-01-28 19:08:06 UTC MAIN commitmail json YAML

tests/usr.bin/mtree: Fixed the set lists, no more xfail.

PR misc/57877

(riastradh)

2024-01-28 17:31:40 UTC MAIN commitmail json YAML

Rather than having different "builtin" tables (3xx, 362, 382, 4xx),
just have a single "builtin" table with a mask indicating which of
those groups of machines have a particular built-in device.

(thorpej)

2024-01-28 10:09:54 UTC MAIN commitmail json YAML

s/errer/error/ in log message.

(andvar)

2024-01-28 10:06:19 UTC MAIN commitmail json YAML

Trailing whitespace.

(skrll)

2024-01-28 09:03:22 UTC MAIN commitmail json YAML

add missing bus_space_*_stream() methods instead of quietly aliasing them
to their potentially byte-swapping regular counterparts

ok skrll@

(macallan)

2024-01-28 08:54:28 UTC MAIN commitmail json YAML

2024-01-28 08:26:07 UTC MAIN commitmail json YAML

2024-01-28 08:17:27 UTC MAIN commitmail json YAML

tests/lint: sort multiple diagnostics per line chronologically

For now, the chronologic order is not enforced but has to be established
manually, for example by removing all 'expect' comment lines and
regenerating them with 'accept.sh -u'.

While here, clean up a few instances that came up when regenerating the
'expect' comments, such as wrong indentation or needless deviation from
the 'expect+1' form.

(rillig)

2024-01-28 06:57:41 UTC MAIN commitmail json YAML

tests/lint: fix tests for integer constants on ILP32 platforms

The comment in msg_218 was both off-topic and wrong, so remove it.

(rillig)

2024-01-28 06:20:02 UTC MAIN commitmail json YAML

Also put back libfb.a in xorg_server_ver=110 case.

It looks required only on building Xorg server binary and
unnecessary for release (actually marked as obsolete only on vax),
but no simple settings to "build static libraries without installation"
and most ports will be switched to Xorg 1.20 soon.

(tsutsui)

2024-01-27 21:42:29 UTC MAIN commitmail json YAML

tests/libutil/snprintb: remove redundant integer constant suffixes

I added these because lint told me so. Lint was wrong though, as it had
not implemented the C99 rules for integer constants.

(rillig)