summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2022-02-24drm/amd: Only run s3 or s0ix if system is configured properlyJonathan Gray
From Mario Limonciello 38108fd273acbc6248870a7a3e61714398af6f94 in linux 5.15.y/5.15.25 04ef860469fda6a646dc841190d05b31fae68e8c in mainline linux
2022-02-24drm/amd: add support to check whether the system is set to s3Jonathan Gray
From Mario Limonciello 72808bb42c87c4887c553ea8d9f4ecaf15d867d3 in linux 5.15.y/5.15.25 f52a2b8badbd24faf73a13c9c07fdb9d07352944 in mainline linux
2022-02-24drm/amd: Warn users about potential s0ix problemsJonathan Gray
From Mario Limonciello 64519c9e32ac548fd47cf16767f4b779a8cbdd14 in linux 5.15.y/5.15.25 a6ed2035878e5ad2e43ed175d8812ac9399d6c40 in mainline linux
2022-02-24regenVitaliy Makkoveev
2022-02-24Unlock getsockname(2) syscall. For inet and UNIX sockets it fills passedVitaliy Makkoveev
'sockaddr' structure with socket's address. For key management and route domain sockets it just returns error. ok bluhm@
2022-02-24Fix PIC_SYM() macro: it never needs to token paste, so it's notPhilip Guenther
dependent on __STDC__ and doesn't need the ## operator. ok jsg@
2022-02-23unifdef __ELF__Jonathan Gray
ok guenther@
2022-02-22Fix thinko in construction of SMC key for the targeted GPIO pin.Mark Kettenis
visa@
2022-02-22Since other exported commandnames were increased to 24 and graduated intoTheo de Raadt
proper strings, adapt dt's exported string in the same way. Old/new files/tools will not work the same way. That this interface needs to also change was pointed out by jsg
2022-02-22Since other exported commandnames were increased to 24 and graduated intoTheo de Raadt
proper strings, adapt struct acct's ac_comm similarily. While here increase ac_mem to 32-bits, increase ac_flag from 8 to 32 bits for future extensions, add ac_pid for forensics, and reorder the structure to avoid compiler pads. More work remains in the sa(8) command to use ac_pid better. This is a flag day for the acct file format, new/old files/tools are incompatible. ok bluhm millert
2022-02-22Start using new _MAXCOMLEN (a proper string expanded to 24 bytesTheo de Raadt
including the NUL), in all internal interafaces, and expose this in ktrace, core, or proc.h visibility. ok millert
2022-02-22sysctl already passed the commandname as a 24-byte string KI_MAXCOMLENTheo de Raadt
because it was padded. Define it in terms of _MAXCOMLEN from syslimits.h ok millert
2022-02-22Define MAXCOMLEN in terms of _MAXCOMLEN (-1, because MAXCOMLEN does notTheo de Raadt
have the terminating NUL). In the near future, fewer programs will use this yucky non-string, some kernel:userland interfaces will to change to pass a proper string. ok millert
2022-02-22Add _MAXCOMLEN to syslimits, it is 24, and includes the NUL. FollowingTheo de Raadt
commits will change sys/param.h MAXCOMLEN, sys/sysctl.h KI_MAXCOMLEN, sys/acct.h ac_comm[], dev/ic/dtvar.h DTMAXCOMLEN to use this, and also adapt most to the included NUL correctly. This will allow us to remove sys/param.h include from userland base. sys/syslimits.h is chosen as the best place for this define because it has very small namespace which is already pulled in often. ok millert
2022-02-22Remove extra ;Visa Hankala
No functional change.
2022-02-22Clear frame pointer in cpu_fork() on riscv64Visa Hankala
This ensures the chain of call frames is terminated properly, preventing errors when unwinding kernel stacks. OK miod@ kettenis@
2022-02-22ddb: Improve stack unwinding on riscv64Visa Hankala
Add logic to navigate across trapframes. Stop unwinding if the frame pointer is clearly bad. Adjust output, and tweak details. OK miod@ kettenis@
2022-02-22Make audio(4) event filters MP-safeVisa Hankala
Add f_modify and f_process callbacks, and initialize the knote lists to use audio_lock. This makes audio_lock cover the device's knote processing. OK mpi@
2022-02-22The FILL_KPROC() macro should be useable in situations where sys/param.hTheo de Raadt
hasn't been included, so the use of MIN() is not legit, and a local version is required.
2022-02-22Delete unnecessary #includes of <netinet6/ip6protosw.h>: some neverPhilip Guenther
needed it and some no longer need it after moving the externs from there to <sys/protosw.h> ok jsg@
2022-02-22Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>Philip Guenther
net/if_pppx.c pointed out by jsg@ ok gnezdo@ deraadt@ jsg@ mpi@ millert@
2022-02-22Move declarations of ip6_protox[] and inet6sw[] to <sys/protosw.h>Philip Guenther
where the IPv4 versions have been forever ok gnezdo@ deraadt@ jsg@ mpi@ millert@
2022-02-22pfctlinput() is already declared in <sys/protosw.h>, which isPhilip Guenther
more specific and appropriate, so delete it here ok gnezdo@ deraadt@ jsg@ mpi@ millert@
2022-02-21Convert KVA allocation to km_alloc(9).Mark Kettenis
ok mpi@
2022-02-21Convert KVA allocation to km_alloc(9).Mark Kettenis
ok mpi@
2022-02-21Convert KVA allocation to km_alloc(9).Mark Kettenis
ok gkoehler@
2022-02-21Convert KVA allocation to km_alloc(9).Mark Kettenis
ok mpi@
2022-02-21Grab vmobjlocks with RW_DUPOK in vm_obj_wire() to silence WITNESSKlemens Nanni
The drm subsystem implements graphics buffers as uvm objects backed by anonymous memory, thus drm locks and aobj locks share the same "vmobjlock" type. uvm_obj_wire() is only called from sys/dev/pci/drm/, so instead of changing drm's lock init/alloc routines to mark allow duplicate locks in general, enter uvm's vmobjlock with RW_DUPOK in this function to allow duplicate lock types per thread in this specific call path alone. Fixes the following WITNESS report when booting/starting X (as seen already in other unrelated bugs@ reports): wsdisplay0: screen 1-5 added (std, vt100 emulation) witness: acquiring duplicate lock of same type: "&uobj->vmobjlock" 1st uobjlk 2nd uobjlk Starting stack trace... witness_checkorder(fffffd83b625f9b0,9,0) at witness_checkorder+0x8ac rw_enter(fffffd83b625f9a0,1) at rw_enter+0x68 uvm_obj_wire(fffffd843c39e948,0,40000,ffff800033b70428) at uvm_obj_wire+0x46 shmem_get_pages(ffff800008008500) at shmem_get_pages+0xb8 __i915_gem_object_get_pages(ffff800008008500) at __i915_gem_object_get_pages+0x6d i915_gem_fault(ffff800008008500,ffff800033b707c0,10009b000,a43d6b1c000,ffff800033b70740,1,35ba896911df1241,ffff8000000aa078,ffff8000000aa178) at i915_gem_fault+0x203 drm_fault(ffff800033b707c0,a43d6b1c000,ffff800033b70740,1,0,0,7eca45006f70ee0,ffff800033b707c0) at drm_fault+0x156 uvm_fault(fffffd843a7cf480,a43d6b1c000,0,2) at uvm_fault+0x179 upageflttrap(ffff800033b70920,a43d6b1c000) at upageflttrap+0x62 usertrap(ffff800033b70920) at usertrap+0x129 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffdc7c0, count: 246 End of stack trace. Input kettenis OK mpi
2022-02-21aligend -> alignedJonathan Gray
2022-02-21ambigus -> ambiguousJonathan Gray
2022-02-21anscestors -> ancestorsJonathan Gray
2022-02-21consisitent -> consistentJonathan Gray
2022-02-21cululative -> cumulativeJonathan Gray
2022-02-21differenent -> differentJonathan Gray
2022-02-21disatcher -> dispatcherJonathan Gray
2022-02-21diviedr -> dividerJonathan Gray
2022-02-21dmammem -> dmamemJonathan Gray
2022-02-21enries -> entriesJonathan Gray
2022-02-21entried -> entriesJonathan Gray
2022-02-21entris -> entriesJonathan Gray
2022-02-21expliclitly -> explicitlyJonathan Gray
2022-02-21futther -> furtherJonathan Gray
2022-02-21ignorint -> ignoringJonathan Gray
2022-02-21implenent -> implementJonathan Gray
2022-02-21independednt -> independent, let's -> letsJonathan Gray
2022-02-21Constify struct cfattach.Martin Pieuchot
2022-02-21initializion -> initializationJonathan Gray
2022-02-21initiailze -> initializeJonathan Gray
2022-02-21instructinos -> instructionsJonathan Gray
2022-02-21interrunts -> interruptsJonathan Gray