summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
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@
2013-06-17Include <uvm/uvm.h> instead of <uvm/uvm_extern.h> to make sureMark Kettenis
"struct uvm_object" gets defined on macppc as well. ok miod@, deraadt@
2013-06-15sync with the latest linux version of radeon_drm.hJonathan Gray
adds definitions needed to compile recent versions of libdrm
2013-06-15add some definitions from the libdrm version of i915_drm.hJonathan Gray
needed to compile recent versions of libdrm
2013-06-14Correct interrupt moderation setting for 82598; tested on the CX4 versionMike Belopuhov
2013-06-13Random TX Backoff Register mask must be 0x3FF; ok beck, dlgMike Belopuhov
2013-06-13sync the userland facing radeon_drm.h with linuxJonathan Gray
ok mpi@ kettenis@
2013-06-13regen for previous commitMike Larkin
2013-06-13Add some missing Intel pci devices found on various machinesMike Larkin
ok deraadt
2013-06-12Oops. I looked at slightly newer Linux code when doing the previous change.Mark Kettenis
This fixes things up to better match Linux 3.8.x, which we're currently tracking. No functional change.
2013-06-12Don't rely on __attribute__((__aligned__(x))) GCC extension. Explicitly pad ↵Masao Uebayashi
descriptors. No binary change.
2013-06-12Consistenly use bpf_mtap_ether(). From tsubai@.Masao Uebayashi
2013-06-12Almost identical diffs from brad@ and dlg@:Masao Uebayashi
o OpenBSD'ify the vmx(4) receive filter handling code o IFF_ALLMULTI is like hte OACTIVE flag in that its only ever set and cleared by an interface driver. with that in mind, this reorders the config to do that and take advantage of it to conditionally configure the multicast filtering. o It also makes the code check if any multicast ranges have been configured, which every other driver interprets as "set ALLMULTI", so we do too now. o Add the usual ifdef INET guard to the ioctl code. OK yasuoka@ dlg@
2013-06-11Turn the allocation of GEM objects upside down and make the driverMark Kettenis
responsible for allocating and freeing them. This is what Linux has been doing for a while now, and will be needed for radeondrm(4) in the near future.
2013-06-11Replace all ovbcopy with memmove; swap the src and dst arguments tooTheo de Raadt
ok otto
2013-06-10A couple of changes from Masanobu SAITOH <msaitoh@netbsd.org>:Mike Belopuhov
- fixup the Random Backoff Register value masking; - keep the GPIO settings when modifying the Misc Local Control register value. Tested by Rob Sessink on 5719, David Imhoff on 5719, 5720, 5721, me on 5719 and 5715; ok dlg
2013-06-10Make use of pci_matchbyid().Brad Smith
ok yasuoka@
2013-06-09adapt to a pcidevs name changeTheo de Raadt
2013-06-09syncTheo de Raadt
2013-06-09shorten many names to cope with uvm code growthTheo de Raadt
ok jsg
2013-06-08Remove redundant code setting PCI_COMMAND_MASTER_ENABLE as this is alreadyBrad Smith
taken care of by pci_mapreg_map(). Ok yasuoka@ uebayasi@
2013-06-07Add proper mmap(2) support for drm(4)/inteldrm(4). This changes theMark Kettenis
DRM_I915_GEM_MMAP and DRM_I915_GEM_MMAP_GTT ioctls to be compatible with Linux. This also is the first step that moves us away from accessing all graphics memory through the GTT, which should make things faster. ok tedu@ (for the uvm bits)
2013-06-06Add the remaining support code for 4th gen Intel Core/Haswell graphicsJonathan Gray
and match the same pci devices Linux does. Untested for lack of hardware but should work. Note that 3D/OpenGL won't work until we update to a newer version of Mesa, which can't happen until the Radeon KMS work is ready. ok deraadt@
2013-06-06regenJonathan Gray