Balazs Gerofi
0b9a657a01
HFI: support IFS 10.8-0
...
Change-Id: Iebc0e2b50faf464efcc5134cc40dc52e0bd6eea7
2019-04-15 11:26:39 +09:00
Balazs Gerofi
166c6105ef
queued_spin_lock: fix compatibility with Linux
2018-06-13 00:31:43 +09:00
Balazs Gerofi
5a2f8388a6
HFI1: handle Linux queued_spin_locks in the receive path as well
2018-06-13 00:31:42 +09:00
Balazs Gerofi
8164b63fc2
HFI1: port to IFS 10.7 rpv1 and support queued_spin_lock in Linux 3.10.0-693.11.6
2018-06-13 00:31:42 +09:00
Balazs Gerofi
af22ce62d2
HFI1: clean up and eliminate dead code in user SDMA
2018-06-13 00:31:42 +09:00
Balazs Gerofi
0412e1fcc6
HFI1: add generated user_sdma_request and user_sdma_txreq headers
2018-06-13 00:31:41 +09:00
Balazs Gerofi
238e346586
HFI1: use DWARF generated headers for user_sdma_request and user_sdma_txreq
2018-06-13 00:31:41 +09:00
Balazs Gerofi
b08331b21a
ihk_hfi1_common.h: use IRQ restore unlock in spin_unlock
2018-06-13 00:31:41 +09:00
Balazs Gerofi
c196c996dd
HFI: add dd to generated sdma_engine
2018-06-13 00:31:41 +09:00
Balazs Gerofi
558c250bb3
HFI1: generate headers for sdma_state and sdma_engine structures
2018-06-13 00:31:40 +09:00
Balazs Gerofi
fcc8310454
HFI1: track receive TIDs in a tree
2018-06-13 00:31:40 +09:00
Balazs Gerofi
521e0dc707
HFI1: add a bunch of fields to hfi1_devdata and hfi1_filedata for receive TID handling, do necessary mappings in hfi1_map_device_addresses()
2018-06-13 00:31:40 +09:00
Balazs Gerofi
6848c2ecf7
HFI1: move tid_rb_node to header
2018-06-13 00:31:39 +09:00
Dominique Martinet
5fce5e4e3c
hfi1 generated headers: add missing filedata file
2018-06-13 00:31:38 +09:00
Dominique Martinet
54bdb3419d
hfi1 generated headers:
...
- split headers into one file per struct
- add filedata
- fix s/modprobe/modinfo/ for guessed .ko path
2018-06-13 00:31:38 +09:00
Dominique Martinet
03fed4d1c8
automatically generate hfi structs from dwarf info
2018-06-13 00:31:38 +09:00
Dominique Martinet
6279f69f5c
compiler.h: take in recent linux updates for newer gcc support
...
Had to remove from original compiler-gcc:
- things that deal with types, e.g. READ_ONCE macro and friends;
- #define barrier(). This one would be better there at some point.
hfi1: remove ACCESS_ONCE from hfi1 header
2018-06-13 00:31:38 +09:00
Balazs Gerofi
6959d5ead4
HFI: port to SFI driver version 10.5.1.0.2
2018-06-13 00:31:38 +09:00
Dominique Martinet
662895c020
hfi1/user_exp_rcv: explicitely call hfi1_map_device_addresses
...
There were cases where nobody else did this mapping for us
2018-06-13 00:31:37 +09:00
Dominique Martinet
67529f21ff
hfi1: replace true/false defines by stddef include
2018-06-13 00:31:37 +09:00
Dominique Martinet
f5ced648ef
hfi1/user_exp_rcv: rework main loop
...
New loop now takes into account pages not physically contiguous.
Also some minor improvements, e.g. make the spin_lock used more locally,
reuse a group we had if we had one, etc.
2018-06-13 00:31:36 +09:00
Dominique Martinet
23f178d718
hfi1/user_exp_rcv/clear: implement TID_FREE ioctl
2018-06-13 00:31:36 +09:00
Dominique Martinet
e64d89cd48
hfi: bases for user_exp_rcv
...
This implements a skeleton setup function and call it on ioctl
Many missing points:
- missing pci mapping to make setup work
- no clear (passed to linux, so will likely bug out)
- missing locks/safe-guards
Conflicts:
kernel/Makefile.build.in
2018-06-13 00:31:35 +09:00
Dominique Martinet
7366da4390
Fix other warnings
...
Most were harmless, but the change to ACCESS_ONCE from volatile
cast is probably useful.
Expanding macro, we basically went from:
m = (volatile struct sdma_vl_map *)dd->sdma_map;
to
m = *(volatile struct sdma_vl_map **)&(dd->sdma_map);
i.e. the explicit lookup is at a different level.
2018-06-13 00:31:35 +09:00
Dominique Martinet
2dc85ee417
user_sdma: fix use of uninitialized variable (vl)
...
This defines a single field in hfi1_pportdata, getting offset
from dwarf headers -- need to compute that at configure time
2018-06-13 00:31:35 +09:00
Balazs Gerofi
73cc07f98e
ioctl() investigation - TO RESET
2018-06-13 00:31:35 +09:00
Aram Santogidis
c1d2db6a73
fixed sdma_vl_map, just in case it will be used in the future
2018-06-13 00:31:32 +09:00
Balazs Gerofi
6e289e8d9f
HFI1: txreq cache and profiling
2018-06-13 00:31:32 +09:00
Balazs Gerofi
3b5363c533
HFI1: use original length calculation in sdma_send_pkts()
...
Conflicts:
kernel/include/hfi1/sdma.h
2018-06-13 00:31:32 +09:00
Balazs Gerofi
39deff4e10
HFI1: working but a bit slow
2018-06-13 00:31:31 +09:00
Aram Santogidis
640dba627f
Added debugging output. Bugfixes in user_sdma_send_pkts() and sdma_send_txreq().
2018-06-13 00:31:31 +09:00
Aram Santogidis
ae368d97d4
Implemented a replacement for sdma_txadd_page()
...
Conflicts:
kernel/user_sdma.c
2018-06-13 00:31:31 +09:00
Aram Santogidis
076e6b9b12
Enabled _sdma_txadd_daddr()
2018-06-13 00:31:30 +09:00
Aram Santogidis
fa6db686b4
Corrected spin_lock_irqsave() spin_unlock_irqrestore() definitions
...
Conflicts:
kernel/include/hfi1/ihk_hfi1_common.h
2018-06-13 00:31:30 +09:00
Aram Santogidis
74a636a612
Updated structs to use completion{} and wait_queue_head_t{} and added struct size checkes in hfi1_aio_write()
2018-06-13 00:31:30 +09:00
Aram Santogidis
1c4a6568e6
Updated sdma.h (fixed struct sdma_engine size)
2018-06-13 00:31:30 +09:00
Aram Santogidis
7005110697
Updated and confirmed struct iowait{} and struct hfi1_user_sdma_pkt_q {}
...
Conflicts:
kernel/include/hfi1/ihk_hfi1_common.h
2018-06-13 00:31:30 +09:00
Aram Santogidis
c4ca4ae3ab
Updated struct hfi1_devdata and confirmed its size
2018-06-13 00:31:30 +09:00
Aram Santogidis
b024a486b9
Updated hfi1_filedata {} and confirmed its size against the original on Linux
...
Conflicts:
kernel/include/hfi1/hfi.h
2018-06-13 00:31:30 +09:00
Aram Santogidis
fe4c461f2f
Updated kcalloc/kmalloc calls and enabled sdma_select_user_engine dependencies
...
Conflicts:
kernel/include/hfi1/ihk_hfi1_common.h
2018-06-13 00:31:29 +09:00
Aram Santogidis
5cf884ef41
Updated TODO tags and struct hfi1_user_sdma_pkt_q
2018-06-13 00:31:29 +09:00
Aram Santogidis
64e2639adc
* The relevant files have been modified in order to compile with McKernel.
...
Conflicts:
kernel/Makefile.build.in
2018-06-13 00:31:29 +09:00
Aram Santogidis
14b360e867
* Added the original files of the driver as a basis for comparison
...
Conflicts:
kernel/include/hfi1/sdma.h
kernel/sdma.c
kernel/user_sdma.c
2018-06-13 00:31:29 +09:00
Balazs Gerofi
4a0e389953
HFI1: comments to keep in mind
...
Conflicts:
kernel/include/hfi1/sdma.h
kernel/sdma.c
kernel/user_sdma.c
2018-06-13 00:31:28 +09:00