Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp159470pxu; Wed, 2 Dec 2020 18:13:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5WT+4clAMrlLGCy4TR/zjJUbwZCGZxAdn5bar3O6rINuyZcT6ogDHtMgBIPnNgsRPxatX X-Received: by 2002:a17:906:3513:: with SMTP id r19mr596686eja.445.1606961596034; Wed, 02 Dec 2020 18:13:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606961596; cv=none; d=google.com; s=arc-20160816; b=U4cvAq19UwFPGrcMXq/nT+BC4vJ/uowqkeVY5xh1EvE30Dqrzc9qpK0Q8YWqJ1JMLd BWzoc+hg9ZncibIpBFGVbw51gOas0L7nRXd9g1khGy7huQg5u5zwP9qqf3NaXNnLzYdE 2f+vjmE/c+wWG7zpVraeAlYCRCzfDTMZx6qrzF24f0dgKUcR6yd62sV1nO4Fa34QsB/2 ujiWo3v9yBRf48x0k6MmAiH25bGH8JuDCC/tvDBem2MBDp51G90BfDX8AL061+00boVK JX71qP/t6eZwIDGibrmYoVAKN1sTWa/DTM8gOYbaJ1baziZWYM8/VHvFIlgAfjb/O0p4 pS2Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WvC3IHNQsBmGR4/ZDYjF+he46T9h4kaAaSVMnc33dgs=; b=gZ2xghi7Dju+cNB8oqJyz/taDeC4g14nhKR6gbQsQOkEVVA7Yiuq9XXG/ZLz/BxCxd Fi2R7+5/gvyBR9RZCCneqevKRRIrPc1PDzVky8yAYSH7px5rYaEu6DFTQhui6nKFpE4c w6LMdtU1XoDkfQRieSYIQyZdijbLZEz8sUEZvOS57QeroBcOCxEvw9JIZzaM/SNpxvZc aWp34qyciy4y9IYUJIz1tZWUc0tzA9rNRCtgO/WoY/ehWNLbVEpvfHxsubXEJNeAXjln R3Kr8C18hIVZClwoI/OvP5aouTIHK4N/nreubWnIwqib2p0ZeihLBTY3m/7/iWavHQIq 5r0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=G+hMoZOb; 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 z23si277959eji.419.2020.12.02.18.12.52; Wed, 02 Dec 2020 18:13:16 -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=G+hMoZOb; 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 S1729585AbgLCCJg (ORCPT + 99 others); Wed, 2 Dec 2020 21:09:36 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:21532 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729366AbgLCCJB (ORCPT ); Wed, 2 Dec 2020 21:09:01 -0500 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0B3250j7128371; Wed, 2 Dec 2020 21:08:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=WvC3IHNQsBmGR4/ZDYjF+he46T9h4kaAaSVMnc33dgs=; b=G+hMoZObQAvc4FldF4d8uW7HoO0xu3KmuqPyaKZsfsO5TXXTKwtZnhT6dTY+oT0MrzGA dxdiW/+6YPsy/b4gBQEC7UB/T0aSj0TKALqW6AUUriB9gnt2EFW5e5P3zc1gwlOIhqJs GOnxoaHC8ah7dSe+5EnqqX3Ua8gzCSmF0sc31EwN+vZ1q/5boRRMUSDD6Atw7rB/BicL w0xs9NA7LzxO4htbM/zQG8XbHkQLpeDr2wNwZZ0Xa0r6nKV26C6jt6FscMDKIi9tvQau JGZpxtaYlT8sjj+2HoXx2QHMTxAHChS5Ws7hYsp74VFwZsOvgyGvKgg+uLmWQh9vxcNT sQ== Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 356p2kh3h7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Dec 2020 21:08:16 -0500 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0B327U5t029816; Thu, 3 Dec 2020 02:08:15 GMT Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by ppma02dal.us.ibm.com with ESMTP id 3569xueq80-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Dec 2020 02:08:15 +0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0B3284Ad11535052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 3 Dec 2020 02:08:04 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2B0D878060; Thu, 3 Dec 2020 02:08:14 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8978D7805C; Thu, 3 Dec 2020 02:08:13 +0000 (GMT) Received: from vios4361.aus.stglabs.ibm.com (unknown [9.3.43.61]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 3 Dec 2020 02:08:13 +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 , Brian King Subject: [PATCH v3 07/18] ibmvfc: define Sub-CRQ interrupt handler routine Date: Wed, 2 Dec 2020 20:07:55 -0600 Message-Id: <20201203020806.14747-8-tyreld@linux.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201203020806.14747-1-tyreld@linux.ibm.com> References: <20201203020806.14747-1-tyreld@linux.ibm.com> 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.312,18.0.737 definitions=2020-12-02_14:2020-11-30,2020-12-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=1 lowpriorityscore=0 mlxlogscore=916 malwarescore=0 clxscore=1015 impostorscore=0 mlxscore=0 priorityscore=1501 phishscore=0 spamscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012030009 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simple handler that calls Sub-CRQ drain routine directly. Signed-off-by: Tyrel Datwyler Reviewed-by: Brian King --- drivers/scsi/ibmvscsi/ibmvfc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index b61ae1df21e5..649268996a5c 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c @@ -3461,6 +3461,16 @@ static void ibmvfc_drain_sub_crq(struct ibmvfc_sub_queue *scrq) spin_unlock_irqrestore(scrq->vhost->host->host_lock, flags); } +static irqreturn_t ibmvfc_interrupt_scsi(int irq, void *scrq_instance) +{ + struct ibmvfc_sub_queue *scrq = (struct ibmvfc_sub_queue *)scrq_instance; + + ibmvfc_toggle_scrq_irq(scrq, 0); + ibmvfc_drain_sub_crq(scrq); + + return IRQ_HANDLED; +} + /** * ibmvfc_init_tgt - Set the next init job step for the target * @tgt: ibmvfc target struct -- 2.27.0