summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2013-08-09match linux and only allow multiple contexts on the render ringJonathan Gray
2013-08-09add commented out versions of unused functions present in the originalJonathan Gray
files to reduce the diff to linux.
2013-08-08Add support for Intel Wifi Link 130.Sylvestre Gallon
ok kettenis@, mpi@
2013-08-08Fix sign of errno values to match Linux.Mark Kettenis
2013-08-08Make it possible for graphics drivers to opt-out of VGA arbitration.Mark Kettenis
The idea is that as soon the kernel driver switches out of vga text mode, it can disable decoding of legacy vga io and mmio and call pci_disable_legacy_vga() to take itself out of arbitration. The PCIGETVGA ioctl is extended such that it returns the legacy decoding state of a device. The X server can then query this state for all graphics devices in the system (through libpciaccess) and decide whether it needs to do arbitration. ok jsg@
2013-08-07Another major overhaul of the inteldrm(4) GEM code, bringing us considerablyMark Kettenis
closer to the Linux 3.8.13 codebase. Almost certainly squashes a few more bugs. ok jsg@
2013-08-07Mimic what's done on sparc64 and parse the OpenFirmware device tree toMartin Pieuchot
enumerate the pci devices. This allow us to not store the interrupt vector in the interrupt line register and to not try to attach pci devices disabled by firmware. With inputs from and ok kettenis@
2013-08-07Most network drivers include netinet/in_var.h, but apparently theyAlexander Bluhm
don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
2013-08-07add support for hardware contexts on recent intel hardwareJonathan Gray
based on the code in linux 3.8.13 ok kettenis@
2013-08-06set ai_devid in struct agp_info so drm_agp_info() will work as intendedJonathan Gray
ok kettenis@
2013-08-05First stab at updating this monster to the Intel/FreeBSD current version.Mike Belopuhov
This syncs PHY and chip dependent parts as well as brings support for the flow control and additional (untested) bits for 1G fiber versions. Tested by Hrvoje Popovski <hrvoje at srce ! hr> on 82599/SFP+DA, florian@ and benno@ on 82599/SFP+SR and on 82598/CX4-BP, 82599/SFP+DA and X540/RJ45 by me.
2013-08-03Enable MSI on RT810xE.Mark Kettenis
ok jsg@
2013-08-01Add support for the Ralink RT3060, which uses the RT3572 MAC/BBP.Mark Kettenis
2013-08-01regenMark Kettenis
2013-08-01Ralink RT3060.Mark Kettenis
2013-07-29Fix typo/thinko; checking whether an address is bigger than 0 makes no sense.Mark Kettenis
2013-07-21regenMartin Reindl
2013-07-21add another ATI RS690 PCIE bridgeMartin Reindl
ok deraadt
2013-07-11use fls as initially intendedMike Belopuhov
2013-07-10match linux and call i915_gem_object_wait_rendering__nonblockingJonathan Gray
in the set domain ioctl. ok kettenis@
2013-07-08make use of udelay to reduce the diff to linuxJonathan Gray
2013-07-08add inline versions of udelay/mdelayJonathan Gray
2013-07-08add DRM_IOCTL_MODE_CURSOR2 definition from libdrm 2.4.46Jonathan Gray
2013-07-06Remove unsigned comparison < 0.Brad Smith
Pointed out by LLVM. ok kettenis@
2013-07-05make use of the drm_i915_private macro to reduce the diff to linuxJonathan Gray
2013-07-05Use tmp_int to be able to pass back the -1 upon error and check for it properlyBrad Smith
but the value passed forward throughout the ioctl handler otherwise is an unsigned value. Pointed out by LLVM. bktr_core.c:1737:13: error: comparison of unsigned expression < 0 is always false bktr_core.c:1779:13: error: comparison of unsigned expression < 0 is always false bktr_core.c:2063:16: error: comparison of unsigned expression < 0 is always false ok krw@
2013-07-04Format string fix: %x instead of %p for intStefan Fritsch
ok deraadt@
2013-07-04Fall back to bit banging mode for DVO transmitter detectionJonathan Gray
from linux 3.8.13
2013-07-04Fixup Oops in the pipe config computationJonathan Gray
from linux 3.8.13
2013-07-04ensure single initialization and cleanup of backlight deviceJonathan Gray
from linux 3.8.13
2013-07-04set CPT FDI RX polarity bits based on VBTJonathan Gray
from linux 3.8.13
2013-07-04Workaround incoherence between fences and LLC across multiple CPUsJonathan Gray
from linux 3.8.13 this does not currently do the ipi to run wbinvd() on all processors
2013-07-04Fix SDVO connector and encoder get_hw_state functionsJonathan Gray
from linux 3.8.13
2013-07-04Add no-lvds quirk for Fujitsu Esprimo Q900Jonathan Gray
from linux 3.8.13
2013-07-04Fix sdvo connector get_hw_state functionJonathan Gray
from linux 3.8.13
2013-07-03fix: cast void * to char *, fix format args for (u)int64_t,Stefan Fritsch
tc_frequency is unsigned ok kettenis@
2013-07-02change splvm to splbio, missed in r1.4Stefan Fritsch
noticed by Alexey Suslikov
2013-07-02some trivial format string fixesStefan Fritsch
2013-07-02Lower IPL to IPL_BIO for the interrupt.Stefan Fritsch
There is no reason to use IPL_VM and it breaks with the recent IPL_MPSAFE changes. discussed with kettenis@
2013-07-01The fast scrolling code causes random page table errors on older hardware.Mark Kettenis
Disable that code and use the write-only rasops code instead on the affected chips.
2013-07-01Remove vaddr_t casts in bktr_mmap().Brad Smith
Pointed out by LLVM. bktr_os.c:478:22: error: comparison of unsigned expression < 0 is always false ok krw@ kettenis@
2013-07-01Within ns_to_timeval() change the rem field type from unsigned to signed.Brad Smith
Pointed out by LLVM. drm_irq.c:154:10: error: comparison of unsigned expression < 0 is always false kettenis@ says it should be signed and this is what the equivalent Linux code does. ok jsg@
2013-06-28Turns out that BGE_STATFLAG_UPDATED bit in the status block doesn't getMike Belopuhov
properly updated by the newer hardware (seen in the TX completion case). This leads to very poor transmit performance in the beginning of a TCP connection. Linux and FreeBSD don't rely on BGE_STATFLAG_UPDATED bit since they enable MSI and tagged status for 5717+. Doing the same does indeed fix an issue. Change was tested by David Imhoff on 5719, 5720 and 5721/5750, Hrvoje Popovski on 5704 B0, sthen@ on 5723/5784, benno@ on 5704 A3, and me on 5719, 5720 adn 5714/5715. No objections from kettenis@ and dlg@.
2013-06-28Rewrite the media / link state handling and have itBrad Smith
handled within sis_miibus_statchg() instead of calling sis_init(). Based on the FreeBSD sis(4) driver. ok mikeb@ sthen@
2013-06-25Repair flow control broken in the rev1.329 and make sure that a simpleMike Belopuhov
ifconfig done by a user won't alter our negotiated flow control settings. Both problems were identified by David Imhoff <dimhoff_devel @ xs4all !nl> Tested by David on 5719, 5720, 5721, Hrvoje Popovski on 5704 B0, sthen@ on 5723/5784, naddy@ and jmatthew@ on 5702/5703, benno@ on 5704 A3 and me on 5715 and 5719.
2013-06-23Remove unsigned comparison < 0.Brad Smith
Pointed out by LLVM. ok ratchov@
2013-06-22Prefix all functions. Pointed out by brad@.Masao Uebayashi
2013-06-21De-static.Masao Uebayashi
2013-06-20Revert previous and unbreak asr, the new include should be protected.Martin Pieuchot
Reported by naddy@
2013-06-20Allocate the various hook head descriptors as part of the ifnetMartin Pieuchot
structure rather than doing various M_WAITOK allocations during the *attach() functions, we always rely on them anyway. ok mikeb@, uebayasi@