openbsd
19 months agoUse 'char * const' instead of #define for repeated
krw [Thu, 30 Mar 2023 22:53:39 +0000 (22:53 +0000)]
Use 'char * const' instead of #define for repeated
GUID strings. Consistently use strcasecmp() when comparing
GUID's, allowing use of simple 'char *' for gt_guid.

No intentional functional change.

19 months agokeep match strings sorted
kn [Thu, 30 Mar 2023 20:07:49 +0000 (20:07 +0000)]
keep match strings sorted

19 months agoAttach Baikal-M PCIe
kn [Thu, 30 Mar 2023 20:03:32 +0000 (20:03 +0000)]
Attach Baikal-M PCIe

https://github.com/Elpitech/baikal-m-linux-kernel/search?q=bm1000-pcie
Tested on ET-101-MB

Initial diff from Slava Voronzoff
Feedback OK kettenis patrick

19 months agotabify two lines
op [Thu, 30 Mar 2023 19:01:25 +0000 (19:01 +0000)]
tabify two lines

19 months agodon't access(conffile)
op [Thu, 30 Mar 2023 19:00:02 +0000 (19:00 +0000)]
don't access(conffile)

This removes a few access(2) calls in the configuration file handling.
startupfile() now opens and return the file and to avoid surprises it
also uses a caller-provided buffer to store the filename.  This also
removes the extra adjustpath() that load() did: it has been moved to
evalfile() only.

with help, fixes and ok tb@

19 months agoi2d_ECDSA_SIG() may return a negative value in case of error.
bluhm [Thu, 30 Mar 2023 17:20:53 +0000 (17:20 +0000)]
i2d_ECDSA_SIG() may return a negative value in case of error.
Do no use this as length in iked(8) _dsa_verify_prepare().
OK tobhe@ tb@

19 months agoescape "An" in a %T call, so groff does not flag it as an error;
jmc [Thu, 30 Mar 2023 16:16:32 +0000 (16:16 +0000)]
escape "An" in a %T call, so groff does not flag it as an error;

19 months agoadjust markup of one of the builtin kill usage
op [Thu, 30 Mar 2023 16:00:47 +0000 (16:00 +0000)]
adjust markup of one of the builtin kill usage

The Op on its own line becomes part of the item body instead of the list
item itself.

OK millert@

19 months agoi2d_ECDSA_SIG() may return a negative value in case of error. Handle
bluhm [Thu, 30 Mar 2023 15:51:09 +0000 (15:51 +0000)]
i2d_ECDSA_SIG() may return a negative value in case of error.  Handle
this in ossl_ecdsa_sign() and propagate the return code.
OK jsing@ tb@

19 months agoAdd the protocol used to sync the repository to the open-metric output.
claudio [Thu, 30 Mar 2023 15:29:15 +0000 (15:29 +0000)]
Add the protocol used to sync the repository to the open-metric output.
OK tb@

19 months agoMap device tree read/write to unbreak root on softraid
kn [Thu, 30 Mar 2023 15:09:01 +0000 (15:09 +0000)]
Map device tree read/write to unbreak root on softraid

Since r1.76 "Get rid of pmap_map_early()" the FDT was mapped read-only,
but CRYPTO softraid code writes it to zero out the key.

Found and tested by me;  explanation and fix from kettenis.
OK kettenis

19 months agoRefactor extract_prefix() to first do the length checks and only then
claudio [Thu, 30 Mar 2023 14:47:25 +0000 (14:47 +0000)]
Refactor extract_prefix() to first do the length checks and only then
copy the data out.
OK tb@

19 months agoRemove needless memset() call, 'entries' variable and
krw [Thu, 30 Mar 2023 14:38:26 +0000 (14:38 +0000)]
Remove needless memset() call, 'entries' variable and
limit check in PRT_menuid_to_guid().

No functional change.

19 months agoCall bn_copy() unconditionally in BN_mul() and BN_sqr()
tb [Thu, 30 Mar 2023 14:28:56 +0000 (14:28 +0000)]
Call bn_copy() unconditionally in BN_mul() and BN_sqr()

bn_copy() does the right thing if source and target are the same, so
there is no need for an additional check.

Requested by jsing

19 months agobio_ndef: add an empty line before return
tb [Thu, 30 Mar 2023 14:23:50 +0000 (14:23 +0000)]
bio_ndef: add an empty line before return

19 months agoRework BN_exp() a bit
tb [Thu, 30 Mar 2023 14:21:10 +0000 (14:21 +0000)]
Rework BN_exp() a bit

This mostly only cleans up the mess that it was - which doesn't stand out
because of the horror that lurks in the rest of this file. It avoids
copying the partial calculation out on error and does away with some
other weirdness.

with/ok jsing

19 months agoExtra space in struct field definitions. NFC
claudio [Thu, 30 Mar 2023 13:25:23 +0000 (13:25 +0000)]
Extra space in struct field definitions. NFC

19 months agoPut the size of the pt_entry object into the struct itself.
claudio [Thu, 30 Mar 2023 12:11:18 +0000 (12:11 +0000)]
Put the size of the pt_entry object into the struct itself.

Increase the refcnt to a 32bit int and while there reorder the vpn
specific structs a bit so the IPv4 and IPv6 types are more equal.

OK tb@

19 months agoUpdate comment: RTL8139 -> TNETE2101
kevlo [Thu, 30 Mar 2023 09:24:22 +0000 (09:24 +0000)]
Update comment: RTL8139 -> TNETE2101

ok mpi@

19 months agotrailing whitespaces
op [Thu, 30 Mar 2023 08:07:07 +0000 (08:07 +0000)]
trailing whitespaces

19 months agostrncpy -> strlcpy to properly NUL-terminate the copy of the path
op [Thu, 30 Mar 2023 07:26:15 +0000 (07:26 +0000)]
strncpy -> strlcpy to properly NUL-terminate the copy of the path

otherwise paths longer than NFILEN (1024) given with -u won't
NUL-terminate `file'.

19 months agoIgnore return value from muxclient(). It normally loops without returning,
dtucker [Thu, 30 Mar 2023 07:19:50 +0000 (07:19 +0000)]
Ignore return value from muxclient().  It normally loops without returning,
but it if returns on failure we immediately exit.  Coverity CID 405050.

19 months agoreturn SSH_ERR_KEY_NOT_FOUND if the allowed_signers file is empty,
djm [Thu, 30 Mar 2023 03:05:01 +0000 (03:05 +0000)]
return SSH_ERR_KEY_NOT_FOUND if the allowed_signers file is empty,
not SSH_ERR_INTERNAL_ERROR. Also remove some dead code spotted by
Coverity; with/ok dtucker@

19 months agoRemove dead code from inside if block. The only way the if statement can
dtucker [Thu, 30 Mar 2023 00:49:37 +0000 (00:49 +0000)]
Remove dead code from inside if block.  The only way the if statement can
be true is if both dup()s fail, and in that case the tmp2 can never be set.
Coverity CID 291805, ok djm@

19 months agoChange 'type' to 'menuid' in various struct's, functions and
krw [Wed, 29 Mar 2023 19:34:49 +0000 (19:34 +0000)]
Change 'type' to 'menuid' in various struct's, functions and
variables related to gpt partitions. Makes it clear that there is
no required tie between mbr partition types and gpt partition
types.

No functional change.

19 months agoplug leak of tagpos in poptag() if loadbuffer() fails
op [Wed, 29 Mar 2023 19:09:04 +0000 (19:09 +0000)]
plug leak of tagpos in poptag() if loadbuffer() fails

19 months agoQuote possible 'none' answer as part of help text after question
kn [Wed, 29 Mar 2023 17:40:24 +0000 (17:40 +0000)]
Quote possible 'none' answer as part of help text after question

'Default IPv4 route?' takes an IP or this word, not no IP at all.
All other questions already quote their 'none', 'done', etc. answers.

No behaviour change for autoinstall(8) files, questions end after the
qestion mark and potential answers/help in parentheses comes after that.

19 months agoInstead of storing the short TAL name as repouri use the first TAL URI
claudio [Wed, 29 Mar 2023 17:03:29 +0000 (17:03 +0000)]
Instead of storing the short TAL name as repouri use the first TAL URI
for that. This is more in line with the other uses of repouri.
OK tb@

19 months agoAdd missing semicolon to properly end switch case
kn [Wed, 29 Mar 2023 16:20:17 +0000 (16:20 +0000)]
Add missing semicolon to properly end switch case

There since introduction, lucked out since it is the last case.
No functional change.

19 months agoNo need to assume a nil GUID can be found at gpt_types[0]. Just
krw [Wed, 29 Mar 2023 15:55:34 +0000 (15:55 +0000)]
No need to assume a nil GUID can be found at gpt_types[0]. Just
use uuid_create_nil().

No functional change.

19 months agoMark the struct aid name as const char * since it points to static memory.
claudio [Wed, 29 Mar 2023 14:35:38 +0000 (14:35 +0000)]
Mark the struct aid name as const char * since it points to static memory.

19 months agoSimplify code by having PRT_uuid_to_type() return -1 when
krw [Wed, 29 Mar 2023 14:20:50 +0000 (14:20 +0000)]
Simplify code by having PRT_uuid_to_type() return -1 when
no type can be found. 0 is a valid type!

No functional change.

19 months agoSwitch prefix_adjout_get and new prefix_adjout_first to use a pt_entry
claudio [Wed, 29 Mar 2023 10:46:11 +0000 (10:46 +0000)]
Switch prefix_adjout_get and new prefix_adjout_first to use a pt_entry
as argument instead of the bgpd_addr + prefixlen.

Do the same with prefix_adjout_update but leave prefix_adjout_lookup
and prefix_adjout_match since those are used by bgpctl code that does
not use pt_entry structs.

With this most of the update code no longer needs struct bgpd_addr and
pt_getaddr().
OK tb@

19 months agodrop needless global tagsfn path
op [Wed, 29 Mar 2023 10:42:34 +0000 (10:42 +0000)]
drop needless global tagsfn path

mg kept the path to the last loaded tag file in tagsfn which was used
for both the lazy loading (now removed) and as a flag to know if any
tags are currently loaded.  It's redundant and complicates the code:
just check if the tree is empty instead.

ok tb@

19 months agoRework test failure printing
tb [Wed, 29 Mar 2023 10:36:14 +0000 (10:36 +0000)]
Rework test failure printing

Make sure it's always printed to stderr. Use a wrapper for printing a
BIGNUM rather than repeating the same ugly pattern over and over again.

19 months agoDedup print functions on test failure
tb [Wed, 29 Mar 2023 07:46:40 +0000 (07:46 +0000)]
Dedup print functions on test failure

19 months agoFix printfs that escaped defensive grepping
tb [Wed, 29 Mar 2023 07:38:16 +0000 (07:38 +0000)]
Fix printfs that escaped defensive grepping

19 months agochange tagvisit (aka visit-tag-table) to immediately load the tag file
op [Wed, 29 Mar 2023 07:29:17 +0000 (07:29 +0000)]
change tagvisit (aka visit-tag-table) to immediately load the tag file

before it used to only record the path to the tag file which was loaded
on demand upon find-tag (M-.).  tagvisit did to do a stat + access dance
to know if the path was pointing to a regular, readable file and
loadtags (called lazily by find-tag) trusted those checks...

Instead, just load the tags in tagvisit and drop the lazy mechanics.

ok tb@

19 months agoDedup generate_test_triple() and generate_test_quintuple()
tb [Wed, 29 Mar 2023 07:29:11 +0000 (07:29 +0000)]
Dedup generate_test_triple() and generate_test_quintuple()

19 months agoUse more consistent names for the main test functions
tb [Wed, 29 Mar 2023 06:53:49 +0000 (06:53 +0000)]
Use more consistent names for the main test functions

19 months agoRemove one of those ugly function tables
tb [Wed, 29 Mar 2023 06:50:51 +0000 (06:50 +0000)]
Remove one of those ugly function tables

The only reason there were two of them was to avoid some pointless
comparisons. The gain is not worth the price.

19 months agoRename a few variables for readability
tb [Wed, 29 Mar 2023 06:32:53 +0000 (06:32 +0000)]
Rename a few variables for readability

19 months agoMore whitespace fixes.
jsing [Wed, 29 Mar 2023 05:34:01 +0000 (05:34 +0000)]
More whitespace fixes.

Another set of mechnical replacements for "a,b" with "a, b".

No change in generated assembly.

19 months agoWhitespace fixes.
jsing [Wed, 29 Mar 2023 05:31:43 +0000 (05:31 +0000)]
Whitespace fixes.

Mechanically replace "a,b" with "a, b".

No change to generated assembly.

19 months agoWhitespace fixes.
jsing [Wed, 29 Mar 2023 05:27:02 +0000 (05:27 +0000)]
Whitespace fixes.

Mechanically replace "a,b" with "a, b", followed with some manual
indentation clean up.

No change in generated assembly.

19 months agoUse multiple statements instead of a statement with multiple expressions.
jsing [Wed, 29 Mar 2023 05:11:37 +0000 (05:11 +0000)]
Use multiple statements instead of a statement with multiple expressions.

No change in generated assembly.

19 months agoMop up MD32_XARRAY from SHA1.
jsing [Wed, 29 Mar 2023 05:03:34 +0000 (05:03 +0000)]
Mop up MD32_XARRAY from SHA1.

MD32_XARRAY (formerly SHA_XARRAY) was added as a workaround for a broken
HP C compiler (circa 1999). Clean it up to simplify the code.

No change in generated assembly.

ok miod@ tb@

19 months agoInline initial hash data values for SHA1.
jsing [Wed, 29 Mar 2023 04:24:08 +0000 (04:24 +0000)]
Inline initial hash data values for SHA1.

This follows what is done for other SHA implementations.

ok miod@ tb@

19 months agoExplicitly ignore return value from sshpkt_disconnect since we set our
dtucker [Wed, 29 Mar 2023 01:07:48 +0000 (01:07 +0000)]
Explicitly ignore return value from sshpkt_disconnect since we set our
own return value for the function.  Coverity CID 291797, ok djm@

19 months agoPlug another potential mem leak in process_put. It allocates abs_dst
dtucker [Wed, 29 Mar 2023 00:59:08 +0000 (00:59 +0000)]
Plug another potential mem leak in process_put.  It allocates abs_dst
inside a loop but only frees it on exit, so free inside the loop if
necessary.  Coverity CID 291837, ok djm@

19 months agoUse character not block devices with dd(1) like the rest
kn [Wed, 29 Mar 2023 00:25:47 +0000 (00:25 +0000)]
Use character not block devices with dd(1) like the rest

All other dd invocations in installer code, INSTALL.* instructions and
dd(1) EXAMPLES use the disk's "raw device".

19 months agofix memory leak; Coverity CID 291848, with/ok dtucker@
djm [Wed, 29 Mar 2023 00:18:35 +0000 (00:18 +0000)]
fix memory leak; Coverity CID 291848, with/ok dtucker@

19 months agoUnify variable usage in arm64 and armv7 md_installboot() with the rest
kn [Wed, 29 Mar 2023 00:16:14 +0000 (00:16 +0000)]
Unify variable usage in arm64 and armv7 md_installboot() with the rest

`_disk' (and related variables) hold disk names as "sd0" so that all else
can be constructed from it.

Fix the only two offenders across distrib/ which put start the variable
with "/dev/";  no functional change.

19 months agoProperly disable informational dd(1) messages, retain errors
kn [Tue, 28 Mar 2023 23:09:08 +0000 (23:09 +0000)]
Properly disable informational dd(1) messages, retain errors

Same as done for arm64 already

19 months agoApply changes from tzdata2023c.
millert [Tue, 28 Mar 2023 23:07:46 +0000 (23:07 +0000)]
Apply changes from tzdata2023c.
This reverts the controversial Lebanon DST change which led to a
partly-sectarian divide within the country.

19 months agomg: fix parsing of tag files with duplicate entries
tb [Tue, 28 Mar 2023 21:33:21 +0000 (21:33 +0000)]
mg: fix parsing of tag files with duplicate entries

Instead of erroring out ignore duplicates. Fixes using /var/db/libc.tags
again.

ok op

19 months agoIn pt_fill set the refcnt to its maximum value to trigger an error
claudio [Tue, 28 Mar 2023 17:47:29 +0000 (17:47 +0000)]
In pt_fill set the refcnt to its maximum value to trigger an error
if pt_ref is called on such a pt_entry. Set refcnt to 0 in pt_alloc
since the value from pt_fill is copied over.
OK tb@

19 months agoAvoid double free in isakmpd
tb [Tue, 28 Mar 2023 16:32:42 +0000 (16:32 +0000)]
Avoid double free in isakmpd

In the unlikely event that EC_KEY_check_key() in ec_init() fails,
group->ec would be freed first in ec_init() then in group_free().

Same problem was fixed in iked/dh.c r1.31 (where it originally came
from).

ok jsg mbuhl

19 months agoInstead of exracting the prefix into a bgpd_addr and passing that to
claudio [Tue, 28 Mar 2023 15:17:34 +0000 (15:17 +0000)]
Instead of exracting the prefix into a bgpd_addr and passing that to
prefix_write() rename prefix_write() to pt_write() and pass a pt_entry to
the function. Removes an extra conversion step.
OK tb@

19 months agouse the shell basename as argv[0] instead of hardcoding "sh"
op [Tue, 28 Mar 2023 14:47:28 +0000 (14:47 +0000)]
use the shell basename as argv[0] instead of hardcoding "sh"

Suggested by and ok millert@, thanks!

19 months agorevert bwfm.c rev 1.108
jsg [Tue, 28 Mar 2023 14:01:42 +0000 (14:01 +0000)]
revert bwfm.c rev 1.108
as noted by patrick@, the txctl functions already free the buffers

19 months agoMore pt_entry cleanup, move structure definitions to rde_prefix.c and
claudio [Tue, 28 Mar 2023 13:30:31 +0000 (13:30 +0000)]
More pt_entry cleanup, move structure definitions to rde_prefix.c and
by that make them private. Remove no longer used AID_PTSIZE define.
OK tb@

19 months agoIntroduce a semaphore to protect intermediate state from different RTR
claudio [Tue, 28 Mar 2023 12:15:23 +0000 (12:15 +0000)]
Introduce a semaphore to protect intermediate state from different RTR
sessions to leak into the RDE via rtr_recalc. Only run rtr_recalc when
the last or only RTR session is done with the update. Run a new timer
along to ensure that the semaphore is not hold forever. The timeout
is currently a very generous 60sec, no RTR cache should be that slow.
OK tb@

19 months agoUse pt_size from struct rde_memstats instead of computing it by hand.
claudio [Tue, 28 Mar 2023 12:07:09 +0000 (12:07 +0000)]
Use pt_size from struct rde_memstats instead of computing it by hand.
OK tb@

19 months agoInclude the memory size usage of the prefix tree in rde_memstats.
claudio [Tue, 28 Mar 2023 12:06:15 +0000 (12:06 +0000)]
Include the memory size usage of the prefix tree in rde_memstats.
OK tb@

19 months agoRefactor mrt_dump_entry_v2() to use a dynamic buffer to hold the prefix.
claudio [Tue, 28 Mar 2023 09:52:08 +0000 (09:52 +0000)]
Refactor mrt_dump_entry_v2() to use a dynamic buffer to hold the prefix.
Especially flowspec "prefixes" are variable size and so using a static
buffer there is not going to work in the long run.
OK tb@

19 months agoSwitch role logic in rde_aspa_validity() since this may need to be extended.
claudio [Tue, 28 Mar 2023 08:32:42 +0000 (08:32 +0000)]
Switch role logic in rde_aspa_validity() since this may need to be extended.
OK tb@ mbuhl@

19 months agomg: fall back to /bin/sh if $SHELL is undefined.
op [Tue, 28 Mar 2023 08:01:40 +0000 (08:01 +0000)]
mg: fall back to /bin/sh if $SHELL is undefined.

Original diff from lux (lx [at] shellcodes [dot] org) thanks!
tweaked by me; ok millert@

19 months agoPlug more mem leaks in sftp by making make_absolute_pwd_glob work in
dtucker [Tue, 28 Mar 2023 07:44:32 +0000 (07:44 +0000)]
Plug more mem leaks in sftp by making make_absolute_pwd_glob work in
the same way as make_absolute: you pass it a dynamically allocated string
and it either returns it, or frees it and allocates a new one.
Patch from emaste at freebsd.org and https://reviews.freebsd.org/D37253
ok djm@

19 months agoRemove compatibility code for OpenSSL versions prior to 1.1.* since
dtucker [Tue, 28 Mar 2023 06:12:38 +0000 (06:12 +0000)]
Remove compatibility code for OpenSSL versions prior to 1.1.* since
-portable no longer supports them.

19 months agodrm/amd/display: disconnect MPCC only on OTG change
jsg [Tue, 28 Mar 2023 04:26:34 +0000 (04:26 +0000)]
drm/amd/display: disconnect MPCC only on OTG change

From Ayush Gupta
39374fc8bb11990ed69348bfe517d3df0463b263 in linux-6.1.y/6.1.21
7304ee979b6b6422f41a1312391a5e505fc29ccd in mainline linux

19 months agodrm/amd/display: Do not set DRR on pipe Commit
jsg [Tue, 28 Mar 2023 04:24:27 +0000 (04:24 +0000)]
drm/amd/display: Do not set DRR on pipe Commit

From Wesley Chalmers
f8080f1e300e7abcc03025ec8b5bab69ae98daaa in linux-6.1.y/6.1.21
56574f89dbd84004c3fd6485bcaafb5aa9b8be14 in mainline linux

19 months agodrm/amd/pm: bump SMU 13.0.4 driver_if header version
jsg [Tue, 28 Mar 2023 04:22:50 +0000 (04:22 +0000)]
drm/amd/pm: bump SMU 13.0.4 driver_if header version

From Tim Huang
20f8225ae7f4bf9c30f40705f036a9a7ba8f1bd6 in linux-6.1.y/6.1.21
ab9bdb1213b4b40942af6a383f555d0c14874c1b in mainline linux

19 months agodrm/amd/pm: Fix sienna cichlid incorrect OD volage after resume
jsg [Tue, 28 Mar 2023 04:21:08 +0000 (04:21 +0000)]
drm/amd/pm: Fix sienna cichlid incorrect OD volage after resume

From mumei6102
6e403a0a69f73ecc5ee0a2045efdcb9051abdd56 in linux-6.1.y/6.1.21
a9386ee9681585794dbab95d4ce6826f73d19af6 in mainline linux

19 months agodrm/amdgpu: Don't resume IOMMU after incomplete init
jsg [Tue, 28 Mar 2023 04:16:38 +0000 (04:16 +0000)]
drm/amdgpu: Don't resume IOMMU after incomplete init

From Felix Kuehling
dab920478e2b53d1abcf9b929f8205233041d32a in linux-6.1.y/6.1.21
f3921a9a641483784448fb982b2eb738b383d9b9 in mainline linux

19 months agodrm/i915/dg2: Add HDMI pixel clock frequencies 267.30 and 319.89 MHz
jsg [Tue, 28 Mar 2023 04:15:15 +0000 (04:15 +0000)]
drm/i915/dg2: Add HDMI pixel clock frequencies 267.30 and 319.89 MHz

From Ankit Nautiyal
0243590e33a7d87efbf3adc0565269b4dc224944 in linux-6.1.y/6.1.21
46bc23dcd94569270d02c4c1f7e62ae01ebd53bb in mainline linux

19 months agodrm/i915/active: Fix misuse of non-idle barriers as fence trackers
jsg [Tue, 28 Mar 2023 04:13:21 +0000 (04:13 +0000)]
drm/i915/active: Fix misuse of non-idle barriers as fence trackers

From Janusz Krzysztofik
5c7591b8574c52c56b3994c2fbef1a3a311b5715 in linux-6.1.y/6.1.21
e0e6b416b25ee14716f3549e0cbec1011b193809 in mainline linux

19 months agodrm/ttm: Fix a NULL pointer dereference
jsg [Tue, 28 Mar 2023 04:11:29 +0000 (04:11 +0000)]
drm/ttm: Fix a NULL pointer dereference

From Thomas Hellstrom
9ba1720f6c4a0f13c3f3cb5c28132ee75555d04f in linux-6.1.y/6.1.21
9a9a8fe26751334b7739193a94eba741073b8a55 in mainline linux

19 months agodrm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes
jsg [Tue, 28 Mar 2023 04:09:34 +0000 (04:09 +0000)]
drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes

From Alex Hung
a16394b5d661afec9a264fecac3abd87aea439ea in linux-6.1.y/6.1.21
031f196d1b1b6d5dfcb0533b431e3ab1750e6189 in mainline linux

19 months agodrm/amdgpu: fix ttm_bo calltrace warning in psp_hw_fini
jsg [Tue, 28 Mar 2023 04:07:35 +0000 (04:07 +0000)]
drm/amdgpu: fix ttm_bo calltrace warning in psp_hw_fini

From Horatio Zhang
7be9a2f8c5179520a7d5570e648e0c97d09e4fae in linux-6.1.y/6.1.21
23f4a2d29ba57bf88095f817de5809d427fcbe7e in mainline linux

19 months agodrm/amdkfd: Fix an illegal memory access
jsg [Tue, 28 Mar 2023 04:05:41 +0000 (04:05 +0000)]
drm/amdkfd: Fix an illegal memory access

From Qu Huang
d9923e7214a870b312bf61f6a89c7554d0966985 in linux-6.1.y/6.1.21
4fc8fff378b2f2039f2a666d9f8c570f4e58352c in mainline linux

19 months agodrm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc
jsg [Tue, 28 Mar 2023 04:03:59 +0000 (04:03 +0000)]
drm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc

From Liu Ying
9821576e117047e4bf8e92a673272aa014a3bb2e in linux-6.1.y/6.1.21
0d3c9333d976af41d7dbc6bf4d9d2e95fbdf9c89 in mainline linux

19 months agodrm/i915/sseu: fix max_subslices array-index-out-of-bounds access
jsg [Tue, 28 Mar 2023 04:01:47 +0000 (04:01 +0000)]
drm/i915/sseu: fix max_subslices array-index-out-of-bounds access

From Andrea Righi
1a1682abf7399318ac074b1f2ac6a8c992b5b3da in linux-6.1.y/6.1.21
193c41926d152761764894f46e23b53c00186a82 in mainline linux

19 months agodrm/i915/psr: Use calculated io and fast wake lines
jsg [Tue, 28 Mar 2023 03:59:10 +0000 (03:59 +0000)]
drm/i915/psr: Use calculated io and fast wake lines

From Jouni Hogander
d586d58c3f2a9835dfdbf34fee0d8522303ab24f in linux-6.1.y/6.1.21
71c602103c74b277bef3d20a308874a33ec8326d in mainline linux

19 months agodrm/msm/gem: Prevent blocking within shrinker loop
jsg [Tue, 28 Mar 2023 03:55:56 +0000 (03:55 +0000)]
drm/msm/gem: Prevent blocking within shrinker loop

From Dmitry Osipenko
96a5aee27439e56fca69628c3f87a042e7026b3e in linux-6.1.y/6.1.21
9630b585b607bd26f505d34620b14d75b9a5af7d in mainline linux

19 months agodrm/amd/display: adjust MALL size available for DCN32 and DCN321
jsg [Tue, 28 Mar 2023 00:34:04 +0000 (00:34 +0000)]
drm/amd/display: adjust MALL size available for DCN32 and DCN321

From Samson Tam
38327b6cb1fa2bb098bca0db7dd25ee80a6d64b1 in linux-6.1.y/6.1.20
235fef6c7fd341026eee90cc546e6e8ff8b2c315 in mainline linux

19 months agodrm/amd/display: Allow subvp on vactive pipes that are 2560x1440@60
jsg [Tue, 28 Mar 2023 00:31:10 +0000 (00:31 +0000)]
drm/amd/display: Allow subvp on vactive pipes that are 2560x1440@60

From Alvin Lee
02c8fa11f545938f3f5af3cd02fe343803539213 in linux-6.1.y/6.1.20
2ebd1036209c2e7b61e6bc6e5bee4b67c1684ac6 in mainline linux

19 months agodrm/amdgpu/soc21: Add video cap query support for VCN_4_0_4
jsg [Tue, 28 Mar 2023 00:29:11 +0000 (00:29 +0000)]
drm/amdgpu/soc21: Add video cap query support for VCN_4_0_4

From Veerabadhran Gopalakrishnan
70f12dee2254dd956ffaf547507b688887fed6c6 in linux-6.1.y/6.1.20
6ce2ea07c5ff0a8188eab0e5cd1f0e4899b36835 in mainline linux

19 months agodrm/amdgpu/soc21: don't expose AV1 if VCN0 is harvested
jsg [Tue, 28 Mar 2023 00:27:21 +0000 (00:27 +0000)]
drm/amdgpu/soc21: don't expose AV1 if VCN0 is harvested

From Alex Deucher
69a56ace8bc2a3ee3d1a9584c30476c588b1f420 in linux-6.1.y/6.1.20
a6de636eb04f146d23644dbbb7173e142452a9b7 in mainline linux

19 months agodrm/amdgpu: fix return value check in kfd
jsg [Tue, 28 Mar 2023 00:25:50 +0000 (00:25 +0000)]
drm/amdgpu: fix return value check in kfd

From Shashank Sharma
dc7d4b1a6568652f51ee45b1a1e3531f1186a552 in linux-6.1.y/6.1.20
20534dbcc7b7bfb447279cdcfb0d88ee3b779a18 in mainline linux

19 months agodrm/i915: Populate encoder->devdata for DSI on icl+
jsg [Tue, 28 Mar 2023 00:24:29 +0000 (00:24 +0000)]
drm/i915: Populate encoder->devdata for DSI on icl+

From Ville Syrjala
783c225e910fa5e0ef7bd9de88d32c0787e04e95 in linux-6.1.y/6.1.20
14e591a1930c2790fe862af5b01ee3ca587f752f in mainline linux

19 months agodrm/i915: Do panel VBT init early if the VBT declares an explicit panel type
jsg [Tue, 28 Mar 2023 00:22:33 +0000 (00:22 +0000)]
drm/i915: Do panel VBT init early if the VBT declares an explicit panel type

From Ville Syrjala
bd61a84b5eee4eaf3daf1c69499a4eca1f972ca4 in linux-6.1.y/6.1.20
3f9ffce5765d68775163b8b134c4d7f156b48eec in mainline linux

19 months agodrm/i915: Introduce intel_panel_init_alloc()
jsg [Tue, 28 Mar 2023 00:19:53 +0000 (00:19 +0000)]
drm/i915: Introduce intel_panel_init_alloc()

From Ville Syrjala
e340197a453987c48cdeeeb6447d0944513de538 in linux-6.1.y/6.1.20
f70f8153e3642337b444fbc0c64d546a46bbcd62 in mainline linux

19 months agodrm/connector: print max_requested_bpc in state debugfs
jsg [Tue, 28 Mar 2023 00:17:51 +0000 (00:17 +0000)]
drm/connector: print max_requested_bpc in state debugfs

From Harry Wentland
8d2ca666a7b415a4a063be39b20c2b99c42421cb in linux-6.1.y/6.1.20
7d386975f6a495902e679a3a250a7456d7e54765 in mainline linux

19 months agodrm/display: Don't block HDR_OUTPUT_METADATA on unknown EOTF
jsg [Tue, 28 Mar 2023 00:16:13 +0000 (00:16 +0000)]
drm/display: Don't block HDR_OUTPUT_METADATA on unknown EOTF

From Harry Wentland
9f6f6f42b9ef6b6ad2fcd01623593bef7eb5a47b in linux-6.1.y/6.1.20
e5eef23e267c72521d81f23f7f82d1f523d4a253 in mainline linux

19 months agodrm/amdgpu: fix error checking in amdgpu_read_mm_registers for nv
jsg [Tue, 28 Mar 2023 00:13:59 +0000 (00:13 +0000)]
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for nv

From Alex Deucher
d07d152d762d746016f546f9fedd3f319870cf5e in linux-6.1.y/6.1.20
b42fee5e0b44344cfe4c38e61341ee250362c83f in mainline linux

19 months agodrm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc21
jsg [Tue, 28 Mar 2023 00:12:19 +0000 (00:12 +0000)]
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc21

From Alex Deucher
a11e210dc595a8b7259335a9d7c7b57cc8f39bd4 in linux-6.1.y/6.1.20
2915e43a033a778816fa4bc621f033576796521e in mainline linux

19 months agodrm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc15
jsg [Tue, 28 Mar 2023 00:10:35 +0000 (00:10 +0000)]
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc15

From Alex Deucher
39190482e5d0993f237d6a2b54f5548d92156d50 in linux-6.1.y/6.1.20
0dcdf8498eae2727bb33cef3576991dc841d4343 in mainline linux

19 months agoRemove compatibility code for OpenSSL 1.0.* versions now that -portable
dtucker [Mon, 27 Mar 2023 23:56:54 +0000 (23:56 +0000)]
Remove compatibility code for OpenSSL 1.0.* versions now that -portable
has dropped support for those versions.

19 months agoSilence informational messages from dd(1) when zeroing a disk's first 1MB
kn [Mon, 27 Mar 2023 19:43:36 +0000 (19:43 +0000)]
Silence informational messages from dd(1) when zeroing a disk's first 1MB