summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2022-10-03define CONFIG_PCIEASPM, add ltr_path to struct pci_dev for 5.15.70 drmJonathan Gray
2022-10-03regenJonathan Gray
2022-10-03add id for Raphael, Ryzen 7000 GPU (gfx1036, GC 10.3.6?)Jonathan Gray
2022-10-02Fetch vendor and product IDs from the keyboard/touchpad controller.Mark Kettenis
To be used in a future diff to handle machines with touchbar a bit better. ok robert@
2022-10-01The syscall table generation awk script was also used by compat layersTheo de Raadt
in the past, but those compat layers are gone. Remove support for the "config file" ok miod millert
2022-09-30re-enable POOL_DEBUGJonathan Gray
ok deraadt@
2022-09-29There no longer is any KVM_ET_* to keep in sync with UVM_ET_*, soTheo de Raadt
comment can be deleted.
2022-09-28Fix memory corruptions with sysv semaphores due to sleeps in copyin,Moritz Buhl
copyout and malloc. During a sleep another thread could delete the semaphore (and possibly allocate another one at the same location with different permissions) which would lead to an invalid access after wake up. Therefore check the semaphore pointer, the sequence, the permissions and some values in seminfo after each sleep. OK bluhm@ Reported-by: syzbot+60ba811fe2e8a6b0f975@syzkaller.appspotmail.com
2022-09-27we are now working on 7.2-currentTheo de Raadt
2022-09-26For framebuffers that don't start on a page boundary, we need to allowMark Kettenis
mapping of all the pages used by the framebuffer, even those that are only used partially. Adjust the check in simplefb_wsmmap() to allow that. While there, also make sure we use a (rounded down) page aligned address base address for the physical address we return. Fixes X on the 16" Macbook Pro. ok patrick@, deraadt@
2022-09-26Regenerate usbdevs{.h,_data.h} for Wacom One S (CTL-472)Stefan Hagen
2022-09-26uwacom(4): Support for Wacom One S (CTL-472)Stefan Hagen
2022-09-25Give mfii(4) firmware more time to transition out of UNDEFINED state.Stefan Sperling
Prevents occasional failure to recover from firmware FAULT state where the driver gave up too early: mfii0: firmware stuck in state 0 ok deraadt@
2022-09-24disable POOL_DEBUG for releaseJonathan Gray
ok deraadt@
2022-09-24add SH-B0 0x00000f50 socket 940 family 0Fh OpteronJonathan Gray
we already had SH-B0 0x00000f40 socket 754 family 0Fh Athlon 64 SH-B0 is part of amd64_errata_set8[]. Used for: Errata 89: Potential Deadlock With Locked Transactions ok deraadt@
2022-09-23Don't hardcode disk major device types inside DEBUG block. UseKenneth R Westerback
findblkname() and DISKUNIT(). Allows all block devices, not just sd* and vnd* to generate useful names in DEBUG output. Cluebat by deraadt@
2022-09-23Delete unused variables originally come from mvme88k.Kenji Aoyama
2022-09-23only call printf the first time amd64_errata() is calledJonathan Gray
it may later be used from a resume path when we don't want to print same change as amd64 amd64errata.c 1.11 by robert ok robert@ deraadt@
2022-09-22use the always serializing RDTSCP instruction in tsc and usertc if availableRobert Nagy
tweaks from cheloha@; ok deraadt@, sthen@, cheloha@
2022-09-22Call amd64_errata() from cpu_fix_msrs() instead of identifycpu() so thatRobert Nagy
on resume, the errata is re-applied. In addition make amd64_errata() print the information about the applied errata only once for the first CPU. input from jsg@ and deraadt@, ok deraadt@
2022-09-21Revert UVM_VNODE_CANPERSIST removal, it exposes an issue on arm64.Martin Pieuchot
Found the hardway by miod@ and deraadt@.
2022-09-20Split out handling of cpu family specific MSRs from cpu_init_msrs()Robert Nagy
to a separate function that gets called after identifycpu() so that we have the required information to handle the correct MSRs for each cpu. Additionally, move the handling of the DE_CFG_SERIALIZE_LFENCE and IA32_DEBUG_INTERFACE_LOCK MSRs out of identifycpu() to the new function so that they get set again after a suspend/resume cycle as well, which in fixes TSC sync failures. discussed with and input from deraadt@, mlarkin@
2022-09-20drm/amd/amdgpu: skip ucode loading if ucode_size == 0Jonathan Gray
From Chengming Gui 985a5d3d491d558f785b77cc5b86837bfa408587 in linux 5.15.y/5.15.69 39c84b8e929dbd4f63be7e04bf1a2bcd92b44177 in mainline linux
2022-09-20Remove unused and unimplemented unp_drain().Vitaliy Makkoveev
ok bluhm@
2022-09-20remove HY_D1_G34R1 enum value and just use HY_D1Jonathan Gray
HY-D1 C32r1 (0x00100f81) and HY-D1 G34r1 (0x00100f91) have the same errata and multiple cpuid values can map to a single enum value.
2022-09-19Change OF_getnodebyname() such that looking up a node using just the namePatrick Wildt
without a unit number (so without the @1234 bit) works as well. This is a re-commit of the backed out change with the endless loop fixed.
2022-09-18Define PMU_ADB_CMD and PMU_INT_ACKGeorge Koehler
Taking these definitions from NetBSD's pm_direct.h; most PMU_* commands have the same names in the BSDs and Linux. ok miod@ kettenis@
2022-09-18Fix a memory leak which was introduced by the previous commit.Marcus Glocker
The issue was reported by Stephan Somogyi - Thanks!
2022-09-18timecounting: tc_reset_quality: print notice if active counter changesScott Soule Cheloha
Give the user a hint as to what happened if they boot up and the TSC is not the active counter. "sure" deraadt@
2022-09-18tsc: make tsc_report_test_results() less noisy without TSC_DEBUGScott Soule Cheloha
By default, just say "tsc: cpu0/cpuN: sync test failed". If you want more information you need to recompile with TSC_DEBUG set. While here, disable TSC_DEBUG. "sure" deraadt@
2022-09-18Revert previous it prevents the PinebookPro and the Rockpro64 to reach userland.Martin Pieuchot
Found by kn@ and myself, ok deraadt@
2022-09-17bind() to AF_UNIX will now require unveil "w". "w" may seem a little oddTheo de Raadt
(and it may seem it should be "r" to get access to the file to collect the underlying socket, which is fully r/w in a non-file way). But this matches the POSIX spec that the file be 'writeable'. The regress test and daemons have been updated for this behaviour. Gap discovered by martijn, long discussions with benno
2022-09-16move most of the key combination translation code out of ukbd(4)Robert Nagy
to hidkbd so that it can be re-used by apldc(4) and aplhidev(4) as well this also adds support for apple fn key combinations to aplhidev(4) ok miod@
2022-09-16semctl1 and msgctl were introduced for binary compatibility for OpenBSD 3.5.Moritz Buhl
They are no longer needed. OK bluhm@
2022-09-16Make mfii(4) recover from firmware FAULT state on startup.Stefan Sperling
In case firmware initially comes up in FAULT state, reset the device and give it one more chance to attach successfully. The Linux megaraid_sas driver applies the same workaround in this case. There seems to be a bug in some firmware versions which can trigger this behaviour; see mainline Linux commit 6431f5d7c6025f8b007af06ea090de308f7e6881 Problem observed by me with mfii(4) attached via KVM PCI-passthrough: mfii0 at pci0 dev 2 function 0 "Symbios Logic MegaRAID SAS2208" rev 0x05: msi mfii0: firmware fault With this workaround in place, attachment succeeds and the device works: mfii0 at pci0 dev 2 function 0 "Symbios Logic MegaRAID SAS2208" rev 0x05: msi mfii0: firmware fault; attempting full device reset, this can take some time mfii0: "RAID Ctrl SAS 6G 1GB (D3116C)", firmware 23.29.0-0019, 1024MB cache Tested for regressions on bare metal by Hrvoje with two different adapters: mfii0 at pci1 dev 0 function 0 "Symbios Logic MegaRAID SAS3508" rev 0x01: msi mfii0: "PERC H740P Mini ", firmware 51.16.0-4076, 8192MB cache mfii0 at pci4 dev 0 function 0 "Symbios Logic MegaRAID SAS2208" rev 0x05: msi mfii0: "ServeRAID M5110", firmware 23.34.0-0023, 512MB cache ok jmatthew@
2022-09-16drm/i915: Implement WaEdpLinkRateDataReloadJonathan Gray
From Ville Syrjala d2ca79dd0b5487991dac52c6b679915dbd70ee4c in linux 5.15.y/5.15.68 672d6ca758651f0ec12cd0d59787067a5bde1c96 in mainline linux
2022-09-16drm/amd/display: fix memory leak when using debugfs_lookup()Jonathan Gray
From Greg Kroah-Hartman 58acd2ebae034db3bacf38708f508fbd12ae2e54 in linux 5.15.y/5.15.68 cbfac7fa491651c57926c99edeb7495c6c1aeac2 in mainline linux
2022-09-16drm/amdgpu: mmVM_L2_CNTL3 register not initialized correctlyJonathan Gray
From Qu Huang ad5ef763dbbea8193bd2095a1401aeac6e8f74e8 in linux 5.15.y/5.15.68 b8983d42524f10ac6bf35bbce6a7cc8e45f61e04 in mainline linux
2022-09-16drm/radeon: add a force flush to delay work when radeonJonathan Gray
From Zhenneng Li 5a7a5b2edac4b05abd744eeaebda46d9dacd952d in linux 5.15.y/5.15.68 f461950fdc374a3ada5a63c669d997de4600dffe in mainline linux
2022-09-16drm/amdgpu: Check num_gfx_rings for gfx v9_0 rb setup.Jonathan Gray
From Candice Li 622a557b28b718d4da92ff3504d83af2310324d2 in linux 5.15.y/5.15.68 c351938350ab9b5e978dede2c321da43de7eb70c in mainline linux
2022-09-16drm/amdgpu: Move psp_xgmi_terminate call from amdgpu_xgmi_remove_device to ↵Jonathan Gray
psp_hw_fini From YiPeng Chai c15c2c2c08964fd99d3366f80742129f8ae28eaa in linux 5.15.y/5.15.68 9d705d7741ae70764f3d6d87e67fad3b5c30ffd0 in mainline linux
2022-09-16drm/gem: Fix GEM handle release errorsJonathan Gray
From Jeffy Chen 1f574fbe9c2b831a8c3156260842a7abd280d59f in linux 5.15.y/5.15.68 ea2aa97ca37a9044ade001aef71dbc06318e8d44 in mainline linux
2022-09-16mask non-chain fence sequence numbers to 32-bit for comparisonsJonathan Gray
Most of drm uses 32-bit sequence numbers in fences. dma-fence-chain opts into 64-bit comparisons. Wrapping is handled like i915_seqno_passed() except that if the sequence numbers are the same one is not considered later than the other.
2022-09-15tsc: configure LFENCE to serialize dispatch before testing TSC syncScott Soule Cheloha
On AMD CPUs, LFENCE does not serialize instruction dispatch until MSR C001_1029[1] is properly configured. We do this in identifycpu(); see amd64/identcpu.c,v 1.103. The upshot is that the first TSC synchronization test is currently invalid on most AMD CPUs because the LFENCE in the test loop does not ensure that the AP loads the BP's latest TSC value before executing RDTSC. So the synchronization test is yielding false positives on AMD CPUs where the TSCs are actually synchronized. The simplest fix is to wait until after the secondary CPU runs identifycpu() in cpu_hatch() to test TSC synchronization. Moving the TSC sync test after CPU identification means that we can remove the CPUID() calls from tsc.c: the CPU feature flags are set in identifycpu() so we no longer need to test for IA32_TSC_ADJUST support by hand. While we are at it, we should also pass the correct cpu_info pointer to tsc_test_sync_bp(). It was unused before, so the bug was harmless, but we definitely need the BP's cpu_info pointer, not the AP's pointer. Unfortunately, this change does not fix the TSC sync problems we've been seeing on e.g. dv@'s and jmc@'s Ryzen 5 machines. Hopefully the problem on those machines is buggy firmware and not another architectural misunderstanding on my part. Prompted by robert@. Problem diagnosed by brynet@. With input from robert@, brynet@, and deraadt@. Tested by robert@, brynet@, dv@, phessler@, and jmc@. ok robert@ brynet@ sthen@
2022-09-15Enable the keyboard on the Samsung Galaxy Book Go.Marcus Glocker
Help from kettenis@, "Nice!" deraadt@
2022-09-15Add support for Apple fn key combinations. Based on Apple fn key handlingTobias Heider
in ukbd(4). ok miod@
2022-09-15Add GPTPARTATTR_MS_* defines for Microsoft basic data attributesKenneth R Westerback
and make 'fdisk -v' display their names (NoAutoMount, Hidden, Shadow, ReadOnly). Shift 1ULL instead of 1 to make it clear these are uint64_t flags. Makes clang happier.
2022-09-15Remove unneeded interim DPRINTF() verbiage. Make DEBUG compileKenneth R Westerback
again.
2022-09-15regenKurt Mosiejczuk
2022-09-15Add IDs for the JHL6240 Thunderbolt 3 controller found in my Thinkpad T490Kurt Mosiejczuk
ok jsg