From: Dave Marquardt Date: Tue, 24 Nov 2026 10:16:49 -0600 Subject: [PATCH v19 08/13] scsi: ibmvfc: add FPIN extended flag and async sub-CRQ queue handle MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261124-ibmvfc-fpin-support-v19-8-2aaffe5fe7d2@linux.ibm.com> References: <20261124-ibmvfc-fpin-support-v19-0-2aaffe5fe7d2@linux.ibm.com> In-Reply-To: <20261124-ibmvfc-fpin-support-v19-0-2aaffe5fe7d2@linux.ibm.com> To: Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , "James E.J. Bottomley" , "Martin K. Petersen" , Tyrel Datwyler Cc: linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Dave Marquardt X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795537005; l=1878; i=davemarq@linux.ibm.com; s=20260216; h=from:subject:message-id; bh=ExqixlvvA86lyXEcBnXxlhcM+a5JReZNm1VDambrNMU=; b=t6eN80gfJST/4gQcDH5O41OGnmJOLnUjbBwfkASWZHsjN23URVjImdHpcY43rkRNrQrXyKJXg YHeebK0eW/qAKL0rbwmrZk4AFt2CviSVG4QxrBGas8tPH1CtGK+h3FP X-Developer-Key: i=davemarq@linux.ibm.com; a=ed25519; pk=vy0/nfobrje6EqZxuyw6a3ZstytG8WK2vf5Y3xtGrEg= X-Endpoint-Received: by B4 Relay for davemarq@linux.ibm.com/20260216 with auth_id=689 List-Id: B4 Relay Submissions Add IBMVFC_ASYNC_IS_FPIN_EXT flag bit (0x02) to ibmvfc_async_sub_crq.flags to distinguish extended FPIN events from standard ones. Add async_scrqs field of type ibmvfc_channels to ibmvfc_host to hold the channel set for the asynchronous sub-CRQ, alongside the existing scsi_scrqs and nvme_scrqs channels. This uses the same ibmvfc_channels infrastructure as the SCSI and NVMe channel queues. Add IBMVFC_ASYNC_SUB_CRQ_FMT to enum ibmvfc_msg_fmt and a corresponding async_scrq pointer to union ibmvfc_msgs to support the new async sub-CRQ message format. Signed-off-by: Dave Marquardt Signed-off-by: Tyrel Datwyler --- drivers/scsi/ibmvscsi/ibmvfc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/scsi/ibmvscsi/ibmvfc.h b/drivers/scsi/ibmvscsi/ibmvfc.h index 3fffd2db8ef5..2ecd60138d58 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.h +++ b/drivers/scsi/ibmvscsi/ibmvfc.h @@ -773,6 +773,7 @@ struct ibmvfc_async_sub_crq { volatile u8 valid; u8 flags; #define IBMVFC_ASYNC_ID_IS_ASSOC_ID 0x01 +#define IBMVFC_ASYNC_IS_FPIN_EXT 0x02 u8 link_state; u8 fpin_status; __be16 event; @@ -893,6 +894,7 @@ enum ibmvfc_msg_fmt { IBMVFC_CRQ_FMT = 0, IBMVFC_ASYNC_FMT, IBMVFC_SUB_CRQ_FMT, + IBMVFC_ASYNC_SUB_CRQ_FMT, }; union ibmvfc_msgs { @@ -900,6 +902,7 @@ union ibmvfc_msgs { struct ibmvfc_crq *crq; struct ibmvfc_async_crq *async; struct ibmvfc_sub_crq *scrq; + struct ibmvfc_async_sub_crq *async_scrq; }; struct ibmvfc_queue { @@ -992,6 +995,7 @@ struct ibmvfc_host { struct ibmvfc_queue async_crq; struct ibmvfc_channels scsi_scrqs; struct ibmvfc_channels nvme_scrqs; + struct ibmvfc_channels async_scrqs; struct ibmvfc_npiv_login login_info; union ibmvfc_npiv_login_data *login_buf; dma_addr_t login_buf_dma; -- 2.56.1