summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2016-01-30regenJonathan Gray
2016-01-30correct the string for 82801HBM RAIDJonathan Gray
2016-01-29Add support for XS_WATCH: XenStore notification facilityMike Belopuhov
After configuring a watch for the node, XenStore will asynchronously notify the system when the value of the specified node changes with an event message.
2016-01-26Improve the previous fix: call vmxnet3_load_mbuf, bpf_mtap, and flipReyk Floeter
the generation bit to pass the tx descriptor and mbuf to the "hardware". This way bpf is not called if vmxnet3_load_mbuf dropped the mbuf. Tested by me OK mikeb@
2016-01-26prettify a NULL test in vr_start.David Gwynne
from richard proctor on bugs@
2016-01-26dont leak mbufs on encap failure.David Gwynne
diff from richard proctor on bugs@
2016-01-25Keep track of HT protection settings in beacons and have 11n-capableStefan Sperling
drivers update hardware configuration accordingly. tested by myself, tb@, deraadt@, abieber@ ok mpi@
2016-01-25In vmxnet3_start(), do not send the mbuf to bpf after passing it toReyk Floeter
the hardware. This could have resulted in a page fault when the mbuf has already been freed by the TX interrupt handler on another CPU. This has the slight drawback that bpf can be called before the packet is eventually dropped by vmxnet3_load_mbuf() - but I'm getting this simple and verified fix in before doing further optimizations on the start handler. As discussed with mikeb@ jsg@ dlg@
2016-01-15Moxa CP-168U support; from Olaf SchreckTheo de Raadt
2016-01-15syncTheo de Raadt
2016-01-15Moxa CP-168U, from Olaf SchreckTheo de Raadt
2016-01-15Detach emulated network devices if Netfront driver is enabledMike Belopuhov
Xen doesn't provide a way for a guest to decide which model of the interface is selected in the VM configuration and therefore there's no simple way for Netfront and emulated devices to co- exist on the same system. Emulated em(4) or re(4) drivers will take over if xnf(4) driver is disabled or not compiled in. Idea and OK reyk
2016-01-14regenDavid Gwynne
ahci_pci updated to cope with the new pcidevs id for its sm951
2016-01-14there are two types of samsung sm951David Gwynne
2016-01-14add brackets to avoid an operator precedence bugJonathan Gray
ok ratchov@ deraadt@
2016-01-13Revert most of if_iwm.c r1.155. Use of channel zero was a symptom ofStefan Sperling
another bug introduced in my turbo mode removal commit; Now fixed. Keep the debug printf added in r1.155.
2016-01-13Tell the iwn(4) firmware to retry failed Tx at 1Mbit/s instead of MCS 0.Stefan Sperling
Seems to make Tx rate scaling go up faster and helps Rx performance. ok deraadt@
2016-01-13Fix iwn(4) firmware SYSASSERT during hardware initialization.Stefan Sperling
For some reason we would end up passing channel number zero to the RXON firmware command, which the firmware doesn't like. ok sthen@ reyk@ and also tested by stefan@, deraadt@, mikeb@
2016-01-12fix a misplaced curly braceStefan Sperling
2016-01-12post the packet on em_82547 chips after bpfDavid Gwynne
now that start and txeof can run on different cpus, txeof could have freed the mbuf before bpf got to it.
2016-01-11do further work on the em transmit path to simplify the code.David Gwynne
noone could understand how em_txeof worked, so i rewrote it. this also gets rid of the sc_tx_desc_free var that needed atomic ops. space to use in em_start and space to free in em_txeof is now calculated from the producer and consumer. testers have reported better responsiveness with this. somehow. if em issues persist after this, im rolling back to pre-mpsafe changes.
2016-01-09add a missing printf argumentJonathan Gray
2016-01-09consistently use the desc ring pointers as guards for their dmamem.David Gwynne
2016-01-09Use uiomove(9) instead of uiomovei(9). From Martin Natano.Mark Kettenis
2016-01-08Work around buggy zero-length packets produced by the DP83816A.Martin Pieuchot
From Nathanael Rensen, ok dlg@
2016-01-07Fix A-MPDU parameters in link quality firmware commands in iwn(4) and iwm(4).Stefan Sperling
ok deraadt@
2016-01-07look at pkts inside the loop over the pkts in em_free_receive_structures.David Gwynne
2016-01-07rename em_buffers to em_packets.David Gwynne
shorten a bunch of variable names while here.
2016-01-07rename the rx and tx ring softc vars.David Gwynne
2016-01-07prefix the rx and tx ring softc members with sc_David Gwynne
2016-01-07host the rx ring dmamap syncs out of em_get_buf into em_rxfill.David Gwynne
this lets us do the syncs once for a fill of the ring instead of once for every packet put onto the ring. it mirrors how we try to do things for tx.
2016-01-07unify the bus_dmamap_sync calls around the tx and rx rings.David Gwynne
2016-01-07dma_paddr in struct em_dma_alloc is unused, so gc it.David Gwynne
2016-01-07simplify the calculation of the dmamem size for the tx and rx rings.David Gwynne
we dont user config of the ring size, especially before attach time, and the dmamem api takes care of rounding up to PAGE_SIZE if it needs to.
2016-01-07unify the dma tag into sc_dmat in em_softc.David Gwynne
2016-01-07sprinkle DEVNAMEDavid Gwynne
2016-01-07rename the struct arpcom interface_data in em_softc to sc_ac.David Gwynne
makes it more consistent with the rest of the tree.
2016-01-07rename em_softc sc_dv to sc_dev. like ALL OUR OTHER DRIVERS.David Gwynne
2016-01-07tweak em to make it mpsafe, both for interrupts and if_start.David Gwynne
this is mostly work by kettenis and claudio, with further work from me to make the transmit side from the stack mpsafe. there's a watchdog issue that will be worked on in tree after this change. tested by hrvoje popovski and gregor best ok mpi@ claudio@ deraadt@ jmatthew@
2016-01-06Initialize the A-MPDU parameters field in HT capability elements.Stefan Sperling
ok kettenis@
2016-01-06Add DRM_RENDER_ALLOW flag to the appropriate ioctls such that pledge "drm"Mark Kettenis
allows them.
2016-01-06Ensure that iwn(4) always uses a CCK rate as last fallback in the firmware'sStefan Sperling
tx rate retry table. This will hopefully make 11n mode work in very noisy environments. iwm(4) already does the same. ok kettenis@
2016-01-06iwm(4) adjusts the firmware's tx rate retry table dynamically so we mustStefan Sperling
tell the firmware to always try the first rate in the table first. ok kettenis@
2016-01-06Add pledge "drm", which allows a subset of the drm(4) ioctls. These areMark Kettenis
basically only the ioctls that Linux allows on the so-called "render nodes". For now, it also allows DRM_IOCTL_GET_MAGIC and DRM_IOCTL_GEM_OPEN, as we don't implement prime/dma-buf yet in OpenBSD. That still leaves a big gaping hole, so they will be removed as soon as we can. Based on a diff by robert@, who did all the heavy lifting by studying the behaviour of the chromium GPU process, with some further suggestions by deraadt@. ok jsg@, deraadt@, robert@
2016-01-06revert 1.87, more work is needed hereMike Belopuhov
2016-01-05Remove the IEEE80211_NO_HT macro. Reduces ifdef spaghetti, enables 11n modeStefan Sperling
in bsd.rd, and might uncover some bugs. Suggested by tedu@ and deraadt@. ok sthen@ jasper@ deraadt@
2016-01-04Record the modified mbuf chain after transmit checksum setup codeMike Belopuhov
Keep the modified chain pointer and pass it back to the calling code so that it will get properly accounted for. Change it to m_pullup since m_pulldown with a zero offset is just as good. Tested by yasuoka@, myself and mxb at alumni ! chalmers ! se, thanks! ok yasuoka, mpi
2016-01-04Add initial support for 11n mode to the iwn(4) driver.Stefan Sperling
Only MCS 0 to 7 are supported for now. Tested by many. There might still be outstanding issues but they now appear to be rare. I'm putting this in so that additional fixes can be developed and tested more easily if required. This diff is already quite large for one commit. ok deraadt
2016-01-03Add support for 100 series to pchtemp(4).Daniel Dickman
ok kettenis@
2016-01-01Reimplement vga_put() such that it compiles on i386 as well.Mark Kettenis