summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2014-12-02regenBrad Smith
2014-12-02Add Samsung SSD controller.Brad Smith
2014-12-01rxr ioctl handling.Brad Smith
2014-11-29rxr ioctl handling.Brad Smith
ok sf@
2014-11-28regenMark Kettenis
2014-11-28Add a few entries for SPARC T3/T4/T5/M5 machines. The IDT 89H64H16G3 entryMark Kettenis
is a bit of a guess, but it is the only PCIe Gen3 part listed on their website that has enough lanes/ports.
2014-11-27Previous change wasn't quite right and broke "classic' PCI sparc64 machines.Mark Kettenis
Undo the code rearrangement in rev. 1.108 but keep the sparc64-specific code dealing with non-prefetchable 64-bit BARs. Found out the hard way by stsp@
2014-11-27Another spot where the VLAN tag doesn't need swapping in the currentlyBrad Smith
unused TSO code. ok mikeb@
2014-11-27Fix a long standing bug in MAC statistics register access. OneBrad Smith
additional register was erroneously added in the MAC register set such that 7 TX statistics counters were wrong. From FreeBSD ok mikeb@
2014-11-27Use dv_xname instead of if_xname to establish our interrupt. The latter isMark Kettenis
still unset when at this point, and some MD variants of pci_intr_establish(9) make a copy of the string instead of storing a pointer. Makes vmstat -i properly print the device name on sparc64. ok mikeb@, deraadt@
2014-11-27rxr ioctl handling.Brad Smith
2014-11-26The onboard ix(4) interfaces on the SPARC T5 machines don't have a valid MACMark Kettenis
address in their EEPROM. Use the MAC address given by the "local-mac-address" Open Firmware property instead. ok mikeb@, deraadt@
2014-11-26Seems Sun^H^H^HOracle is doing something naughty and (deliberately) putsMark Kettenis
non-prefetchable BARs of the onboard mpii(4) behind a prefetchable memory range on the bridge it sists behind. Since we rely on the formware to program BARs for us on sparc64, add a workaround to avoid whacking these BARs and make the machine panic later when it tries to access the registers. ok miod@, deraadt@
2014-11-26dont swap the vlan tag twice on big endian archs for transmit.David Gwynne
ok mikeb@
2014-11-24rxr ioctl handling.Brad Smith
ok mpi@
2014-11-24Fix some issues with 64-bit BARs behind PCI-PCI bridges.Mark Kettenis
Actual BARs that have the upper 32-bits set seen in the wild now on a SPARC T5-2 system. Tested by many.
2014-11-24rxr ioctl handling.Brad Smith
2014-11-24use the correct capitalization for Realtek.Brad Smith
2014-11-20- Remove some unused #if 0'd code which does not pertain to OpenBSDBrad Smith
- Remove a bogus if_ierrors++ which if the counter was incremented it would be overwritten by ixgbe_update_stats_counters() ok mikeb@
2014-11-19Copy over some recent commits from ix(4)..Brad Smith
- remove pointless timeout_del/add dance in the interrupt handler - don't try to update the link status every second - Gather full statistics only when EM_DEBUG is defined ok mikeb@
2014-11-18Nuke yet more obvious #include duplications.Kenneth R Westerback
ok miod@
2014-11-18move arc4random prototype to systm.h. more appropriate for most codeTed Unangst
to include that than rdnvar.h. ok deraadt dlg
2014-11-18Use pa_device to ensure each MAC address of a multi port boardBrad Smith
is unique; as done by hme(4). ok deraadt@
2014-11-17Add quirks for the "Realtek ALC885" found on MacMini3.1, unmutes theLandry Breuil
internal speaker, line input and hp output. Tested on i386/amd64. hints/help & ok ratchov@
2014-11-16Replace a plethora of historical protection options with justTheo de Raadt
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
2014-11-16Allow the driver to be able to retrieve the MAC address from the ROMBrad Smith
for NS Saturn based boards. From NetBSD ok deraadt@
2014-11-15regenBrad Smith
2014-11-15Add Intel QS77 LPC.Brad Smith
2014-11-14regenMartin Pieuchot
2014-11-14Some BayTrail IDs, including xhci(4), found in inframare's dmesg on bugs@.Martin Pieuchot
2014-11-12Remove SIOCSIFMTU handling and misuse of if_mtu values for MRUMike Belopuhov
Since there's now no way to select maximum receive unit size the hardware is programmed to accept frame sizes up to 9216 which is now the maximum (down from 15.5K since this is supposed to work in all advanced configurations and gives slightly better flow control watermark ranges) and split all frames larger 2K into multiple fragments (code was already there but wasn't enabled). Tested on 82599 (SFP+) and X540 (10GBaseT). With input from dlg@.
2014-11-11Stop athn(4) from attaching to AR9300 devices for now. There are unresolvedStefan Sperling
bugs that panic the kernel and it's unclear if any such device works at all. Anyone in possession of a working AR9300 device that stops working with this commit please talk to me. I've only seen evidence of this code not working. ok kirby@ mpi@ phessler@ dcoppa@
2014-11-10add an additional error check into the ixgbe_handle_msfMike Belopuhov
2014-11-10remove pointless timeout_del/add dance in the interrupt handlerMike Belopuhov
2014-11-10Inadvertent ampersand has made the check to always yield truthMike Belopuhov
This change fixes up SFP+ module detection during "ifconfig up" after the machine has been booted without the modules plugged in.
2014-11-10Gather full statistics only when IX_DEBUG is definedMike Belopuhov
since most of them can't be retrieved otherwise. This comes with a slight but measurable performance increase as well. Also since the hardware has a single counter for missed packets including those caused by the insufficient DMA buffers available, this makes it hard to decipher actual errors when used with Rx ring length limiting mechanisms like if_rxr or mclgeti.
2014-11-10don't try to update the link status every secondMike Belopuhov
2014-11-10remove ixgbe_sfp_probe since it's not called anywaysMike Belopuhov
2014-11-06Cleanup whitespace and add 5 series comments.Doug Hogan
ok mlarkin@
2014-11-06Add the required includes for the conditional parts ofJonathan Gray
struct vga_pci_softc in vga_pcivar.h Original diff from guenther@ changed to incorporate feedback from kettenis@ and myself.
2014-11-05Implement yet another workaround for the k1 em(4)'s. This time forClaudio Jeker
the i218 which is used in many modern laptops like the X240. This seems to stop the watchdog timeouts triggered by heavy traffic on such systems. Tested by myself, phessler, blambert and Donovan Watteau OK deraadt, brad
2014-11-04Commit a missing chunk of the diff I had sent out to recognize someBrad Smith
newer Yukon chipsets. Pointed out by jsg@
2014-10-30Do not enable interrupts before attaching usb(4), fix a panic when anMartin Pieuchot
Express Card is plugged with USB devices on it. While here do not print an unitialized error value if xhci_init() fails, from Patrick Wildt.
2014-10-28the if_rxring accounting would get screwed up if the first mbuf toDavid Gwynne
be put on the ring couldnt be allocated. this pulls the code that puts the mbufs on the ring out of myx_rx_fill so it can return early if firstmb cant be allocated, which puts it in the right place to return unused slots to the if_rxring. this means myx rx wont lock up if you're DoSsed to the point where you exhaust your mbuf pools and cant allocate mbufs for the ring. ok jmatthew@
2014-10-26Add resource tracking for PCI ROMs.Mark Kettenis
ok deraadt@
2014-10-25Don't attempt to suspend/resume a partially attached drm(4) driver.Mark Kettenis
Fixes a crash upon resume with an ATI FireMV 2400 card. ok jsg@
2014-10-24Always put controller into known state before device intialization.Brad Smith
From FreeBSD ok sthen@ chris@
2014-10-20Be sure to return if the pci interrupt can't be mapped, instead of fallingMiod Vallat
through the remainder of the attachment logic.
2014-10-19Use sc_if->sk_pktlen to specify the maximum DMA transfer size and maximumBrad Smith
DMA segment size when setting up the TX buffers in msk_init_tx_ring(). ok jsg@
2014-10-16Additonal registers needs to be saved in sc_save2, not sc_save.Mark Kettenis
ok deraadt@