IB/hfi1: Modify handling of physical link state by Host Driver
Ensure states returned to the Fabric Manager are consistent with the OPA specification by caching the physical state along with the logical state. Reviewed-by: Stuart Summers <john.s.summers@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Andrzej Kotlowski <andrzej.kotlowski@intel.com> Signed-off-by: Jakub Byczkowski <jakub.byczkowski@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
此提交包含在:
@@ -906,10 +906,12 @@ static inline int set_armed_to_active(struct hfi1_ctxtdata *rcd,
|
||||
sc = hfi1_9B_get_sc5(hdr, packet->rhf);
|
||||
}
|
||||
if (sc != SC15_PACKET) {
|
||||
int hwstate = read_logical_state(dd);
|
||||
int hwstate = driver_lstate(rcd->ppd);
|
||||
|
||||
if (hwstate != LSTATE_ACTIVE) {
|
||||
dd_dev_info(dd, "Unexpected link state %d\n", hwstate);
|
||||
if (hwstate != IB_PORT_ACTIVE) {
|
||||
dd_dev_info(dd,
|
||||
"Unexpected link state %s\n",
|
||||
opa_lstate_name(hwstate));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
新增問題並參考
封鎖使用者