freebsd-skq/sys/dev/sfxge
arybchik 2502dee0d1 sfxge: add barriers to BAR write macros
In theory the barriers are required to cope with write combining and
reordering. Two barriers are added (sometimes merged to one):
 1. Before the first write to guarantee that previous writes to the region
    have been done
 2. Before the last write to guarantee that write to the last dword/qword is
    done after previous writes
Barriers are inserted before in the assumption that it is better to
postpone barriers as much as it is possible (more chances that the
operation has already been already done and barrier does not stall CPU).

On x86 and amd64 bus space write barriers are just compiler memory barriers
which are definitely required.

Sponsored by:   Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D2077
2015-03-23 15:45:39 +00:00
..
common sfxge: add barriers to BAR write macros 2015-03-23 15:45:39 +00:00
sfxge_dma.c sfxge: use goto to cleanup to avoid duplicate cleanup code 2015-02-24 06:08:55 +00:00
sfxge_ev.c sfxge: expect required init_state on data path and in periodic calls 2015-02-27 07:39:09 +00:00
sfxge_intr.c sfxge: expect required init_state on data path and in periodic calls 2015-02-27 07:39:09 +00:00
sfxge_mcdi.c sfxge: make lock names unique 2015-02-05 11:39:15 +00:00
sfxge_port.c sfxge: expect required init_state on data path and in periodic calls 2015-02-27 07:39:09 +00:00
sfxge_rx.c sfxge: add tunables to control LRO parameters on driver load time 2015-03-17 08:14:46 +00:00
sfxge_rx.h Unbreak 'make depend' with sfxge by removing debugging code activated in the 2015-02-28 21:50:04 +00:00
sfxge_tx.c sfxge: assert either kernel or internal copy of interface flags 2015-03-23 15:44:17 +00:00
sfxge_tx.h sfxge: increase default put-list limit to 1024 2015-03-17 08:23:46 +00:00
sfxge_version.h sfxge: adding version info to device description 2015-03-17 08:21:31 +00:00
sfxge.c sfxge: adding version info to device description 2015-03-17 08:21:31 +00:00
sfxge.h sfxge: implement if_get_counter callback 2015-02-22 19:25:57 +00:00