summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-04-09don't attach temperature sensors for which there is no TMP# node inJoshua Stein
the DSDT, and verify the result of the fetch when updating it later. ok kn
2023-04-09Minor code cleanupTheo Buehler
Unwrap a few awkwardly wrapped lines, drop redundant parentheses and add empty lines after some variable declarations. No change in the generated assembly.
2023-04-09Refactor and simplify GPT menu selection logic.Kenneth R Westerback
No intentional functional change.
2023-04-09Provide and use sha{224,384}_{update,final} functions.Joel Sing
Improve readability and consistency by providing and using functions named for the specific hash, rather than reusing the sha256/sha512 update and final functions. No functional change. ok tb@
2023-04-09Rename SHA functions to have sha{1,224,256,384,512}_ prefix.Joel Sing
Also remove some unnecessary parentheses. No functional change. ok tb@
2023-04-09Trim some redundant and a bit of misleading text:Ingo Schwarze
1. The values of #define'd constants are part of the ABI, but not of the API. Programmers need not worry about them and must not rely on them. Consequently, do not list these values in the SYNOPSIS. 2. libevent can be used for any event loop, not only for the main loop of a program. 3. No need to state numbers of arguments, they are obvious from the SYNOPSIS. 4. If a function is documented to require a pointer to a specific kind of object as an argument, there is no need to say passing NULL is undefined. OK jmc@ and Ted Bullock
2023-04-09Explain what it means that an API function "requires event_init(3)"Ingo Schwarze
in one place, not in two places, reducing duplication of text. Joint work with Ted Bullock. OK jmc@.
2023-04-09fix double wordsJonathan Gray
2023-04-08Return -1 on actual failureKlemens Nanni
MI boot.c's "a-x" fchmod on bsd.upgrade is the only caller that checks the return value and that call can fail on, e.g. softraid volumes. Stop clobbering the actual fchmod return value and get that warning printed. OK deraadt
2023-04-08bn_test: two minor style tweaksTheo Buehler
2023-04-08New manual page written by Ted Bullock <tbullock at comlore dot com>,Ingo Schwarze
providing more information and in a more systematic way than the current event(3) manual page. Not yet linked to the tree. Using input from nicm@ and jmc@.
2023-04-08A bit more guid vs uuid naming consistency.Kenneth R Westerback
No functional change.
2023-04-08Do not reload `inp' in gre_send(). The pointer to PCB of raw socket isVitaliy Makkoveev
immutable, we don't need to reload it again. ok bluhm@
2023-04-08Move rtm_ifannounce(IFAN_DEPARTURE) outside netlock within if_detach().Vitaliy Makkoveev
This is the mbuf(9) allocation and broadcast transmission for PF_ROUTE sockets, netlock is not required here. ok bluhm@
2023-04-08add missing write to XENON_EMMC_PHY_PAD_CONTROL2Jonathan Gray
ok patrick@
2023-04-08correct write to MV_XLG_PORT_MAC_CTRL4_REGJonathan Gray
tested by matthieu@ ok patrick@
2023-04-08try and cope with not having the firmware/boot loader init the hardware.David Gwynne
more specifically, spin up the clocks and phy, and if the device tree has a "ports-implemented" property use it to initialise the AHCI_REG_PI register. this gets sata working on a banana pi bpi-r2 pro. help from jared mcneill ok jmatthew@ kettenis@
2023-04-07bn_mont: fix typo in comment divisable -> divisibleTheo Buehler
2023-04-07print which gmac the dwqe driver is attaching to.David Gwynne
there's no guarantee that dwqe0 in the kernel will attach to gmac0 in the device tree, so print it to make it explicit what's going where. ok patrick@ kettenis@
2023-04-07bn_test: rename rc into ret as per usualTheo Buehler
2023-04-07bn_test: pass BN_CTX into all functionsTheo Buehler
There is a BN_CTX at program scope. Pass it into all test functions. This simplifies memory management at the end of the functions quite a bit.
2023-04-07bn_test: drop a few braces that are now unnecessaryTheo Buehler
2023-04-07bn_test: move rc initialization to its own lineTheo Buehler
2023-04-07bn_test: keep the error stack cleanTheo Buehler
Make message() print and clear the error stack. This way we can know what test errored. To make this work also clear the error stack after a handful of xfail tests.
2023-04-07bn_test: use bn_copy() instead of BN_free/BN_dupTheo Buehler
This is not only simpler but also required by an upcoming change.
2023-04-07bn_test: a few early return would leak. goto err insteadTheo Buehler
2023-04-07bn_test: rand_neg() is not only one of the most stupidly named functionsTheo Buehler
in the entire code base it also has a few parentheses too many
2023-04-07bn_test: handle rc consistentlyTheo Buehler
Various test functions had bugs due to the fact that the return code would be set to 1 at the top so that each error would have to set rc = 0. This is silly. Fail closed instead by setting rc = 0 at the top and only flipping to 1 before the err label
2023-04-07bn_test: inline the only use of lst[]Theo Buehler
lst[] can be converted from a bit string to a hex string. Use BN_hex2bn() isntead of BN_bin2bn(). Handle this inside test_lshift() rather than doing artistic ownership dances.
2023-04-07Remove kernel locks from the ARP input path. Caller if_netisr()Alexander Bluhm
grabs the exclusive netlock and that is sufficent for in_arpinput() and arpcache(). with kn@; OK mvs@; tested by Hrvoje Popovski
2023-04-07Improve some test failure reportingTheo Buehler
2023-04-07Oops. Missed files in last commit.Kenneth R Westerback
2023-04-07Ignore ten getter and setter control macros related to proxy BIOs.Ingo Schwarze
Those are not useful because such a BIO type neither exists in LibreSSL nor in OpenSSL 1.1.1. Not adding the deprecation notice to some manual page because there is no manual page that is even vaguely related.
2023-04-07Two minor tweaks that are useful for processing bio.h, among other headers:Ingo Schwarze
* ignore lines defining "__bounded__()" * ignore whitespace between "#" and "include"
2023-04-07Mark BIO_CB_return(), BIO_cb_pre(), and BIO_cb_post() as intentionallyIngo Schwarze
undocumented because they are unused according to codesearch.debian.net and would cause nothing but obfuscation if they were used.
2023-04-07Add helper functions find_mbr_desc() and find_gpt_desc() to allowKenneth R Westerback
checking mbr_type[N].mt_desc and gpt_type[N].gt_desc before using name on menu when printing out partition tables. Tweak logic in find_mbr_type() and find_gpt_type() to be a bit more paranoid. Tweak function/variable names to be more in line to usage. No functional change as all mt_desc and gt_desc are currently NULL.
2023-04-07Pass a pt_entry pointer to rib_get() and rib_add().Claudio Jeker
Add rib_get_addr() to behave like rib_get() did before. OK tb@
2023-04-07Default 'Is the disk partition alrady mounted?' to 'no' on installKlemens Nanni
For installation, no partitions whatsoever are mounted, so 'yes' is always wrong unless the user manually mounted stuff before that question. No change for upgrade, where partitions on the root disk are mounted. Idea from naddy, diff from Mikhail (mp39590 AT gmail) Tweaks from me OK op afresh1
2023-04-07Fix whitespace on two linesTheo Buehler
2023-04-07Nail the root disk default in the guided disk encryption caseKlemens Nanni
Save the softraid volume's device and make it root disk default, being the only legit choice in this case; this gets it always right on systems with multiple physical disks. All other install/upgrade cases keep picking the first available [sw]d* disk as root disk default. OK afresh1
2023-04-07register a mapping of dwqe interfaces to ofw nodes/phandles.David Gwynne
i forgot to commit this as part of src/sys/dev/fdt/if_dwqe_fdt.c r1.7 found by mglocker@
2023-04-07avoid use of uninitialised memoryJonathan Gray
ok miod@ kettenis@
2023-04-07Determine PHY mode and pass the appropriate flags down to the PHY when weMark Kettenis
attach it. ok dlg@
2023-04-07register a mapping of dwqe interfaces to ofw nodes/phandles.David Gwynne
ok kettenis@
2023-04-07fixed regulators could have a "gpios" or "gpio" property.David Gwynne
we only handled "gpio" before. figuring this out has wasted many days of my life recently. ok patrick@ kettenis@
2023-04-07drm/amdkfd: Get prange->offset after svm_range_vram_node_newJonathan Gray
From Xiaogang Chen d0386bd84e6d81990ef22e10657d5a5d9c209763 in linux-6.1.y/6.1.23 8eeddc0d4200762063e1c66b9cc63afa7b24ebf0 in mainline linux
2023-04-07drm/i915: Move CSC load back into .color_commit_arm() when PSR is enabled on ↵Jonathan Gray
skl/glk From Ville Syrjala fcf712b4e5d0aacbc193e71962bdaa4d4afe3335 in linux-6.1.y/6.1.23 a8e03e00b62073b494886dbff32f8b5338066c8b in mainline linux
2023-04-07drm/i915: Disable DC states for all commitsJonathan Gray
From Ville Syrjala 0fc6fea41c7122aa5f2088117f50144b507e13d7 in linux-6.1.y/6.1.23 a2b6e99d8a623544f3bdccd28ee35b9c1b00daa5 in mainline linux
2023-04-07drm/i915/dpt: Treat the DPT BO as a framebufferJonathan Gray
From Ville Syrjala c781c107731fc09ce4330c8c636b8446d0f72aa4 in linux-6.1.y/6.1.23 3413881e1ecc3cba722a2e87ec099692eed5be28 in mainline linux
2023-04-07drm/i915/gem: Flush lmem contents after constructionJonathan Gray
From Chris Wilson 21ee19974b19edcda7a8e4f9bd5b02c3a750a69e in linux-6.1.y/6.1.23 d032ca43f2c80049ce5aabd3f208dc3849359497 in mainline linux