summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2022-07-11remove duplicate 'if (err)' line in iwm_auth()Stefan Sperling
spotted by waddlesplash at haiku-os
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-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-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-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-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-02Remove unused device poll functions.Visa Hankala
Also remove unneeded includes of <sys/poll.h> and <sys/select.h>. Some addenda from jsg@. OK miod@ mpi@
2022-06-30Fix bwfm(4) crash during detach on USB.Stefan Sperling
The net80211 stack detach routine can trigger more tasks to be scheduled, e.g. to delete WPA keys. So let's not free the driver's taskq before net80211 has been detached. fixed with and ok by mpi@ Crash reported by mlarkin@ who yanked the USB cable to test our fix.
2022-06-29drm/i915: Implement w/a 22010492432 for adl-sJonathan Gray
From Ville Syrjala 0895a2235bae6671077c2de94268cccc346005d6 in linux 5.15.y/5.15.51 13bd259b64bb58ae130923ada42ebc19bf3f2fa2 in mainline linux
2022-06-29correct vararg use in kasprintf/kvasprintfJonathan Gray
fixes names of some encoders
2022-06-29match on Alder Lake-PJonathan Gray
ok deraadt@ kettenis@
2022-06-28constify miscellaneous arm64 pin and clock tablesChristian Weisgerber
ok miod@
2022-06-28Add support for the Synopsys DesignWare UART found on the Ryzen EmbeddedMark Kettenis
V1000 SoCs. ok anton@
2022-06-28A com_acpi_softc pointer is used as the interrupt callback cookie whichAnton Lindqvist
is later on interpreted as a com_softc pointer. This is not a problem in practice as a com_softc structure is the first member of the com_acpi_softc structure. Using the actual types consistently yields a better symmetry in my opinion between registering the interrupt and the corresponding interrupt handler. ok deraadt@ kettenis@
2022-06-28No need to pass a copy of the bcmdmac_channel structure to predicateAnton Lindqvist
routines. ok deraadt@ kettenis@
2022-06-28Remove commented out variables and excessive blank lines inAnton Lindqvist
pluart_param().
2022-06-28syncTheo de Raadt
2022-06-28a start at qualcomm productsTheo de Raadt
2022-06-28Use btrace(8) to debug reference counting. dt(4) provides a staticAlexander Bluhm
tracepoint for each type of refcnt we have. As a start, add inpcb and tdb refcnt. When the counter changes, btrace may print the actual object, the current counter, the change value and optionally the stack trace. discussed with visa@; OK mpi@
2022-06-28Add hardware ID for EHCI-compliant USB controller with standard debug.Mark Kettenis
ok jsg@
2022-06-28Add hardware ID for XHCI-compliant USB controller without standard debug.Mark Kettenis
ok jsg@
2022-06-27Fix comment.Miod Vallat
2022-06-27Introduce Large Receive Offloading of TCP segment offloading for ix(4). It isJan Klemkow
disabled by default. Also add a tso option to ifconfig(8) to enable and disable this feature. ok deraadt
2022-06-27Remember the error of ucomreadcb() for the next ucomread() call and returns anJan Klemkow
EIO. Thus the userland notices the error and closes the device. We forget the error on reopen and the device works again. Ok mbuhl
2022-06-27Allow the pluart(4) baud rate to be changed.Anton Lindqvist
It's most likely that users have the wrong baud rate in /etc/ttys as this was corrected in revision 1.11 of sys/dev/ic/pluart.c. Make sure to change the console baud rate from 38400 to 115200 in /etc/ttys before upgrading. ok visa@
2022-06-27Do not run receive and transmit interrupt handlers when the bnxt(4)Alexander Bluhm
interface is not running. Prevents a panic triggered by ifconfig bnxt0 down. found by Hrvoje Popovski; OK jmatthew@
2022-06-27Fix bwfm(4) ifconfig media display on devices with sta_info command version 3.Stefan Sperling
ok jsg@
2022-06-27Whitespace/KNFMike Larkin
2022-06-27amdgpio(4): restore pin configuration on resumeMike Larkin
Save/restore the pin configuration on suspend/resume for amdgpio(4). This fixes missing interrupts after resume for trackpads on some machines, including the ROG Zephyrus 14 and the HP DevOne (and probably others). Code based on pchgpio(4). ok deraadt, kettenis
2022-06-26Add missing splx before returning when urtwn_ccmp_decap() fails.Jonathan Matthew
from Christian Ludwig
2022-06-26Break out of the switch statement rather than returning early on ioctlJonathan Matthew
errors, ensuring the IPL is correctly restored. from Christian Ludwig
2022-06-26add missing splx in error pathJonathan Matthew
from Christian Ludwig
2022-06-26drm/amd/display: Don't reinitialize DMCUB on s0ix resumeJonathan Gray
From Nicholas Kazlauskas 7fd1d002852f93f5c03b3188f585245c50b52aea in linux 5.15.y/5.15.50 79d6b9351f086e0f914a26915d96ab52286ec46c in mainline linux
2022-06-23ungate DMA clock on >= tgp to avoid packet loss on Alder LakeJonathan Gray
chicken bit set in linux but not documented anywhere I can find ok claudio@
2022-06-23add tgp and adp mac types and change from reusing cnpJonathan Gray
ok claudio@
2022-06-23regenJonathan Gray
2022-06-23add some intel bluetooth idsJonathan Gray
0x0032 Typhoon Peak (AX210, AX1675) 0x0033 Garfield Peak (AX211, AX411, AX1690, AX1675) 0x0035 Madison Peak 0x07da Jackson Peak (2230, 6235) 0x07dc Wilkins Peak (7260) 0x0aa7 Sandy Peak (3168) 0x0aaa Jefferson Peak (9461, 9462, 9560)
2022-06-22drm/amd/display: Cap OLED brightness per max frame-average luminanceJonathan Gray
From Roman Li 8720414b51d43a407dc6e7d7d70cebd459b0b93b in linux 5.15.y/5.15.49 4fd17f2ac0aa4e48823ac2ede5b050fb70300bf4 in mainline linux
2022-06-22drm/i915/reset: Fix error_state_read ptr + offset useJonathan Gray
From Alan Previn f4c5eba87675a07a6c28cdaca7366aeb4258ec78 in linux 5.15.y/5.15.49 c9b576d0c7bf55aeae1a736da7974fa202c4394d in mainline linux