summaryrefslogtreecommitdiffstats
path: root/sys (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-07-11Don't reload the FPU registers when they're already loaded.kettenis1-3/+5
Seems to fix the clang crashes I was seeing.
2020-07-11Implement a machdep.altivec sysctl that always returns 1. This makeskettenis2-3/+17
pixman in xenocara build and hopefully helps with ports as well. suggested by matthieu@
2020-07-11Change locks which don't use spin_lock_irq() or spin_lock_irqsave()jsg2-3/+3
from IPL_TTY to IPL_NONE. From Benjamin Baier
2020-07-11test for gem_size > 0 on pool_destroy() matching pool_init() calljsg1-1/+2
ok kettenis@
2020-07-11don't complain if the API is too low to support "query phy types".dlg1-6/+8
it just means we won't know what to show in ifconfig media output, but that's not a huge deal. there's still some more issues around api versions and driver support that we're working on though. ok sthen@ jmatthew@
2020-07-10Add hw.cpuspeed and hw.setperfgkoehler3-6/+117
Get the list of Pstates from OPAL, and use special registers to request a Pstate or check the current Pstate. The turbo Pstates are higher than the cpu's nominal speed, but the OCC's firmware should throttle down the cpu if it would overheat. ok kettenis@
2020-07-10table fix;jmc1-3/+3
2020-07-10Document which crypto transforms are enabled by default.tobhe1-62/+62
2020-07-10Shuffle a bit of code to stop using sc->sc_link to hold values forkrw2-9/+11
openings outside of the one used at config_found() time. Adapters should take care of their own data. ok dlg@ for a sligthly different vioblk.c version.
2020-07-10Oops, I didn't intend to commit these bits.kettenis2-18/+5
2020-07-10Implement process_read_regs() such that core dumps become usable.kettenis3-28/+28
2020-07-10syncderaadt1-0/+1
2020-07-10Parse a bootduid= argument passed on the command line and use it to set thekettenis1-1/+33
bootduid variable in the kernel. This makes it possible to specify the boot disk in pettitboot menu entry (e.g. grub.cfg). ok deraadt@
2020-07-10Pass bootduid (from disklabel) on the bootline to the kernelderaadt1-3/+4
ok kettenis
2020-07-10adjust %n description to vaguely say "pointer", becuase the followingderaadt1-4/+6
list of "[size]n" includes "n" on it's own, thereby the "int" case is described correctly. ok schwarze
2020-07-10Clear FPU state if we try to restore the state when the process didn't usekettenis1-2/+6
the FPU yet.
2020-07-10Add check for userland VSID overflow.kettenis1-1/+2
2020-07-10base tree had only two uses of the printf %n format string, in this file.deraadt1-2/+2
Appending "%n" to the format string to capture the output-length in bytes (into an uninitialized variable) is exactly the same as using the printf return value. Why did they do this so unnaturally? (normally we don't change gcc import code, but I'm doing a study of %n prevelance) ok millert
2020-07-10As suggested by deraadt@, rewrite most of the printf(3) manual pageschwarze1-453/+586
to properly show the (differing) syntaxes of all the conversion specifications, and reduce the amount of forward references from the list of modifiers to the list of specifiers. While here, properly explain %lc and %ls. Also correct RETURN VALUES, which incorrectly talked about counting characters while actually bytes are counted. Using feedback from millert@, deraadt@, tb@, and Martin Vahlensieck. OK deraadt@, millert@, and tb@ on intermediate versions of this diff and no objections from jmc@.
2020-07-10Use OPAL_REINIT_CPUS calls during early boot to set endianness and tokettenis1-1/+11
set the MMU to hash mode such that the full TLB is available on POWER9 CPUs.
2020-07-10Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.patrick117-315/+308
ok dlg@ tobhe@
2020-07-10Change users of IFQ_PURGE() to use the "new" API.patrick8-24/+19
ok dlg@ tobhe@
2020-07-10Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use thepatrick72-158/+147
"new" API. ok dlg@ tobhe@
2020-07-10Add OPAL_REINIT_CPUS.kettenis2-2/+12
2020-07-10Clean up s_client.cinoguchi1-26/+27
- Remove space between '*' and pointer variable. - Add function prototype. - Move callback function to bottom. - Move typedef struct to up.
2020-07-10Even though the PowerISA indicates that hardware should update referencekettenis1-121/+55
and change bits in the page table entries that doesn't seem to happen reliably on the POWER9 CPU I'm looking at. So make our pmap not depend on this and emulate these bits instead. As far as I can determine Linux doesn't rely on the hardware bits either.
2020-07-10Change variable bio_c_out from global to localinoguchi1-15/+11
ok tb@
2020-07-10Kill `pppx_devs_lk' rwlock. It used only to prevent races caused bymvs1-42/+12
malloc(9) in pppxopen(). We can avoid these races without rwlock. Also we move malloc(9) out of rwlock. ok mpi@
2020-07-10Set missing `IFXF_CLONED' flag to pppx(4) related `ifnet'. That shouldmvs1-1/+2
prevent collecting entropy from pppx(4). ok mpi@
2020-07-10add back orientation quirk for Kogan Atlas 2-in-1 D300jsg1-0/+6
local change lost in 5.7 drm update
2020-07-10Add "Spleen 6x12" to wsfont, a font targetted at OLED displays.fcambus2-5/+1307
Similar to "Spleen 5x8" it only contains the printable ASCII characters (96 glyphes). The font is 2-Clause BSD licensed and is my original creation. OK patrick@
2020-07-09Move sc->sc_link initialization closer to config_found() invocationkrw1-10/+10
like all the cool drivers do.
2020-07-09Move sc->sc_link initialization closer to config_found() invocationkrw1-11/+12
like all the cool drivers do.
2020-07-09The fegetexceptflag() function should not have a DEF_STD.kettenis1-2/+1
Brings arm64 in line with all the other architectures. ok millert@
2020-07-09On some laptops that have a Windows Precision Touchpad (imt) andjcs3-13/+26
also a trackstick or separate physical buttons, imt was claiming all report ids of the ihidev device preventing the trackstick/buttons from attaching as a separate ims device on other report ids. Just claim the report ids that imt needs and let ims attach to others it may find. Fixes two Dell Latitude laptops and tested in snaps for a bit.
2020-07-09Some touchpads don't have the "maximum number of contacts" orjcs1-19/+17
"button type" usages, so assume some reasonable defaults rather than failing to attach. Fixes two Dell Latitude laptops and tested in snaps for a bit.
2020-07-09Fix a warning false positive from clang 10.millert1-2/+2
blf_enc() takes a number of 64-bit blocks to encrypt, but using sizeof(uint64_t) in the calculation triggers a warning from clang 10 because the actual data type is uint32_t. Pass BCRYPT_WORDS / 2 for the number of blocks like libc bcrypt(3) does. OK kettenis@
2020-07-09another excess filederaadt1-23/+0
2020-07-09Wrap long lines and put space in front of label in s_client.cinoguchi1-46/+80
2020-07-09Remove c_ prefix from s_client_config memberinoguchi1-33/+33
2020-07-09Convert openssl(1) s_client option handlinginoguchi1-450/+770
suggestions and ok beck@ jsing@ tb@
2020-07-09drm/amdgpu/atomfirmware: fix vram_info fetching for renoirjsg1-0/+1
From Alex Deucher fceff9423f428a62a20bb8fb8f66e6a9f906f12c in linux 5.7.y/5.7.8 d7a6634a4cfba073ff6a526cb4265d6e58ece234 in mainline linux
2020-07-09drm/amdgpu: use %u rather than %d for sclk/mclkjsg1-2/+2
From Alex Deucher c337fc540bb99e476e33153a9196eba4749a707a in linux 5.7.y/5.7.8 beaf10efca64ac824240838ab1f054dfbefab5e6 in mainline linux
2020-07-09drm/amd/display: Only revalidate bandwidth on medium and fast updatesjsg1-4/+6
From Nicholas Kazlauskas fcb408a7282302bd8b8afc6ef8db42b4eece23ee in linux 5.7.y/5.7.8 6eb3cf2e06d22b2b08e6b0ab48cb9c05a8e1a107 in mainline linux
2020-07-09drm/amd/powerplay: Fix NULL dereference in lock_bus() on Vega20 w/o RASjsg1-4/+7
From Ivan Mironov 13b2fe391cac70c7746e2cb68e73d99002f1cd00 in linux 5.7.y/5.7.8 7e89e4aaa9ae83107d059c186955484b3aa6eb23 in mainline linux
2020-07-09Avoid NULL deref in regexec when searching for empty lines.tb1-9/+10
Report & tweak from Hiltjo Posthuma
2020-07-09drm/i915: Include asm sources for {ivb, hsw}_clear_kernel.cjsg3-0/+282
From Rodrigo Vivi 95e961c6c23c35bb9f190f8d6bd13f1606de5a48 in linux 5.7.y/5.7.8 55fd7e0222ea01246ef3e6aae28b5721fdfb790f in mainline linux
2020-07-09drm/amdgpu: fix kernel page fault issue by ras recovery on sGPUjsg1-2/+3
From Guchun Chen 18b1cf2968e1baa883dbdf6adef6213626beaa0f in linux 5.7.y/5.7.8 12c17b9d62663c14a5343d6742682b3e67280754 in mainline linux
2020-07-09drm/amdgpu: fix non-pointer dereference for non-RAS supportedjsg1-2/+2
From Evan Quan 9c33bf981fab14ffbde2635d6e3d7d0818bac5a8 in linux 5.7.y/5.7.8 a9d82d2f91297679cfafd7e61c4bccdca6cd550d in mainline linux
2020-07-09drm/amdgpu: disable ras query and iject during gpu resetjsg3-3/+28
From John Clements 50a8cfb0e71644f2882dbfaf93150184094245bd in linux 5.7.y/5.7.8 61380faa4b4cc577df8a7ff5db5859bac6b351f7 in mainline linux