Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3298271pxk; Mon, 21 Sep 2020 10:01:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw05maZDvesJRsqcPJdSPqUrZnbvQFHAOh7kGSQvKUuhKT6BDx0S1WJP33xK2qdGSc1+IjP X-Received: by 2002:a50:fb18:: with SMTP id d24mr607446edq.149.1600707665540; Mon, 21 Sep 2020 10:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600707665; cv=none; d=google.com; s=arc-20160816; b=Ferq7I/RjnoLjEdpWzAYjiahfqNs7csLc7oRT4z9DG4GTimIjkY0AzjS2ih1YDNlfw 6wb2YCD5DIrszZ2LFBF7jlizCEzBZCM8xhxofkSeg5lYv+s4txxn0S66O/trsSIGI+6N AF+hnt7wMxs1znigzc50lwvISGCD9r7bctcCyUsyUdhDQMLU0gf7bD7qquVMyxDeRTjb Mze85NF4RNPFpIw1aSLNpjHG9ywCts0sTQ16U1inmlnQlC6toZWyd0hJZiu0HPJZg5za 2vH/4rdyHGC3NUaoVIPKyA38uu0AKOKltkU6PcRpNMamF3cCS1rmmKBZ362pZEPc6YJ3 46ug== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WuGPzwoLkYAhXfuU5MphnV5i4AMGEo7oVhtelNXg3TE=; b=I3Wo1SZoDsYf4wSt1fj5OzwWsMTjC3f4+XAJJ9wSK0UHFh0pcHeV2vCvBdzRsmFDyf zgJdoaUUGN9zFT2apV4NVYpX+wOwAQBoZHDZMd5VRKr7W5rFR6CUaqCmYUaQcl5PItx4 tNcFQEFiGHWoTPUhyWW0km/cS44Qxlw5WPoyaekiAXOAFY9MumgOtc9rEwslXCrA1bGF 8gFEhZOd2cHo+NzOmzy0/ZT722mYUTO86gX6c0qSJzXwWHIdBuFkSj9eIe0fXCW107eG 4OXTPQRlf3gpTYg0Om8e0xfunlw06gsx7bSkwssbwxdOZk4tIV1plAmlnmnxotIdIU4q y8sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1u5+R9Hk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si8636947edx.169.2020.09.21.10.00.41; Mon, 21 Sep 2020 10:01:05 -0700 (PDT) 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=@kernel.org header.s=default header.b=1u5+R9Hk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729662AbgIUQ5e (ORCPT + 99 others); Mon, 21 Sep 2020 12:57:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:47816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728652AbgIUQnS (ORCPT ); Mon, 21 Sep 2020 12:43:18 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 01DDA2076B; Mon, 21 Sep 2020 16:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706597; bh=+hTCQXSoThcQFiyF2kREjmsvdzzXC//BrwpSRW/S5Bo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1u5+R9HkSbz3S/cDhOPRzLIeDoG6TWXNQXTAH6eY/M3kZDadkh+ehwTPV5POQIkT1 vUH8DYv9rPGyNCSGrPrrhDx3zIXtBdjc3mFXbNnRNrMPOwQvJwXLVi6kVQ8/7Olln/ zYyPSRF4BVRxd+t7TEAlPnUELdDGOzcgrise/0ck= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dick Kennedy , James Smart , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.8 017/118] scsi: lpfc: Extend the RDF FPIN Registration descriptor for additional events Date: Mon, 21 Sep 2020 18:27:09 +0200 Message-Id: <20200921162037.128041751@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162036.324813383@linuxfoundation.org> References: <20200921162036.324813383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: James Smart [ Upstream commit 441f6b5b097d74a8aa72ec0d8992ef820e2b3773 ] Currently the driver registers for Link Integrity events only. This patch adds registration for the following FPIN types: - Delivery Notifications - Congestion Notification - Peer Congestion Notification Link: https://lore.kernel.org/r/20200828175332.130300-4-james.smart@broadcom.com Co-developed-by: Dick Kennedy Signed-off-by: Dick Kennedy Signed-off-by: James Smart Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/lpfc/lpfc_els.c | 3 +++ drivers/scsi/lpfc/lpfc_hw4.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 7b6a210825677..519c7be404e75 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -3512,6 +3512,9 @@ lpfc_issue_els_rdf(struct lpfc_vport *vport, uint8_t retry) FC_TLV_DESC_LENGTH_FROM_SZ(prdf->reg_d1)); prdf->reg_d1.reg_desc.count = cpu_to_be32(ELS_RDF_REG_TAG_CNT); prdf->reg_d1.desc_tags[0] = cpu_to_be32(ELS_DTAG_LNK_INTEGRITY); + prdf->reg_d1.desc_tags[1] = cpu_to_be32(ELS_DTAG_DELIVERY); + prdf->reg_d1.desc_tags[2] = cpu_to_be32(ELS_DTAG_PEER_CONGEST); + prdf->reg_d1.desc_tags[3] = cpu_to_be32(ELS_DTAG_CONGESTION); lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD, "Issue RDF: did:x%x", diff --git a/drivers/scsi/lpfc/lpfc_hw4.h b/drivers/scsi/lpfc/lpfc_hw4.h index 6dfff03765471..c7085769170d7 100644 --- a/drivers/scsi/lpfc/lpfc_hw4.h +++ b/drivers/scsi/lpfc/lpfc_hw4.h @@ -4797,7 +4797,7 @@ struct send_frame_wqe { uint32_t fc_hdr_wd5; /* word 15 */ }; -#define ELS_RDF_REG_TAG_CNT 1 +#define ELS_RDF_REG_TAG_CNT 4 struct lpfc_els_rdf_reg_desc { struct fc_df_desc_fpin_reg reg_desc; /* descriptor header */ __be32 desc_tags[ELS_RDF_REG_TAG_CNT]; -- 2.25.1