summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-01-02Let the EFI bootloader make a copy of the EFI System Resource Table (ESRT)Mark Kettenis
and pass it to the kernel. ok jca@, patrick@
2023-01-02Fix the check for the BWX extension introduced in 1.92.Miod Vallat
This repairs operation on 21164 processors (not 21164A!) which lack BWX. Reported by Mark Butt on alpha@
2023-01-02regression test for PermitRemoteOpenDamien Miller
2023-01-02fix bug in PermitRemoteOpen which caused it to ignore its firstDamien Miller
argument unless it was one of the special keywords "any" or "none". Reported by Georges Chaudy in bz3515; ok dtucker@
2023-01-02use the pf generated toeplitz hash when setting the mbuf flow id.David Gwynne
before this it would use the pf state id, which is just an increasing number. the toeplitz hash is generated/used by the rest of the stack, so this encourages consistent flow of traffic through the system.
2023-01-01Clear status bits when we receive a host system error. Otherwise theMark Kettenis
interrupt keeps firing even if the hos controller has been declared dead. ok mpi@
2023-01-01With the introduction of the PMAP_PREFER_{ALIGN,OFFSET} macros a long time ago,Miod Vallat
there are actually no more uses of the PMAP_PREFER() macro left in the kernel. Remove that macro but keep PMAP_PREFER as a simple #define for it to let uvm knows the PMAP_PREFER_{ALIGN,OFFSET} macros are available. ok mpi@
2023-01-01Add explicit LL suffixes to large constants to appease some compilers onMiod Vallat
32-bit systems.
2023-01-01Add explicit LL suffixes to large constants to appease some compilers onMiod Vallat
32-bit systems.
2023-01-01Add explicit LL suffixes to large constants to appease some compilers onMiod Vallat
32-bit platforms; NFCI ok tb@
2023-01-01Round up fractional percentages, as per POSIX.Todd C. Miller
From nabijaczleweli, OK deraadt@
2023-01-01Enable power management for PCI devices.Mark Kettenis
ok mlarkin@, deraadt@
2023-01-01copyright++;Jonathan Gray
2023-01-01update drm to linux 6.1.2Jonathan Gray
new hardware support includes AMD Raphael, Ryzen 7000 desktop, gfx1036/GC 10.3.6 Mendocino, Ryzen & Athlon 7020 Series mobile APU, gfx1037/GC 10.3.7 Navi 31, gfx1100 dGPU, GC 11.0.0, Radeon RX 7900 XT/XTX gfx1101 dGPU gfx1102 dGPU gfx1103 APU Thanks to the OpenBSD Foundation for sponsoring this work.
2023-01-01timeout.9: document new interfaces, miscellaneous rewrites and cleanupScott Soule Cheloha
- Document timeout_abs_ts(9). - Add the kclock arguments to timeout_set_flags(9) and TIMEOUT_INITIALIZER_FLAGS(9). - Document KCLOCK_NONE and KCLOCK_UPTIME. - Mention the static initialization macros alongside timeout_set(9) etc.; keep relevant information adjacent. - Mention timeout_add_sec(9) etc. alongside timeout_add(9); keep relevant information adjacent. ... plus many other cleanups, rewrites, and rearrangements. Prompted by mvs@ and many others. With input from jmc@, mvs@, kn@, schwarze@, and probably a few others I have forgotten. v1: https://marc.info/?l=openbsd-tech&m=162449274513068&w=2 v2: https://marc.info/?l=openbsd-tech&m=165851505627764&w=2 v3: https://marc.info/?l=openbsd-tech&m=167250339811308&w=2 ok jmc@ mvs@ schwarze@
2022-12-31Document that -P disables BLOCKSIZE support.Todd C. Miller
With input from and OK jmc@
2022-12-31timeout: rename "timeout_at_ts" to "timeout_abs_ts"Scott Soule Cheloha
I think "abs" ("absolute timeout") is a better mnemonic than "at" ("at the given time"). The interface is undocumented and there are only two callers, so renaming it is not a big deal. probably ok kn@
2022-12-31syncJonathan Gray
2022-12-31Look for the first 2 mem regions, ignore the restGeorge Koehler
Some macppc nvidia graphics cards have a 3rd mem region, but nv(4) wants to mmap the 1st and 2nd regions. ok miod@
2022-12-31crank libfido2 major version, it depends on libcbor and it justDamien Miller
cranked. ok tb@
2022-12-31update to upstream libcbor v.0.10.0 and crank major. Also includesDamien Miller
e308674c5d to fix PR259. This release includes a number of memory leak fixes. Disable the upsteam custom allocators feature. Feedback/ok tb@ Thanks also to Pedro Martelletto for pointing out the new release as well as PR259.
2022-12-31Let luna88k's bootloader pass RB_GOODRANDOM to the kernel.Kenji Aoyama
Current bootloader can pass boothowto information to the kernel. It also has the capability to load random seed data from /etc/random.seed already. So set RB_GOODRANDOM at the bootloader when loadrandom() has been finished successfully. Now the kernel says "random: good seed from bootblocks". Tested by LUNA-88K2 and nono emulator, "Absolutely!" ok miod@
2022-12-31sysctl_clockintr: clear "sum" with memset before copyout(9)Scott Soule Cheloha
2022-12-31Add machdep.lidaction to machdep names list.Patrick Wildt
ok mpi@
2022-12-30Add TABDLY, TAB0, TAB3 for better source compatibility.Todd C. Miller
These are XSI extensions but some code seems to expect them. We don't currently implement TAB1 or TAB2. Idea from FreeBSD. OK guenther@ gnezdo@
2022-12-30add history for getpid(2) and getppid(2)Jonathan Gray
getpid() appeared (undocumented) in v5. Between v6 and v7 there is an extra return value for the parent process ID. getppid() did not appear in v7, it appeared in 32v libc. But getppid() predates 32v. It seems to have been in earlier USG releases such as Generic 3 (PG-1C300 Issue 3) as the MERT Release 0 manual references it. getppid() didn't become a system call until 4.3BSD-Reno omit most of these details and just mention v5 and 32v with and ok schwarze@
2022-12-30pause.3: miscellaneous rewrites, cleanupScott Soule Cheloha
Eliminate some redundant or extraneous pieces from the pause.3 page. Say the "thread" "blocks", don't say the "process" "pauses". No need to enumerate the ways a signal can be delivered. Add a few relevant cross-references. With input from millert@ and schwarze@. Link: https://marc.info/?l=openbsd-tech&m=166801212316670&w=2 ok millert@ schwarze@
2022-12-30accton.c: add missing $OpenBSD$ tagScott Soule Cheloha
2022-12-30Do not send (normal) packets before we reach the run state. Logic copiedMark Kettenis
from iwm(4), which also looks at the TX_MGMT_ONLY flag. We don't expect that flag to be ever set for bwfm(4), but it shouldn't hurt and it keeps things consistent across drivers. This fixes issues with suspend/resume (including firmware crashes seen on the M2 Macbook Air). ok patrick@, stsp@
2022-12-30Add chip name for new revision of the BCM4378.Mark Kettenis
ok patrick@
2022-12-30Actually hide the clang-15 workaround behind the COMPILER_VERSION checkJeremie Courreges-Anglas
COMPILER_VERSION initially missed. I'm not sure why we still have those COMPILER_VERSION checks in sys/arch/i386 and sys/arch/amd64, when the base system doesn't ship gcc any more, but let's stay consistent.
2022-12-30Neuter zlib fatal warnings when building kernels and bootloaders with clang 15Jeremie Courreges-Anglas
Disable -Wdeprecated-non-prototype instead of patching zlib. Upstream plans to drop the pre-ANSI syntax soon. ok tb@ millert@
2022-12-30Support FTDI FT232R. The upper 2 bits encode the fractional component of theKevin Lo
FT232R is either 0 or 0.125. ok dlg@
2022-12-29sparc64: pull retry logic out of tickcmpr_set(), sys_tickcmpr_set()Scott Soule Cheloha
Pull the retry logic out of tickcmpr_set() and sys_tickcmpr_set() into C functions tick_rearm() and sys_tick_rearm(), respectively. There is nothing wrong with the retry logic in these assembly functions, but it's better to keep equivalent code similar and this change realigns the %TICK and %SYS_TICK rearm code with that of the Hummingbird %STICK. Tested by miod@ on UltraSPARC I, UltraSPARC II, and UltraSPARC IIe. Link: https://marc.info/?l=openbsd-tech&m=167175014315419&w=2 ok kettenis@
2022-12-29HISTORY: clarify that unmount(2) used to be called umount(2) from v1 to Tahoe;Ingo Schwarze
joint work with and OK jsg@
2022-12-29Avoid doing cache flush/invalidate operations for DMA memory allocated withMark Kettenis
the BUS_DMA_COHERENT flag. ok miod@
2022-12-29Use an iorw fence since we're syncing cpu access and device access toMark Kettenis
memory. ok miod@
2022-12-29capital letter at sentence start;Jason McIntyre
2022-12-29FORK_SIGHAND and the handling of func==NULL disappeared in 2017 inPhilip Guenther
sys/kern/kern_fork.c rev 1.195.
2022-12-29profil(2) first appeared in fifth editionJonathan Gray
tuhs/Distributions/Research/Dennis_v4/v4man.tar.gz has manx/profil.2 but no man2/profil.2 the nsys sysent.c has '&nullsys, /* 44 = prof */' https://minnie.tuhs.org/cgi-bin/utree.pl?file=V4/nsys/ken/sysent.c profil(2) is first listed as v5 in the Combined Tables of Contents from McIlroy's A Research UNIX Reader. https://marc.info/?l=tuhs&m=158099986005023&w=2 and is present in tuhs/Distributions/Research/Dennis_v5/v5man.pdf ok schwarze@
2022-12-29fcntl(2) first appeared in System IIIJonathan Gray
ok schwarze@
2022-12-29Add ktrace struct tracepoints for siginfo_t to the kernel side ofPhilip Guenther
waitid(2) and __thrsigdivert(2) and teach kdump(1) to handle them. Also report more from the siginfo_t inside PSIG tracepoints. ok mpi@
2022-12-28{en,de}queing -> {en,de}queuing; from paul tagliamonteJason McIntyre
2022-12-28spelling fixes; from paul tagliamonteJason McIntyre
any parts of his diff not taken are noted on tech
2022-12-28iostat(8): implement periodic display with setitimer(2)Scott Soule Cheloha
Prefer setitimer(2)+sigsuspend(2) to nanosleep(2) when performing periodic work. The latter drifts. Link: https://marc.info/?l=openbsd-tech&m=167068674625838&w=2 ok millert@
2022-12-28systat(1): vmstat: dinfo(): compute rates using real elapsed timeScott Soule Cheloha
The "naptime" value is not the real elapsed time. But showkre() has the real elapsed time, "etime", so pass that as argument to dinfo(). Link: https://marc.info/?l=openbsd-tech&m=167095169115427&w=2 ok millert@
2022-12-28microtime.9: rewrite description, miscellaneous cleanupScott Soule Cheloha
- Remove the bintime interfaces. They should not be used outside of the timecounting layer. Unsure whether they warrant a manpage of their own. - In the SYNOPSIS, change the variable names for timespec interfaces from "tv" to "ts". - Document the new-ish "nsec" interfaces. - Rewrite the DESCRIPTION. Describe every clock completely in its own paragraph. Enumerate all the interfaces in tables. Explicitly state the output format for each interface in said tables. Add new vocab ("hardware", "timestamp") to clarify the differences between the "get" and non-"get" interfaces. - Add the CONTEXT, RETURN VALUES, and ERRORS sections. - Cross-reference clock_settime(2), timeradd(3), and tc_init(9). Lots of input from schwarze@. ok jmc@ schwarze@
2018-04-27Import lpd, a re-implementation of the lpr daemon following the latestEric Faurot
OpenBSD coding practices (fork+exec/privsep/pledge/...). It is only intended to replace the lpd(8) daemon for the moment, not the lpr(1), lprm(1), lpq(1) and lpc(8) commands. This is a work in progress. The server part should be fairly functionnal, but the printer part is not complete: remote printers should work, for local printers it depends on the setup. Anyway, at this point it's better in the tree than rotting on my disk. ok deraadt@
2022-12-28style(9) for includesTheo Buehler
2022-12-28the S in CSRC is Science not SciencesJonathan Gray