From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8EDE8C83F10 for ; Wed, 9 Jul 2025 22:57:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NQeGOT2GM2z7h+sRtyQyZ/7OyFH5jaaYOb6VTVSrgMU=; b=IfyB4a5L7A1lmlO+MSXchRo/4E SMbQe5Do77ZoKEDvA6pU8pjnfe/rKPrGlwbwLB72Wamk588NnqW/RXvjHBooezFZBtFzCLU7lFZ5L wIII47G+I0fIcVpgvCHIfip+MIvfv4XlDv+kdlFhgwjeQuCdubg21E0mMKxyORwW7JVEEiQygC+Hm 6he72g8ArrWhbGwiMQYvyh4aDaCHWSxOtu6UVMDUB2f46MAvBQyCADHsUF0rwURptEUJs3UC/vApS bcZPCtm5Hy6/rHDgBtmu/5PQNVY6JMbvfxkSYtxL0jbfHRbspPKo6c33gSyCIJFEtsUgwCmJDupiV 4n+7I9aQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uZdj6-0000000A9pQ-1x7y; Wed, 09 Jul 2025 22:57:20 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uZcG5-00000009u2A-3q2g for linux-nvme@lists.infradead.org; Wed, 09 Jul 2025 21:23:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752096197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NQeGOT2GM2z7h+sRtyQyZ/7OyFH5jaaYOb6VTVSrgMU=; b=PMdKLGywS82kN+m1vKPI9tMAuSW6Z4CkxHF+DK5FQ/XeAhUfiNTMc80Ah8FquP5XlfPx2L yODvTQsM7kCepiCvQgLzrg4dWT1a2tyzbsn35S/v6agfyYwuqq8QrmD+UHho8uvI11NLYk noQddb99XEkC9O2jcFJ6Y3TtXMI6WlA= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-595-2Lht7qFyMaqU6NljWxC3Fw-1; Wed, 09 Jul 2025 17:23:08 -0400 X-MC-Unique: 2Lht7qFyMaqU6NljWxC3Fw-1 X-Mimecast-MFC-AGG-ID: 2Lht7qFyMaqU6NljWxC3Fw_1752096187 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E0E491944AAD; Wed, 9 Jul 2025 21:23:06 +0000 (UTC) Received: from bgurney-thinkpadp1gen5.remote.csb (unknown [10.44.33.49]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EA7BC18002B6; Wed, 9 Jul 2025 21:23:00 +0000 (UTC) From: Bryan Gurney To: linux-nvme@lists.infradead.org, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, axboe@kernel.dk Cc: james.smart@broadcom.com, dick.kennedy@broadcom.com, njavali@marvell.com, linux-scsi@vger.kernel.org, hare@suse.de, bgurney@redhat.com, jmeneghi@redhat.com Subject: [PATCH v8 5/8] lpfc: enable FPIN notification for NVMe Date: Wed, 9 Jul 2025 17:19:16 -0400 Message-ID: <20250709211919.49100-6-bgurney@redhat.com> In-Reply-To: <20250709211919.49100-1-bgurney@redhat.com> References: <20250709211919.49100-1-bgurney@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250709_142318_031626_8F8AA240 X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org From: Hannes Reinecke Call 'nvme_fc_fpin_rcv()' to enable FPIN notifications for NVMe. Signed-off-by: Hannes Reinecke Reviewed-by: Justin Tee Tested-by: Bryan Gurney Tested-by: Muneendra Kumar --- drivers/scsi/lpfc/lpfc_els.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index c7cbc5b50dfe..146ed6fd41af 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -33,6 +33,7 @@ #include #include #include +#include #include "lpfc_hw4.h" #include "lpfc_hw.h" @@ -10249,9 +10250,15 @@ lpfc_els_rcv_fpin(struct lpfc_vport *vport, void *p, u32 fpin_length) fpin_length += sizeof(struct fc_els_fpin); /* the entire FPIN */ /* Send every descriptor individually to the upper layer */ - if (deliver) + if (deliver) { fc_host_fpin_rcv(lpfc_shost_from_vport(vport), fpin_length, (char *)fpin, 0); +#if (IS_ENABLED(CONFIG_NVME_FC)) + if (vport->cfg_enable_fc4_type & LPFC_ENABLE_NVME) + nvme_fc_fpin_rcv(vport->localport, + fpin_length, (char *)fpin); +#endif + } desc_cnt++; } } -- 2.50.0