2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/drivers/staging
Mitko Haralanov c7cbf2fabb staging/rdma/hfi1: Properly determine error status of SDMA slots
To ensure correct operation between the driver and PSM
with respect to managing the SDMA request ring, it is
important that the status for a particular request slot
is set at the correct time. Otherwise, PSM can get out
of sync with the driver, which could lead to hangs or
errors on new requests.

Properly determining of when to set the error status of
a SDMA slot depends on knowing exactly when the last txreq
for that request has been completed. This in turn requires
that the driver knows exactly how many requests have been
generated and how many of those requests have been successfully
submitted to the SDMA queue.

The previous implementation of the mid-layer SDMA API did not
provide a way for the caller of sdma_send_txlist() to know how
many of the txreqs in the input list have actually been submitted
without traversing the list and counting. Since sdma_send_txlist()
already traverses the list in order to process it, requiring
such traversal in the caller is completely unnecessary. Therefore,
it is much easier to enhance sdma_send_txlist() to return the
number of successfully submitted txreqs.

This, in turn, allows the caller to accurately determine the
progress of the SDMA request and, therefore, correctly set the
error status at the right time.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-03-10 20:37:55 -05:00
..
android Staging patches for 4.5-rc1 2016-01-13 10:13:36 -08:00
board staging: board: armadillo800eva: Use "arm,pl390" 2015-12-18 10:21:10 +09:00
clocking-wizard
comedi STAGING: COMEDI: Using kernel types in plx9080.h 2015-12-21 16:02:21 -08:00
dgap
dgnc staging: dgnc: dgnc_cls.c: Replaced udelay by usleep_range 2015-12-21 15:52:34 -08:00
emxx_udc staging: emxx_udc: use list_first_entry_or_null() 2015-12-21 18:32:52 -08:00
fbtft spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
fsl-mc
fwserial Staging: fwserial: Declare fwtty_port_put as static 2015-11-15 20:02:47 -08:00
gdm72xx staging: gdm72xx: add userspace data struct 2015-12-26 17:13:33 -08:00
gdm724x staging: gdm724x: constify tty_port_operations structs 2015-12-26 17:13:33 -08:00
goldfish
gs_fpgaboot
iio Second set of IIO fixes for the 4.5 cycle. These ones are mostly 2016-02-01 13:08:26 -08:00
lustre Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
media media updates for v4.5-rc1 2016-01-13 11:46:37 -08:00
most staging: most: Delete an unnecessary check before the function call "module_put" 2015-11-15 20:02:47 -08:00
mt29f_spinand staging: mt29f_spinand: make use of nand_set/get_controller_data() helpers 2016-01-07 10:23:41 -08:00
netlogic staging: netlogic: Fix build error due to missed API change 2016-01-10 22:06:58 -05:00
nvec staging: nvec: Add space around '<<' 2015-11-15 20:02:47 -08:00
octeon Staging patches for 4.5-rc1 2016-01-13 10:13:36 -08:00
octeon-usb
olpc_dcon
panel Revert "Staging: panel: usleep_range is preferred over udelay" 2016-01-28 22:26:18 -08:00
rdma staging/rdma/hfi1: Properly determine error status of SDMA slots 2016-03-10 20:37:55 -05:00
rtl8188eu staging: rtl8188eu: goto removed 2015-11-15 20:02:47 -08:00
rtl8192e staging: rtl8192e: Remove unnecessary variable 2015-11-15 20:02:47 -08:00
rtl8192u staging: rtl8192u: Remove unnecessary function 2015-11-15 20:02:47 -08:00
rtl8712 staging: rtl8712: rtl871x_mlme: Remove wrapper function 2015-11-15 20:02:47 -08:00
rtl8723au Staging: rtl8723au: Declare function static 2015-11-15 20:02:47 -08:00
rts5208
skein
slicoss
sm750fb Staging: sm750fb: Remove unused modedb.h file 2015-11-15 20:02:47 -08:00
speakup Staging: speakup: Fix allyesconfig build on mn10300 2016-02-01 13:05:44 -08:00
ste_rmi4
unisys staging: unisys: better config switch comments 2015-11-25 08:42:14 -08:00
vme drivers: staging: vme: Deleted casting to (void *) 2015-11-24 15:30:50 -08:00
vt6655
vt6656 staging: vt6656: remove address from GPL text 2015-11-19 16:53:09 -08:00
wilc1000 staging: wilc1000: bug fix on memory free 2015-12-21 13:21:09 -08:00
wlan-ng Staging: wlan-ng: Remove unused function declaration 2015-11-15 20:02:47 -08:00
xgifb
Kconfig
Makefile
staging.c