| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Notes:
svn path=/head/; revision=290134
|
|
|
|
|
|
|
| |
- Fix typos
Notes:
svn path=/head/; revision=290133
|
|
|
|
|
|
|
| |
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=290132
|
|
|
|
|
|
|
|
|
| |
On detach and during a forced HW reset.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=290131
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Notes:
svn path=/head/; revision=290123
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
pmap_is_current(), and is no longer called.
Notes:
svn path=/head/; revision=290120
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
device_add_child_ordered to add the child. device_add_child_ordered
doesn't call BUS_ADD_CHILD.
Notes:
svn path=/head/; revision=290117
|
|
|
|
|
|
|
|
| |
PR: 202667
MFC after: 1 week
Notes:
svn path=/head/; revision=290116
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
uses this which makes it difficult to support.
Notes:
svn path=/head/; revision=290105
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Reviewed by: kib
Notes:
svn path=/head/; revision=290101
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
Check for BFILL capability before initiating blockfill operations.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=290087
|
|
|
|
|
|
|
| |
config, and support from NOTES.
Notes:
svn path=/head/; revision=290085
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
Submitted by: jonloony_gmail.com
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3863
Notes:
svn path=/head/; revision=290075
|
|
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D3927
Notes:
svn path=/head/; revision=290072
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=290045
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Notes:
svn path=/head/; revision=290042
|
|
|
|
|
|
|
|
|
| |
Add a socket option to block until underlying HCI connection encrypted.
Differential Revision: https://reviews.freebsd.org/D3981
Notes:
svn path=/head/; revision=290038
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D3811
Notes:
svn path=/head/; revision=290022
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=290004
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=289994
|
|
|
|
|
|
|
| |
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=289993
|
|
|
|
|
|
|
| |
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289983
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
Kill some unused softc variables while we're here.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289980
|
|
|
|
|
|
|
| |
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289979
|