openbsd
2 years agoImprove stability of roaming on iwn(4), in particular with wpa_supplicant.
stsp [Wed, 9 Mar 2022 11:38:51 +0000 (11:38 +0000)]
Improve stability of roaming on iwn(4), in particular with wpa_supplicant.

Clear HT-related rxon flags in firmware when switching away from RUN
or ASSOC state. This avoids fatal firmware errors.

When starting a scan, set link state down and clear ic_bss before
sending the scan command to the device, not after.

tested by mbuhl@ on eduroam
ok mbuhl@

2 years agoArm is not ready for unwinding yet. Disable unwind info generation for now.
mortimer [Wed, 9 Mar 2022 00:09:45 +0000 (00:09 +0000)]
Arm is not ready for unwinding yet. Disable unwind info generation for now.

ok deraadt@

2 years agoIn IPsec policy replace integer refcount with atomic refcount.
bluhm [Tue, 8 Mar 2022 22:30:38 +0000 (22:30 +0000)]
In IPsec policy replace integer refcount with atomic refcount.
OK tobhe@ mvs@

2 years agoWith -f use percentages of window size not pane size, GitHub issue 2866.
nicm [Tue, 8 Mar 2022 22:14:25 +0000 (22:14 +0000)]
With -f use percentages of window size not pane size, GitHub issue 2866.

2 years agoFix user hooks (which are strings not arrays).
nicm [Tue, 8 Mar 2022 21:58:37 +0000 (21:58 +0000)]
Fix user hooks (which are strings not arrays).

2 years agomerge iack_mtx, upd_c_mtx, del_mtx, ins_mtx and upd_mtx mutexes into single
sashan [Tue, 8 Mar 2022 20:46:01 +0000 (20:46 +0000)]
merge iack_mtx, upd_c_mtx, del_mtx, ins_mtx and upd_mtx mutexes into single
mutex st_mtx. This simplifies pf(4) state handling in pfsync(4). It also
makes it more reliable.

OK bluhm@

2 years agoalso use the device name in ucc_intr() debug output
anton [Tue, 8 Mar 2022 19:32:41 +0000 (19:32 +0000)]
also use the device name in ucc_intr() debug output

2 years agoAdd remain-on-exit-format to set text shown when pane is dead.
nicm [Tue, 8 Mar 2022 18:31:46 +0000 (18:31 +0000)]
Add remain-on-exit-format to set text shown when pane is dead.

2 years agoAdd a sleep when starting the bgpd daemons so that there is less chance
claudio [Tue, 8 Mar 2022 17:20:52 +0000 (17:20 +0000)]
Add a sleep when starting the bgpd daemons so that there is less chance
for a connection collision.

2 years agoSome more c99 initializers for consistency and readability
tb [Tue, 8 Mar 2022 16:59:25 +0000 (16:59 +0000)]
Some more c99 initializers for consistency and readability

2 years agoMake cad(4) handle rxr ioctl.
visa [Tue, 8 Mar 2022 16:13:08 +0000 (16:13 +0000)]
Make cad(4) handle rxr ioctl.

2 years agoEnable mtw(4) in the build for amd64.
hastings [Tue, 8 Mar 2022 15:08:01 +0000 (15:08 +0000)]
Enable mtw(4) in the build for amd64.

Firmware is available via fw_update(8).

ok stsp@

2 years agoAvoid leak of roa in rtr_parse_ipv{4,6}_prefix()
tb [Tue, 8 Mar 2022 13:02:42 +0000 (13:02 +0000)]
Avoid leak of roa in rtr_parse_ipv{4,6}_prefix()

If the length checks trigger, roa is leaked. Pull the length checks
above the allocation, which makes more sense and avoids additional
free(roa).

ok claudio

2 years agoNo need to print fetchtable twice in this error message.
claudio [Tue, 8 Mar 2022 12:58:57 +0000 (12:58 +0000)]
No need to print fetchtable twice in this error message.

2 years agouse the device name in debug output
anton [Tue, 8 Mar 2022 12:47:33 +0000 (12:47 +0000)]
use the device name in debug output

2 years agoAdd argument to refresh-client -l to forward clipboard to a pane. GitHub
nicm [Tue, 8 Mar 2022 12:01:19 +0000 (12:01 +0000)]
Add argument to refresh-client -l to forward clipboard to a pane. GitHub
issue 3068.

2 years agoAdd formats for client and server UID and user (for multiuser setups).
nicm [Tue, 8 Mar 2022 11:28:40 +0000 (11:28 +0000)]
Add formats for client and server UID and user (for multiuser setups).

2 years agoStart bgpd in rdomain 1 a bit earlier to avoid session establishment
claudio [Tue, 8 Mar 2022 07:50:34 +0000 (07:50 +0000)]
Start bgpd in rdomain 1 a bit earlier to avoid session establishment
conflicts.

2 years agoHandle rxrinfo ioctl.
jmatthew [Tue, 8 Mar 2022 06:56:14 +0000 (06:56 +0000)]
Handle rxrinfo ioctl.

ok dlg@

2 years agoAdd missing byteswap to mtw_write_cfg().
hastings [Tue, 8 Mar 2022 06:05:58 +0000 (06:05 +0000)]
Add missing byteswap to mtw_write_cfg().
Fixes loading firmware on big-endian machines.

ok stsp@, jmatthew@

2 years agosync
deraadt [Tue, 8 Mar 2022 04:03:19 +0000 (04:03 +0000)]
sync

2 years agoremove files used by isa radio drivers removed in 2016
jsg [Tue, 8 Mar 2022 00:13:19 +0000 (00:13 +0000)]
remove files used by isa radio drivers removed in 2016

lm700x: az, rt
tc921x: sfr
pt2254a: sfr, sf2r

2 years agoremove WD33C93 SCSI code
jsg [Mon, 7 Mar 2022 23:40:53 +0000 (23:40 +0000)]
remove WD33C93 SCSI code
used by wdsc on sgi (removed in 2021)
ok krw@

2 years agogrow diskspace
deraadt [Mon, 7 Mar 2022 21:43:00 +0000 (21:43 +0000)]
grow diskspace

2 years agovio(4): use NULL instead of 0 with sc_{rx,tx}_mbuf pointer array.
dv [Mon, 7 Mar 2022 18:52:16 +0000 (18:52 +0000)]
vio(4): use NULL instead of 0 with sc_{rx,tx}_mbuf pointer array.

ok millert@, deraadt@

2 years agoResolve clang unused-but-set warnings in vmd's vioscsi.c.
dv [Mon, 7 Mar 2022 14:17:47 +0000 (14:17 +0000)]
Resolve clang unused-but-set warnings in vmd's vioscsi.c.

A few of the vioscsi functions have debug logging in DPRINTF's and
are the only use of some declared variables. This tucks any debug-only
variables into the DPRINTF or behind an #if DEBUG.

ok from deraadt@ caveated I don't add code before any declarations.

2 years agoPrevent deadlock in cad_down()
visa [Mon, 7 Mar 2022 13:02:53 +0000 (13:02 +0000)]
Prevent deadlock in cad_down()

Introduce an rwlock to serialize cad(4) ioctl operations so that
cad_down() can release NET_LOCK() temporarily when invoking barriers.
This releasing prevents a possible deadlock with the taskq barrier.
The deadlock was pointed out by witness(4).

In addition, release NET_LOCK() when allocating memory in cad_up()
to reduce the risk of ill effects.

2 years agoPass client when adding menu item, GitHub issue 3103.
nicm [Mon, 7 Mar 2022 11:52:09 +0000 (11:52 +0000)]
Pass client when adding menu item, GitHub issue 3103.

2 years agoSince AIC2 uses 4 interrupt cells we need to adjust the code that handles
kettenis [Mon, 7 Mar 2022 11:08:13 +0000 (11:08 +0000)]
Since AIC2 uses 4 interrupt cells we need to adjust the code that handles
the "msi-ranges" property and converts it into a proper interrupt descriptor
for MSIs.

ok jsg@

2 years agoSwitch internal sample representation to 24-bit fixed-point
ratchov [Mon, 7 Mar 2022 09:04:45 +0000 (09:04 +0000)]
Switch internal sample representation to 24-bit fixed-point

Note that this also changes the default file encoding to 24-bit.

2 years agoSwitch internal sample representation to 24-bit fixed-point.
ratchov [Mon, 7 Mar 2022 08:58:33 +0000 (08:58 +0000)]
Switch internal sample representation to 24-bit fixed-point.

The default device precision doesn't change (yet), i.e. we still
request the usual 16-bit mode, when available. Hardware supporting
24-bit samples only gets end-to-end 24-bit processing by default.

ok kettenis

2 years agorename net80211 ioctl struct ieee80211_channel to struct ieee80211_chaninfo
stsp [Mon, 7 Mar 2022 08:13:13 +0000 (08:13 +0000)]
rename net80211 ioctl struct ieee80211_channel to struct ieee80211_chaninfo

ioctls should use dedicated names for their structs, but SIOCG80211ALLCHANS
duplicated struct ieee80211_channel. We cannot make changes to the kernel's
version of ieee80211_channel while an ioctl is squatting on the struct name.

Helpful guidance from deraadt@
Tested in a ports bulk build by sthen@, and tested by Mikhail.

ok sthen@

2 years agobump for LibreSSL 3.5.1
bcook [Mon, 7 Mar 2022 04:11:24 +0000 (04:11 +0000)]
bump for LibreSSL 3.5.1

2 years agoAdd JMICRON JMB58x ahci
chrisz [Sun, 6 Mar 2022 22:08:51 +0000 (22:08 +0000)]
Add JMICRON JMB58x ahci

ok dlg@

2 years agoSimple move firmware subdirectory in place as suggested by deraadt@
kettenis [Sun, 6 Mar 2022 19:35:22 +0000 (19:35 +0000)]
Simple move firmware subdirectory in place as suggested by deraadt@
Improved chicken scratches from tb@

2 years agoFetch bwfm(4) firmware from the EFI System Partition on Apple Silicon
kettenis [Sun, 6 Mar 2022 19:09:29 +0000 (19:09 +0000)]
Fetch bwfm(4) firmware from the EFI System Partition on Apple Silicon
devices and copy it into the right directory on the ramdisk such that it
can be used in the installer.  And copy it in place at the end of the
install procedure such that it is available for use in the newly installed
system.

ok deraadt@

2 years agoLook for firmware for Apple Silicon devices in /etc/firmware/apple-bwfm.
kettenis [Sun, 6 Mar 2022 18:52:47 +0000 (18:52 +0000)]
Look for firmware for Apple Silicon devices in /etc/firmware/apple-bwfm.

ok deraadt@

2 years agoUsually we check ipsec_in_use as shortcut to avoid IPsec lookups,
bluhm [Sun, 6 Mar 2022 15:24:50 +0000 (15:24 +0000)]
Usually we check ipsec_in_use as shortcut to avoid IPsec lookups,
but that does not work when coming from tcp_output() as inp != NULL.
This seems to be done to block packets from sockets with options
in inp_seclevel.  But instead of doing the route lookup, go directly
to ipsp_spd_inp() where the socket policy checks are done.  Calling
rtable_l2() before the shortcut also costs a bit, do it when needed.
OK tobhe@

2 years agooops, typo, spotted by Mikhail
deraadt [Sun, 6 Mar 2022 15:12:00 +0000 (15:12 +0000)]
oops, typo, spotted by Mikhail

2 years agoConvert KVA allocation to km_alloc(9).
kettenis [Sun, 6 Mar 2022 12:16:27 +0000 (12:16 +0000)]
Convert KVA allocation to km_alloc(9).

ok mpi@

2 years agoremove unused usbdev and btbus attributes
jsg [Sun, 6 Mar 2022 08:40:34 +0000 (08:40 +0000)]
remove unused usbdev and btbus attributes

2 years agoAdd an activate() function with DVACT_QUIESCE & DVACT_RESUME hooks
deraadt [Sat, 5 Mar 2022 17:00:14 +0000 (17:00 +0000)]
Add an activate() function with DVACT_QUIESCE & DVACT_RESUME hooks
(this has succesfully unhibernated a server machine)
ok dlg

2 years agoImprove wording for trying S5 instead of S4
deraadt [Sat, 5 Mar 2022 16:58:35 +0000 (16:58 +0000)]
Improve wording for trying S5 instead of S4

2 years agoAdd test coverage for i2a_ASN1_OBJECT()
jsing [Sat, 5 Mar 2022 14:16:13 +0000 (14:16 +0000)]
Add test coverage for i2a_ASN1_OBJECT()

2 years agoMove initial ROM console related codes into separated luna88k/romcons.c
aoyama [Sat, 5 Mar 2022 11:03:30 +0000 (11:03 +0000)]
Move initial ROM console related codes into separated luna88k/romcons.c
file.

No functional change, tested by me.

2 years ago#if INET6 -> #ifdef INET6 to be consistent
jsg [Sat, 5 Mar 2022 10:43:32 +0000 (10:43 +0000)]
#if INET6 -> #ifdef INET6 to be consistent

2 years agoremove fddi leftover
jsg [Sat, 5 Mar 2022 09:50:49 +0000 (09:50 +0000)]
remove fddi leftover
no binary change

2 years agoFix typo in comment
bket [Sat, 5 Mar 2022 07:13:48 +0000 (07:13 +0000)]
Fix typo in comment

OK tb@

2 years agoMove CPU-CMMU association report into #ifdef DEBUG section.
aoyama [Sat, 5 Mar 2022 06:59:12 +0000 (06:59 +0000)]
Move CPU-CMMU association report into #ifdef DEBUG section.

This was useful in early days of porting OpenBSD to LUNA-88K, but now
more detailed information is shown in dmesg.

Tested by me.

2 years agoPut back local patch to avoid regenerating tests
afresh1 [Fri, 4 Mar 2022 22:53:05 +0000 (22:53 +0000)]
Put back local patch to avoid regenerating tests

This was r1.2 and accidentally lost in the update to Devel::PPPort 3.64.

2 years agoAdd support for the BCM4387. The firmware for this variant uses a new scan
kettenis [Fri, 4 Mar 2022 22:34:41 +0000 (22:34 +0000)]
Add support for the BCM4387.  The firmware for this variant uses a new scan
command, which is indicated by the "scan_ver" firmware variable.

ok patrick@

2 years agoin_addmulti() is only called from ioctl(2) or setsockopt(2). Wait
bluhm [Fri, 4 Mar 2022 21:09:03 +0000 (21:09 +0000)]
in_addmulti() is only called from ioctl(2) or setsockopt(2).  Wait
for malloc(9) to make the system call reliable.
OK mvs@

2 years agoin_pcbinit() is called during boot. There malloc(9) cannot fail,
bluhm [Fri, 4 Mar 2022 20:35:10 +0000 (20:35 +0000)]
in_pcbinit() is called during boot.  There malloc(9) cannot fail,
but would panic instead of waiting.  Remove needless error handling.
OK mvs@

2 years agofix year, from mikhail
deraadt [Fri, 4 Mar 2022 18:14:20 +0000 (18:14 +0000)]
fix year, from mikhail

2 years agoReport versioned lib.so in cc --print-file-name given short name
gnezdo [Fri, 4 Mar 2022 16:46:23 +0000 (16:46 +0000)]
Report versioned lib.so in cc --print-file-name given short name

E.g. `cc --print-file-name libc.so` reports /usr/lib/libc.so.96.1

This is a complement of the major.minor finding logic in DriverUtils.
`ld -lc -L/usr/lib` currently find the libraries with this logic.

To make things more obviously related the code was extracted into a
function which was copied over verbatim.

fine with mortimer@
ok patrick@

2 years agoMake the regress test more reliable by starting the bgpd instances further
claudio [Fri, 4 Mar 2022 11:01:15 +0000 (11:01 +0000)]
Make the regress test more reliable by starting the bgpd instances further
apart from each other. bgpd's connection collision avoidance is not optimal
and in that case the regress test timeous out before the session is up.

2 years agoDocument LOGIN_SETRTABLE
tb [Fri, 4 Mar 2022 08:47:53 +0000 (08:47 +0000)]
Document LOGIN_SETRTABLE

ok deraadt millert tedu

2 years agoRevert previous and add LOGIN_SETENV and LOGIN_SETRTABLE
tb [Fri, 4 Mar 2022 05:37:21 +0000 (05:37 +0000)]
Revert previous and add LOGIN_SETENV and LOGIN_SETRTABLE

Instead of only adding LOGIN_SETENV and LOGIN_SETRTABLE, LOGIN_SETALL
also includes LOGIN_SETLOGIN, which had the unintended side effect of
breaking logname(1).

ok deraadt tedu

2 years agoOnly provide the .gz file if timestamp is >= the non-gzip file. Make
deraadt [Fri, 4 Mar 2022 01:46:07 +0000 (01:46 +0000)]
Only provide the .gz file if timestamp is >= the non-gzip file.  Make
sure it is a regular file.  Use the timestamp of the non-gzip file as
the last-modified timestamp, as proposed by claudio.
ok claudio bluhm millert

2 years agor1.241 was the culprit. Unrevert r1.240.
krw [Thu, 3 Mar 2022 19:10:13 +0000 (19:10 +0000)]
r1.241 was the culprit. Unrevert r1.240.

2 years agoUse LDNS_RCODE define; no functional change
florian [Thu, 3 Mar 2022 18:54:07 +0000 (18:54 +0000)]
Use LDNS_RCODE define; no functional change

2 years agoRevert r1.241 and r1.240 which may have broken softraid.
krw [Thu, 3 Mar 2022 16:52:07 +0000 (16:52 +0000)]
Revert r1.241 and r1.240 which may have broken softraid.

2 years agoStub rde_send_kroute() reminded by tb@
claudio [Thu, 3 Mar 2022 13:10:53 +0000 (13:10 +0000)]
Stub rde_send_kroute() reminded by tb@

2 years agoMove rde_send_kroute() from rde_generate_updates() to prefix_evaluate().
claudio [Thu, 3 Mar 2022 13:06:15 +0000 (13:06 +0000)]
Move rde_send_kroute() from rde_generate_updates() to prefix_evaluate().
rde_generate_updates() should only handle RIB updates and the logic
for rde_send_kroute() may change in the future.
Refactor code to simplify it a bit and make it clear that to delete a
prefix from the FIB only the prefix/len is needed.
OK tb@

2 years agoPull a len == 0 check up before malloc(len) to avoid implementation
tb [Thu, 3 Mar 2022 11:29:05 +0000 (11:29 +0000)]
Pull a len == 0 check up before malloc(len) to avoid implementation
defined behavior.

ok deraadt inoguchi

2 years agoRemove the labelid from struct kroute_full. It was never really used.
claudio [Thu, 3 Mar 2022 11:19:41 +0000 (11:19 +0000)]
Remove the labelid from struct kroute_full. It was never really used.
The label is passed as a string in kroute_full.
Ok tb@

2 years agoPick correct firmware directory. Read the target kernel version and use
sdk [Thu, 3 Mar 2022 10:12:08 +0000 (10:12 +0000)]
Pick correct firmware directory. Read the target kernel version and use
the release directory for everything except -current.

OK afresh1@

2 years agoAllow optional arguments.
nicm [Thu, 3 Mar 2022 08:24:12 +0000 (08:24 +0000)]
Allow optional arguments.

2 years agoDo not write out terminating NUL in i2a_ASN1_OBJECT()
tb [Thu, 3 Mar 2022 08:06:57 +0000 (08:06 +0000)]
Do not write out terminating NUL in i2a_ASN1_OBJECT()

The conversion to CBB made us write out an extra NUL since we no longer
use the return value of i2t_ASN1_OBJECT() (which returns strlen(data))
but rather the size of the CBB (which includes a terminal NUL) to write
out data.

Issue found by anton via an openssl-ruby test failure.

ok jsing

2 years agostruct stat from early file inspection was being used after actual file
deraadt [Wed, 2 Mar 2022 23:27:43 +0000 (23:27 +0000)]
struct stat from early file inspection was being used after actual file
open() which means the stat could refer to the wrong file.  Mostly this
relates to st_size use.  This bug could mean that httpd sends new files
truncated to the old length, saying "I am sure you have the correct file now"?
Could have other bad effects.
ok tb millert bluhm

2 years agoUse NULL instead of 0 for pointer.
bluhm [Wed, 2 Mar 2022 21:30:58 +0000 (21:30 +0000)]
Use NULL instead of 0 for pointer.

2 years agoMerge two comments describing the locks into one.
bluhm [Wed, 2 Mar 2022 20:16:43 +0000 (20:16 +0000)]
Merge two comments describing the locks into one.

2 years agoSimplify .gz handling a bit
tb [Wed, 2 Mar 2022 19:52:19 +0000 (19:52 +0000)]
Simplify .gz handling a bit

Combine strlcpy + strlcat into a single snprintf and remove a few
unnecessary parentheses.

ok deraadt millert

2 years agoUnwrap a line
tb [Wed, 2 Mar 2022 17:53:03 +0000 (17:53 +0000)]
Unwrap a line

2 years agoAbstract the memory allocation, scsibus_softc data copying and
krw [Wed, 2 Mar 2022 17:47:11 +0000 (17:47 +0000)]
Abstract the memory allocation, scsibus_softc data copying and
flag setting bits of creating a scsi_link into scsi_alloc_link().

Shrinks the bloated scsi_probe_link() a bit, makes it possible to
eventually create a useable scsi_link even when scsi_probe_link()
can't attach a device.

Developed from part of a diff submitted by Scott Nicholas via
tech@.

2 years agowhitespace
tb [Wed, 2 Mar 2022 17:45:39 +0000 (17:45 +0000)]
whitespace

2 years agoProvide additional ASN1_OBJECT test coverage.
jsing [Wed, 2 Mar 2022 17:39:56 +0000 (17:39 +0000)]
Provide additional ASN1_OBJECT test coverage.

2 years agoAdapt prefix_adjout_update() the same way as prefix_adjout_withdraw()
claudio [Wed, 2 Mar 2022 16:51:43 +0000 (16:51 +0000)]
Adapt prefix_adjout_update() the same way as prefix_adjout_withdraw()
and to the accounting in the function.
OK tb@

2 years agoThe firmware for the bwfm(4) variants in Apple Silicon Macs has variants
kettenis [Wed, 2 Mar 2022 16:35:49 +0000 (16:35 +0000)]
The firmware for the bwfm(4) variants in Apple Silicon Macs has variants
for different module types, module vendors and module revisions.  Make
our driver use the same naming scheme as Asahi Linux.

ok patrick@

2 years agoCorrect prefix_adjout_destroy() prototype
claudio [Wed, 2 Mar 2022 14:49:25 +0000 (14:49 +0000)]
Correct prefix_adjout_destroy() prototype

2 years agoRefactor prefix_adjout_withdraw()
claudio [Wed, 2 Mar 2022 14:44:46 +0000 (14:44 +0000)]
Refactor prefix_adjout_withdraw()

Just pass the prefix to be withdrawn to the function and move the lookup
up. Adjust how the various accounting vars are updated so that the
values are decremented in the right cases. Do the same accounting dance
for prefix_adjout_destroy(). Adjust rde_up_flush_upcall() to directly
call prefix_adjout_withdraw() without calling it via up_generate_updates().
OK tb@

2 years agoMove the code obtaining the LUN 0 scsi_link used to determine the
krw [Wed, 2 Mar 2022 13:58:08 +0000 (13:58 +0000)]
Move the code obtaining the LUN 0 scsi_link used to determine the
LUNs available to a target into scsi_get_target_luns(). Clearer
code and prep for future changes.

No functional change.

Extracted from a larger diff submitted by Scott Nicholas via
tech@.

2 years agodrm/i915/dg2: Print PHY name properly on calibration error
jsg [Wed, 2 Mar 2022 13:09:56 +0000 (13:09 +0000)]
drm/i915/dg2: Print PHY name properly on calibration error

From Matt Roper
d064d0c39405a7f0fc76d9b70ce9fb3bf434fe05 in linux 5.15.y/5.15.26
28adef861233c6fce47372ebd2070b55eaa8e899 in mainline linux

2 years agodrm/edid: Always set RGB444
jsg [Wed, 2 Mar 2022 13:07:51 +0000 (13:07 +0000)]
drm/edid: Always set RGB444

From Maxime Ripard
143dafa60aa7f0894a8f1b63b001e3a6f30169a0 in linux 5.15.y/5.15.26
ecbd4912a693b862e25cba0a6990a8c95b00721e in mainline linux

2 years agodrm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV
jsg [Wed, 2 Mar 2022 13:06:03 +0000 (13:06 +0000)]
drm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV

From Ville Syrjala
0726fca0b6cc26a9ee6b0a0ac8984b8be0c62fb8 in linux 5.15.y/5.15.26
ec663bca9128f13eada25cd0446e7fcb5fcdc088 in mainline linux

2 years agodrm/i915: Correctly populate use_sagv_wm for all pipes
jsg [Wed, 2 Mar 2022 13:04:05 +0000 (13:04 +0000)]
drm/i915: Correctly populate use_sagv_wm for all pipes

From Ville Syrjala
1b4445e09df83c397343ef8ab6b3ab560a4831ff in linux 5.15.y/5.15.26
afc189df6bcc6be65961deb54e15ec60e7f85337 in mainline linux

2 years agodrm/i915: Widen the QGV point mask
jsg [Wed, 2 Mar 2022 13:01:22 +0000 (13:01 +0000)]
drm/i915: Widen the QGV point mask

From Ville Syrjala
7782e3c4e5390d217604a73a095db14d48c8b714 in linux 5.15.y/5.15.26
3f33364836aacc28cd430d22cf22379e3b5ecd77 in mainline linux

2 years agodrm/amdgpu: do not enable asic reset for raven2
jsg [Wed, 2 Mar 2022 12:58:57 +0000 (12:58 +0000)]
drm/amdgpu: do not enable asic reset for raven2

From Chen Gong
8840d963e56685f8750c710b1d567a283712c554 in linux 5.15.y/5.15.26
1e2be869c8a7247a7253ef4f461f85e2f5931b95 in mainline linux

2 years agodrm/amdgpu: disable MMHUB PG for Picasso
jsg [Wed, 2 Mar 2022 12:57:11 +0000 (12:57 +0000)]
drm/amdgpu: disable MMHUB PG for Picasso

From Evan Quan
70b2413ac30c88a049f179d674d29d1f6af1d29a in linux 5.15.y/5.15.26
f626dd0ff05043e5a7154770cc7cda66acee33a3 in mainline linux

2 years agodrm/amd: Check if ASPM is enabled from PCIe subsystem
jsg [Wed, 2 Mar 2022 12:53:45 +0000 (12:53 +0000)]
drm/amd: Check if ASPM is enabled from PCIe subsystem

From Mario Limonciello
ea44fcee7e3d87725423c904306a99cd42bd24b7 in linux 5.15.y/5.15.26
7294863a6f01248d72b61d38478978d638641bee in mainline linux

2 years agoThe return value of in6_pcbnotify() is never used. Make it a void
bluhm [Wed, 2 Mar 2022 12:53:15 +0000 (12:53 +0000)]
The return value of in6_pcbnotify() is never used.  Make it a void
function.
OK gnezdo@ mvs@ florian@ sashan@

2 years agodrm/amd/pm: fix some OEM SKU specific stability issues
jsg [Wed, 2 Mar 2022 12:50:08 +0000 (12:50 +0000)]
drm/amd/pm: fix some OEM SKU specific stability issues

From Evan Quan
c00e4c01f470f0446556bd99af899bfa26dd9fae in linux 5.15.y/5.15.26
e3f3824874da78db5775a5cb9c0970cd1c6978bc in mainline linux

2 years agodrm/amd/display: Protect update_bw_bounding_box FPU code.
jsg [Wed, 2 Mar 2022 12:48:18 +0000 (12:48 +0000)]
drm/amd/display: Protect update_bw_bounding_box FPU code.

From Bas Nieuwenhuizen
211b67fb5a49c9f6e6a63d9b94ea96bf2e39341a in linux 5.15.y/5.15.26
1432108d00e42ffa383240bcac8d58f89ae19104 in mainline linux

2 years agorevert rev 1.6, local change to use DC_FP_START()/DC_FP_END() in
jsg [Wed, 2 Mar 2022 12:45:40 +0000 (12:45 +0000)]
revert rev 1.6, local change to use DC_FP_START()/DC_FP_END() in
update_bw_bounding_box()

a linux 5.15.26 patch adds this to the callers

2 years agoRecognize the cores on Apple's M1 Pro/Max SoCs.
kettenis [Wed, 2 Mar 2022 12:45:35 +0000 (12:45 +0000)]
Recognize the cores on Apple's M1 Pro/Max SoCs.

ok jsg@

2 years agoAdd RTC support to aplsmc(4). The SMC firmware distributed with macOS 12.x
kettenis [Wed, 2 Mar 2022 12:44:48 +0000 (12:44 +0000)]
Add RTC support to aplsmc(4).  The SMC firmware distributed with macOS 12.x
has a method to read the counter that forms the base of the RTC.  This seems
to be the preferred way to access the RTC going forward.  The RTC offset is
still stored in the SPMI PMU, but we can use the nvmem interface to read
and write that.  This makes the RTC work on systems with the M1 Pro/Max SoC.

Sprinkle some #ifdef SMALL_KERNEL around and enable the driver on RAMDISK
kernels.

ok patrick@

2 years agoAdd nvmem support and make this available on all Apple SPMI PMUs. Restrict
kettenis [Wed, 2 Mar 2022 12:35:14 +0000 (12:35 +0000)]
Add nvmem support and make this available on all Apple SPMI PMUs.  Restrict
the RTC interface to the "sera" PMU found on Apple M1 systems.

ok patrick@

2 years agoAdd an interface to write to an nvmem cell.
kettenis [Wed, 2 Mar 2022 12:00:46 +0000 (12:00 +0000)]
Add an interface to write to an nvmem cell.

ok patrick@

2 years agoAdd openvpn ports (udp/1194 & tcp/1194) to /etc/services
landry [Wed, 2 Mar 2022 11:43:52 +0000 (11:43 +0000)]
Add openvpn ports (udp/1194 & tcp/1194) to /etc/services

Registered at IANA since 2004, also present on Linux & FreeBSD

ok sthen@ stsp@ jca@

2 years agoRewrite ASN1_OBJECT content to ascii/text conversion.
jsing [Wed, 2 Mar 2022 11:28:00 +0000 (11:28 +0000)]
Rewrite ASN1_OBJECT content to ascii/text conversion.

Rewrite the ASN1_OBJECT content to ascii/text conversion code using CBB and
CBS. Currently there is a strange split with i2t_ASN1_OBJECT() calling
OBJ_obj2txt() which implements the conversion, while OBJ_txt2obj() calls
back into the misnamed a2d_ASN1_OBJECT() function. Move the conversion
code into asn1/a_object.c and have OBJ_txt2obj() call that instead.

ok inoguchi@ tb@