summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2022-09-15Enable the keyboard on the Samsung Galaxy Book Go.Marcus Glocker
Help from kettenis@, "Nice!" deraadt@
2022-09-15regenKurt Mosiejczuk
2022-09-15Add IDs for the JHL6240 Thunderbolt 3 controller found in my Thinkpad T490Kurt Mosiejczuk
ok jsg
2022-09-13Split out the code that collects data from acpiac(4), acpibat(4) andMark Kettenis
acpisbs(4) for apm(4) and hook it up to the arm64 version of apm(4) on systems with ACPI. ok kn@
2022-09-12Add support for level-triggered GPIO events.Mark Kettenis
ok mlarkin@
2022-09-12disable Panel Self Refresh (PSR) by default in inteldrmJonathan Gray
After i915_drv.c 1.144 PSR changed to being on by default. On a TUXEDO InfinityBook Pro 14 Gen6 (Tiger Lake) this introduced screen flicker. Reported and tested by Matthias Schmidt. Should also avoid flicker problem on Dell XPS 13 7390 (Comet Lake) reported by James Cook.
2022-09-12acpihpet(4): acpihpet_delay: only use lower 32 bits of counterScott Soule Cheloha
We can't use acpihpet_r() to implement acpihpet_delay(). Even if we made acpihpet_r() atomic on amd64, i386 would still be incapable of doing atomic 8-byte reads. As-is, the code does a split read on all platforms, which may or may not already be causing problems with TSC calibration: https://marc.info/?l=openbsd-tech&m=166220561709496&w=2 Switch from acpihpet_r() to bus_space_read_4() and only use the lower 32 bits of the counter. This makes acpihpet_delay() slightly larger, but unless we want two acpihpet_delay() implementations we have no choice. Link: https://marc.info/?l=openbsd-tech&m=166165347220077&w=2 ok jsg@
2022-09-11Remove the DKF_LABELVALID flag from struct disk. Instead, trust disk driversMiod Vallat
to always be able to provide a duid, and keep ignoring whole zero duids. This fixes a race in vnd setup where the disk_attach callback could run before any I/O occurs on the vnd, thus not having a label available yet. noticed by otto@ and kn@; ok kn@
2022-09-11Add the new inout vmm(4) tracepoint to dt(4).Dave Voutila
Forgot to put it in the list of static tracepoints when I committed the tracepoint at g2k22. Woops.
2022-09-11Register the I2C controller with ACPI. Skip this on the SC8280XP SoC forMark Kettenis
now as the AML on the Lenovo X13S tries to do I2C transactions to a device that doesn't respond leading to the ACPI thread spinning until the transaction times out. ok mlarkin@, deraadt@
2022-09-11Handle if pci_intr_establish() failed. This actually happens if manyYASUOKA Masahiko
VMXNET3 are configured. from IIJ. ok jmatthew
2022-09-11Change OF_getnodebyname() such that lokking up a node using just the nameMark Kettenis
without a unit number (so without the @1234 bit) works as well. ok patrick@, gkoehler@
2022-09-10Add another pin to the SC7180 map function.Mark Kettenis
2022-09-10Don't restrict GPIO events to pin numbers below 256. With the _EVT()Mark Kettenis
method events corresponding to larger numbers are possible. Fixes lid state detection on the x13s. ok patrick@
2022-09-10Generalize the code such that it works on SC7180 SoCs as well.Mark Kettenis
ok mglocker@, patrick@
2022-09-10Add _HID for SC7180 SoCs.Mark Kettenis
ok mglocker@
2022-09-10Finally, only allocate the number of frames for isoc transfers which weMarcus Glocker
really need. The static allocation workaround in the code (DWC2_MAXISOCPACKETS) was required because the NetBSD allocx USB method has a second argument to pass nframes already there, which we don't have. Regression tested with video play, audio play, audio record. ok mpi@
2022-09-09Let pool_get(9) do the memory initialisation directly.Marcus Glocker
ok kettenis@
2022-09-09The DSDT on the snapdragon 7c based Acer Aspire 1 (A114-61) uses a bogusMark Kettenis
compatible ID. Add its hardware ID to the list to work around this. ok patrick@, mlarkin@, mglocker@
2022-09-09drm/i915: Skip wm/ddb readout for disabled pipesJonathan Gray
From Ville Syrjala 1787ec7dcc3761e040d0cd9896d3a40b4efac4cf in linux 5.15.y/5.15.66 0211c2a0ea600e25db3044daaeff4fe41c3ed6d9 in mainline linux
2022-09-09drm/i915/glk: ECS Liva Q2 needs GLK HDMI port timing quirkJonathan Gray
From Diego Santa Cruz f9a0f49be767a45aa1dc7d846a2745bb7849268a in linux 5.15.y/5.15.66 919bef7a106ade2bda73681bbc2f3678198f44fc in mainline linux
2022-09-09drm/i915/reg: Fix spelling mistake "Unsupport" -> "Unsupported"Jonathan Gray
From Colin Ian King 0522550aeed4ec899d16e237be0ae67f8aa1319b in linux 5.15.y/5.15.66 233f56745be446b289edac2ba8184c09365c005e in mainline linux
2022-09-09drm/i915/display: avoid warnings when registering dual panel backlightJonathan Gray
From Arun R Murthy 7828b5d0080a4621973ab5c680c4df0bc6d96437 in linux 5.15.y/5.15.66 868e8e5156a1f8d92ca83fdbac6fd52798650792 in mainline linux
2022-09-09add backlight_device_get_by_name() used by 5.15.66 drmJonathan Gray
2022-09-09drm/i915/backlight: extract backlight code to a separate fileJonathan Gray
From Jani Nikula 630ab29120b5dd1c543150da5e1aa304a5aece2e in linux 5.15.y/5.15.66 6cc42fbeb150ff33b17cbf108713ca4be23994d8 in mainline linux
2022-09-08There is no need to uncomment the clock gating exit/enter gadget functions,Marcus Glocker
since we define them void anyway.
2022-09-08There is no need to uncomment the call_gadget macro, since in our driverMarcus Glocker
it's getting defined void anyway.
2022-09-08Zap inactive gadget functions.Marcus Glocker
2022-09-08Move bitmap functions to a new home.Marcus Glocker
ok kettenis@
2022-09-08initialise inteldrm device params from module paramsJonathan Gray
In inteldrm_attach() we need to call i915_params_copy(). Matching the changes made to i915_driver_create() in linux 8a25c4be583d8a9e38fbadcc49d4de32b1aa8906 (5.10) drm/i915/params: switch to device specific parameters This makes DisplayPort MST work again as the value of enable_dp_mst changes from false to true. Set enable_guc as 0 as I suspect that needs more work. Set request_timeout_ms to 0 as otherwise I see "Fence expiration time out" running Xorg on Broadwell. Problem reported and debugged by Paul Kelly.
2022-09-08Rename global ifnet TAILQKlemens Nanni
Naming the list like the struct itself makes for awful grepping. Call the global variable "ifnetlist" from now on. There used to be kvm(3) consumers in base picking up this symbol, but those have long been converted to other interfaces. A few potential ports users remain, same deal as sys/net/if_var.h r1.116 "Remove struct ifnet's unused if_switchport member": they get bumped. Previous users pointed out by deraadt OK bluhm
2022-09-08Use generic PNP ID to match HID-over-I2C devices.Mark Kettenis
ok patrick@, drahn@
2022-09-08Add a few more pin mappings based on what is in some Linux device treeMark Kettenis
updates that are floating around. Remove some #ifdef'ed out debug code that was left behind. ok patrick@, drahn@
2022-09-08recognise Realtek ALC245Jonathan Gray
from Neel Chauhan
2022-09-08match on Intel 600 Series LP HD Audio (0x51c8)Jonathan Gray
HP Spectre x360 16-f0013dx has subclass audio not hd audio so azalia does not match from Neel Chauhan
2022-09-07Add a few more PNP IDs to handle variants of the Qualcomm dual roleMark Kettenis
controller based on AML dumps found online and some further detective work looking at Windows drivers by jsg@. ok jsg@, millert@
2022-09-06Fix spacing/indent, no object changeKlemens Nanni
2022-09-05Remove some inactive code, comments, and DPRINTFs. Minor style changes.Marcus Glocker
2022-09-05drm/amd/display: avoid doing vm_init multiple timeJonathan Gray
From Charlene Liu 85dd24ff77c15f5fc0e16bc3f288f5d1ac93e02b in linux 5.15.y/5.15.65 5544a7b5a07480192eb5fd3536462faed2c21528 in mainline linux
2022-09-05drm/amdgpu: Increase tlb flush timeout for sriovJonathan Gray
From Dusica Milinkovic 898467ac9bcb56090f0b651088a36331ff779e4c in linux 5.15.y/5.15.65 373008bfc9cdb0f050258947fa5a095f0657e1bc in mainline linux
2022-09-05drm/amd/display: Fix pixel clock programmingJonathan Gray
From Ilya Bakoulin 4df54c493e76f3cfa0bc8c54c5c43faa3b6e78d4 in linux 5.15.y/5.15.65 04fb918bf421b299feaee1006e82921d7d381f18 in mainline linux
2022-09-05drm/amd/pm: add missing ->fini_microcode interface for Sienna CichlidJonathan Gray
From Evan Quan a89e753d5a9f3b321f4a3098e2755c5aabcff0af in linux 5.15.y/5.15.65 0a2d922a5618377cdf8fa476351362733ef55342 in mainline linux
2022-09-05drm/amd/display: clear optc underflow before turn off odm clockJonathan Gray
From Fudong Wang 5ee30bcfdb32526233d2572f3d9ec371928679f1 in linux 5.15.y/5.15.65 b2a93490201300a749ad261b5c5d05cb50179c44 in mainline linux
2022-09-05drm/amd/display: For stereo keep "FLIP_ANY_FRAME"Jonathan Gray
From Alvin Lee e407e04a93d7b1209669220fab5eb69ab7b09baf in linux 5.15.y/5.15.65 84ef99c728079dfd21d6bc70b4c3e4af20602b3c in mainline linux
2022-09-05drm/amd/display: Fix HDMI VSIF V3 incorrect issueJonathan Gray
From Leo Ma 2cddd3d0b049a5e0666f93ea8c0d6ba6cc4bbec4 in linux 5.15.y/5.15.65 0591183699fceeafb4c4141072d47775de83ecfb in mainline linux
2022-09-05drm/amd/display: Avoid MPC infinite loopJonathan Gray
From Josip Pavic 0c8abeceee0f58ad3fdc66e1de0c0e02b962653b in linux 5.15.y/5.15.65 8de297dc046c180651c0500f8611663ae1c3828a in mainline linux
2022-09-05drm/i915/gt: Skip TLB invalidations once wedgedJonathan Gray
From Chris Wilson 4676773ea117624ced48fdf9806d5e0dc051bd7f in linux 5.15.y/5.15.65 e5a95c83ed1492c0f442b448b20c90c8faaf702b in mainline linux
2022-09-05drm/bridge: Add stubs for devm_drm_of_get_bridge when OF is disabledJonathan Gray
From Maxime Ripard f8b07c05b69969c41efafda7022d6cb184d61bf9 in linux 5.15.y/5.15.65 59050d783848d9b62e9d8fb6ce0cd00771c2bf87 in mainline linux
2022-09-05Cleanup USB methods so that they align to what we do in other HC drivers,Marcus Glocker
like xhci(4) and ehci(4). ok mpi@
2022-09-04Improve periodic USB transfers (device intr, isoc) used for inputMarcus Glocker
devices, audio, and video. It's still not perfect, and will need further improvements. High level, the diff contains following changes: * Sync up with the Linux code base, which did re-work the periodic scheduling code path. * Run the driver in IPL_VM instead of IPL_USB to prioritize us before lower/equal interrupts (same what NetBSD does). * Add two new flags to our USB stack required by the updated driver code: - 'multi' flag in the usbd_hub structure to keep track whether a hub has one Transaction Translator for all ports (single TT) or one Transaction Translator per port (multi TT). - 'hcpriv' pointer in the usbd_tt structure for the HC driver to allocate memory for the scheduling depending on single or multi TT. "go for it" kettenis@