Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp738060pxb; Thu, 25 Feb 2021 13:55:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY+tIj21OHp/kkkOaD6x8GOa6eUsA7WGZw2KGNw8OZSTYDpzTSrsGEHuDIfWmD5AFOpju2 X-Received: by 2002:a05:6402:1b01:: with SMTP id by1mr29448edb.217.1614290111420; Thu, 25 Feb 2021 13:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614290111; cv=none; d=google.com; s=arc-20160816; b=GHmTmWRSMYaagCOULlzCqo6vHpvgbCAy22Wg5otY/GDogeCFpDRo16KZncT6Ao96RB 1BCq2Ie9lIH3ZZ/X8cdatyW5eTJeZ1UEFzv7xkN6xTX0HKnyoE+eO2vD636/vzQTyUq5 mUllaGDhMcwj0cc0guUJpM0AQeOsbqTQh6vi4y4xLgbSS+caDhKZ9QiBQGxXDPRCh6T6 mKwFtBNmZcABwq0vEkJciEiF1D1ylUycJL0/f3JDBqf0qDPPwrZtZ40rV+4jWEjtRtLo 8l4iGlic0ICQRfrIxeeaV59ttJd0dZvKIR1Sb5f3jD9+rxGRnFAQ96yKRKU4qslZv8uM XNOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tudWfFa6EnAtPpUDuhWIqyt1aFdyrrhcUl3QJPvn74c=; b=juW34SQbgcDj2BlUkjAAEspsST65IracnxxCoc8W0zUSIWBKCF2RwbjugK1ya/s9+j luqqRrnoWUp1rbrnorQH89sgwJosC4vmI+E20gsCaqxNFAYPY6C5CK8otjlxffg75O7y HUxS6z49BCZBer+z08aExg7lvCvXVmxOSOxSIBabB3Vg//RDqs1+kEU1V7cs3OvbMify M98hpTg9D/bOKFfB12yyyCuCsphFggefaXcA8/JpVkcjC00jyIDfJ1YgwYNl1Exs+vwR AZHb++LOJdh63b0T94TstB6OXKws6uNYMFvQFrjZ0ZlvSDcIWL/lEmojel2EBOOWkRAB AXWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=X9pyIKGI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e21si4169189ejx.638.2021.02.25.13.54.49; Thu, 25 Feb 2021 13:55:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=X9pyIKGI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234326AbhBYVwo (ORCPT + 99 others); Thu, 25 Feb 2021 16:52:44 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:18516 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233365AbhBYVvt (ORCPT ); Thu, 25 Feb 2021 16:51:49 -0500 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11PLWqZq090842; Thu, 25 Feb 2021 16:51:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=tudWfFa6EnAtPpUDuhWIqyt1aFdyrrhcUl3QJPvn74c=; b=X9pyIKGIZ0Xet26r0c8gt4SWVgWiCy/8wQ68dukokgp8euCB9nW2Ul/KAWV4vJQQ0llL 0gRkyQ4ZZ8nuWS1VPzr2fWXP2D9Ps8k/X4Xu6ANNFyTHzPP2HRmBmb+U7cTopMZuSU1j nYNp6myx+4xWmJakZQqTA1EQaA8CMhlngDhepJAXb0JqG6r6CiQcqfwEtjBg70YYl9P7 GiYqJpUq2WIKXwSkD0kYI4woD6AKitO2+4viavEWJS22j68g1PbnHBF7z1IMUjjRXph0 UKvCOgCh86bGBt+mZLlUrNGISpaE2HzmP0iqsknLfqTDHV/iEie+olWWURxwUEa4sAJi pQ== Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0a-001b2d01.pphosted.com with ESMTP id 36xf2v0pbv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Feb 2021 16:51:01 -0500 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 11PLm6LJ009848; Thu, 25 Feb 2021 21:51:00 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma03wdc.us.ibm.com with ESMTP id 36tt29hwtg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Feb 2021 21:51:00 +0000 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 11PLowBL6816248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Feb 2021 21:50:58 GMT Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE6A56E052; Thu, 25 Feb 2021 21:50:58 +0000 (GMT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6C8276E05B; Thu, 25 Feb 2021 21:50:58 +0000 (GMT) Received: from vios4361.aus.stglabs.ibm.com (unknown [9.3.43.61]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 25 Feb 2021 21:50:58 +0000 (GMT) From: Tyrel Datwyler To: james.bottomley@hansenpartnership.com Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, brking@linux.ibm.com, Tyrel Datwyler Subject: [PATCH v4 0/5] ibmvfc: hard reset fixes Date: Thu, 25 Feb 2021 15:50:52 -0600 Message-Id: <20210225215057.23020-1-tyreld@linux.ibm.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-02-25_14:2021-02-24,2021-02-25 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=905 lowpriorityscore=0 suspectscore=0 mlxscore=0 spamscore=0 phishscore=0 adultscore=0 impostorscore=0 bulkscore=0 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102250163 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series contains a minor simplification of ibmvfc_init_sub_crqs() followed by a couple fixes for sub-CRQ handling which effect hard reset of the client/host adapter CRQ pair. changes in v4: Patch 2: dropped Reviewed-by tag and moved sub-crq init to after locked region Patch 5: moved sub-crq init to after locked region changes in v3: * Patch 1 & 5: moved ibmvfc_init_sub_crqs out of locked patch changes in v2: * added Reviewed-by tags for patches 1-3 * Patch 4: use rtas_busy_delay to test rc and delay correct amount of time * Patch 5: (new) similar fix for LPM case where CRQ pair needs re-enablement Tyrel Datwyler (5): powerpc/pseries: extract host bridge from pci_bus prior to bus removal ibmvfc: simplify handling of sub-CRQ initialization ibmvfc: fix invalid sub-CRQ handles after hard reset ibmvfc: treat H_CLOSED as success during sub-CRQ registration ibmvfc: store return code of H_FREE_SUB_CRQ during cleanup arch/powerpc/platforms/pseries/pci_dlpar.c | 4 +- drivers/scsi/ibmvscsi/ibmvfc.c | 49 ++++++++++------------ 2 files changed, 26 insertions(+), 27 deletions(-) -- 2.27.0