CVS: cvs.openbsd.org: src

2023-04-20 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/20 23:56:51

Modified files:
lib/libcrypto/x509: x509_enum.c 

Log message:
Stop using ENUMERATED_NAMES

This is a public alias for the also public BIT_STRING_BITNAME. The
ENUMERATED_NAMES type is used exactly twice, namely on two lines in this
file. This is silly.



CVS: cvs.openbsd.org: src

2023-04-20 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 21:49:31

Modified files:
sys/dev/pci/drm/amd/pm/swsmu/smu13: smu_v13_0_7_ppt.c 

Log message:
drm/amd/pm: correct SMU13.0.7 max shader clock reporting

>From Horatio Zhang
1f93ed9a684173bbe2cff58cdf135f8ea53156f2 in linux-6.1.y/6.1.25
85e0689eb6b10cd3b2fb455d1b3f4d4d0b13ff78 in mainline linux



CVS: cvs.openbsd.org: src

2023-04-20 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 21:47:24

Modified files:
sys/dev/pci/drm/amd/pm/swsmu/smu13: smu_v13_0_7_ppt.c 

Log message:
drm/amd/pm: correct SMU13.0.7 pstate profiling clock settings

>From Horatio Zhang
8464a01508f40a5a65db2036b7137618ee195307 in linux-6.1.y/6.1.25
f06b8887e3ef4f50098d3a949aef392c529c831a in mainline linux



CVS: cvs.openbsd.org: src

2023-04-20 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 21:45:40

Modified files:
sys/dev/pci/drm/amd/amdgpu: gfx_v11_0.c 

Log message:
drm/amdgpu/gfx: set cg flags to enter/exit safe mode

>From Jane Jian
8c1e247907b999fbd3bbcb0ad2074949fb0f55ae in linux-6.1.y/6.1.25
e06bfcc1a1c41bcb8c31470d437e147ce9f0acfd in mainline linux



CVS: cvs.openbsd.org: src

2023-04-20 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 21:44:04

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_fence.c 

Log message:
drm/amdgpu: Force signal hw_fences that are embedded in non-sched jobs

>From YuBiao Wang
b4efb6af93ca755f5469114adfd7f26bb944962c in linux-6.1.y/6.1.25
033c56474acf567a450f8bafca50e0b610f2b716 in mainline linux



CVS: cvs.openbsd.org: src

2023-04-20 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 21:42:20

Modified files:
sys/dev/pci/drm/amd/amdgpu: gfx_v11_0.c 

Log message:
drm/amdgpu: add mes resume when do gfx post soft reset

>From Tong Liu01
df27bcd0cf2b365d78f3875404de2ffb98651768 in linux-6.1.y/6.1.25
4eb0b49a0ad3e004a6a65b84efe37bc7e66d560f in mainline linux



CVS: cvs.openbsd.org: src

2023-04-20 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 21:40:34

Modified files:
sys/dev/pci/drm: drm_panel_orientation_quirks.c 

Log message:
drm: panel-orientation-quirks: Add quirk for Lenovo Yoga Book X90F

>From Hans de Goede
1fe2ed70c054b141550d397685ca4c32a321c0ae in linux-6.1.y/6.1.25
03aecb1acbcd7a660f97d645ca6c09d9de27ff9d in mainline linux



CVS: cvs.openbsd.org: src

2023-04-20 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 21:36:03

Modified files:
sys/dev/pci/drm/i915/display: icl_dsi.c 

Log message:
drm/i915/dsi: fix DSS CTL register offsets for TGL+

>From Jani Nikula
8d901a336302324742bd800f8402d3c0e781c8ff in linux-6.1.y/6.1.25
6b8446859c971a5783a2cdc90adf32e64de3bd23 in mainline linux



CVS: cvs.openbsd.org: src

2023-04-20 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 21:33:39

Modified files:
sys/dev/pci/drm/amd/display/amdgpu_dm: amdgpu_dm_helpers.c 

Log message:
drm/amd/display: Pass the right info to drm_dp_remove_payload

>From Wayne Lin
779fd2a575cc30182589e4e1da9905f20a27374a in linux-6.1.y/6.1.25
b8ca445f550a9a079134f836466ddda3bfad6108 in mainline linux



CVS: cvs.openbsd.org: src

2023-04-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/04/20 21:26:50

Modified files:
distrib/sets/lists/comp: mi 
distrib/sets/lists/man: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2023-04-20 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2023/04/20 21:03:50

Modified files:
sys/kern   : kern_clockintr.c 

Log message:
clockintr_cpu_init: fix clockintr staggering

Use reset_cq_intrclock as a stand-in for the CQ_INTRCLOCK flag when
deciding whether to stagger clockintr expirations across CPUs.



CVS: cvs.openbsd.org: src

2023-04-20 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2023/04/20 20:41:06

Modified files:
sys/kern   : kern_clockintr.c 

Log message:
clockintr: add clockqueue_reset_intrclock()

If a call to clockintr_advance(), clockintr_cancel(), or
clockintr_schedule() changes which clockintr on a given queue is
expiring soonest, we need to rearm the queue's intrclock according
to that most imminent expiration.

Add clockqueue_reset_intrclock() and use it during the aforementioned
scheduling operations if the caller is running on the queue's
controlling CPU.

Scheduling operations are not currently run while CQ_INTRCLOCK is set,
so this patch changes no behavior yet.

clockqueue_reset_intrclock() is only part of the story.  At some point
we will also need to add IPIs to every architecture to handle the case
when the caller is not running on a queue's controlling CPU.



CVS: cvs.openbsd.org: src

2023-04-20 Thread ASOU Masato
CVSROOT:/cvs
Module name:src
Changes by: a...@cvs.openbsd.org2023/04/20 19:15:48

Modified files:
sbin/ifconfig  : ifconfig.8 

Log message:
add -pweneighbor.

ok deraadt@



CVS: cvs.openbsd.org: src

2023-04-20 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/20 18:41:13

Modified files:
sys/netinet: in.c 
sys/netinet6   : in6.c 

Log message:
Drop error variable and return directly;  OK mvs tb



CVS: cvs.openbsd.org: src

2023-04-20 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2023/04/20 18:37:10

Modified files:
share/misc : airport 

Log message:
I departed from RZV (open since may 2022)



CVS: cvs.openbsd.org: src

2023-04-20 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/04/20 15:43:17

Modified files:
sys/net: rtsock.c 

Log message:
Call sysctl_source() with shared netlock. It performs read-only
access to netlock protected data.

ok kn@ bluhm@



CVS: cvs.openbsd.org: src

2023-04-20 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 14:33:55

Modified files:
share/man/man4 : viogpu.4 

Log message:
remove a stray macro, and fix SEE ALSO;



CVS: cvs.openbsd.org: src

2023-04-20 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2023/04/20 13:42:52

Modified files:
distrib/armv7/ramdisk: install.md 

Log message:
Revert the previous commit.  The raw devices don't exist when this runs
and the block devices work just fine.



CVS: cvs.openbsd.org: src

2023-04-20 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 13:28:31

Modified files:
share/man/man4 : Makefile 
sys/arch/amd64/conf: GENERIC 
sys/arch/arm64/conf: GENERIC RAMDISK 
sys/dev/pv : files.pv virtio.c virtioreg.h 
sys/dev/wscons : wsconsio.h 
Added files:
share/man/man4 : viogpu.4 
sys/dev/pv : viogpu.c viogpu.h 

Log message:
add viogpu, a VirtIO GPU driver

works enough to get a console on qemu with more work to come from
others

feedback from miod
ok patrick



CVS: cvs.openbsd.org: src

2023-04-20 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/20 12:54:47

Modified files:
lib/libcrypto/man: s2i_ASN1_INTEGER.3 

Log message:
Fix Dt and Xr



CVS: cvs.openbsd.org: src

2023-04-20 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/20 12:29:08

Modified files:
lib/libcrypto/x509: x509_cpols.c 

Log message:
Flip the default of explicitText to UTF8String

While it may have been reasonable to use VisibleString back when this
code was written, it's an anachronism nowadays. In particular, configuring
BoringSSL reports that they have seen malformed certificates with exactly
the issue caused by this unfortuante default.

Reported by Alex Gaynor in OpenSSL issue 20772

ok jsing



CVS: cvs.openbsd.org: src

2023-04-20 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/20 10:21:38

Modified files:
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2023-04-20 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/20 10:19:43

Modified files:
lib/libcrypto/man: Makefile 

Log message:
Link s2i_ASN1_INTEGER.3 to build



CVS: cvs.openbsd.org: src

2023-04-20 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/20 10:15:29

Added files:
lib/libcrypto/man: s2i_ASN1_INTEGER.3 

Log message:
Add documentation for s2i_ASN1_INTEGER and related functions

These functions convert strings to internal objects and vice versa.
This is a best effort, probably with a lot of room for improvement,
which can happen in tree if anyone cares. It's better than nothing.
Nothing in turn would be significantly better than the utter garbage
a related project has managed to land as part of their efforts towards
significant documentation improvements in a recent major relase.

This leaves a dangling reference to the misnamed X509V3_METHOD_get_nid(3)
which I may or may not fill in the future.

I am unsure about the HISTORY section's precision, but that's what I got
from cvs history. All these functions are about a quarter century old
(and it shows), so I don't think it matters very much.



CVS: cvs.openbsd.org: src

2023-04-20 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/20 09:44:45

Modified files:
usr.sbin/bgpd  : bgpd.h rde.c rde_aspa.c rtr.c 

Log message:
Rework the way transit provider AID masks are built and sent to the RDE.
ASPA provider AS sets can include optional limitations to inet/inet6 these
limits are represented in the TAS_AID bit masks (2bits per AS).
Introduce a TAS_AID_SIZE() makro that returns the size in bytes of this
bit mask (rounded to the next uint32_t).
Without this change aspa objects with AID specific elements trigger a
fatal error condition when the config is loaded.
OK tb@ job@



CVS: cvs.openbsd.org: src

2023-04-20 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 09:12:19

Modified files:
usr.sbin/rpki-client: print.c 

Log message:
Consistent casing



CVS: cvs.openbsd.org: src

2023-04-20 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/20 09:05:44

Modified files:
usr.sbin/rpki-client: output-json.c 

Log message:
ASPAs solely containing providers limited to one AFI, imply AS 0 for the other 
AFI

OK claudio@



CVS: cvs.openbsd.org: src

2023-04-20 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2023/04/20 08:51:28

Modified files:
sys/sys: clockintr.h 
sys/kern   : kern_clockintr.c 

Log message:
clockintr: eliminate CL_SCHEDCLOCK flag

The CL_SCHEDCLOCK flag is set when schedhz is non-zero.  It's
redundant.  We can just check the value of schedhz directly.



CVS: cvs.openbsd.org: www

2023-04-20 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:www
Changes by: na...@cvs.openbsd.org   2023/04/20 08:17:41

Modified files:
.  : 73.html 

Log message:
7.3 release: 8653 arm packages



CVS: cvs.openbsd.org: src

2023-04-20 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/20 08:01:50

Modified files:
usr.sbin/bgpctl: Makefile bgpctl.c bgpctl.h output.c parser.c 
 parser.h 

Log message:
Implement bgpctl show flowspec and bgpctl flowspec flush.

This uses the flowspec.c file from bgpd and implements the output
for flowspec only for the text printer for now. That code uses a lot
of code from printconf.c
OK tb@



CVS: cvs.openbsd.org: src

2023-04-20 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/20 06:53:27

Modified files:
usr.sbin/bgpd  : bgpd.h control.c rde.c session.c 

Log message:
Implement IMSG_CTL_SHOW_FLOWSPEC and IMSG_FLOWSPEC_FLUSH and add bits for
IMSG_FLOWSPEC_ADD and IMSG_FLOWSPEC_REMOVE received from bgpctl via SE.
OK tb@



CVS: cvs.openbsd.org: src

2023-04-20 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/04/20 06:44:28

Modified files:
usr.sbin/bgpd  : bgpd.conf.5 

Log message:
Document flowspec in bgpd.conf.5
Input and OK jmc@ tb@



CVS: cvs.openbsd.org: src

2023-04-20 Thread Bryan Steele
CVSROOT:/cvs
Module name:src
Changes by: bry...@cvs.openbsd.org  2023/04/20 04:49:57

Modified files:
sys/dev/usb: uhid.c 

Log message:
Move ring buffer allocation to before calling uhidev_open(), otherwise
it might be NULL in uhid_intr.

fixes "b_to_q: tty has no clist" panic hit by namn@

tested by thfr@ and namn@

ok anton@



CVS: cvs.openbsd.org: src

2023-04-20 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/04/20 01:39:17

Modified files:
regress/lib/libcrypto/x509/rfc3779: rfc3779.c 

Log message:
Exercise d2i_IPAddrBlocks() and X509v3_addr_subset() a little bit