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

2024-05-10 08:55:02 UTC Now

2023-10-11 06:15:37 UTC MAIN commitmail json YAML

2023-10-11 04:44:20 UTC MAIN commitmail json YAML

ixl(4): update link status in workqueue

(yamaguchi)

2023-10-11 04:29:47 UTC MAIN commitmail json YAML

ixl(4): use cv_broadcast to wakeup ioctl and workqueue context.

Commands may be issued at the same time from the both context.

(yamaguchi)

2023-10-11 04:24:25 UTC MAIN commitmail json YAML

ixl(4): skip getting link status if the last command is running

(yamaguchi)

2023-10-11 03:48:35 UTC MAIN commitmail json YAML

ixg(4): Whitespace. No functional change.

(msaitoh)

2023-10-11 01:21:21 UTC MAIN commitmail json YAML

well, kinda have to add CSRF now, don't we?

+CSRF  cross-site request forgery

(jschauma)

2023-10-11 01:15:16 UTC MAIN commitmail json YAML

+SSRF  server-side request forgery

(jschauma)

2023-10-10 21:51:01 UTC MAIN commitmail json YAML

hier(7): Document /usr/share/certs/mozilla.

XXX pullup-10

(riastradh)

2023-10-10 19:21:39 UTC MAIN commitmail json YAML

PR kern/57088:
add missing "onewire" link dependency

Thanks Lloyd for pointing me to this PR as
I independently fixed the missing module functionality (and also missing the
link dependency).

(kardel)

2023-10-10 18:56:33 UTC netbsd-9 commitmail json YAML

Ammend ticket #1747 for additional changes

(martin)

2023-10-10 18:55:58 UTC netbsd-9 commitmail json YAML

Additionally pull up following revision(s) (requested by he in ticket #1747):

sys/arch/evbmips/conf/INSTALL_CI20: revision 1.3

INSTALL_CI20: bump ramdisk image size since contents grew a bit recently.

(martin)

2023-10-10 18:54:08 UTC netbsd-10 commitmail json YAML

Ammend ticket #397 for additional changes

(martin)

2023-10-10 18:53:08 UTC netbsd-10 commitmail json YAML

Additionally pull up following revision(s) (requested by he in ticket #397):

sys/arch/evbmips/conf/INSTALL_CI20: revision 1.3

INSTALL_CI20: bump ramdisk image size since contents grew a bit recently.

(martin)

2023-10-10 16:46:56 UTC MAIN commitmail json YAML

Add support for ASMEDIA 0x0624

... an AHCI SATA adaptor which identifies itself as an IDE storage device

(abs)

2023-10-10 16:45:54 UTC MAIN commitmail json YAML

2023-10-10 16:44:16 UTC MAIN commitmail json YAML

Add entry for ASMEDIA 0x0624 - ASM1062 + JMB575 Port Multiplier

(abs)

2023-10-10 16:23:56 UTC MAIN commitmail json YAML

INSTALL_CI20: bump ramdisk image size since contents grew a bit recently.

(he)

2023-10-10 13:18:53 UTC netbsd-10 commitmail json YAML

2023-10-10 13:17:46 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #402):

tests/lib/libcurses/check_files/waddstr2.chk: revision 1.2
tests/lib/libcurses/check_files/addstr3.chk: revision 1.5
lib/libcurses/addbytes.c: revision 1.69
lib/libcurses/tty.c: revision 1.50

Fix for install/56467

Set x to 0 before calling scroll based on a  proposed fix by RVP (thanks!)
Update check files affected by a fix to addbyte.c in libcurses.

Correct the fd closed check so we actually check the outfd as per
the comment.  Thanks for jdc%netbsd.org@localhost for catching this one.

(martin)

2023-10-10 13:09:29 UTC netbsd-9 commitmail json YAML

Ammend ticket #1747 for additional changes.

(martin)

2023-10-10 13:07:51 UTC netbsd-9 commitmail json YAML

Additionally pull up the following revision for ticket #397 to fix
the build:

        sys/arch/evbmips/conf/INSTALL_OMSAL400  1.4

Make more room for ramdisk image (which recently grew a bit)

(martin)

2023-10-10 13:04:41 UTC netbsd-10 commitmail json YAML

Ammend ticket #397 for additional changes.

(martin)

2023-10-10 13:02:28 UTC netbsd-10 commitmail json YAML

Additionally pull up the following revision for ticket #397 to fix
the build

sys/arch/evbmips/conf/INSTALL_OMSAL400 1.4

Make more room for ramdisk image (which recently grew a bit)

(martin)

2023-10-10 10:58:03 UTC MAIN commitmail json YAML

Debug printf tidy up, KNF comma,space nits.

(simonb)

2023-10-10 10:36:42 UTC MAIN commitmail json YAML

Make more room for ramdisk image (which recently grew a bit)

(martin)

2023-10-10 07:21:00 UTC MAIN commitmail json YAML

Add an example of connecting to an unsecured network with wpa_supplicant

(nia)

2023-10-10 06:21:09 UTC MAIN commitmail json YAML

igc(4): Fix half duplex setting

From FreeBSD: 3b8d04f845b416d29a258658b8a48d1afb4a2e81

(msaitoh)

2023-10-10 01:17:19 UTC MAIN commitmail json YAML

+KEK key encryption key

(funny, we already had DEK, those usually come in pairs)

(jschauma)

2023-10-09 23:35:43 UTC netbsd-10 commitmail json YAML

2023-10-09 23:33:47 UTC netbsd-10 commitmail json YAML

2023-10-09 22:00:38 UTC MAIN commitmail json YAML

Make the name of the condition more reflective of the name of the condition variable.  From Edgar Fuß.

(oster)

2023-10-09 21:55:48 UTC MAIN commitmail json YAML

spaces->tabs.  Noted by Edgar Fuß

(oster)

2023-10-09 21:14:29 UTC MAIN commitmail json YAML

Correct the fd closed check so we actually check the outfd as per
the comment.  Thanks for jdc@netbsd.org for catching this one.

(blymn)

2023-10-09 17:44:33 UTC MAIN commitmail json YAML

usbnet(9): Fix typo in comment.

No functional change intended.

PR kern/57645

XXX pullup-10

(riastradh)

2023-10-09 17:43:01 UTC MAIN commitmail json YAML

usbnet(9): On if_init, stop/init if IFF_RUNNING -- not noop.

ether_ioctl(9) relies on this to reinitialize an interface when a
flags change returns ENETRESET.  We can't just reprogram the hardware
multicast filter because some drivers have logic in if_init that's
conditional on IFF_PROMISC; perhaps we can reduce the cost of this if
we can change those drivers to do it in uno_mcast but that requires
some analysis to determine.

PR kern/57645

XXX pullup-10

(riastradh)

2023-10-09 17:42:09 UTC MAIN commitmail json YAML

usbnet(9): Fix sense of conditional in usbnet_ifflags_cb.

This appears to have been mistranscribed in revision 1.1 of usbnet.c.

PR kern/57645

XXX pullup-10

(riastradh)

2023-10-09 17:42:00 UTC MAIN commitmail json YAML

usbnet(9): Make sure unp->unp_if_flags is initialized on init.

usbnet_ifflags_cb is only called if the flags change while up and
running.  (XXX Maybe it should be called in other circumstances too
so there's only one path here?)

Out of paranoia, clear the cache on stop.

PR kern/57645

XXX pullup-10

(riastradh)

2023-10-09 13:37:57 UTC netbsd-10 commitmail json YAML

2023-10-09 13:36:59 UTC netbsd-10 commitmail json YAML

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

sys/arch/powerpc/oea/pmap.c: revision 1.115

powerpc/oea: pmap: Use pool_allocator_nointr() for pmap_pool

As done for (majority of) other pmap implementations.
pmap_pool_allocator() allocates memory below 256MB, but it is not
necessary for struct pmap.

Fix part of PR kern/57621, i.e., stall in pmap_create(9).

There should be another bugs that cause (MP?) kernel hangs
reported in the PR, in pmap or other MD components for powerpc
(PR port-powerpc/56922 should be one of the candidates).
XXX

pmap for powerpc/oea apparently needs some clean ups. But leave it
as is, and pull up this minimum fix to netbsd-10 at the moment.

(martin)

2023-10-09 13:01:58 UTC MAIN commitmail json YAML

powerpc/oea: pmap: Use pool_allocator_nointr() for pmap_pool

As done for (majority of) other pmap implementations.

pmap_pool_allocator() allocates memory below 256MB, but it is not
necessary for struct pmap.

Fix part of PR kern/57621, i.e., stall in pmap_create(9).

There should be another bugs that cause (MP?) kernel hangs
reported in the PR, in pmap or other MD components for powerpc
(PR port-powerpc/56922 should be one of the candidates).

XXX
pmap for powerpc/oea apparently needs some clean ups. But leave it
as is, and pull up this minimum fix to netbsd-10 at the moment.

(rin)

2023-10-09 12:45:35 UTC netbsd-10 commitmail json YAML

2023-10-09 12:44:42 UTC netbsd-10 commitmail json YAML

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

external/gpl3/gcc.old/lib/libgcc/arch/vax/auto-target.h: revision 1.11
external/gpl3/gcc.old/usr.bin/gcc/arch/vax/configargs.h: revision 1.17
external/gpl3/gcc.old/lib/libstdc++-v3/arch/vax/gstdint.h: revision 1.15
(applied to external/gpl3/gcc/)

gcc: vax: mknative for PR port-vax/57646

Summary of changes:
(1) HAVE_AS_CFI_SECTIONS becomes defined.

(martin)

2023-10-09 12:26:59 UTC MAIN commitmail json YAML

gcc.old: vax: mknative for PR port-vax/57646

Summary of changes:

(1) HAVE_AS_CFI_SECTIONS becomes defined.
(2) mempcpy.o is dropped as mempcpy(3) was added to -current
    (but not to netbsd-10).
(3) working directories in usr.bin/gcc/arch/vax/configargs.h.

(1) will be pulled up into netbsd-10. I've confirmed that
pkgsrc/lang/perl5 builds and works as before with this change.

For now, (3) is reverted by hand. It would be better to improve mknative
not to leak working directories. But it should be NFC anyway.

For vax, mknative for binutils and gdb does not brings about significant
changes.

For other platforms, mknative for gcc.old makes no significant changes
(actually confirmed only for evbarm64, but it should be enough).

Thanks mrg@ for suggestion.

(rin)

2023-10-09 11:55:34 UTC MAIN commitmail json YAML

net/if.h: Explain the IFF_ALLMULTI situation.

No functional change intended.

(riastradh)

2023-10-09 11:55:22 UTC MAIN commitmail json YAML

rge(4): callout_stop can't be right here; just do callout_halt.

XXX pullup-10

(riastradh)

2023-10-09 11:28:05 UTC MAIN commitmail json YAML

ure(4): Set all bits, not no bits, in multicast filter for promisc.

This was lost in revision 1.40.

PR kern/57648

XXX pullup-10

(riastradh)

2023-10-09 07:39:56 UTC netbsd-10 commitmail json YAML

2023-10-09 07:38:16 UTC netbsd-10 commitmail json YAML

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

tools/gcc/gcc-version.mk: revision 1.25

bump the netbsd gcc 10 version to "nb3 20231008" for all the vax updates.

(martin)

2023-10-09 05:56:24 UTC MAIN commitmail json YAML

replace trailing whitespace with tab before struct evcnt for consistency.

(andvar)

2023-10-08 22:10:49 UTC MAIN commitmail json YAML

Update __BS_TYPENAME(BITS) macro to combine uint type instead of u_int.
Constify bus_space_write_multi one of params.
Remove unused ic_intr property from mipsco_isa_chipset struct.
Add __INTR_PRIVATE definition to mipsco isa_machdep.c.

Fixes RC3230 mipsco kernel config (w/o KGDB option, will be addressed later).

(andvar)

2023-10-08 21:52:34 UTC MAIN commitmail json YAML

bump the netbsd gcc 10 version to "nb3 20231008" for all the vax updates.

XXX: check if mknative needed?
XXX: pullup-10

(mrg)

2023-10-08 21:08:06 UTC MAIN commitmail json YAML

3RDPARTY: mDNSResponder now at 2200.0.8

(gutteridge)

2023-10-08 18:50:47 UTC netbsd-9 commitmail json YAML

2023-10-08 18:49:55 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by he in ticket #1747):

lib/libm/Makefile: revision 1.222
distrib/evbmips/instkernel/ramdisk/Makefile: revision 1.19

libm Makefile: add fma() functions for mips.

This pushed the ramdisk size, so that needed to be bumped as well.
Otherwise, there were no build issues for either 32 or 64 bit mips.
Sort-of OK'ed by simonb@.

(martin)

2023-10-08 18:49:13 UTC netbsd-10 commitmail json YAML

2023-10-08 18:48:21 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by he in ticket #397):

lib/libm/Makefile: revision 1.222
distrib/evbmips/instkernel/ramdisk/Makefile: revision 1.19

libm Makefile: add fma() functions for mips.

This pushed the ramdisk size, so that needed to be bumped as well.
Otherwise, there were no build issues for either 32 or 64 bit mips.
Sort-of OK'ed by simonb@.

(martin)

2023-10-08 18:44:48 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #394):
[accidentaly skiped during initial pullup handling]

external/gpl3/gcc.old/dist/gcc/dse.c: revision 1.15
external/gpl3/gcc.old/dist/gcc/dse.c: revision 1.16
(applied to external/gpl3/gcc/dist/gcc/dse.c)

gcc.old: Fix my regression for PR port-vax/57646 patch [5/21]
Add a part of the original diff provided by Kalvis Duckmanton,
which I carelessly dropped during NB_FIX_VAX_BACKEND addition.

Fix ICE in DSE phase for native GCC. Now, pkgsrc/lang/perl5
successfully builds again.

gcc.old: Clarify PR port-vax/57646 patch [5/21]. NFC
Restore ``else'' in the original patch. NFC but better to fit into
upstream code here.

(martin)

2023-10-08 17:42:58 UTC MAIN commitmail json YAML

Revert my changes regarding removal of FPSP related blocks.

After additional discussion it is preferred to keep code consistency,
to make it easier refactor common code between m68k ports.

(andvar)

2023-10-08 15:33:07 UTC netbsd-8 commitmail json YAML

2023-10-08 15:31:18 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_wm.c: revision 1.785
sys/dev/pci/if_wm.c: revision 1.786
sys/dev/pci/if_wm.c: revision 1.787
sys/dev/pci/if_wm.c: revision 1.788
sys/dev/pci/if_wm.c: revision 1.789

wm(4): Use SCVPC and HRMPC for 82575 and newer.
  The SCVPC(SerDes/SGMII Code Violation Packet Count) register and the HRMPC
  (Header Redirection Missed Packet Count) register were added in if_wm.c
  rev. 1.776 but the location in the code were incorrect. Fix them.

wm(4): Add some info to some event counters.
- The difference between the RUC(Rx Undersize) and RFC(Rx Fragment) is whether
  the CRC is valid or not.
- The difference between the ROC(Rx Oversize) and RJC(Rx Jabber) is whether
  the CRC is valid or not.
- LENERRS(Length Errors) is for the length/type field <= 1500.

wm(4): the IAC(Interrupt Assertion Count) register is for 82571 and newer.

wm(4): Modify descriptions of flow control related event counters.

wm(4): Replace /* nothing */ to __nothing for evcnt macros
Prevent empty if bodies for !WM_EVENT_COUNTERS.

(martin)

2023-10-08 15:30:06 UTC netbsd-9 commitmail json YAML

2023-10-08 15:28:49 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/if_wm.c: revision 1.785
sys/dev/pci/if_wm.c: revision 1.786
sys/dev/pci/if_wm.c: revision 1.787
sys/dev/pci/if_wm.c: revision 1.788
sys/dev/pci/if_wm.c: revision 1.789

wm(4): Use SCVPC and HRMPC for 82575 and newer.
  The SCVPC(SerDes/SGMII Code Violation Packet Count) register and the HRMPC
  (Header Redirection Missed Packet Count) register were added in if_wm.c
  rev. 1.776 but the location in the code were incorrect. Fix them.

wm(4): Add some info to some event counters.
- The difference between the RUC(Rx Undersize) and RFC(Rx Fragment) is whether
  the CRC is valid or not.
- The difference between the ROC(Rx Oversize) and RJC(Rx Jabber) is whether
  the CRC is valid or not.
- LENERRS(Length Errors) is for the length/type field <= 1500.

wm(4): the IAC(Interrupt Assertion Count) register is for 82571 and newer.

wm(4): Modify descriptions of flow control related event counters.

wm(4): Replace /* nothing */ to __nothing for evcnt macros
Prevent empty if bodies for !WM_EVENT_COUNTERS.

(martin)

2023-10-08 15:24:41 UTC netbsd-10 commitmail json YAML

2023-10-08 15:23:26 UTC netbsd-10 commitmail json YAML

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

sys/dev/pci/if_wm.c: revision 1.785
sys/dev/pci/if_wm.c: revision 1.786
sys/dev/pci/if_wm.c: revision 1.787
sys/dev/pci/if_wm.c: revision 1.788
sys/dev/pci/if_wm.c: revision 1.789

wm(4): Use SCVPC and HRMPC for 82575 and newer.
  The SCVPC(SerDes/SGMII Code Violation Packet Count) register and the HRMPC
  (Header Redirection Missed Packet Count) register were added in if_wm.c
  rev. 1.776 but the location in the code were incorrect. Fix them.

wm(4): Add some info to some event counters.
- The difference between the RUC(Rx Undersize) and RFC(Rx Fragment) is whether
  the CRC is valid or not.
- The difference between the ROC(Rx Oversize) and RJC(Rx Jabber) is whether
  the CRC is valid or not.
- LENERRS(Length Errors) is for the length/type field <= 1500.

wm(4): the IAC(Interrupt Assertion Count) register is for 82571 and newer.

wm(4): Modify descriptions of flow control related event counters.

wm(4): Replace /* nothing */ to __nothing for evcnt macros
Prevent empty if bodies for !WM_EVENT_COUNTERS.

(martin)

2023-10-08 15:19:32 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe.c 1.327-1.332 via patch
sys/dev/pci/ixgbe/ixgbe.h 1.87-1.88
sys/dev/pci/ixgbe/ixv.c 1.184-1.185
sys/dev/pci/ixgbe/ix_txrx.c 1.101
sys/dev/pci/ixgbe/ixgbe_82599.c 1.30
sys/dev/pci/ixgbe/ixgbe_vf.c 1.32-1.33
sys/dev/pci/ixgbe/ixgbe_vf.h 1.18
sys/dev/pci/ixgbe/ixgbe_mbx.h 1.20
sys/dev/pci/ixgbe/ixgbe_type.h 1.57

- Reorder some event counters for readability.
- Rename some descriptions of event counters.
- Count Queue Bytes {Transmit, Receive} counter.
- Improve error check in ixgbe_check_mac_link_vf().
- Add new IXGBE_VF_GET_LINK_STATE message support.
  The VF's link state can be forced to down by PF.
- Update FCTRL after writing multicast filter.
- Update comments.

(martin)

2023-10-08 15:13:10 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe_82599.c: revision 1.30
sys/dev/pci/ixgbe/ixv.c: revision 1.184
sys/dev/pci/ixgbe/ixv.c: revision 1.185
sys/dev/pci/ixgbe/ixgbe_vf.c: revision 1.32
sys/dev/pci/ixgbe/ixgbe_vf.c: revision 1.33
sys/dev/pci/ixgbe/ixgbe.h: revision 1.87
sys/dev/pci/ixgbe/ixgbe.h: revision 1.88
sys/dev/pci/ixgbe/ixgbe.c: revision 1.330
sys/dev/pci/ixgbe/ixgbe.c: revision 1.331
sys/dev/pci/ixgbe/ixgbe.c: revision 1.332
sys/dev/pci/ixgbe/ixgbe_vf.h: revision 1.18
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.101
sys/dev/pci/ixgbe/ixgbe_type.h: revision 1.57
sys/dev/pci/ixgbe/ixgbe_mbx.h: revision 1.20
sys/dev/pci/ixgbe/ixgbe.c: revision 1.327
sys/dev/pci/ixgbe/ixgbe.c: revision 1.328
sys/dev/pci/ixgbe/ixgbe.c: revision 1.329

ixgbe: Reorder some event counters for readability.

ixg(4): Rename some descriptions of event counters.
- Rename some descriptions from register name to the meaning.
- For the same meaning's counters, add "(soft)" or "(reg)".
  The former is for a software level counter and the latter is for a
  statistics counter register based.

ixg(4): Count Queue Bytes {Transmit, Receive} counter.

ixg(4): Reorder some flow control related event counters for readability.

ixg(4): Rename some descriptions of flow control related event conters.
Remove obsolete comment.

ixgbe: Fix typo in comment. No functional change.

ixv(4): Improve error check.
ixgbe_vf.c rev. 1.31 changed the behavior of the ixgbe_check_mac_link_vf()
function. It was from FreeBSD's ixv-1.5.25 to resolve mailbox collision
problem. The change had a problem that error checks have not done at all if
the API version >= 1.5. Fix it. From FreeBSD ixv-1.5.27.

ixv(4): Add new IXGBE_VF_GET_LINK_STATE message support.
PF can control vf's link state by this change. Note that Linux's PF driver
can't control the link to force up (i.e. ip link set XXX vf Y state enable).
>From FreeBSD ixv-1.5.30.

ixg(4): Update FCTRL after writing multicast filter. Same as other OSes.
From FreeBSD 395cc55d896654b8f75071e71e856b22aed87da5.

(martin)

2023-10-08 15:03:16 UTC MAIN commitmail json YAML

For architectures (mips64) where sizeof(db_expr_t) != sizeof(kcondvar_t *)
cast through uintptr_t.

(martin)

2023-10-08 14:57:54 UTC netbsd-10 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe_82599.c: revision 1.30
sys/dev/pci/ixgbe/ixv.c: revision 1.184
sys/dev/pci/ixgbe/ixv.c: revision 1.185
sys/dev/pci/ixgbe/ixgbe_vf.c: revision 1.32
sys/dev/pci/ixgbe/ixgbe_vf.c: revision 1.33
sys/dev/pci/ixgbe/ixgbe.h: revision 1.87
sys/dev/pci/ixgbe/ixgbe.h: revision 1.88
sys/dev/pci/ixgbe/ixgbe.c: revision 1.330
sys/dev/pci/ixgbe/ixgbe.c: revision 1.331
sys/dev/pci/ixgbe/ixgbe.c: revision 1.332
sys/dev/pci/ixgbe/ixgbe_vf.h: revision 1.18
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.101
sys/dev/pci/ixgbe/ixgbe_type.h: revision 1.57
sys/dev/pci/ixgbe/ixgbe_mbx.h: revision 1.20
sys/dev/pci/ixgbe/ixgbe.c: revision 1.327
sys/dev/pci/ixgbe/ixgbe.c: revision 1.328
sys/dev/pci/ixgbe/ixgbe.c: revision 1.329

ixgbe: Reorder some event counters for readability.

ixg(4): Rename some descriptions of event counters.
- Rename some descriptions from register name to the meaning.
- For the same meaning's counters, add "(soft)" or "(reg)".
  The former is for a software level counter and the latter is for a
  statistics counter register based.

ixg(4): Count Queue Bytes {Transmit, Receive} counter.

ixg(4): Reorder some flow control related event counters for readability.

ixg(4): Rename some descriptions of flow control related event conters.
Remove obsolete comment.

ixgbe: Fix typo in comment. No functional change.

ixv(4): Improve error check.
ixgbe_vf.c rev. 1.31 changed the behavior of the ixgbe_check_mac_link_vf()
function. It was from FreeBSD's ixv-1.5.25 to resolve mailbox collision
problem. The change had a problem that error checks have not done at all if
the API version >= 1.5. Fix it. From FreeBSD ixv-1.5.27.

ixv(4): Add new IXGBE_VF_GET_LINK_STATE message support.
PF can control vf's link state by this change. Note that Linux's PF driver
can't control the link to force up (i.e. ip link set XXX vf Y state enable).
>From FreeBSD ixv-1.5.30.

ixg(4): Update FCTRL after writing multicast filter. Same as other OSes.
From FreeBSD 395cc55d896654b8f75071e71e856b22aed87da5.

(martin)

2023-10-08 14:35:24 UTC netbsd-10 commitmail json YAML

src/crypto/external/bsd/openssh/lib/Makefile@1.34.6.4 / diff / nxr@1.34.6.4
src/distrib/utils/x_ping/Makefile@1.8.36.1 / diff / nxr@1.8.36.1
src/doc/CHANGES@1.2940.2.6 / diff / nxr@1.2940.2.6
src/external/apache2/argon2/lib/libargon2/Makefile.inc@1.1.2.1 / diff / nxr@1.1.2.1
src/external/bsd/jemalloc/lib/Makefile.inc@1.15.2.1 / diff / nxr@1.15.2.1
src/external/bsd/mdocml/lib/libmandoc/Makefile@1.12.10.1 / diff / nxr@1.12.10.1
src/external/gpl3/binutils.old/lib/libbfd/Makefile@1.8.6.1 / diff / nxr@1.8.6.1
src/external/gpl3/binutils/dist/gas/config/tc-vax.c@1.13.6.1 / diff / nxr@1.13.6.1
src/external/gpl3/binutils/dist/gas/config/tc-vax.h@1.8.6.1 / diff / nxr@1.8.6.1
src/external/gpl3/binutils/lib/libbfd/Makefile@1.24.2.1 / diff / nxr@1.24.2.1
src/external/gpl3/gcc/dist/gcc/config/vax/builtins.md@1.12.6.1 / diff / nxr@1.12.6.1
src/external/gpl3/gcc/dist/gcc/config/vax/elf.h@1.11.6.1 / diff / nxr@1.11.6.1
src/external/gpl3/gcc/dist/gcc/config/vax/vax.c@1.22.6.1 / diff / nxr@1.22.6.1
src/external/gpl3/gcc/dist/gcc/config/vax/vax.md@1.17.6.1 / diff / nxr@1.17.6.1
src/external/gpl3/gcc/dist/gcc/doc/tm.texi@1.1.1.13.2.1 / diff / nxr@1.1.1.13.2.1
src/external/gpl3/gcc/dist/gcc/doc/tm.texi.in@1.1.1.12.2.1 / diff / nxr@1.1.1.12.2.1
src/external/gpl3/gcc/dist/gcc/dse.c@1.15.2.1 / diff / nxr@1.15.2.1
src/external/gpl3/gcc/dist/gcc/function.c@1.1.1.17.2.2 / diff / nxr@1.1.1.17.2.2
src/external/gpl3/gcc/dist/gcc/recog.c@1.1.1.12.6.1 / diff / nxr@1.1.1.12.6.1
src/external/gpl3/gcc/dist/gcc/reload.c@1.12.2.1 / diff / nxr@1.12.2.1
      :
(more 41 files)
Pull up following revision(s) (requested by rin in ticket #394):

external/gpl3/binutils/dist/gas/config/tc-vax.h: revision 1.10
tools/gcc/Makefile: revision 1.109
external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.16
external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.17
external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.18
external/gpl3/gcc.old/dist/gcc/recog.c: revision 1.12
external/gpl3/gcc.old/dist/gcc/function.c: revision 1.16
external/gpl3/gcc.old/dist/gcc/dse.c: revision 1.14 - 1.16
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.13
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.14
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.15
external/gpl3/gcc.old/dist/gcc/doc/tm.texi.in: revision 1.10
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.16
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.17
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.18
external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.19
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.12
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.13
external/gpl3/gcc.old/usr.bin/backend/Makefile: revision 1.20
external/gpl3/gcc.old/dist/gcc/targhooks.c: revision 1.12
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.14
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.15
external/gpl3/gcc.old/dist/gcc/config/vax/builtins.md: revision 1.12
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.16
external/gpl3/gcc.old/dist/gcc/config/vax/builtins.md: revision 1.13
external/gpl3/gcc.old/dist/gcc/doc/tm.texi: revision 1.12
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.17
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.18
external/gpl3/gcc.old/dist/gcc/config/vax/elf.h: revision 1.12
external/gpl3/gcc.old/dist/gcc/config/vax/elf.h: revision 1.13
external/gpl3/gcc.old/dist/gcc/targhooks.h: revision 1.12
external/gpl3/gcc.old/dist/gcc/target.def: revision 1.10
external/gpl3/gcc.old/dist/gcc/rtlanal.c: revision 1.14
external/gpl3/gcc.old/dist/gcc/reload.c: revision 1.12
external/gpl3/gcc.old/usr.bin/gcc/Makefile: revision 1.11
external/gpl3/gcc.old/usr.bin/lto-dump/Makefile: revision 1.3
external/gpl3/gcc.old/lib/Makefile.sanitizer: revision 1.7
external/gpl3/binutils.old/lib/libbfd/Makefile: revision 1.10
distrib/utils/x_ping/Makefile: revision 1.9
games/phantasia/Makefile: revision 1.38
external/apache2/argon2/lib/libargon2/Makefile.inc: revision 1.2
external/gpl3/gcc.old/lib/libubsan/Makefile: revision 1.8
external/bsd/mdocml/lib/libmandoc/Makefile: revision 1.13
sbin/ping/Makefile: revision 1.18
sbin/newfs_ext2fs/Makefile: revision 1.7
sys/lib/libz/Makefile: revision 1.24
sys/lib/libsa/Makefile: revision 1.97
external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile: revision 1.3
external/gpl3/gdb/lib/libgdb/Makefile: revision 1.36
sys/modules/lfs/Makefile: revision 1.11
external/mit/xorg/lib/gallium/Makefile: revision 1.51
external/gpl3/gdb.old/lib/libdecnumber/Makefile: revision 1.10
external/mit/xorg/lib/libX11/Makefile.libx11: revision 1.26
libexec/ld.elf_so/Makefile: revision 1.148
external/bsd/jemalloc/lib/Makefile.inc: revision 1.16
external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile: revision 1.14
crypto/external/bsd/openssh/lib/Makefile: revision 1.38
external/gpl3/gcc.old/usr.bin/backend/Makefile: revision 1.21
external/gpl3/gcc.old/usr.bin/cc1/Makefile: revision 1.12
external/gpl3/gcc.old/lib/libasan/Makefile: revision 1.11
external/gpl3/gcc.old/usr.bin/cc1plus/Makefile: revision 1.13
lib/libcrypt/Makefile: revision 1.36
external/gpl3/gdb/lib/libdecnumber/Makefile: revision 1.5
lib/libc/gdtoa/Makefile.inc: revision 1.13
games/gomoku/Makefile: revision 1.13
sbin/fsdb/Makefile: revision 1.43
external/gpl3/gcc.old/usr.bin/lto1/Makefile: revision 1.9
external/mit/xorg/lib/gallium.old/Makefile: revision 1.8
lib/libbz2/Makefile: revision 1.22
external/gpl3/gcc.old/usr.bin/cc1obj/Makefile: revision 1.12
usr.sbin/mtrace/Makefile: revision 1.14
external/gpl3/gcc.old/usr.bin/cc1obj/Makefile: revision 1.13
sys/arch/vax/conf/Makefile.vax: revision 1.86
sys/rump/fs/lib/liblfs/Makefile: revision 1.18
sbin/fsck_ffs/Makefile.common: revision 1.3
external/gpl3/binutils/lib/libbfd/Makefile: revision 1.27
lib/i18n_module/UTF7/Makefile: revision 1.5
external/gpl3/gcc.old/lib/liblsan/Makefile: revision 1.7
doc/CHANGES (apply patch)
(all external/gpl3/gcc.old/ changes applied to external/gpl3/gcc/)

PR 57646: Import major vax toolchain fix.

(martin)

2023-10-08 13:47:51 UTC MAIN commitmail json YAML

libm Makefile: add fma() functions for mips.

This pushed the ramdisk size, so that needed to be bumped as well.
Otherwise, there were no build issues for either 32 or 64 bit mips.
Sort-of OK'ed by simonb@.

(he)

2023-10-08 13:37:26 UTC MAIN commitmail json YAML

Oops, fix inverted test.

(ad)

2023-10-08 13:23:05 UTC MAIN commitmail json YAML

Ensure that an LWP that has taken a legitimate wakeup never produces an
error code from sleepq_block().  Then, it's possible to make cv_signal()
work as expected and only ever wake a singular LWP.

(ad)

2023-10-08 13:19:34 UTC netbsd-10 commitmail json YAML

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

sys/dev/pci/igc/if_igc.c                        up to 1.3
sys/dev/pci/igc/if_igc.h                        up to 1.2
sys/dev/pci/igc/igc_api.c                      up to 1.2
sys/dev/pci/igc/igc_api.h                      up to 1.2
sys/dev/pci/igc/igc_base.c                      up to 1.2
sys/dev/pci/igc/igc_base.h                      up to 1.2
sys/dev/pci/igc/igc_defines.h                  up to 1.2
sys/dev/pci/igc/igc_evcnt.h                    up to 1.1
sys/dev/pci/igc/igc_hw.h                        up to 1.2
sys/dev/pci/igc/igc_i225.c                      up to 1.2
sys/dev/pci/igc/igc_i225.h                      up to 1.2
sys/dev/pci/igc/igc_mac.c                      up to 1.2
sys/dev/pci/igc/igc_mac.h                      up to 1.2
sys/dev/pci/igc/igc_nvm.c                      up to 1.2
sys/dev/pci/igc/igc_nvm.h                      up to 1.2
sys/dev/pci/igc/igc_phy.c                      up to 1.2
sys/dev/pci/igc/igc_phy.h                      up to 1.2
sys/dev/pci/igc/igc_regs.h                      up to 1.2
distrib/sets/lists/man/mi: revision 1.1766
sys/arch/amd64/conf/GENERIC: revision 1.606
sys/arch/evbppc/conf/DHT: revision 1.5
sys/arch/evbarm/conf/GENERIC64: revision 1.213
share/man/man4/Makefile: revision 1.733
sys/arch/amd64/conf/ALL: revision 1.181
share/man/man4/igc.4: revision 1.1
sys/dev/pci/files.pci: revision 1.447
sys/arch/amd64/conf/XEN3_DOM0: revision 1.200
doc/CHANGES (apply patch)

Add igc(4) for Intel I225/I226 series ethernet devices

(martin)

2023-10-08 13:03:40 UTC netbsd-10 commitmail json YAML

2023-10-08 13:02:08 UTC netbsd-10 commitmail json YAML

Pull up the following, requested by rin in ticket #393:

sys/dev/pci/pcidevs 1.1494 (via patch)

Add missing I225/I226 series devices

(martin)

2023-10-08 12:38:58 UTC MAIN commitmail json YAML

Defer some wakeups till lock release.

(ad)

2023-10-08 11:12:47 UTC MAIN commitmail json YAML

sleepq_block(): slightly reduce number of test+branch in the common case.

(ad)

2023-10-08 08:05:09 UTC MAIN commitmail json YAML

2023-10-08 08:04:41 UTC MAIN commitmail json YAML

Add Pericom(Diodes) PCIe switches.

(msaitoh)

2023-10-08 05:03:12 UTC MAIN commitmail json YAML

gcc.old: Clarify PR port-vax/57646 patch [5/21]. NFC

Restore ``else'' in the original patch. NFC but better to fit into
upstream code here.

(rin)

2023-10-08 04:59:33 UTC MAIN commitmail json YAML

gcc.old: Fix my regression for PR port-vax/57646 patch [5/21]

Add a part of the original diff provided by Kalvis Duckmanton,
which I carelessly dropped during NB_FIX_VAX_BACKEND addition.

Fix ICE in DSE phase for native GCC. Now, pkgsrc/lang/perl5
successfully builds again.

(rin)

2023-10-08 03:57:48 UTC MAIN commitmail json YAML

2023-10-07 20:48:50 UTC MAIN commitmail json YAML

sleepq_uncatch(): fix typo that's been there since 2020, hello @thorpej lol:

-      l->l_flag = ~(LW_SINTR | LW_CATCHINTR | LW_STIMO);
+      l->l_flag &= ~(LW_SINTR | LW_CATCHINTR | LW_STIMO);

(ad)

2023-10-07 20:27:20 UTC MAIN commitmail json YAML

Add some simple DDB show commands: condvar, selinfo, sleepq

(ad)

2023-10-07 20:22:53 UTC MAIN commitmail json YAML

2023-10-07 20:00:40 UTC MAIN commitmail json YAML

2023-10-07 14:12:29 UTC MAIN commitmail json YAML

sleepq_uncatch(): clear LW_STIMO too, so that there's no possibility that
the newly non-interruptable sleep could produce EWOULDBLOCK (paranoia).

(ad)

2023-10-07 13:13:49 UTC MAIN commitmail json YAML

gcc.old: cc1obj/Makefile: Fix merge botch for PR port-vax/57646

(rin)

2023-10-07 12:42:03 UTC MAIN commitmail json YAML

doc/CHANGES: Oops, relocate entry for PR port-vax/57646

(rin)

2023-10-07 12:32:28 UTC MAIN commitmail json YAML

doc/CHANGES: Document initial import of PR port-vax/57646

(rin)

2023-10-07 12:15:54 UTC MAIN commitmail json YAML

Drop -O[01] hacks for vax; no longer necessary for patched GCC 10

PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton

XXXRO: GCC 12 may require hacks for a while, but it turned out that
GCC 12 should be treated differently from older versions; a lot of new
files need -O[01] flags, while some may no longer require it.

I will take a look later.

Note that these hacks are not required if Kalvis's patches for GCC 12
are applied.

Keep doc/HACKS entries for a while (will be sync with update for GCC 12).

diff --git a/crypto/external/bsd/openssh/lib/Makefile b/crypto/external/bsd/openssh/lib/Makefile
index 96a93f5e396..4e38be1b642 100644
--- a/crypto/external/bsd/openssh/lib/Makefile
+++ b/crypto/external/bsd/openssh/lib/Makefile
@@ -117,12 +117,6 @@ COPTS.${f}.c+= -Wno-pointer-sign
# XXX
COPTS.channels.c+= -fno-strict-aliasing

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.poly1305.c+= -O0
-COPTS.umac.c+= -O0
-.endif
-
COPTS.hostfile.c+= ${CC_WNO_FORMAT_TRUNCATION}
COPTS.sshkey.c+= ${CC_WNO_FORMAT_TRUNCATION}
COPTS.cipher.c+= -Wno-error=deprecated-declarations
diff --git a/distrib/utils/x_ping/Makefile b/distrib/utils/x_ping/Makefile
index f1c452a0d60..8ee77580a3f 100644
--- a/distrib/utils/x_ping/Makefile
+++ b/distrib/utils/x_ping/Makefile
@@ -12,10 +12,6 @@ CPPFLAGS+= -I${SRCDIR} -DCRUNCHOPS
DPADD= ${LIBM}
LDADD= -lm

-.if ${MACHINE_ARCH} == "vax"
-COPTS.ping.c=-O0
-.endif
-
.include <bsd.prog.mk>

.PATH: ${SRCDIR}
diff --git a/external/apache2/argon2/lib/libargon2/Makefile.inc b/external/apache2/argon2/lib/libargon2/Makefile.inc
index d3f4470c6c7..6a1dd146d7d 100644
--- a/external/apache2/argon2/lib/libargon2/Makefile.inc
+++ b/external/apache2/argon2/lib/libargon2/Makefile.inc
@@ -16,7 +16,3 @@ CFLAGS+= -pthread
LDADD+=-lpthread
DPADD+=${LIBPTHREAD}
.endif
-
-.if ${MACHINE} == "vax"
-COPTS.blake2b.c+= -O0
-.endif
diff --git a/external/bsd/jemalloc/lib/Makefile.inc b/external/bsd/jemalloc/lib/Makefile.inc
index 2f524358f46..d5da774f293 100644
--- a/external/bsd/jemalloc/lib/Makefile.inc
+++ b/external/bsd/jemalloc/lib/Makefile.inc
@@ -53,12 +53,6 @@ COPTS.ctl.c+=-Wno-error=stack-protector
COPTS.stats.c+=-Wno-error=stack-protector
COPTS.tcache.c+=-Wno-error=stack-protector

-.if ${MACHINE_ARCH} == "vax"
-# in merge_overlapping_regs, at regrename.c
-COPTS.arena.c+=-O0
-COPTS.extent.c+=-O0
-.endif
-
SRCS+=${JEMALLOC_SRCS}

jemalloc.d jemalloc.pico jemalloc.o jemalloc.ln jemalloc.po jemalloc.go: \
diff --git a/external/bsd/mdocml/lib/libmandoc/Makefile b/external/bsd/mdocml/lib/libmandoc/Makefile
index 40d7e29ae88..dfd3077a2c7 100644
--- a/external/bsd/mdocml/lib/libmandoc/Makefile
+++ b/external/bsd/mdocml/lib/libmandoc/Makefile
@@ -39,11 +39,6 @@ tbl_opts.c

MAN= mandoc.3

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.mdoc_macro.c+=-O0
-.endif
-
COPTS.man_validate.c+=-Wno-error=array-bounds

.include <bsd.lib.mk>
diff --git a/external/gpl3/binutils.old/lib/libbfd/Makefile b/external/gpl3/binutils.old/lib/libbfd/Makefile
index 03477232b55..74a354532fa 100644
--- a/external/gpl3/binutils.old/lib/libbfd/Makefile
+++ b/external/gpl3/binutils.old/lib/libbfd/Makefile
@@ -41,10 +41,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \
-DDEBUGDIR=\"${DEBUGDIR}\" -DLIBDIR=\"${LIBDIR}\" \
-DBINDIR=\"${BINDIR}\"

-.if (${BFD_MACHINE_ARCH} == "vax")
-CPPFLAGS.elf.c += -O0
-.endif
-
COPTS.pei-x86_64.c+= -Wno-stack-protector
COPTS.elfxx-mips.c+= -Wno-stack-protector
COPTS.elf.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-overflow :}
diff --git a/external/gpl3/binutils/lib/libbfd/Makefile b/external/gpl3/binutils/lib/libbfd/Makefile
index 00cb2b20081..a3f0c25fd35 100644
--- a/external/gpl3/binutils/lib/libbfd/Makefile
+++ b/external/gpl3/binutils/lib/libbfd/Makefile
@@ -41,10 +41,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \
-DDEBUGDIR=\"${DEBUGDIR}\" -DLIBDIR=\"${LIBDIR}\" \
-DBINDIR=\"${BINDIR}\"

-.if (${BFD_MACHINE_ARCH} == "vax")
-CPPFLAGS.elf.c += -O0
-.endif
-
COPTS.pei-x86_64.c+= -Wno-stack-protector
COPTS.elfxx-mips.c+= -Wno-stack-protector
COPTS.elf.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-overflow :}
diff --git a/external/gpl3/gcc.old/lib/Makefile.sanitizer b/external/gpl3/gcc.old/lib/Makefile.sanitizer
index efd36ae4bee..5173a5109a0 100644
--- a/external/gpl3/gcc.old/lib/Makefile.sanitizer
+++ b/external/gpl3/gcc.old/lib/Makefile.sanitizer
@@ -88,22 +88,3 @@ COPTS+=-fno-builtin -fno-exceptions -fno-rtti -funwind-tables

# Can't profile without it`
#-fomit-frame-pointer
-
-.if ${MACHINE_ARCH} == "vax"
-COPTS.sanitizer_allocator.cc += -O1
-COPTS.sanitizer_common.cc += -O1
-COPTS.sanitizer_common_libcdep.cc += -O1
-COPTS.sanitizer_coverage_libcdep.cc += -O1
-COPTS.sanitizer_coverage_mapping_libcdep.cc += -O1
-COPTS.sanitizer_deadlock_detector1.cc += -O1
-COPTS.sanitizer_mac.cc += -O1
-COPTS.sanitizer_netbsd.cc += -O1
-COPTS.sanitizer_posix.cc += -O1
-COPTS.sanitizer_printf.cc += -O1
-COPTS.sanitizer_procmaps_common.cc += -O1
-COPTS.sanitizer_stackdepot.cc += -O1
-COPTS.sanitizer_symbolizer_libcdep.cc += -O1
-COPTS.sanitizer_symbolizer_report.cc += -O1
-COPTS.ubsan_diag.cc += -O1
-COPTS.ubsan_init.cc += -O1
-.endif
diff --git a/external/gpl3/gcc.old/lib/libasan/Makefile b/external/gpl3/gcc.old/lib/libasan/Makefile
index 1e6f9608abe..3da7bbf2f58 100644
--- a/external/gpl3/gcc.old/lib/libasan/Makefile
+++ b/external/gpl3/gcc.old/lib/libasan/Makefile
@@ -49,14 +49,6 @@ LIBDPLIBS+= m  ${NETBSDSRCDIR}/lib/libm
LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
CPPFLAGS+=-DCAN_SANITIZE_UB=0

-.if ${MACHINE_ARCH} == "vax"
-COPTS.asan_allocator.cc += -O1
-COPTS.asan_report.cc += -O1
-COPTS.sanitizer_file.cc += -O1
-COPTS.ubsan_diag.cc += -O1
-COPTS.ubsan_init.cc += -O1
-.endif
-
.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
COPTS.asan_interceptors.cc += -O1
.endif
diff --git a/external/gpl3/gcc.old/lib/liblsan/Makefile b/external/gpl3/gcc.old/lib/liblsan/Makefile
index 4578544a9a8..ddb7981077c 100644
--- a/external/gpl3/gcc.old/lib/liblsan/Makefile
+++ b/external/gpl3/gcc.old/lib/liblsan/Makefile
@@ -16,11 +16,6 @@ LSAN_SRCS+= \
lsan_linux.cc \
lsan_thread.cc

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lsan_allocator.cc += -O1
-COPTS.sanitizer_file.cc += -O1
-.endif
-
LIB= lsan
SRCS+= ${LSAN_SRCS}
LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
diff --git a/external/gpl3/gcc.old/lib/libubsan/Makefile b/external/gpl3/gcc.old/lib/libubsan/Makefile
index 2e2faca7b1c..9de82550d14 100644
--- a/external/gpl3/gcc.old/lib/libubsan/Makefile
+++ b/external/gpl3/gcc.old/lib/libubsan/Makefile
@@ -26,10 +26,6 @@ UBSAN_SRCS= \
COPTS.${_s}.cc+=-frtti
.endfor

-.if ${MACHINE_ARCH} == "vax"
-COPTS.sanitizer_file.cc += -O1
-.endif
-
LIB= ubsan
SRCS+= ${UBSAN_SRCS}
LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
diff --git a/external/gpl3/gcc.old/usr.bin/cc1/Makefile b/external/gpl3/gcc.old/usr.bin/cc1/Makefile
index c55e292ee8e..ff12a5be524 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1/Makefile
@@ -46,17 +46,6 @@ CPPFLAGS.default-c.c+= -I${BACKENDOBJ}
BUILDSYMLINKS+= ${GNUHOSTDIST}/gcc/config/sh/sh-c.cc sh-c.c
.endif

-.if ${MACHINE_CPU} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1-checksum.c+=-O0
-.endif
-
.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
COPTS.c-common.c+=-O3
.endif
diff --git a/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile b/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
index 3123ee0d60b..aab82ad3448 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
@@ -44,16 +44,8 @@ COPTS.objc-act.c+= -Wno-stack-protector
COPTS.objc-gnu-runtime-abi-01.c+= -Wno-stack-protector
COPTS.objc-next-runtime-abi-01.c+= -Wno-stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1obj-checksum.c+=-O0
-.endif
+COPTS.c-cppbuiltin.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}
+COPTS.c-typeck.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}

.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
COPTS.c-common.c+=-O3
diff --git a/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
index b9c108251c5..e04e8fc7f53 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
@@ -69,18 +69,6 @@ COPTS.objc-act.c+= -Wno-stack-protector
COPTS.objc-gnu-runtime-abi-01.c+= -Wno-stack-protector
COPTS.objc-next-runtime-abi-01.c+= -Wno-stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1obj-checksum.c+=-O0
-COPTS.decl.c+=-O0
-.endif
-
.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
COPTS.c-common.c+=-O3
.endif
diff --git a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
index 7936efd3a5e..7c54559e21a 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
@@ -31,23 +31,6 @@ CHECKSUM_OBJS= ${LIBBACKTRACEOBJ}/libbacktrace.a \

CFLAGS+= -Wno-error=stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.call.c+=-O0
-COPTS.decl.c+=-O0
-COPTS.typeck2.c+=-O0
-COPTS.class.c+=-O0
-COPTS.typeck.c+=-O0
-COPTS.init.c+=-O0
-COPTS.semantics.c+=-O0
-COPTS.mangle.c+=-O0
-COPTS.constexpr.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1plus-checksum.c+=-O0
-.endif
-
.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
COPTS.c-common.c+=-O3
.endif
diff --git a/external/gpl3/gcc.old/usr.bin/gcc/Makefile b/external/gpl3/gcc.old/usr.bin/gcc/Makefile
index 7a66d77ffc7..a5a4b1c3adf 100644
--- a/external/gpl3/gcc.old/usr.bin/gcc/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/gcc/Makefile
@@ -25,9 +25,6 @@ ${SRCS}: ${GCCARCH}/defs.mk
.include <bsd.info.mk>

COPTS.gcc.c= -Wno-stack-protector
-.if ${MACHINE_ARCH} == "vax"
-COPTS.dse.c= -O1
-.endif

.PATH: ${DIST}/gcc ${DIST}/gcc/doc ${DIST}/gcc/c

diff --git a/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile b/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
index 751d1513eec..33aeb1c9898 100644
--- a/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
@@ -14,10 +14,6 @@ SRCS= decNumber.c decContext.c decimal32.c decimal64.c decimal128.c
CPPFLAGS+= -I${.CURDIR}/arch/${GCC_MACHINE_ARCH} -I${DIST}/libdecnumber
CPPFLAGS+= -I${DIST}/libgcc

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
.include <bsd.lib.mk>

# Force using C++ for this
diff --git a/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile b/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
index 90f44a9fcf6..fd251464fb7 100644
--- a/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
@@ -24,11 +24,6 @@ COPTS.lto-common.c+= -Wno-stack-protector
.include "../Makefile.backtrace"
.include "../Makefile.libdecnumber"

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lto-lang.c+=-O0
-COPTS.lto-symtab.c+=-O0
-.endif
-
LDADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
DPADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}

diff --git a/external/gpl3/gcc.old/usr.bin/lto1/Makefile b/external/gpl3/gcc.old/usr.bin/lto1/Makefile
index 4c49161a64c..340d3c6124f 100644
--- a/external/gpl3/gcc.old/usr.bin/lto1/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/lto1/Makefile
@@ -21,11 +21,6 @@ COPTS.lto-common.c+= -Wno-stack-protector
.include "../Makefile.libcpp"
.include "../Makefile.libdecnumber"

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lto-lang.c+=-O0
-COPTS.lto-symtab.c+=-O0
-.endif
-
LDADD+= ${LIBIBERTYOBJ}/libiberty.a
DPADD+= ${LIBIBERTYOBJ}/libiberty.a
LDADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
diff --git a/external/gpl3/gdb.old/lib/libdecnumber/Makefile b/external/gpl3/gdb.old/lib/libdecnumber/Makefile
index bcd4ae5b222..ce28811526b 100644
--- a/external/gpl3/gdb.old/lib/libdecnumber/Makefile
+++ b/external/gpl3/gdb.old/lib/libdecnumber/Makefile
@@ -18,10 +18,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \

SRCS= ${G_OBJS:.o=.c} ${G_SOURCES}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
.PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd

.include <bsd.lib.mk>
diff --git a/external/gpl3/gdb/lib/libdecnumber/Makefile b/external/gpl3/gdb/lib/libdecnumber/Makefile
index c95d36e3dfa..e3169865304 100644
--- a/external/gpl3/gdb/lib/libdecnumber/Makefile
+++ b/external/gpl3/gdb/lib/libdecnumber/Makefile
@@ -18,10 +18,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \

SRCS= ${G_OBJS:.o=.c} ${G_SOURCES}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
.PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd ${DIST}/libdecnumber/bid

.include <bsd.lib.mk>
diff --git a/external/gpl3/gdb/lib/libgdb/Makefile b/external/gpl3/gdb/lib/libgdb/Makefile
index b87a515d13a..c118c363975 100644
--- a/external/gpl3/gdb/lib/libgdb/Makefile
+++ b/external/gpl3/gdb/lib/libgdb/Makefile
@@ -66,12 +66,6 @@ CFLAGS:= ${CXXFLAGS} -std=gnu++17 -Wno-error=stack-protector

ada-exp.c: ada-lex.c

-.if ${MACHINE} == "vax"
-. if ${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8
-COPTS.read.c+= -O0
-. endif
-.endif
-
# These are generated by implicit rules and are not easy to generate
CLEANDIRFILES+= \
ada-exp.c ada-lex.c \
diff --git a/external/mit/xorg/lib/gallium.old/Makefile b/external/mit/xorg/lib/gallium.old/Makefile
index 55b2fe3d1c1..bfa40c8974f 100644
--- a/external/mit/xorg/lib/gallium.old/Makefile
+++ b/external/mit/xorg/lib/gallium.old/Makefile
@@ -1211,10 +1211,6 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHL
COPTS+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
.endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.nir.c += -O1
-.endif
-
# XXXGCC12
.if ${MACHINE_ARCH} == "m68k"
COPTS.st_glsl_to_tgsi.cpp += -O1
diff --git a/external/mit/xorg/lib/gallium/Makefile b/external/mit/xorg/lib/gallium/Makefile
index 6778a8c11c8..9f1422080fe 100644
--- a/external/mit/xorg/lib/gallium/Makefile
+++ b/external/mit/xorg/lib/gallium/Makefile
@@ -1428,10 +1428,6 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHL
COPTS+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
.endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.nir.c += -O1
-.endif
-
COPTS.u_atomic.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-builtin-declaration-mismatch :}

.include <bsd.lib.mk>
diff --git a/external/mit/xorg/lib/libX11/Makefile.libx11 b/external/mit/xorg/lib/libX11/Makefile.libx11
index e103d9ace12..0e55c2a4732 100644
--- a/external/mit/xorg/lib/libX11/Makefile.libx11
+++ b/external/mit/xorg/lib/libX11/Makefile.libx11
@@ -471,11 +471,6 @@ COPTS.OpenDis.c+= -Wno-error # XXX xf86bigfstr.h
COPTS.XlibInt.c+= -Wno-error # XXX xcmiscstr.h
COPTS.XKBBind.c+= -Wno-deprecated-declarations # uses XKeycodeToKeysym

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.lcWrap.c+= -O0
-.endif
-
CWARNFLAGS.clang+= -Wno-string-plus-int

.include "${NETBSDSRCDIR}/external/mit/xorg/tools/makekeys/Makefile.makekeys"
diff --git a/games/gomoku/Makefile b/games/gomoku/Makefile
index e86a63aaea7..678537066ed 100644
--- a/games/gomoku/Makefile
+++ b/games/gomoku/Makefile
@@ -9,10 +9,6 @@ LDADD= -lcurses -lterminfo
HIDEGAME=hidegame
CPPFLAGS+= ${DEBUG:D-DDEBUG}

-.if ${MACHINE} == "vax"
-COPTS.pickmove.c += -O0
-.endif
-
#WARNS= 6 # would produce warnings about small integer types
LINTFLAGS+= -w # treat warnings as errors
LINTFLAGS+= -T # strict bool mode
diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile
index e9c53f23ae5..b919dac17c6 100644
--- a/games/phantasia/Makefile
+++ b/games/phantasia/Makefile
@@ -52,7 +52,3 @@ map: map.c
./map | plot > /dev/tty

.include <bsd.prog.mk>
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.misc.c+= -O0
-.endif
diff --git a/lib/i18n_module/UTF7/Makefile b/lib/i18n_module/UTF7/Makefile
index 712c1515d42..7136f7f0cc3 100644
--- a/lib/i18n_module/UTF7/Makefile
+++ b/lib/i18n_module/UTF7/Makefile
@@ -3,6 +3,3 @@
SRCPRE=citrus_
.include <bsd.lib.mk>

-.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC)
-COPTS.citrus_utf7.c+= -O0
-.endif
diff --git a/lib/libbz2/Makefile b/lib/libbz2/Makefile
index b2aea1e04b0..e60a2862d48 100644
--- a/lib/libbz2/Makefile
+++ b/lib/libbz2/Makefile
@@ -15,11 +15,6 @@ SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \
INCS= bzlib.h
INCSDIR= /usr/include

-# XXX huffman.c gets mis-compiled with 2.95.3
-.if ${MACHINE_ARCH} == "vax"
-COPTS+= -O0
-.endif
-
COPTS+= ${CC_WNO_IMPLICIT_FALLTHROUGH}

# XXX blocksort.c gets mis-compiled with 4.1
diff --git a/lib/libc/gdtoa/Makefile.inc b/lib/libc/gdtoa/Makefile.inc
index 132686fc33d..609da919803 100644
--- a/lib/libc/gdtoa/Makefile.inc
+++ b/lib/libc/gdtoa/Makefile.inc
@@ -44,10 +44,3 @@ SRCS+= dmisc.c \
.if ${MACHINE_ARCH} != "vax"
SRCS+= strtord.c
.endif
-
-# XXX revisit with newer GCC.
-# Ensure numbers like 0xffff319f5fa95963 print correctly
-# ("999999999999999.98", not garbage like "?A>C>@>C:BA;A><.:<")
-.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC)
-COPTS.misc.c+= -O0
-.endif
diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile
index cb3f89d6d09..e9c8be820da 100644
--- a/lib/libcrypt/Makefile
+++ b/lib/libcrypt/Makefile
@@ -30,9 +30,6 @@ SRCS+= crypt-argon2.c
SRCS+= ${src}
COPTS.${src}+= -fvisibility=hidden
.  endfor
-.  if ${MACHINE} == "vax"
-COPTS.blake2b.c+= -O0
-.  endif
.endif

WARNS?= 5
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile
index f5baae1e883..24f7e1121e5 100644
--- a/libexec/ld.elf_so/Makefile
+++ b/libexec/ld.elf_so/Makefile
@@ -141,10 +141,6 @@ CPPFLAGS+= -DRTLD_DEFAULT_LIBRARY_PATH=\"${SHLIBDIR}:${LIBDIR}\"
COPTS.rtld.c+= -Wno-stack-protector
COPTS.symbol.c+=-Wno-stack-protector

-.if ${MACHINE_CPU} == "vax"
-COPTS.rtld.c+= -O0
-.endif
-
LDADD+= -Wl,--version-script=${.CURDIR}/symbols.map
LDADD+= -L${CLIBOBJ} -L${DESTDIR}${LIBDIR}
.if ${MKPICLIB} != "no"
diff --git a/sbin/fsck_ffs/Makefile.common b/sbin/fsck_ffs/Makefile.common
index 765638b2801..824e3bf2628 100644
--- a/sbin/fsck_ffs/Makefile.common
+++ b/sbin/fsck_ffs/Makefile.common
@@ -36,7 +36,3 @@ COPTS.ffs_appleufs.c+= -Wno-pointer-sign
.if ${MACHINE_ARCH} == "m68000"
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
.endif
-.if ${MACHINE_ARCH} == "vax"
-COPTS.pass1.c+= -O0
-COPTS.inode.c+= -O0
-.endif
diff --git a/sbin/fsdb/Makefile b/sbin/fsdb/Makefile
index c039f73a1eb..3b0331e5880 100644
--- a/sbin/fsdb/Makefile
+++ b/sbin/fsdb/Makefile
@@ -39,12 +39,6 @@ COPTS.${f}.c+= -Wno-pointer-sign
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
.endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.pass1.c+= -O0
-COPTS.inode.c+= -O0
-COPTS.fsdb.c+= -O0
-.endif
-
CWARNFLAGS.gcc+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}

.include <bsd.prog.mk>
diff --git a/sbin/newfs_ext2fs/Makefile b/sbin/newfs_ext2fs/Makefile
index 40a44b9a038..ecfdbff4d3a 100644
--- a/sbin/newfs_ext2fs/Makefile
+++ b/sbin/newfs_ext2fs/Makefile
@@ -20,8 +20,4 @@ DPADD+=${LIBPROP}

.PATH: ${NETBSDSRCDIR}/sys/ufs/ext2fs ${FSCK}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.mke2fs.c=-O0
-.endif
-
.include <bsd.prog.mk>
diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile
index 4f33501ea7a..1f7f56e3ea5 100644
--- a/sbin/ping/Makefile
+++ b/sbin/ping/Makefile
@@ -12,8 +12,4 @@ CPPFLAGS+= -DIPSEC
LDADD+= -lipsec
DPADD+= ${LIBIPSEC}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.ping.c=-O0
-.endif
-
.include <bsd.prog.mk>
diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax
index cf095d54a86..c483eaa644a 100644
--- a/sys/arch/vax/conf/Makefile.vax
+++ b/sys/arch/vax/conf/Makefile.vax
@@ -34,7 +34,6 @@ GENASSYM_CONF= ${VAX}/vax/genassym.cf
CPPFLAGS+= -D_VAX_INLINE_
AFLAGS+= -x assembler-with-cpp -fno-pic
CFLAGS+= -fno-pic
-COPTS.wsmux.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -O1 :}

##
diff --git a/sys/lib/libsa/Makefile b/sys/lib/libsa/Makefile
index 718c97ce857..4ef3840c753 100644
--- a/sys/lib/libsa/Makefile
+++ b/sys/lib/libsa/Makefile
@@ -96,7 +96,3 @@ SRCS+= ufs.c
lib${LIB}.o:: ${OBJS:O} __buildstdlib

CPPFLAGS+= -Wno-pointer-sign
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.bootp.c+= -O0
-.endif
diff --git a/sys/lib/libz/Makefile b/sys/lib/libz/Makefile
index 6945c0da6c6..61fb7d4f652 100644
--- a/sys/lib/libz/Makefile
+++ b/sys/lib/libz/Makefile
@@ -25,7 +25,3 @@ CLEANFILES+= lib${LIB}.o
.include <bsd.lib.mk>

lib${LIB}.o:: ${OBJS:O} __buildstdlib
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.inftrees.c+= -O0
-.endif
diff --git a/sys/modules/lfs/Makefile b/sys/modules/lfs/Makefile
index 962538821a5..ea8f187e160 100644
--- a/sys/modules/lfs/Makefile
+++ b/sys/modules/lfs/Makefile
@@ -18,9 +18,4 @@ SRCS+= ulfs_bmap.c ulfs_dirhash.c ulfs_inode.c ulfs_lookup.c \

WARNS= 3

-.if ${MACHINE} == "vax"
-# GCC 6.5 and 7.4 cannot compile this with -DDIAGNOSTIC and -O2/-O1
-COPTS.lfs_inode.c+= -O0
-.endif
-
.include <bsd.kmodule.mk>
diff --git a/sys/rump/fs/lib/liblfs/Makefile b/sys/rump/fs/lib/liblfs/Makefile
index abade3767d9..68b74c62502 100644
--- a/sys/rump/fs/lib/liblfs/Makefile
+++ b/sys/rump/fs/lib/liblfs/Makefile
@@ -17,9 +17,6 @@ SRCS+= ulfs_bmap.c ulfs_dirhash.c ulfs_extattr.c \

CFLAGS+=        -DLFS_KERNEL_RFW
-.if ${MACHINE_ARCH} == "vax"
-COPTS.lfs_inode.c+=-O0
-.endif

.include <bsd.lib.mk>
.include <bsd.klinks.mk>
diff --git a/usr.sbin/mtrace/Makefile b/usr.sbin/mtrace/Makefile
index aef09db6198..9c125c15265 100644
--- a/usr.sbin/mtrace/Makefile
+++ b/usr.sbin/mtrace/Makefile
@@ -12,10 +12,6 @@ PROG= mtrace
SRCS= igmp.c inet.c kern.c mtrace.c
MAN= mtrace.8

-.if ${MACHINE_ARCH} == "vax"
-COPTS.mtrace.c=-O0
-.endif
-
BINMODE=4555
BINOWN= root

diff --git a/external/gpl3/gcc.old/usr.bin/backend/Makefile b/external/gpl3/gcc.old/usr.bin/backend/Makefile
index d69a26fe619..99e881c783d 100644
--- a/external/gpl3/gcc.old/usr.bin/backend/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/backend/Makefile
@@ -533,68 +533,9 @@ COPTS.insn-recog.c+=-Wno-error

.if ${GCC_MACHINE_ARCH} == "vax"
CPPFLAGS+=-I${.CURDIR}/../../lib/libgcc/libgcov/arch/${GCC_MACHINE_ARCH}
-COPTS.builtins.c+=-O0
-COPTS.calls.c+=-O0
-COPTS.convert.c+=-O0
-COPTS.data-streamer-out.c+=-O0
-COPTS.dse.c+=-O0 # XXX port-vax/51967
-COPTS.dwarf2out.c+=-O0
-COPTS.expmed.c+=-O0
-COPTS.expr.c+=-O0 -Wno-error=tautological-compare
-COPTS.fixed-value.c+=-O0
-COPTS.fold-const.c+=-O0
-COPTS.generic-match.c+=-O0
-COPTS.gimple-fold.c+=-O0
-COPTS.gimple-match.c+=-O0
-COPTS.gimple-ssa-strength-reduction.c+=-O0
-COPTS.gimple-ssa-warn-restrict.c+=-O0
-COPTS.gimple.c+=-O0
-COPTS.internal-fn.c+=-O0
-COPTS.lto-streamer-out.c+=-O0
-COPTS.omp-low.c+=-O0
-COPTS.predict.c+=-O0
-COPTS.range-op.cc+=-O0
-COPTS.recog.c+=-O0
-COPTS.sanopt.c+=-O0
-COPTS.stmt.c+=-O0
-COPTS.stor-layout.c+=-O0
-COPTS.targhooks.c+=-O0
-COPTS.tree-affine.c+=-O0
-COPTS.tree-cfg.c+=-O0
-COPTS.tree-data-ref.c+=-O0
-COPTS.tree-eh.c+=-O0
-COPTS.tree-if-conv.c+=-O0
-COPTS.tree-object-size.c+=-O0
-COPTS.tree-parloops.c+=-O0
-COPTS.tree-predcom.c+=-O0
-COPTS.tree-pretty-print.c+=-O0
-COPTS.tree-ssa-alias.c+=-O0
-COPTS.tree-ssa-ccp.c+=-O0
-COPTS.tree-ssa-forwprop.c+=-O0
-COPTS.tree-ssa-loop-ivopts.c+=-O0
-COPTS.tree-ssa-loop-manip.c+=-O0
-COPTS.tree-ssa-loop-niter.c+=-O0
-COPTS.tree-ssa-math-opts.c+=-O0
-COPTS.tree-ssa-phiopt.c+= -O0
-COPTS.tree-ssa-pre.c+=-O0
-COPTS.tree-ssa-reassoc.c+=-O0
-COPTS.tree-ssa-strlen.c+=-O0
-COPTS.tree-ssa-uninit.c+=-O0
-COPTS.tree-ssa.c+=-O0
-COPTS.tree-switch-conversion.c+=-O0
-COPTS.tree-vect-data-refs.c+=-O0
-COPTS.tree-vect-loop-manip.c+=-O0
-COPTS.tree-vect-loop.c+=-O0
-COPTS.tree-vect-patterns.c+=-O0
-COPTS.tree-vect-stmts.c+=-O0
-COPTS.tree-vrp.c+=-O0
-COPTS.tree.c+=-O0
-COPTS.ubsan.c+=-O0
-COPTS.varasm.c+=-O0
-COPTS.vr-values.c+=-O0
-COPTS.web.c+=-O0
-COPTS.wide-int-range.cc+=-O0
-COPTS.wide-int.cc+=-O0
+
+COPTS.expmed.c+=-Wno-error=tautological-compare
+COPTS.expr.c+=-Wno-error=tautological-compare
.else
COPTS.tree.c= ${${ACTIVE_CC} == "clang" :? -O0 :}
.endif

(rin)

2023-10-07 12:13:36 UTC MAIN commitmail json YAML

gcc.old: Sprinkle NB_FIX_VAX_BACKEND for vax to enable MI fixes

PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton

(rin)

2023-10-07 12:12:58 UTC MAIN commitmail json YAML

tools/gcc: Sprinkle NB_FIX_VAX_BACKEND for vax to enable gcc.old MI fixes

PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton

(rin)

2023-10-07 12:10:59 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [21/21]

Define separate instruction patterns for extzv for the cases where the fiel
d width and offset happen to be a multiple of a byte or word.

If in PIC mode, and the source operand to extzv is a memory
reference, and the address of the memory location is an external
symbol, load the address into a temporary register before expanding
the instruction.

Adjust the constraints to the zero_extract instruction pattern to
disallow indexed source operands, as the VAX extzv instruction
computes offsets based on the size of a byte (not a word or a
longword)

(rin)

2023-10-07 12:10:38 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [20/21]

If in PIC mode, and the source operand to extv is a memory reference, and th
e address of the memory location is an external symbol, load the address into a
temporary register before expanding the instruction.

(rin)

2023-10-07 12:10:18 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [19/21]

If in PIC mode, and the source operand to insv is a memory reference,
and the address of the memory location is an external symbol, load the
address into a temporary register before expanding the instruction.

(rin)

2023-10-07 12:10:02 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [18/21]

use the extzv instruction pattern for logical shifts right

(rin)

2023-10-07 12:09:28 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [17/20]

Fix the __sync_lock_test_and_set() builtin

(rin)

2023-10-07 12:09:06 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [16/21]

PR port-vax/50384: NetBSD/vax 7.0 gcc-4.8.4 gets ICE by SIGILL

Fix for https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=50384
as encountered in gcc 7 in NetBSD 7.

VAX's FFS instruction as used in GCC's count_zero and ffssi2 instructions
uses the Z flag to indicate whether a set bit was found or not; GCC expects
the Z flag to consistently indicate whether the result is zero.

(rin)

2023-10-07 12:07:59 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [15/21]

enable use of gas(1) directives to generate the CFI table.

(rin)

2023-10-07 12:07:37 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [14/21]

Add a TARGET_INIT_BUILTINS hook (required to be able to compile gfortran)

(rin)

2023-10-07 12:05:36 UTC MAIN commitmail json YAML

gcc.old: PR port-vax/57646 patch provided by Kalvis Duckmanton [13/21]

Bitfield instructions will generate a reserved operand fault if the
operands are not reasonable (size > 32, position > 31 and size not
zero and field in a register). GCC generates code to test for these
conditions but in certain circumstances, the optimiser may decide
that a bitfield extraction instruction is invariant and move it
ahead of the instructions testing its arguments.

Introduce a new target hook to indicate to GCC that a bitfield
instruction may trap and update may_trap_p_1()

XXXRO: Although this patch includes diffs outside gcc/config/vax,
NFC for !TARGET_BITFIELD_MAY_TRAP_P, i.e., other than vax.

(rin)

2023-10-07 12:04:50 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [12/21]

PR toolchain/43314: pc relative relocations are "off by 1*size" on vax

Address http://gnats.netbsd.org/43314

(rin)

2023-10-07 12:04:09 UTC MAIN commitmail json YAML

binutils/gas: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [11/21]

PR toolchain/43314: pc relative relocations are "off by 1*size" on vax

Address http://gnats.netbsd.org/43314

(rin)

2023-10-07 12:02:50 UTC MAIN commitmail json YAML

binutils/gas: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [10/21]

Try not to emit relocations in the .eh_frame section

(rin)

2023-10-07 12:02:23 UTC MAIN commitmail json YAML

gcc.old: PR port-vax/57646 patch provided by Kalvis Duckmanton [9/21]

A reload for the address of an operand's address should not use the same
register as a reload of an operand's address if the two reloads are for
different operands

XXXRO: Hidden within ``#ifdef NB_FIX_VAX_BACKEND'' and enabled only for
vax at the moment.

(rin)

2023-10-07 12:02:03 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [8/21]

Allow 64 bit operands addressed using post-increment addressing to be negated

(rin)

2023-10-07 12:01:43 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [7/21]

Mark the output operands of the 'sbcdi3' instruction pattern as being
written before the instruction has finished using the input operands.

(rin)

2023-10-07 12:00:36 UTC MAIN commitmail json YAML

gcc.old: PR port-vax/57646 patch provided by Kalvis Duckmanton [6/21]

load the address operand of a SUBREG into a register to allow virtual
registers to be instantiated

XXXRO: Hidden within ``#ifdef NB_FIX_VAX_BACKEND'' and enabled only for
vax at the moment.

(rin)

2023-10-07 11:58:54 UTC MAIN commitmail json YAML

gcc.old: PR port-vax/57646 patch provided by Kalvis Duckmanton [5/21]

Shift right by positive values that are less than HOST_BITS_PER_WIDE_INT
to avoid illegal instruction exceptions on VAX.

XXXRO: Hidden within ``#ifdef NB_FIX_VAX_BACKEND'' and enabled only for
vax at the moment.

(rin)

2023-10-07 11:58:31 UTC MAIN commitmail json YAML

gcc.old: PR port-vax/57646 patch provided by Kalvis Duckmanton [4/21]

Constrain offsets within subregister expressions to be a multiple of
the size of the data type requested. That is, offsets for a word sized
(2 byte) subregister may only be multiples of 2.

XXXRO: Hidden within ``#ifdef NB_FIX_VAX_BACKEND'' and enabled only for
vax at the moment.

(rin)

2023-10-07 11:57:56 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [3/21]

Reduce expressions specifying an address of a 64 bit quantity to
a sequence of assignments to temporary variables; this allows virtual
registers to be inst antiated properly.

(rin)

2023-10-07 11:57:27 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [2/21]

Add a special case to the zero_extract instruction to handle the case
where 32 bits are requested (i.e. the entire word). When printing a mask
operand, avoid generating values that might overflow a 32 bit word.

(rin)

2023-10-07 11:57:01 UTC MAIN commitmail json YAML

gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [1/21]

Save %r2..%r5 in the prologue of functions which call __builtin_eh_return().
Implement the eh_return() instruction. Ensure that the CFA is correct

(rin)

2023-10-07 11:26:09 UTC MAIN commitmail json YAML

binutils/gas: vax: Cherry-pick upstream commits for binutils-gdb/30715

PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton

(1/2) https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=8c8224dc1637a3e695c17e4c1026247196813c48
----
commit 8c8224dc163
Author: Kalvis Duckmanton <kalvisd at gmail>
Date:  Sat Aug 12 14:27:00 2023 +0930

PR30715, VAX: md_create_long_jump

    PR 30715
    * config/tc-vax.c (md_create_long_jump): Use pc-relative addressing.
    * testsuite/gas/vax/broken_word.d,
    * testsuite/gas/vax/broken_word.s: New test.
    * testsuite/gas/vax/vax.exp: Run it.
----

(2/2) https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=33efa77ecf7b040973657408f92325a4db13b9e5
----
commit 33efa77ecf7
Author: Alan Modra <amodra at gmail>
Date:  Mon Aug 14 17:05:01 2023 +0930

Re: PR30715, VAX: md_create_long_jump

Tidy comment formatting.
----

(rin)

2023-10-06 21:10:12 UTC MAIN commitmail json YAML

Remove fpsp include and #ifdef FPSP blocks for news68k.
FPSP is necessary for 040/060 only, and news68k doesn't have such hardware.

Noted by Izumi Tsutsui.

(andvar)

2023-10-06 14:48:08 UTC MAIN commitmail json YAML

2023-10-06 14:46:31 UTC MAIN commitmail json YAML

ixgbe: Enable interrupt after setting IFF_RUNNING. Same as FreeBSD x-3.3.35.

(msaitoh)

2023-10-06 14:45:27 UTC MAIN commitmail json YAML

ixgbe: Remove NO_82599_SUPPORT and NO_X540_SUPPORT support. NFCI.

From FreeBSD ix-3.3.35. Note that this file is not used in NetBSD.

(msaitoh)

2023-10-06 14:44:08 UTC MAIN commitmail json YAML

ixgbe: Modify error message of wrong TX/RX descriptor size.

  - Based from FreeBSD ix-3.3.35. I think ix-3.3.35's RING_INCREMENT(== 32)
    is wrong. It should be 8(DBA_ALIGN / sizeof(union ixgbe_adv_[tr]x_desc)).
    Linux also uses 8.

(msaitoh)

2023-10-06 14:42:51 UTC MAIN commitmail json YAML

ixgbe: Simplify definitions. No functional change.

Both DEFAULT_{TX,RX}D and PERFORM_{TX,RX}D are 2048. Use DEFAULT_{TX,RX}D.
Same as FreeBSD.

(msaitoh)

2023-10-06 14:41:24 UTC MAIN commitmail json YAML

ixg(4): Filter out spurious link up indication

- Extend SFP+ cage crosstalk fix by re-checking link state after 5ms delay
  to filter out spurious link up indication by transceiver with no fiber
  cable connected.
- From FreeBSD:
    In-tree: 04a5e6d7cadd06b10169c3c3a560649e7dc7444c
    Out of tree: ix-3.3.33.

(msaitoh)

2023-10-06 14:40:06 UTC MAIN commitmail json YAML

ixg(4): Add 82599 LS once again.

- From:
        FreeBSD: 9228ac3a69c4c7401a743e6465e118101a2beeb0
        DPDK:    549ccd3dc01539e060597b503f2b65b272de3347
- This was removed 5 years ago. From the commit message:
  > Remove IXGBE_DEV_ID_82599_LS(0x154f) support again. I don't know why. This
  > was added in ix-3.2.18.tar.gz(NetBSD: ixgbe_82599.c rev. 1.20) and
  > removed in ix-3.3.6.tar.gz.

(msaitoh)

2023-10-06 14:38:03 UTC MAIN commitmail json YAML

ixg(4): Remove unused and old function. No functional change.

- From FreeBSD's ix-3.3.32.

(msaitoh)

2023-10-06 14:37:04 UTC MAIN commitmail json YAML

2023-10-06 14:35:25 UTC MAIN commitmail json YAML

ixg(4): Update FCTRL after writing multicast filter. Same as other OSes.

From FreeBSD 395cc55d896654b8f75071e71e856b22aed87da5.

(msaitoh)

2023-10-06 14:34:23 UTC MAIN commitmail json YAML

ixv(4): Add new IXGBE_VF_GET_LINK_STATE message support.

PF can control vf's link state by this change. Note that Linux's PF driver
can't control the link to force up (i.e. ip link set XXX vf Y state enable).
>From FreeBSD ixv-1.5.30.

(msaitoh)

2023-10-06 14:32:05 UTC MAIN commitmail json YAML

ixv(4): Improve error check.

ixgbe_vf.c rev. 1.31 changed the behavior of the ixgbe_check_mac_link_vf()
function. It was from FreeBSD's ixv-1.5.25 to resolve mailbox collision
problem. The change had a problem that error checks have not done at all if
the API version >= 1.5. Fix it. From FreeBSD ixv-1.5.27.

(msaitoh)

2023-10-06 13:39:56 UTC MAIN commitmail json YAML

doc/CHANGES: Note igc(4) addition

Will be pulled up to netbsd-10 soon, and this entry will migrate to
CHANGES.prev also.

(rin)

2023-10-06 11:53:27 UTC MAIN commitmail json YAML

Convert the l2->l_md.md_astpending assignments into KASSERTs.

l_md is zeroised by lwp_create with

        memset(&l2->l_startzero, 0, sizeof(*l2) -
                    offsetof(lwp_t, l_startzero));

(skrll)

2023-10-06 11:45:37 UTC MAIN commitmail json YAML

2023-10-06 11:45:16 UTC MAIN commitmail json YAML

2023-10-06 09:53:02 UTC MAIN commitmail json YAML

Fix previous and restore setting of "user" flag from trapframe.

(martin)

2023-10-06 08:53:14 UTC MAIN commitmail json YAML

Note update to dhcpcd-10.0.3

(roy)

2023-10-06 08:49:42 UTC MAIN commitmail json YAML

2023-10-06 08:48:49 UTC MAIN commitmail json YAML

Not all RISC-V CPUs have ASIDs

(skrll)

2023-10-06 08:48:16 UTC MAIN commitmail json YAML

Support CPUs that might not have ASIDs in the common pmap.

(skrll)

2023-10-06 07:33:50 UTC MAIN commitmail json YAML

Reduce upstream diffs - remove a gcc warnings " = 0" change.  This
was a problem in 2006, doesn't appear to be a problem anymore.

(simonb)

2023-10-06 07:31:30 UTC MAIN commitmail json YAML

Reduce upstream diffs.

(simonb)

2023-10-06 07:29:42 UTC MAIN commitmail json YAML

Reduce upstream diffs - tabs vs space.

(simonb)

2023-10-06 07:26:47 UTC MAIN commitmail json YAML

2023-10-06 07:13:13 UTC MAIN commitmail json YAML

Reduce upstream diffs - remove a gcc warnings " = 0" change.  This
was a problem in 2006, doesn't appear to be a problem anymore.

(simonb)

2023-10-06 07:09:15 UTC MAIN commitmail json YAML

Reduce upstream diffs.

(simonb)

2023-10-06 07:05:59 UTC MAIN commitmail json YAML

Reduce upstream diffs.

(simonb)

2023-10-06 06:25:23 UTC MAIN commitmail json YAML

2023-10-06 06:05:07 UTC MAIN commitmail json YAML

2023-10-06 06:03:52 UTC MAIN commitmail json YAML

Note update to less-643.

(simonb)

2023-10-06 05:59:51 UTC MAIN commitmail json YAML

2023-10-06 05:58:21 UTC MAIN commitmail json YAML

Many tweaks to 10-year-old script cherry-picking from many other
foo2netbsd scripts.

(simonb)

2023-10-06 05:57:16 UTC MAIN commitmail json YAML

2023-10-06 05:54:41 UTC MAIN commitmail json YAML

Updated autoconf generated files for less-643.

(simonb)

2023-10-06 05:49:49 UTC MAIN commitmail json YAML

2023-10-05 21:43:02 UTC MAIN commitmail json YAML

rge(4): check for all errors in rx buffer allocation

should fix a crash seen by by Chavdar Ivanov reported on current-users.

move the rx and tx list clean up into their own functions, and call the
rx clean up function from the init function if something fails.  this
should fix a potential leak in this case, and generally frees up memory
that won't be used without a successful init phase again.

slight application of 'static', much more could be done.

(mrg)

2023-10-05 21:41:00 UTC MAIN commitmail json YAML

provide a separate pointer that points to the drive sensors (Edgar Fuss)

(christos)

2023-10-05 20:33:31 UTC MAIN commitmail json YAML

If the read builtin is told to read into IFS, we must avoid doing
that until all current uses of IFS are complete (as we have IFS's
value cached in ifs - if IFS alters, ifs might point anywhere).
Handle this by deferring assignments to IFS until everything is done.
This makes us appear to comply with the (currently) proposed requirement
for read by POSIX that field splitting complete before vars are
assigned.  (Other shells, like dash, ksh93, yash, bosh behave like this)

That might end up being unspecified though, as other shells (bosh,
mksh) assign each field to its var as it is delimited (though bosh
appears to have bugs).  If we wanted to go that route, the issue here
could have been handled by re-doing the init of ifs after every
setvar() that is performed here (except the last, after which it is
no longer needed).

XXX pullup -10

(kre)

2023-10-05 19:44:26 UTC MAIN commitmail json YAML

Update comments to match reality

(ad)

2023-10-05 19:41:07 UTC MAIN commitmail json YAML

Arrange to update cached LWP credentials in userret() rather than during
syscall/trap entry, eliminating a test+branch on every syscall/trap.

This wasn't possible in the 3.99.x timeframe when l->l_cred came about
because there wasn't a reliable/timely way to force an ONPROC LWP running on
a remote CPU into the kernel (which is just about the only new thing in
this scheme).

(ad)

2023-10-05 19:28:30 UTC MAIN commitmail json YAML

Resolve !MULTIPROCESSOR build problem with the nasty kernel lock macros.

(ad)

2023-10-05 19:10:18 UTC MAIN commitmail json YAML

The idle LWP doesn't need to care about kernel_lock.

(ad)

2023-10-05 19:06:30 UTC MAIN commitmail json YAML

kern_sig.c: remove problematic kernel_lock handling which is unneeded in 2023.

(ad)

2023-10-05 13:05:18 UTC MAIN commitmail json YAML

lwp_pctr(9): Make this a little more robust.

No substantive change to machine code on aarch64.  (Instructions and
registers got reordered a little but not in a way that matters.)

(riastradh)

2023-10-05 12:30:59 UTC MAIN commitmail json YAML

arm/gic: Check l_blcnt, not l_biglocks.

l_biglocks is a now-defunct temporary storage used only when
sleeping; l_blcnt is the number of kernel locks held by the lwp when
not sleeping.

Should fix arm builds.

(riastradh)

2023-10-05 12:05:59 UTC MAIN commitmail json YAML

kern_cctr.c: Fix broken indentation.

No functional change intended.

(riastradh)

2023-10-05 08:19:27 UTC MAIN commitmail json YAML

Add support to npf_rules to rc.conf

- Allows overriding default from /etc/npf.conf
- Indicate rules file used in output
- Drop check for file presence in script - rely on npf exiting with error

(abs)

2023-10-05 06:15:58 UTC MAIN commitmail json YAML

Update check files affected by a fix to addbyte.c in libcurses.

(blymn)

2023-10-05 06:15:04 UTC MAIN commitmail json YAML

Fix for install/56467

Set x to 0 before calling scroll based on a  proposed fix by RVP (thanks!)

(blymn)

2023-10-04 22:41:56 UTC MAIN commitmail json YAML

pipe1(): call getnanotime() once not twice.

(ad)

2023-10-04 22:34:23 UTC MAIN commitmail json YAML

+DOH DNS over HTTPS
+DOQ DNS over QUIC
+DOT DNS over TLS
+DRN Discovery of Network-designated Resolvers
+QUIC Quick UDP Internet Connections

(jschauma)

2023-10-04 22:19:58 UTC MAIN commitmail json YAML

pipe->pipe_waiters isn't needed on NetBSD, kernel condvars do this for free.

(ad)

2023-10-04 22:17:10 UTC MAIN commitmail json YAML

2023-10-04 22:12:23 UTC MAIN commitmail json YAML

pipe_read(): try to skip locking the pipe if a non-blocking fd is used, as
is very often the case with BSD make (from FreeBSD/mjg@).

(ad)

2023-10-04 21:56:16 UTC MAIN commitmail json YAML

rump now needs lwp_need_userret()

(ad)

2023-10-04 20:52:07 UTC MAIN commitmail json YAML

p->p_stat is actually locked by proc_lock so document it that way and
shuffle some fields around so it's not next to p->p_trace_enabled (that
needs some attention too, in a later change).

(ad)

2023-10-04 20:48:13 UTC MAIN commitmail json YAML

match_process(): most of the fields being inspected are covered by proc_lock
so don't grab p->p_lock so much.

(ad)

2023-10-04 20:46:33 UTC MAIN commitmail json YAML

Do cv_broadcast(&p->p_lwpcv) after dropping p->p_lock in a few places, to
reduce contention.

(ad)

2023-10-04 20:45:14 UTC MAIN commitmail json YAML

lwp_wait(): restart the loop if p->p_lock dropped to reap zombie (paranoid).

(ad)

2023-10-04 20:44:15 UTC MAIN commitmail json YAML

Sprinkle a bunch more calls to lwp_need_userret().  There should be no
functional change but it does get rid of a bunch of assumptions about how
mi_userret() works making it easier to adjust in that in the future, and
works as a kind of documentation too.

(ad)

2023-10-04 20:42:38 UTC MAIN commitmail json YAML

Sprinkle a bunch more calls to lwp_need_userret().  There should be no
functional change but it does get rid of a bunch of assumptions about how
mi_userret() works making it easier to adjust in that in the future, and
works as a kind of documentation too.

(ad)

2023-10-04 20:39:35 UTC MAIN commitmail json YAML

Turnstiles: use the syncobj name for ps/top wmesg when sleeping since it's
more informative than "tstile".

(ad)

2023-10-04 20:34:19 UTC MAIN commitmail json YAML

Remove unneeded test of ci->ci_want_resched.

(ad)

2023-10-04 20:29:59 UTC MAIN commitmail json YAML

NetBSD 10.99.10: struct lwp and related things changed.

(ad)

2023-10-04 20:29:18 UTC MAIN commitmail json YAML

2023-10-04 20:28:06 UTC MAIN commitmail json YAML

2023-10-04 15:18:13 UTC netbsd-8 commitmail json YAML

2023-10-04 15:17:13 UTC netbsd-8 commitmail json YAML

Apply patch, requested by mrg in ticket #1908:

xsrc/external/mit/libXpm/dist/src/CrPFrBuf.c (apply patch)
xsrc/external/mit/libXpm/dist/src/CrPFrDat.c (apply patch)
xsrc/external/mit/libXpm/dist/src/CrPFrI.c (apply patch)
xsrc/external/mit/libXpm/dist/src/RdFToP.c (apply patch)
xsrc/external/mit/libXpm/dist/src/XpmI.h (apply patch)
xsrc/external/mit/libXpm/dist/src/create.c (apply patch)
xsrc/external/mit/libXpm/dist/src/data.c (apply patch)
xsrc/external/mit/libX11/dist/src/CrPixmap.c (apply patch)
xsrc/external/mit/libX11/dist/src/ImUtil.c (apply patch)
xsrc/external/mit/libX11/dist/src/PutImage.c (apply patch)
xsrc/external/mit/libX11/dist/src/xkb/XKBGetMap.c (apply patch)

Backport of upstream libX11 and libXpm 2023-10 security updates,
fixing: CVE-2023-43785, CVE-2023-43786, CVE-2023-43787, CVE-2023-43788,
CVE-2023-43789

(martin)

2023-10-04 15:14:00 UTC netbsd-9 commitmail json YAML

2023-10-04 15:12:26 UTC netbsd-9 commitmail json YAML

Apply patch, requested by mrg in ticket #1744:

xsrc/external/mit/libXpm/dist/src/CrPFrBuf.c (apply patch)
xsrc/external/mit/libXpm/dist/src/CrPFrDat.c (apply patch)
xsrc/external/mit/libXpm/dist/src/CrPFrI.c (apply patch)
xsrc/external/mit/libXpm/dist/src/RdFToP.c (apply patch)
xsrc/external/mit/libXpm/dist/src/XpmI.h (apply patch)
xsrc/external/mit/libXpm/dist/src/create.c (apply patch)
xsrc/external/mit/libXpm/dist/src/data.c (apply patch)
xsrc/external/mit/libX11/dist/src/CrPixmap.c (apply patch)
xsrc/external/mit/libX11/dist/src/ImUtil.c (apply patch)
xsrc/external/mit/libX11/dist/src/PutImage.c (apply patch)
xsrc/external/mit/libX11/dist/src/xkb/XKBGetMap.c (apply patch)

Backport of upstream libX11 and libXpm 2023-10 security updates,
fixing: CVE-2023-43785, CVE-2023-43786, CVE-2023-43787, CVE-2023-43788,
CVE-2023-43789

(martin)

2023-10-04 12:31:49 UTC netbsd-10 commitmail json YAML

2023-10-04 12:29:56 UTC netbsd-10 commitmail json YAML

xsrc/external/mit/libX11/dist/ChangeLog@1.1.1.27.2.6 / diff / nxr@1.1.1.27.2.6
xsrc/external/mit/libX11/dist/README.md@1.1.1.7.2.5 / diff / nxr@1.1.1.7.2.5
xsrc/external/mit/libX11/dist/configure@1.1.1.27.2.6 / diff / nxr@1.1.1.27.2.6
xsrc/external/mit/libX11/dist/configure.ac@1.1.1.27.2.6 / diff / nxr@1.1.1.27.2.6
xsrc/external/mit/libX11/dist/include/X11/Xutil.h@1.1.1.5.14.1 / diff / nxr@1.1.1.5.14.1
xsrc/external/mit/libX11/dist/man/xkb/Makefile.am@1.1.1.6.4.1 / diff / nxr@1.1.1.6.4.1
xsrc/external/mit/libX11/dist/man/xkb/Makefile.in@1.1.1.24.2.3 / diff / nxr@1.1.1.24.2.3
xsrc/external/mit/libX11/dist/man/xkb/XkbActionSetCtrls.man@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
xsrc/external/mit/libX11/dist/man/xkb/XkbAllocDeviceInfo.man@1.1.1.5.2.1 / diff / nxr@1.1.1.5.2.1
xsrc/external/mit/libX11/dist/man/xkb/XkbAllocDeviceLedInfo.man deleted
xsrc/external/mit/libX11/dist/man/xkb/XkbChangeControls.man@1.1.1.6.2.1 / diff / nxr@1.1.1.6.2.1
xsrc/external/mit/libX11/dist/man/xkb/XkbChangeIndicators.man deleted
xsrc/external/mit/libX11/dist/man/xkb/XkbGetAccessXTimeout.man deleted
xsrc/external/mit/libX11/dist/man/xkb/XkbGetBounceKeysDelay.man deleted
xsrc/external/mit/libX11/dist/man/xkb/XkbGetIndicatorChanges.man deleted
xsrc/external/mit/libX11/dist/man/xkb/XkbGetKeyTypes.man@1.1.1.4.2.1 / diff / nxr@1.1.1.4.2.1
xsrc/external/mit/libX11/dist/man/xkb/XkbGetNameChanges.man deleted
xsrc/external/mit/libX11/dist/man/xkb/XkbGetSlowKeysDelay.man deleted
xsrc/external/mit/libX11/dist/man/xkb/XkbGetStickyKeysOptions.man deleted
xsrc/external/mit/libX11/dist/man/xkb/XkbKeyKeyType.man@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
      :
(more 71 files)
Sync to to HEAD, requested by mrg in #392:

external/mit/libX11/dist/man/xkb/XkbKeyKeyTypeIndex.man up to 1.1.1.1
external/mit/libX11/dist/man/xkb/XkbKeyKeyType.man up to 1.1.1.1
external/mit/libX11/dist/man/xkb/XkbActionSetCtrls.man up to 1.1.1.1
external/mit/libX11/dist/man/xkb/XkbAllocDeviceLedInfo.man delete
external/mit/libX11/dist/man/xkb/XkbChangeIndicators.man delete
external/mit/libX11/dist/man/xkb/XkbGetAccessXTimeout.man delete
external/mit/libX11/dist/man/xkb/XkbGetBounceKeysDelay.man delete
external/mit/libX11/dist/man/xkb/XkbGetIndicatorChanges.man delete
external/mit/libX11/dist/man/xkb/XkbGetNameChanges.man delete
external/mit/libX11/dist/man/xkb/XkbGetSlowKeysDelay.man delete
external/mit/libX11/dist/man/xkb/XkbGetStickyKeysOptions.man delete
external/mit/libX11/dist/man/xkb/XkbKeySymsOffset.man delete
external/mit/libX11/dist/man/xkb/XkbKeyType.man delete
external/mit/libX11/dist/man/xkb/XkbKeyTypeIndex.man delete
external/mit/libX11/dist/man/xkb/XkbNoteIndicatorChanges.man delete
external/mit/libX11/dist/man/xkb/XkbSAActionSetCtrls.man delete
external/mit/libX11/dist/man/xkb/XkbSetAccessXTimeout.man delete
external/mit/libX11/dist/man/xkb/XkbSetBounceKeysDelay.man delete
external/mit/libX11/dist/ChangeLog              up to 1.6
external/mit/libX11/dist/README.md              up to 1.5
external/mit/libX11/dist/configure              up to 1.6
external/mit/libX11/dist/configure.ac          up to 1.6
external/mit/libX11/dist/include/X11/Xutil.h    up to 1.1.1.6
external/mit/libX11/dist/man/xkb/Makefile.am    up to 1.1.1.7
external/mit/libX11/dist/man/xkb/Makefile.in    up to 1.1.1.27
external/mit/libX11/dist/man/xkb/XkbAllocDeviceInfo.man up to 1.1.1.6
external/mit/libX11/dist/man/xkb/XkbChangeControls.man up to 1.1.1.7
external/mit/libX11/dist/man/xkb/XkbGetKeyTypes.man up to 1.1.1.5
external/mit/libX11/dist/nls/am_ET.UTF-8/Compose.pre up to 1.1.1.5
external/mit/libX11/dist/nls/en_US.UTF-8/Compose.pre up to 1.13
external/mit/libX11/dist/specs/XKB/ch08.xml    up to 1.1.1.5
external/mit/libX11/dist/specs/XKB/ch10.xml    up to 1.1.1.4
external/mit/libX11/dist/specs/XKB/ch15.xml    up to 1.1.1.4
external/mit/libX11/dist/specs/XKB/ch16.xml    up to 1.1.1.4
external/mit/libX11/dist/specs/XKB/ch18.xml    up to 1.1.1.4
external/mit/libX11/dist/specs/XKB/ch21.xml    up to 1.1.1.4
external/mit/libX11/dist/src/CrPixmap.c        up to 1.1.1.3
external/mit/libX11/dist/src/ImUtil.c          up to 1.1.1.10
external/mit/libX11/dist/src/OpenDis.c          up to 1.4
external/mit/libX11/dist/src/PutImage.c        up to 1.1.1.10
external/mit/libX11/dist/src/xkb/XKBGetMap.c    up to 1.1.1.8
external/mit/libXpm/dist/test/rgb.txt          up to 1.1.1.1
external/mit/libXpm/dist/test/rgb.c            up to 1.1.1.2
external/mit/libXpm/dist/ChangeLog              up to 1.1.1.11
external/mit/libXpm/dist/Makefile.in            up to 1.1.1.10
external/mit/libXpm/dist/aclocal.m4            up to 1.1.1.11
external/mit/libXpm/dist/compile                up to 1.1.1.5
external/mit/libXpm/dist/config.guess          up to 1.1.1.9
external/mit/libXpm/dist/config.h.in            up to 1.1.1.8
external/mit/libXpm/dist/config.sub            up to 1.1.1.10
external/mit/libXpm/dist/configure              up to 1.1.1.11
external/mit/libXpm/dist/configure.ac          up to 1.1.1.11
external/mit/libXpm/dist/depcomp                up to 1.1.1.7
external/mit/libXpm/dist/install-sh            up to 1.1.1.7
external/mit/libXpm/dist/ltmain.sh              up to 1.1.1.11
external/mit/libXpm/dist/missing                up to 1.1.1.8
external/mit/libXpm/dist/tap-driver.sh          up to 1.1.1.2
external/mit/libXpm/dist/test-driver            up to 1.1.1.2
external/mit/libXpm/dist/cxpm/Makefile.in      up to 1.1.1.10
external/mit/libXpm/dist/doc/Makefile.in        up to 1.1.1.8
external/mit/libXpm/dist/include/Makefile.in    up to 1.1.1.8
external/mit/libXpm/dist/include/X11/xpm.h      up to 1.1.1.4
external/mit/libXpm/dist/m4/libtool.m4          up to 1.1.1.6
external/mit/libXpm/dist/m4/ltoptions.m4        up to 1.1.1.5
external/mit/libXpm/dist/m4/ltsugar.m4          up to 1.1.1.5
external/mit/libXpm/dist/m4/ltversion.m4        up to 1.1.1.5
external/mit/libXpm/dist/m4/lt~obsolete.m4      up to 1.1.1.5
external/mit/libXpm/dist/man/Makefile.in        up to 1.1.1.7
external/mit/libXpm/dist/src/CrDatFrI.c        up to 1.1.1.6
external/mit/libXpm/dist/src/CrPFrBuf.c        up to 1.1.1.3
external/mit/libXpm/dist/src/CrPFrDat.c        up to 1.1.1.3
external/mit/libXpm/dist/src/CrPFrI.c          up to 1.1.1.3
external/mit/libXpm/dist/src/Makefile.in        up to 1.1.1.10
external/mit/libXpm/dist/src/RdFToBuf.c        up to 1.1.1.7
external/mit/libXpm/dist/src/RdFToI.c          up to 1.1.1.7
external/mit/libXpm/dist/src/RdFToP.c          up to 1.1.1.4
external/mit/libXpm/dist/src/WrFFrBuf.c        up to 1.1.1.5
external/mit/libXpm/dist/src/WrFFrI.c          up to 1.1.1.9
external/mit/libXpm/dist/src/XpmI.h            up to 1.1.1.6
external/mit/libXpm/dist/src/create.c          up to 1.7
external/mit/libXpm/dist/src/data.c            up to 1.1.1.6
external/mit/libXpm/dist/src/parse.c            up to 1.1.1.9
external/mit/libXpm/dist/src/rgb.c              up to 1.1.1.5
external/mit/libXpm/dist/sxpm/Makefile.in      up to 1.1.1.10
external/mit/libXpm/dist/test/Makefile.am      up to 1.1.1.2
external/mit/libXpm/dist/test/Makefile.in      up to 1.1.1.2
external/mit/libXpm/dist/test/TestAllFiles.h    up to 1.1.1.3
external/mit/libXpm/dist/test/XpmCreate.c      up to 1.1.1.2
external/mit/libXpm/dist/test/XpmMisc.c        up to 1.1.1.2
external/mit/libXpm/dist/test/XpmRead.c        up to 1.1.1.3
external/mit/libXpm/dist/test/XpmWrite.c        up to 1.1.1.3

Fix these CVEs (though cvs.mitre.org says they're rejected):
  CVE-2023-43785 libX11: out-of-bounds memory access in _XkbReadKeySyms()
  CVE-2023-43786 libX11: stack exhaustion from infinite recursion in
    PutSubImage()
  CVE-2023-43787 libX11: integer overflow in XCreateImage() leading to a
    heap overflow
  CVE-2023-43788 libXpm: out of bounds read in XpmCreateXpmImageFromBuffer()
  CVE-2023-43789 libXpm: out of bounds read on XPM with corrupted colormap

(martin)

2023-10-04 07:51:36 UTC MAIN commitmail json YAML

2023-10-04 07:48:55 UTC MAIN commitmail json YAML

igc(4): Added to kernel config files for tested platforms

I.e., aarch64, amd64, and evbppc/DHT, at the moment.

Please feel free to add to other config files, and report us back
if you find problems :)

(rin)

2023-10-04 07:41:55 UTC MAIN commitmail json YAML

igc(4): XXX: Temporally disable 64-bit DMA for aarch64

Until PR port-arm/57643 is properly addressed.

(rin)

2023-10-04 07:35:27 UTC MAIN commitmail json YAML

igc(4): Add support to Intel I225 / I226 series ethernet devices

Originally written by kevlo@o for OpenBSD, and ported by knakahara@,
msaitoh@, and myself.

The driver is *EXPERIMENTAL* at the moment, as some minor error
handling paths are not fully implemented.

Hardware VLAN tagging and TSO are not supported yet.

Although, we have never observed strange behaviors at least on amd64,
aarch64{,eb}, and evbppc (IBM405), except for PR port-arm/57643.

We will send pullup request to netbsd-10, after successful snapshot
build for -current.

(rin)

2023-10-04 07:19:37 UTC MAIN commitmail json YAML

2023-10-04 07:17:59 UTC MAIN commitmail json YAML

pcidevs: Add missing I225/I226 series devices

(rin)

2023-10-04 04:31:25 UTC MAIN commitmail json YAML

ixgbe: Fix typo in comment. No functional change.

(msaitoh)

2023-10-04 03:10:08 UTC MAIN commitmail json YAML

2023-10-04 03:09:42 UTC MAIN commitmail json YAML

Add Intel 82599 LS.

(msaitoh)

2023-10-04 00:04:42 UTC MAIN commitmail json YAML

resize_root: quote $rootdev consistently in resize_ffs(8) calls

(gutteridge)

2023-10-03 19:17:42 UTC MAIN commitmail json YAML