aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove the static function declaration.Kevin Lo2015-10-291-2/+1
| | | | Notes: svn path=/head/; revision=290134
* - Add a missing prototypeKevin Lo2015-10-292-13/+14
| | | | | | | - Fix typos Notes: svn path=/head/; revision=290133
* ioat_test: Handled forced hardware resets gracefullyConrad Meyer2015-10-291-3/+14
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290132
* ioat: Drain/quiesce the device less racilyConrad Meyer2015-10-292-14/+55
| | | | | | | | | On detach and during a forced HW reset. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290131
* ntb: Do not attempt to set write-combining on MWsConrad Meyer2015-10-291-0/+4
| | | | | | | | | | | AMD64 pmap assumes ranges will be in the DMAP, which isn't necessarily true for NTB memory windows (especially 64-bit BARs). Suggested by: pmap_change_attr_locked -> kassert_panic Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290130
* ioatcontrol(8): Add and document "raw" testing modeConrad Meyer2015-10-292-2/+48
| | | | | | | | | | | Allows DMA from/to arbitrary KVA or physical address. /dev/ioat_test must be enabled by root and is only R/W root, so this is approximately as dangerous as /dev/mem and /dev/kmem. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290129
* Oops - use the wrong array offset.Adrian Chadd2015-10-281-1/+1
| | | | Notes: svn path=/head/; revision=290123
* Calculate the correct amount of bytes that are in-flight for a connection asHiren Panchasara2015-10-283-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | suggested by RFC 6675. Currently differnt places in the stack tries to guess this in suboptimal ways. The main problem is that current calculations don't take sacked bytes into account. Sacked bytes are the bytes receiver acked via SACK option. This is suboptimal because it assumes that network has more outstanding (unacked) bytes than the actual value and thus sends less data by setting congestion window lower than what's possible which in turn may cause slower recovery from losses. As an example, one of the current calculations looks something like this: snd_nxt - snd_fack + sackhint.sack_bytes_rexmit New proposal from RFC 6675 is: snd_max - snd_una - sackhint.sacked_bytes + sackhint.sack_bytes_rexmit which takes sacked bytes into account which is a new addition to the sackhint struct. Only thing we are missing from RFC 6675 is isLost() i.e. segment being considered lost and thus adjusting pipe based on that which makes this calculation a bit on conservative side. The approach is very simple. We already process each ack with sack info in tcp_sack_doack() and extract sack blocks/holes out of it. We'd now also track this new variable sacked_bytes which keeps track of total sacked bytes reported. One downside to this approach is that we may get incorrect count of sacked_bytes if the other end decides to drop sack info in the ack because of memory pressure or some other reasons. But in this (not very likely) case also the pipe calculation would be conservative which is okay as opposed to being aggressive in sending packets into the network. Next step is to use this more accurate pipe estimation to drive congestion window adjustments. In collaboration with: rrs Reviewed by: jason_eggnet dot com, rrs MFC after: 2 weeks Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D3971 Notes: svn path=/head/; revision=290122
* Retire pmap_dmap_iscurrent(). It is only a wrapper around ↵Jason A. Harmening2015-10-284-19/+0
| | | | | | | pmap_is_current(), and is no longer called. Notes: svn path=/head/; revision=290120
* Change the way how target mode is enabled on 23xx chips.Alexander Motin2015-10-282-4/+5
| | | | | | | | Without docs I am not completely sure about this, but on my tests new method works better then previous, at least with our latest firmware. Notes: svn path=/head/; revision=290118
* Add a note to the effect that BUS_ADD_CHILD callsWarner Losh2015-10-281-1/+3
| | | | | | | | device_add_child_ordered to add the child. device_add_child_ordered doesn't call BUS_ADD_CHILD. Notes: svn path=/head/; revision=290117
* Check the size of data available in mbuf, before using them.Andrey V. Elsukov2015-10-281-0/+8
| | | | | | | | PR: 202667 MFC after: 1 week Notes: svn path=/head/; revision=290116
* Remove the s3c2xx0 code, it's no longer used. As far as I know I as theAndrew Turner2015-10-2820-3645/+0
| | | | | | | | main user of this code, however I haven't used it in over two years, and don't expect to in the future. Notes: svn path=/head/; revision=290106
* Start to remove support for the XScale i80321. As far as I can tell nobodyAndrew Turner2015-10-283-225/+0
| | | | | | | uses this which makes it difficult to support. Notes: svn path=/head/; revision=290105
* Improve/fix loop scanning routine.Alexander Motin2015-10-284-64/+195
| | | | | | | | | | | | | | | For the most of chips (except anscient ones) port handlers have no relation to port IDs. In such situation old code scanning first 125 handlers was quite naive. Instead of doing that, send to chip single request to get full list of port handlers available on specific virtual port and scan only them. Old code had problems with case of several virtual ports enabled, when port handlers allocated from global address space could easily go above 125. This change was successfully tested on 23xx, 24xx and 25xx chips in loop mode with 4 virtual initiator ports, each seing 50 virtual target ports. Notes: svn path=/head/; revision=290104
* Build fix for i386/XBOX and pc98/GENERIC.Hans Petter Selasky2015-10-281-0/+2
| | | | | | | Reviewed by: kib Notes: svn path=/head/; revision=290101
* Add some debugging code (under ARGE_DEBUG) that counts each interrupt source.Adrian Chadd2015-10-282-0/+37
| | | | | | | | | | | | This should make it easier to track down interrupt storms from arge. Tested: * AP135 (QCA955x) SoC - defaults to ARGE_DEBUG enabled * Carambola2 (AR9331 SoC) - defaults to ARGE_DEBUG disabled Notes: svn path=/head/; revision=290090
* ioat: Define DMACAPABILITY bitsConrad Meyer2015-10-285-2/+37
| | | | | | | | | Check for BFILL capability before initiating blockfill operations. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290087
* Start to remove support for the Samsung s3c24x0 SoCs by removing the kernelAndrew Turner2015-10-272-92/+0
| | | | | | | config, and support from NOTES. Notes: svn path=/head/; revision=290085
* mips: use the correct va for wbinv flushing.Adrian Chadd2015-10-271-1/+1
| | | | | | | | | | | | | arge doesn't trigger this, but ath(4) does. Tested: * AR9331 SoC (Carambola2); ath(4) hostap Submitted by: ian Notes: svn path=/head/; revision=290082
* Bring the tags and links entries for amd64 up to date.Kirk McKusick2015-10-272-18/+33
| | | | | | | | Based on how out of date it is, I doubt that anyone other than me and my code-reading students still use it. Notes: svn path=/head/; revision=290081
* Mark functions as such. This means we call them directly rather than haveAndrew Turner2015-10-271-1/+1
| | | | | | | | | | the dynamic linker copy them, but not relocate them at the new location. This allows us to run sqlite3 without it crashing. Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=290079
* Use m_cat() to reassembly IPv6 packets.Alexander V. Chernikov2015-10-271-2/+2
| | | | | | | | | Submitted by: jonloony_gmail.com MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3863 Notes: svn path=/head/; revision=290075
* Eliminate last rtalloc_ign() caller.Alexander V. Chernikov2015-10-271-3/+0
| | | | | | | Differential Revision: https://reviews.freebsd.org/D3927 Notes: svn path=/head/; revision=290072
* drm/i915: Reduce diff with Linux 3.8Jean-Sébastien Pédron2015-10-271-334/+327
| | | | | | | | | | There is no functional change. The goal is to ease the future update to Linux 3.8's i915 driver. MFC after: 2 months Notes: svn path=/head/; revision=290070
* net80211: add ieee80211_restart_all() call.Andriy Voskoboinyk2015-10-274-0/+28
| | | | | | | | | | | | This call may be used when device cannot continue to operate normally (e.g., throws firmware error, watchdog timer expires) and need to be restarted. Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D3998 Notes: svn path=/head/; revision=290058
* drm/i915: Reduce diff with Linux 3.8Jean-Sébastien Pédron2015-10-271-169/+157
| | | | | | | | | | There is no functional change. The goal is to ease the future update to Linux 3.8's i915 driver. MFC after: 2 months Notes: svn path=/head/; revision=290055
* Reimplement next port handle generation.Alexander Motin2015-10-272-60/+43
| | | | | | | | For some reason port handles should be allocated from HBA-global space, while old code was not very specific, mixing per-HBA and per-VP logic. Notes: svn path=/head/; revision=290054
* urtwn(4): fix scanning from AUTH stateAndriy Voskoboinyk2015-10-271-30/+47
| | | | | | | | | | | Tested with RTL8188EU, STA mode. Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D3968 Notes: svn path=/head/; revision=290048
* Do not perform read-ahead for BA_CLRBUF request when we are low onKonstantin Belousov2015-10-271-2/+6
| | | | | | | | | | | memory or when dirty buffer queue is too large. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=290047
* Add missing FreeBSD RCS keyword and SVN properties.Hans Petter Selasky2015-10-275-5/+10
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=290045
* Add sysctl tunable net.inet.tcp.initcwnd_segments to specify initial congestionHiren Panchasara2015-10-272-12/+10
| | | | | | | | | | | | | | | | | | window in number of segments on fly. It is set to 10 segments by default. Remove net.inet.tcp.experimental.initcwnd10 which is now redundant. Also remove the parent node net.inet.tcp.experimental as it's not needed anymore and also because it was not well thought out. Differential Revision: https://reviews.freebsd.org/D3858 In collaboration with: lstewart Reviewed by: gnn (prev version), rwatson, allanjude, wblock (man page) MFC after: 2 weeks Relnotes: yes Sponsored by: Limelight Networks Notes: svn path=/head/; revision=290043
* Fix error code that looks like wrong.Alexander Motin2015-10-271-1/+1
| | | | Notes: svn path=/head/; revision=290042
* Bluetooth LE Security Management channel support.Takanori Watanabe2015-10-2716-52/+320
| | | | | | | | | Add a socket option to block until underlying HCI connection encrypted. Differential Revision: https://reviews.freebsd.org/D3981 Notes: svn path=/head/; revision=290038
* otus(4) - monitor mode fixes, large-mbuf crash fixAdrian Chadd2015-10-271-47/+61
| | | | | | | | | | | | | | | | | | | | | | | * refactor out the rx filter and operating mode code into a separate method. * add some comments about what's left with setting the operating mode based on what carl9170 does. * comment out some init from otus_init_mac() - it's no longer needed as it's always init'ed now. * add debugging and a missing return around a failure to call m_get2() - during monitor mode operation I found RXing of frames > 2k, which fails allocation. I'm sure they're valid (it's configuring 11n RX and receiving 11n frames even though the driver doesn't "do" 11n) and may be A-MSDU; but allocations fail and we should handle that gracefully. Tested: * UB82 reference NIC (AR9170 + AR9104 2x2 dual band NIC); STA and monitor mode operation. Notes: svn path=/head/; revision=290029
* Turning on IPSEC used to introduce a slight amount of performanceGeorge V. Neville-Neil2015-10-273-1/+12
| | | | | | | | | | | | | | | | degradation (7%) for host host TCP connections over 10Gbps links, even when there were no secuirty policies in place. There is no change in performance on 1Gbps network links. Testing GENERIC vs. GENERIC-NOIPSEC vs. GENERIC with this change shows that the new code removes any overhead introduced by having IPSEC always in the kernel. Differential Revision: D3993 MFC after: 1 month Sponsored by: Rubicon Communications (Netgate) Notes: svn path=/head/; revision=290028
* When processing a cookie, any mismatch in port numbers or the vtag resultsMichael Tuexen2015-10-261-2/+2
| | | | | | | | | | in failing the check. This fixes https://github.com/nplab/ETSI-SCTP-Conformance-Testsuite/blob/master/sctp-imh-tests/sctp-imh-i-3-3.pkt MFC after: 1 week Notes: svn path=/head/; revision=290023
* urtwn(4): do not filter out control frames in the RX pathAndriy Voskoboinyk2015-10-261-5/+8
| | | | | | | | Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D3811 Notes: svn path=/head/; revision=290022
* ioat: Add support for Block Fill operationsConrad Meyer2015-10-264-4/+85
| | | | | | | | | | | | | | | | | | | The IOAT hardware supports writing a 64-bit pattern to some destination buffer. The same limitations on buffer length apply as for copy operations. Throughput is a bit higher (probably because fill does not have to spend bandwidth reading from a source in memory). Support for testing Block Fill has been added to ioatcontrol(8) and the ioat_test device. ioatcontrol(8) accepts the '-f' flag, which tests Block Fill. (If the flag is omitted, the tool tests copy by default.) The '-V' flag, in conjunction with '-f', verifies that buffers are filled in the expected pattern. Tested on: Broadwell DE (Xeon D-1500) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290021
* ioat: Dedupe operation enqueue logicConrad Meyer2015-10-262-51/+86
| | | | | | | | | | Add generic hw descriptor struct and generic control flags struct, in preparation for other kinds of IOAT operation. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290020
* Reimplement enable and implement disable of virtual ports.Alexander Motin2015-10-263-72/+167
| | | | | | | | | | | | | Now on 24xx and above chips it is really possible to simulate several virtual FC ports with single physical one. For example, it allows to configure several targets in ctl.conf, assign each of them to separate virtual port, and let user to control access to them with switch zoning. I still doubt that all problems are solved there, but at now it passes at least basic tests. Notes: svn path=/head/; revision=290018
* x86/dma_bounce: revert r289834 and r289836Roger Pau Monné2015-10-262-193/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new load_ma implementation can cause dereferences when used with certain drivers, back it out until the reason is found: Fatal trap 12: page fault while in kernel mode cpuid = 11; apic id = 03 fault virtual address = 0x30 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff808a2d22 stack pointer = 0x28:0xfffffe07cc737710 frame pointer = 0x28:0xfffffe07cc737790 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 13 (g_down) trap number = 12 panic: page fault cpuid = 11 KDB: stack backtrace: #0 0xffffffff80641647 at kdb_backtrace+0x67 #1 0xffffffff80606762 at vpanic+0x182 #2 0xffffffff806067e3 at panic+0x43 #3 0xffffffff8084eef1 at trap_fatal+0x351 #4 0xffffffff8084f0e4 at trap_pfault+0x1e4 #5 0xffffffff8084e82f at trap+0x4bf #6 0xffffffff80830d57 at calltrap+0x8 #7 0xffffffff8063beab at _bus_dmamap_load_ccb+0x1fb #8 0xffffffff8063bc51 at bus_dmamap_load_ccb+0x91 #9 0xffffffff8042dcad at ata_dmaload+0x11d #10 0xffffffff8042df7e at ata_begin_transaction+0x7e #11 0xffffffff8042c18e at ataaction+0x9ce #12 0xffffffff802a220f at xpt_run_devq+0x5bf #13 0xffffffff802a17ad at xpt_action_default+0x94d #14 0xffffffff802c0024 at adastart+0x8b4 #15 0xffffffff802a2e93 at xpt_run_allocq+0x193 #16 0xffffffff802c0735 at adastrategy+0xf5 #17 0xffffffff80554206 at g_disk_start+0x426 Uptime: 2m29s Notes: svn path=/head/; revision=290005
* Don't try to replicate mode pages not present on this device.Alexander Motin2015-10-261-0/+5
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=290004
* Add support for binding IRQs to CPUs in the LinuxKPI. The new functionHans Petter Selasky2015-10-261-1/+18
| | | | | | | | | | added is for BSD only and does not exist in Linux. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=290003
* Build the LinuxKPI module by default.Hans Petter Selasky2015-10-261-4/+1
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=289994
* Build fix for MIPS.Hans Petter Selasky2015-10-261-3/+6
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=289993
* ioat: Add %b format string for CHANERR codesConrad Meyer2015-10-262-2/+11
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289983
* ioat: Allocate memory for ring resize sanelyConrad Meyer2015-10-263-119/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new flag for DMA operations, DMA_NO_WAIT. It behaves much like other NOWAIT flags -- if queueing an operation would sleep, abort and return NULL instead. When growing the internal descriptor ring, the memory allocation is performed outside of all locks. A lock-protected flag is used to avoid duplicated work. Threads that cannot sleep and attempt to queue operations when the descriptor ring is full allocate a larger ring with M_NOWAIT, or bail if that fails. ioat_reserve_space() could become an external API if is important to callers that they have room for a sequence of operations, or that those operations succeed each other directly in the hardware ring. This patch splits the internal head index (->head) from the hardware's head-of-chain (DMACOUNT) register (->hw_head). In the future, for simplicity's sake, we could drop the 'ring' array entirely and just use a linked list (with head and tail pointers rather than indices). Suggested by: Witness Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289982
* ioat: Expose more softc members in sysctlsConrad Meyer2015-10-262-5/+17
| | | | | | | | | Kill some unused softc variables while we're here. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289980
* ioat: Introduce KTR probesConrad Meyer2015-10-263-8/+9
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289979