summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2015-09-25Apparently 0 is not a power of 2 (despite <sys/param.h> claiming that it is).kettenis1-2/+2
Fixes inteldrm(4) on the GM45 chipset.
2015-09-253.14 backports of some Broadwell fixes fromjsg6-28/+64
http://lists.freedesktop.org/archives/intel-gfx/2014-March/042121.html Ben Widawsky drm/i915/bdw: Restore PPAT on thaw a2319c08bfd849ea32b4f890ce92df86074c5731 Ville Syrjala drm/i915: We implement WaDisableAsyncFlipPerfMode:bdw 8285222c487b61c48b9b955b82598544c3c06050 Ben Widawsky drm/i915/bdw: Use scratch page table for GEN8 PPGTT 8407bb9129da95fc4099b84cdbbc23e6d4f66aee Jani Nikula drm/i915: don't flood the logs about bdw semaphores c923facd535b97972b5bb7d3df4fcafd61a63a5e Ville Syrjala drm/i915: Implement WaDisableSDEUnitClockGating:bdw 4f1ca9e94057de098d65bc7477e8f89dd51609aa Ville Syrjala drm/i915: Don't clobber CHICKEN_PIPESL_1 on BDW c7c656226842679bcd9f39dc24441b4ff398a850 Kenneth Graunke drm/i915: Add a partial instruction shootdown workaround on Broadwell. c8966e1058e1e8ae2eec4211157847032829697a Damien Lespiau drm/i915/bdw: The TLB invalidation mechanism has been removed from INSTPM dc616b89dbc4bb6a99884d214bd1ed1e0eef59a0 Kenneth Graunke drm/i915: Add thread stall DOP clock gating workaround on Broadwell. 1411e6a57a1836ba8a3d4f17c8733b2fbaf0f005 Ville Syrjala drm/i915: Disable semaphore wait event idle message on BDW 295e8bb73a4785b65db6655fbf6ad57c4177b551 Mika Kuoppala drm/i915: Do forcewake reset on gen8 0a089e3355d77f758e46db54a0a81d4b58a28cc3 Mika Kuoppala drm/i915: Fix forcewake counts for gen8 e9dbd2b20201b49b04476d2e5763faa822967913 ok kettenis@
2015-09-25Disable IPS for now. Identified by jsg@ as the cause for the unsynchedkettenis1-2/+2
display after waking it from standby or after VT switches. Can't seem to get him to commit this workaround while he his hunting for a proper fix.
2015-09-25Now that waitqueue_active() actually works, enable the WARN_ON that uses it.kettenis1-2/+2
2015-09-24Enable MSIs on hardware that supports it. On the Thinkpad X1, the APIC pinkettenis1-7/+8
is shared with the disk, which results in noticable latency during heavy disk activity.
2015-09-24Properly implement waitqueue_active(). Gets rid of spuriouskettenis2-4/+15
*ERROR* Hangcheck timer elapsed... xxx ring idle messages.
2015-09-24regenjsg2-5/+75
2015-09-24Add some more Broadwell graphics ids.jsg1-3/+17
2015-09-24The devlist awk script didn't pickup the broadwell ids as they arejsg1-52/+71
encoded with shifts. Switch to a file constructed by iterating through i915_drv.c pciidlist so these will be included. ok kettenis@
2015-09-23Update inteldrm to the code from Linux 3.14.52 (which corresponds tokettenis88-15114/+36258
commit 48f8f36a6c8018c2b36ea207aaf68ef5326c5075 on the linux-3.14.y branch of the linux-stable tree). This brings preliminary support for the GPU on Intel's Broadwell CPUs. Don't expect these to work perfectly yet. There are some remaining issues with older hardware as well, but no significant regressions have been uncovered. This also updates some of drm core code. The radeondrm code remains based on Linux 3.8 with some minimal canges to adjust to changes in the core drm APIs. Joint effort with jsg@, who did the initial update of the relevant drm core bits. Committing this early to make sure it gets more testing and make it possible for others to help getting the remaining wrinkles straightened out.
2015-09-23In iwm(4), properly reset the RX ring by clearing RX buffer status memory.stsp1-1/+7
Found by Matthew Dillon (Dragonfly). DMA sync hint from tedu@, ok mpi@
2015-09-23In iwm(4), while not associated, pass the broadcast ethernet address tostsp1-2/+2
the firmware, rather than zeros. Matches what Linux iwlwifi does. Spotted by Adrian Chadd (FreeBSD). ok mpi@
2015-09-22regenjasper2-2/+7
2015-09-22add (unsupported) realtek wireless card as found in rpointel@'s x250, thoughjasper1-1/+2
it could be supported by rtwn(4) eventualy ok stsp@
2015-09-20brad points out i need bpf_mtap_ether to reconstruct vlan headersdlg1-2/+2
2015-09-20need to keep bpf in the tx path. got a bit ahead of myself there...dlg1-1/+6
noticed by brad
2015-09-19Avoid using a mutex in the rx completion path. Instead rely onkettenis2-30/+14
intr_barrier(9) to avoid having the interrupt handler touch the rx data structures while we're brining down the interface. This actually reverts many of the changes in rev. 1.300. ok mikeb@
2015-09-18Remove stray splx(9) call. Found by Maxime Villard's Brainy Code Scanner.kettenis1-2/+1
From miod@.
2015-09-18Remove unused variables, from Michael McConville.mpi1-7/+2
ok stsp@
2015-09-18More ifmedia64 fallout.miod2-8/+5
2015-09-18make vmx(4) interrupts mpsafe.dlg1-63/+97
the vmx rx path is only touched in the interrupt handler, so it is already guaranteed to be accessed by only one cpu at a time. the tx path has been massaged so the the producer is only touched by the start routine, and the consumer is only touched by the interrupt path, and can therefore be run concurrently. the only interlock is a count of the free descriptors. if txintr clears IFF_OACTIVE, it takes the kernel lock before running the start routine. other interrupts, eg, link state handling, take the kernel lock.
2015-09-17Do not define QLW_DEBUG if SMALL_KERNEL, and turn qlw_dump_iocb() andmiod1-5/+10
qlw_dump_iocb_segs() into empty macros if QLW_DEBUG is not defined (if only to make this compile, then).
2015-09-15regenjasper2-4/+14
2015-09-15add fingerprint reader as found the x250 as well as another similarjasper1-1/+3
device found while figuring out the chipset. ok jsg@
2015-09-15Fix kpanic I found the hard way while using pcsc-litedcoppa1-3/+7
From Grant Czajkowski <czajkow2 AT illinois DOT edu> OK mpi@
2015-09-14Fix more ifmedia64 fallout in the kernel. It's hiding everywhere...stsp1-3/+3
2015-09-13Put the 12x22 font on alpha and macppc installation kernels, the 8x16 fontmiod1-9/+14
is really fugly on large displays (tga, vgafb). It's only 10KB more data before compression, which fits in our floppies.
2015-09-12let the C files do the sys/param.h including jobderaadt1-3/+1
2015-09-12More ifmedia64 fallout; that should be the last.miod3-7/+8
2015-09-12ifmedia64 fixes.miod2-5/+5
2015-09-12mii_softc's view of the current mii state need to use the proper typesmiod1-3/+3
(ifmedia64).
2015-09-12Intel docs suggest that cpus in C3 may go into deeper states automaticallyguenther1-9/+4
when all cores are in C3, so treat the latency+power values from ACPI as advisory and stop skipping states based on them. ok mlarkin@ kettenis@
2015-09-12Add support for the 88E1512/88E1514 phys using the 1512 init sequencejsg2-4/+111
from the Intel code in FreeBSD. Tested by Paul Levlin on a machine with I354.
2015-09-11Workaround broken AML by treating FFH vendor 8 the same as vendor 1 (== intel)guenther1-3/+7
ok millert@ kettenis@ and something like an ok mlarkin@
2015-09-11back out refcnt for dv_ref, there's too many hand crafted devices alldlg1-2/+2
over the tree. much encouragement from l2k15
2015-09-11rd pretends to be a device allocated by subr_autoconf. it needs todlg1-2/+2
refcnt_init like a real device too. found by deraadt@
2015-09-11Remove the unfinished che(4) driver for Chelsio 10G cards. I lost interestclaudio2-882/+1
fixing this long ago.
2015-09-11Make room for media types of the future. Extend the ifmedia word to 64 bits.stsp33-102/+104
This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and grows struct ifmediareq. Old ifconfig and dhclient binaries can still assign addresses, however the 'media' subcommand stops working. Recompiling ifconfig and dhclient with new headers before a reboot should not be necessary unless in very special circumstances where non-default media settings must be used to get link and console access is not available. There may be some MD fallout but that will be cleared up later. ok deraadt miod with help and suggestions from several sharks attending l2k15
2015-09-11First step at making ix(4) MPSAVE. This is largely based on the em(4)claudio2-28/+75
changes done by kettenis@. Tested by Hrvoje Popovski and chris@ dlg@, mpi@ and kettenis@ agree on developping this further in tree.
2015-09-11Don't copy more sense data than we have space for, so we don't crash whenjmatthew1-3/+4
trying to talk to a Sun STK6140. Still doesn't work though. ok dlg@
2015-09-11fairly simple size for free()deraadt1-3/+3
2015-09-11size for free()deraadt1-2/+2
2015-09-11Ignore the 'rotation lock' button on my Yoga12guenther1-1/+3
2015-09-10kqueue(2) support for wsmouse(4), wskbd(4) and wsmux(4).mpi5-5/+99
Needed for libinput port. ok guenther@, miod@
2015-09-10sizes for free(); ok sthenderaadt8-50/+59
2015-09-10Fix a zx_putchar() stupid bug I introduced nine years ago by actuallymiod1-5/+5
initializing variables before they get used.
2015-09-10remove unused macro GEM_CURRENT_MEDIA; ok dlg@ mpi@stsp1-8/+1
2015-09-10Show usb stack error code if a firmware page fails to load in urtwn(4).stsp1-3/+3
ok mpi@
2015-09-10simple size for free()deraadt1-2/+2
2015-09-10PPB_EXNAMLEN for the extent name; now easier to pass as a size for free()deraadt1-10/+12