summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2022-07-14Replace tabs by spaces after "#define". No functional changes, justVitaliy Makkoveev
prevent future diffs to be ugly. ok bluhm@
2022-07-13Implement the fundamentals for suspend/resume on arm64. This uses PSCIMark Kettenis
to turn off the secondary CPUs and suspend the primary CPU using the CPU_OFF and SYSTEM_SUSPEND calls. A new "halt" IPI is added to turn off the ssecondary CPUs. This IPI is implemented for the ampintc(4) and agintc(4) interrupt controllers. Fulle suspend/resume support is only implemented for ampintc(4). This is enough to suspend and resume boards based on the Allwinner A64 SoC, provided the necessary wakeup interrupts have been set up (not part of this commit). ok patrick@
2022-07-13drm/i915: Fix a race between vma / object destruction and unbindingJonathan Gray
From Thomas Hellstrom 51a405dea0ae54330b6441c5f7c3bb9ceadedce8 in linux 5.15.y/5.15.54 bc1922e5d349db4be14c55513102c024c2ae8a50 in mainline linux
2022-07-13drm/amdgpu: vi: disable ASPM on Intel Alder Lake based systemsJonathan Gray
From Richard Gong 7a9e13b86536ce6dca54380f19d537b1c80caee3 in linux 5.15.y/5.15.54 aa482ddca85a3485be0e7b83a0789dc4d987670b in mainline linux
2022-07-13drm/amd: Refactor `amdgpu_aspm` to be evaluated per deviceJonathan Gray
From Mario Limonciello 0a9a60dcedaacde4b903337b7445cb431b4dd119 in linux 5.15.y/5.15.54 0ab5d711ec74d9e60673900974806b7688857947 in mainline linux
2022-07-13drm/amd/vcn: fix an error msg on vcn 3.0Jonathan Gray
From tiancyin f3647c369c178c1cdea7f6a60dc32d6118afac40 in linux 5.15.y/5.15.54 425d7a87e54ee358f580eaf10cf28dc95f7121c1 in mainline linux
2022-07-13drm/amd/display: Fix by adding FPU protection for dcn30_internal_validate_bwJonathan Gray
From CHANDAN VURDIGERE NATARAJ 59bf2aca4b1c3eca28b337b5e797bb9b43d44f3b in linux 5.15.y/5.15.54 50e6cb3fd2cde554db646282ea10df7236e6493c in mainline linux
2022-07-13drm/amd/display: Set min dcfclk if pipe count is 0Jonathan Gray
From Michael Strauss f276634b12fa8f63988be9cf5492c7d60d5ad7b1 in linux 5.15.y/5.15.54 bc204778b4032b336cb3bde85bea852d79e7e389 in mainline linux
2022-07-13drm/i915: Replace the unconditional clflush with drm_clflush_virt_range()Jonathan Gray
From Ville Syrjala b33035945b0a6853f8f6f63fb3c3bc9ea869337e in linux 5.15.y/5.15.54 ef7ec41f17cbc0861891ccc0634d06a0c8dcbf09 in mainline linux
2022-07-13drm/i915/gt: Register the migrate contexts with their enginesJonathan Gray
From Thomas Hellstrom 9cf3a1c1288e43af00d70a8520ea9efbea01615e in linux 5.15.y/5.15.54 3e42cc61275f95fd7f022b6380b95428efe134d3 in mainline linux
2022-07-13drm/i915: Disable bonding on gen12+ platformsJonathan Gray
From Matthew Brost d839d15b50743164d7ad95f436ea284a2946c179 in linux 5.15.y/5.15.54 ce7e75c7ef1bf8ea3d947da8c674d2f40fd7d734 in mainline linux
2022-07-12Use __func__ in interface media debug printf().Alexander Bluhm
2022-07-12Protect interface media list with a mutex. This is just a startAlexander Bluhm
to make make media structures MP safe. OK mvs@
2022-07-12Use db_rint() in sfuart(4)Jeremie Courreges-Anglas
This lets me enter ddb(4) even when the riscv64 machines I manage get unusable because of NFS. Suggested by miod@, ok miod@ kettenis@
2022-07-12Add db_rint(), an MI interface to db_enter() copied from kdbrint() in vax codeJeremie Courreges-Anglas
If ddb.console is set and your serial console driver uses it, db_rint(), lets you enter ddb(4) by typing the ESC D escape sequence. This is useful for drivers like sfuart(4) where the hardware doesn't have a true BREAK mechanism. Suggested by miod@, ok kettenis@ miod@
2022-07-12Remove PIPEXCSESSION pipex(4) ioctl(2) command from kernel and man page.Vitaliy Makkoveev
Long time ago pipex(4) session can't be deleted until both pipex(4) input and output queues become empty. Dead sessions were linked to the stack and the `ip_forward' flag was used to prevent packets forwarding. npppd(8) marked such sessions by doing PIPEXCSESSION ioctl(2) call. But since we started to unlink close session from the stack, this logic became unnecessary. Also pipex(4) session could be closed just after close request. npppd(8) was the only userland program which did PIPEXCSESSION ioctl(2) call, and we removed it week ago. It's time to remove the remains. Now the `flags' member of 'pipex_session' structure became immutable. ok yasuoka@
2022-07-12remove cache parts of struct cpu_info which were used by vmmJonathan Gray
2022-07-12allow cpuid 0x8000001d, cache topology on AMDJonathan Gray
ok mlarkin@
2022-07-12remove cache parts of struct cpu_info only vmm usedJonathan Gray
suggested by and ok mlarkin@
2022-07-12recognise Cortex-A715 and Cortex-X3Jonathan Gray
2022-07-11Switch bootloaders to the extended BOOTARG_CONSDEV struct.Mark Kettenis
Make the EFI bootloader provide the extra parameters that are necessary for using the non-standard UART on the AMD Ryzen Embedded V1000 SoCs. ok anton@
2022-07-11Simplify the aiodone daemon which is only used for async writes.Martin Pieuchot
- Remove unused support for asynchronous read, including error conditions - Grab the proper lock for each page that has been written to swap. This allows to enable an assertion in uvm_page_unbusy(). - Move the uvm_anon_release() call outside of uvm_page_unbusy() and assert for the different anon cases. ok beck@, kettenis@
2022-07-11Remove asynchronous read support in uvm_swap_get().Martin Pieuchot
Reading pages from swap is always done synchronously. The fault handler needs to sleep and PGO_SYNCIO is already asserted a couple of lines above. ok beck@, kettenis@ as part of a larger diff.
2022-07-11remove duplicate 'if (err)' line in iwm_auth()Stefan Sperling
spotted by waddlesplash at haiku-os
2022-07-11r1.3 converted the clock rates from kHz to Hz, so we shouldn't multiply byJonathan Matthew
1000 to pass the rate to amptimer_set_clockrate(). Fixes the system clock running too slow for ntpd to keep in sync. ok patrick@
2022-07-10Add missing `pipex_list_mtx' mutex(9) around all sessions loop withinVitaliy Makkoveev
pipex_ip_output(). The all sessions loop was reworked to make possible to drop the lock within. ok bluhm@ yasuoka@.
2022-07-10if_detach() should wait until concurrent (*if_qstart)() interface startVitaliy Makkoveev
routines finished. Call ifq_barrier(9) just after we unlinked dying interface from the stack. From this point it is not accessible by if_get(9) and if_unit(9), and all concurrent threads owning interface pointer finished. It also detached from pseudo drivers like bridge(4). We only could have concurrent (*if_qstart)() handlers running, so wait them and then continue destruction. Reported and tested by Hrvoje Popovski. ok bluhm@
2022-07-10Add _cb suffix to callback fields in struct ifmedia. Makes codeAlexander Bluhm
easier to read and grep as ifm_status was used in both structs ifmediareq and ifmedia with different meaning. OK mvs@
2022-07-10Remove trailing whitespace. No code change.Mike Larkin
2022-07-10Remove trailing whitespace. No code change.Mike Larkin
2022-07-10Add missing device_unref() calls.Visa Hankala
OK kettenis@
2022-07-09Fix the error path of the 'SIOCSIFMTU' pppoe_ioctl() case. Return errorVitaliy Makkoveev
value if the `error' is set instead of continue to sppp_ioctl(). ok bluhm@
2022-07-09Add suspend/resume supportMark Kettenis
ok mlarkin@, patrick@
2022-07-09Add suspend/resume support.Mark Kettenis
ok mlarkin@, patrick@
2022-07-09Add support for calling the CPU_OFF and SYSTEM_SUSPEND functions.Mark Kettenis
Add a function to check whether SYSTEM_SUSPEND is supported by the PSCI firmware. ok patrick@
2022-07-09Unwrap klist from struct selinfo as this code no longer uses selwakeup().Visa Hankala
OK jsg@
2022-07-09Consistently use uint64_t.Mark Kettenis
2022-07-08Display parameters exposed to userland as percentages (backlight, brightness,Miod Vallat
contrast) are not valid if they only have one state, i.e. minimum and maximum values being equal. Do not expose them to userland in this case, for wsconsctl would attempt to divide by zero (which is known to have unwelcome consequences). This allows display drivers trusting not-so-reliable sources (fdt, bogus hardware...) to not have to perform those checks themselves. Found the hard way by daniel@. No firm consensus on this workaround, using one seniority point here, will revert if this spawns complaints.
2022-07-07drm/fourcc: fix integer type usage in uapi headerJonathan Gray
From Carlos Llamas 5b458d3de9cfac4a21b704c90c8c7eff244c8b13 in linux 5.15.y/5.15.53 20b8264394b33adb1640a485a62a84bc1388b6a3 in mainline linux
2022-07-07drm/i915/gem: add missing elseJonathan Gray
From katrinzhou a13ea254268c5538f4c2f1a1a344ad07cd7b87d3 in linux 5.15.y/5.15.53 9efdd519d001ee3e761f6ff80d5eb123387421c1 in mainline linux
2022-07-07drm/amdgpu: To flush tlb for MMHUB of RAVEN seriesJonathan Gray
From Ruili Ji 31c371b61d13dd457fdcc27cd728c04ee09f9cdb in linux 5.15.y/5.15.53 5cb0e3fb2c54eabfb3f932a1574bff1774946bc0 in mainline linux
2022-07-07Revert "drm/amdgpu/display: set vblank_disable_immediate for DC"Jonathan Gray
From Alex Deucher 990132bebcc81aa95c1a1ac4422b0364753d9d39 in linux 5.15.y/5.15.53 a775e4e4941bf2f326aa36c58f67bd6c96cac717 in mainline linux
2022-07-07Revert previous attempt at serializing `uo_refs'.Martin Pieuchot
It is incorrect to look at/modify `uo_refs' without lock in uvm_vnp_sync(). However sleeping is not possible and spinning introduces a deadlock with the KERNEL_LOCK() when another thread faults on a mmaped region related to a vnode we're currently synching. A proper fix should be investigated. For now a kown a race, mostly safe due to the KERNEL_LOCK(), is better than a possible deadlock. Issue reported by caspar@ Discussed with and ok semarie@
2022-07-07remove a DPRINTF() from iwm(4) which no longer makes any senseStefan Sperling
The conditions under which this debug message should trigger were changed in r1.330 (cvs commit RcatFKLXoHUopLvW), which removed a txd_done() call located before txq_advance(). The mbuf for the most recently completed frame will no longer be NULL on entry. Prompted by a question from waddlesplash at haiku-os.
2022-07-07retire NexGen CPU identification codeDaniel Dickman
On OpenBSD/i386 we only support Pentium compatible CPUs with an FPU. The NexGen CPUs probably don't meet this requirement so remove the small amount of support code to identify this brand of CPU. The Nx586 "P" models did not include an FPU as they were expected to be paired with an Nx587 FPU (which was never officially released). The Nx586 "FP" models did include an FPU, but even these are allegedly 386 clones and not Pentium compatible. According to some websites, 486 instructions were emulated via hypercode. However the 486 instruction emulation was only enough to run applications and wasn't good enough to run an OS that needs newer 486 and Pentium instructions. Finally, while our current code references the "Processor Recognition Application Note", we only implement the half of the documented algorithm to detect NexGen CPUs. We don't implement the second half of the algorithm to check for the vendor string "NexGenDriven" on NexGen CPUs that support the CPUID instruction (like the Nx586-P120 and Nx586-P133). ok jsg@
2022-07-05Remove old poll/select wakeup mechanism.Visa Hankala
Also remove unneeded seltrue() and selfalse(). OK mpi@ jsg@
2022-07-05Missing header change that should have gone with xhci_acpi.c r1.8Theo Buehler
from kettenis via patrick
2022-07-05workaround link training problems on s3 resume with alder lakeJonathan Gray
The firmware from multiple lenovo alder lake machines claim there are two eDP ports in the video bios table (VBT). Which results in link training problems on resume from S3 with the screen continually turning on and off. Forcing port B to not be recognised as eDP works around this. I believe port A is the normal eDP port. https://gitlab.freedesktop.org/drm/intel/-/issues/5531 https://gitlab.freedesktop.org/drm/intel/-/issues/4950
2022-07-04Add support for the dual role controllers integrated on the QualcommMark Kettenis
Snapdragon 8cx gen 3 SoC. ok patrick@
2022-07-04Use destination buffer size as strlcpy() bound, not source; harmless here forMiod Vallat
both sizes are equal. ok kettenis@