Commit Graph

8873 Commits

Author SHA1 Message Date
pgoyette 58ee3a3d39 Fix typo that somehow snuck in. 2016-06-01 12:45:46 +00:00
pgoyette 0500449896 Add support for Intel 82597EX_SR - from PR kern/47750 2016-06-01 11:28:45 +00:00
pgoyette 1df696c5c5 Regen 2016-06-01 11:01:36 +00:00
pgoyette e518aae38a Add Intel 82597EX_SR, from PR kern/47750 2016-06-01 11:00:15 +00:00
pgoyette b203eb9e28 Commit patch from t-hash in PR kern/48309 2016-06-01 03:37:35 +00:00
nonaka ae2737a4e4 regen 2016-05-30 04:18:20 +00:00
nonaka 224b451a1a Added some Intel wireless devices from OpenBSD. 2016-05-30 04:17:30 +00:00
knakahara f99c3d3768 fix r1.409 mistake 2016-05-30 03:54:12 +00:00
ozaki-r 6bbd2477a9 Introduce M_CLEARCTX and use it instead of open-coding rcvif
No functional change.
2016-05-26 05:04:46 +00:00
ozaki-r ea0349e714 Use M_GETCTX
No functional change.
2016-05-26 05:01:11 +00:00
ozaki-r 620cf57dee Use M_GETCTX and M_SETCTX
No functional change.
2016-05-25 10:15:01 +00:00
knakahara 8eb180f2ef Update TODO: evcnt 2016-05-23 23:36:02 +00:00
knakahara 20d828a769 fix: ethernet controllers which use wiseman_txdesc_t (earlier than 82575) hang
possibly.
2016-05-23 04:07:29 +00:00
knakahara f47c3fc3cf GENERIC kernel (disabled NET_MPSAFE kernel) also needs txq_lock to avoid race
between tx processing and tx interrupt handler.
2016-05-23 03:30:40 +00:00
knakahara c41c6671b1 Update TODO
- "TX Multiqueue" -> "TX Multiqueue improvement"
    - add "Advanced Recieve Descriptor" (RX NEWQUEUE)
2016-05-20 08:17:14 +00:00
knakahara f058ef8fee fix build failure by gcc 4.8.5 2016-05-19 08:35:03 +00:00
knakahara 85eba4eab2 unify TX and RX interrupt handler to use MSI-X vector efficiently 2016-05-19 08:27:57 +00:00
knakahara f792094258 user-friendly interrupt affinity offset 2016-05-19 08:22:37 +00:00
knakahara 290ee03aea initial TX multiqueue support 2016-05-19 08:20:06 +00:00
knakahara b3e5b68219 Whether Tx interrupt handler kicks if_start() should not depend on wm_txeof()
return value.
2016-05-18 08:59:56 +00:00
knakahara 09094fcaba rename WM_TXQ_WORKING to WM_TXQ_NO_SPACE 2016-05-18 08:41:42 +00:00
knakahara 27d6758ddb device drivers should not divert ifp->if_flags to manage H/W satatus. 2016-05-18 07:49:34 +00:00
knakahara 7041241bc0 refactor: eliminate "txq->txq_descs_size", use WM_TXDESCS_SIZE instead. 2016-05-18 06:59:59 +00:00
knakahara 2195dace3a fix unmatched dma sync size for NEWQUEUE. This bug would have caused
wm_nq_tx_offload() not to work.
2016-05-18 06:55:51 +00:00
pooka 7608448abe Try to get more packets going if the transmit interrupt indicates
some were sent.  Doing so avoids a situation where vioif_start never
gets called in case the sendqueue fills up and therefore the interface
perpetually drops all packets due to the queue being full.
(not sure why all drivers need to do this themselves; just keeping
up with the joneses)

Problem reported and patch tested by jmmlmendes and yasukata at
repo.rumpkernel.org/rumprun
2016-05-17 10:05:31 +00:00
ozaki-r 040205ae93 Protect ifnet list with psz and psref
The change ensures that ifnet objects in the ifnet list aren't freed during
list iterations by using pserialize(9) and psref(9).

Note that the change adds a pslist(9) for ifnet but doesn't remove the
original ifnet list (ifnet_list) to avoid breaking kvm(3) users. We
shouldn't use the original list in the kernel anymore.
2016-05-12 02:24:16 +00:00
nonaka f9c340b5f1 Don't establish interrupt in nvme_pci_attach() when multi queue isn't used. 2016-05-11 13:55:28 +00:00
msaitoh 20025a8603 Add Precision Time Management (PTM) ECN. 2016-05-11 05:12:57 +00:00
msaitoh 9ea1e5fd3d Fix compile error on some archs (e.g. i386). 2016-05-11 04:37:09 +00:00
knakahara fef3d1b2f0 Interrupt handlers read wm_rxqueue or wm_txqueue, so they must be freed after
disestablishing interrupt handlers.
2016-05-11 03:46:06 +00:00
msaitoh 9da5129c92 Do I219 TX DMA workaround only when TDLEN(0) != 0 2016-05-11 02:23:50 +00:00
msaitoh 4b127fa911 - Modify wm_smbustopci() to reduce the diff against Linux and FreeBSD.
- wm_gate_hw_phy_config_ich8lan() is for younger than PCH2.
- Add debug code.
2016-05-06 10:56:04 +00:00
msaitoh f3f9ad299d Add some workaround code for I219. It still doesn't work. 2016-05-06 08:57:43 +00:00
msaitoh b1649a9bff Basic support for I219. It doesn't work on I219, so it's disabled. 2016-05-06 08:56:20 +00:00
skrll 39842a4010 Kill XHCI_QUIRK_FORCE_INTR and surrounding code 2016-05-03 13:14:44 +00:00
christos ee17f398d4 move scsipi_strvis -> libkern:strnvisx()
change the prototype to match userland
fix sizes of strings passed to it
2016-05-02 19:18:29 +00:00
nonaka 8b5163f01f Added nvme(4) for Non-Volatile Memory Host Controller Interface devices.
Ported from OpenBSD.
2016-05-01 10:21:01 +00:00
nonaka 14e727d75d kern/50453: Separate Pineview chipset from i915-family chipset support.
Should use AGP_I965_IFPADDR instead AGP_I915_IFPADDR in Pineview, becuase
AGP_I915_IFPADDR is used as PCIEXBAR.
2016-05-01 04:22:50 +00:00
ozaki-r 2cf7873b92 Constify rtentry of if_output
We no longer need to change rtentry below if_output.

The change makes it clear where rtentries are changed (or not)
and helps forthcoming locking (os psrefing) rtentries.
2016-04-28 00:16:56 +00:00
christos 3709942a55 regen 2016-04-27 19:48:11 +00:00
christos f6f9586219 more ral devices from OpenBSD 2016-04-27 19:47:40 +00:00
christos 1650ef6b16 Sync with OpenBSD (add rt2860). Handle 32/64 memory bars,
some power management, more device matches.
2016-04-27 19:47:25 +00:00
msaitoh 0c8489b7e7 regen. 2016-04-26 08:48:32 +00:00
msaitoh 1393acb76c Add devices from "6th Generation Intel Processor Families I/O Platform
Datasheet (U/Y-Processor platform) Volume 1 of 2"
2016-04-26 08:48:12 +00:00
skrll 4e8e66439e Merge nick-nhusb
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
    - kern/48308
    - uhub status notification improvements
    - umass(4) probe fix (applied to HEAD already)
    - ohci(4) short transfer fix
2016-04-23 10:15:27 +00:00
knakahara b76ec0b083 IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller 2016-04-20 09:01:03 +00:00
christos 76c55f5ab8 PR/50898: David Binderman: remove redundant memset. 2016-03-06 19:42:25 +00:00
christos a2f023e884 PR/50874: David Binderman: unsigned can't be negative 2016-02-29 18:18:04 +00:00
christos 7bafbf922e PR/50818: David Binderman: Delete dead code (copied from if_et.c) 2016-02-17 20:05:45 +00:00
christos 90f8d4262f PR/50817: David Binderman: Delete dead code (copy from if_et.c) 2016-02-17 20:04:39 +00:00