android_kernel_xiaomi_sm8350/drivers/infiniband/hw/ipath
Patrick Marchand Latifi 87d5aed85b IB/ipath: Fix potentially wrong RNR retry counter returned in ipath_query_qp()
There can be a case where the requester's rnr retry counter
(s_rnr_retry) is less than the number of rnr retries allowed per QP
(s_rnr_retry_cnt).  This can happen if the s_rnr_retry counter is being
decremented and an ipath_query_qp call is issued during that time frame.
The fix is to always return the number of rnr retries allowed per QP
instead of the requester's rnr counter.

Found by code review.

Signed-off-by: Patrick Marchand Latifi <patrick.latifi@qlogic.com>
Acked-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-03-11 14:01:14 -07:00
..
ipath_common.h IB/ipath: Fix IB compliance problems with link state vs physical state 2008-03-11 13:58:22 -07:00
ipath_cq.c IB/ipath: Fix error returned from ib_resize_cq if new size smaller than # entries 2008-01-25 14:15:28 -08:00
ipath_debug.h IB/ipath: Convert from .nopage to .fault 2008-01-25 14:15:29 -08:00
ipath_diag.c IB/ipath: Performance optimization for CPU differences 2007-10-09 20:04:14 -07:00
ipath_dma.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
ipath_driver.c IB/ipath: Fix IB compliance problems with link state vs physical state 2008-03-11 13:58:22 -07:00
ipath_eeprom.c IB/ipath: Fix some sparse warnings about shadowed symbols 2008-01-25 14:15:42 -08:00
ipath_file_ops.c IB/ipath: Changes to support PIO bandwidth check on IBA7220 2008-01-25 14:17:43 -08:00
ipath_fs.c IB/ipath: Remove unnecessary cast 2008-01-25 14:17:46 -08:00
ipath_iba6110.c IB/ipath: Add new chip-specific functions to older chips, consistent init 2008-01-25 14:15:45 -08:00
ipath_iba6120.c IB/ipath: Minor cleanup of unused fields and chip-specific errors 2008-01-25 14:17:43 -08:00
ipath_init_chip.c IB/ipath: Add flag and handling for chips with swapped register bug 2008-01-25 14:15:39 -08:00
ipath_intr.c IB/ipath: Add ipath_read_ireg() abstraction 2008-01-25 14:15:40 -08:00
ipath_kernel.h IB/ipath: Fix IB compliance problems with link state vs physical state 2008-03-11 13:58:22 -07:00
ipath_keys.c IB/ipath: Clean up some comments 2008-01-25 14:15:38 -08:00
ipath_mad.c IB/ipath: Fix IB compliance problems with link state vs physical state 2008-03-11 13:58:22 -07:00
ipath_mmap.c IB/ipath: Update copyright dates 2007-07-09 20:12:26 -07:00
ipath_mr.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
ipath_qp.c IB/ipath: Fix potentially wrong RNR retry counter returned in ipath_query_qp() 2008-03-11 14:01:14 -07:00
ipath_rc.c IB/ipath: Fix RNR NAK handling 2008-01-25 14:15:34 -08:00
ipath_registers.h IB/ipath: Fix IB compliance problems with link state vs physical state 2008-03-11 13:58:22 -07:00
ipath_ruc.c IB/ipath: Fix RNR NAK handling 2008-01-25 14:15:34 -08:00
ipath_srq.c IB/ipath: Fix comments for ipath_create_srq() 2008-01-25 14:15:28 -08:00
ipath_stats.c IB/ipath: Changes for fields moving from devdata to portdata 2008-01-25 14:15:36 -08:00
ipath_sysfs.c IB/ipath: New sysfs entries to control 7220 features 2008-01-25 14:17:32 -08:00
ipath_uc.c IB/ipath: UC RDMA WRITE with IMMEDIATE doesn't send the immediate 2007-10-09 20:44:56 -07:00
ipath_ud.c IB/ipath: Trivial simplification of ipath_make_ud_req() 2008-01-25 14:17:44 -08:00
ipath_user_pages.c IB/ipath: Remove ipath_get_user_pages_nocopy() 2007-07-17 18:37:43 -07:00
ipath_verbs_mcast.c IB/ipath: Update copyright dates 2007-07-09 20:12:26 -07:00
ipath_verbs.c IB/ipath: Add mappings from HW register to PortInfo port physical state 2008-01-25 14:17:44 -08:00
ipath_verbs.h IB/ipath: Add mappings from HW register to PortInfo port physical state 2008-01-25 14:17:44 -08:00
ipath_wc_ppc64.c IB/ipath: Update copyright dates 2007-07-09 20:12:26 -07:00
ipath_wc_x86_64.c IB/ipath: Update copyright dates 2007-07-09 20:12:26 -07:00
Kconfig IB: Use menuconfig for InfiniBand menu 2007-07-09 20:12:26 -07:00
Makefile IB/ipath: Remove ipath_layer dead code 2007-07-20 21:19:43 -07:00