Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp26156rdb; Wed, 29 Nov 2023 18:34:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCtaepNpCx4RUtFTps95E9OhM0fMhlh0MLJV8z8gwA7EsHDGATd1SG9tMdtJ6O09yynBop X-Received: by 2002:a05:6a21:33aa:b0:188:20e0:2bca with SMTP id yy42-20020a056a2133aa00b0018820e02bcamr22927597pzb.13.1701311679177; Wed, 29 Nov 2023 18:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701311679; cv=none; d=google.com; s=arc-20160816; b=O207AHgn5bHMWBORXRliDFD22817OwNdU+RPhNyUxa5NUumQEOOotUq9wsPHaw+GY+ K7lTNow5cT6LjafdQp6n0PxTy8h7bNppsfxHOEOzEkNshWdL4asFyzESgjPTIEBxrKud tMl40glmcPAtY3sX6eLNBA7YSztMhM+JlFXa52U04wVFkKtahQMyC6R3adX7bwsHGiRM Fu5DqGeTQBHdevj4DDWLA17lTKWsXfVxSm+ygDn5RmSY9ahBKekNbb0P5bOXNw0hz5xT mlRc8ne4Q2Yy901QrAftu3DKwlOMdeOru0y3S4gFFfI6WWFXtJwKBbvUSDlbHTeuNWj1 LQMA== 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=vKMcJbVI16nKTuw5jMpXehmO07rhNZFlAtgMRWXtmPU=; fh=cjiSjcSDv/XIT1wsutvtplR3SRaqRNwT1M35P++mOs8=; b=U655IL3xf6hark5XDdW3u4z3Vugvv+APk1yehdgG12vk/2zg2Uy1QT+Bh9d0VJHDTK Cz9mCzT8xQo9opc0aJy7lEHtBJnUOyPGKFMzZBFC1MirDynNhUxq5ElOXEbLo21jYXP+ j+1krLUtw8hWYqXVtl+ZMhJBV02B6H0/75TYQumCTKahGnmztJ5gsg+HHGsHT40QjLQh 1Sw72/JeicqpgL/Hm7XThlf6NjcOoDeIsWzRaYZeRh6qell2yzT8v66Lpx+lTj2z3ZfM 2tJFdlMUekrjV894gQoh7KuRcU4gnuo+JlxFjUHm8hQ10xuPsox0GPeHi3gKUAICTOVA Z9Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=LO1QtKKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=cisco.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id nd9-20020a17090b4cc900b00285992c80easi326985pjb.30.2023.11.29.18.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 18:34:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=LO1QtKKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=cisco.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8D89280BD744; Wed, 29 Nov 2023 18:34:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231636AbjK3CeX (ORCPT + 99 others); Wed, 29 Nov 2023 21:34:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230393AbjK3CeV (ORCPT ); Wed, 29 Nov 2023 21:34:21 -0500 Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3EBFD71; Wed, 29 Nov 2023 18:34:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1974; q=dns/txt; s=iport; t=1701311668; x=1702521268; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cAUkkq9AKnGLq+kxdOrbr7ZaaBIeDQKT3XyG1iC0jTE=; b=LO1QtKKN8CWMvvFAa575B5YVYJ8YRy1Pyn6KPbYkqpymfF6b/FUTU71q n0kmIIeVHvD6U7f825TNFKvLuiateOG8/CfC23fXkIKepj0zBsyrNv2k8 I4SOgwPCdbMvkjdVQ7AkVtfScdFmx7m0dBoK5+oyIJeCa3NQ9c5GxLzAl U=; X-CSE-ConnectionGUID: BA8L6MwISQquicEKdaoEiQ== X-CSE-MsgGUID: Zu6sKxCyT4+S3la2Eoogxg== X-IronPort-AV: E=Sophos;i="6.04,237,1695686400"; d="scan'208";a="149775955" Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by rcdn-iport-3.cisco.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2023 02:34:27 +0000 Received: from localhost.cisco.com ([10.193.101.253]) (authenticated bits=0) by rcdn-core-9.cisco.com (8.15.2/8.15.2) with ESMTPSA id 3AU2YA43007614 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 30 Nov 2023 02:34:26 GMT From: Karan Tilak Kumar To: sebaddel@cisco.com Cc: arulponn@cisco.com, djhawar@cisco.com, gcboffa@cisco.com, mkai2@cisco.com, satishkh@cisco.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Karan Tilak Kumar , Hannes Reinecke Subject: [PATCH v4 01/13] scsi: fnic: Modify definitions to sync with VIC firmware Date: Wed, 29 Nov 2023 18:33:50 -0800 Message-Id: <20231130023402.802282-2-kartilak@cisco.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231130023402.802282-1-kartilak@cisco.com> References: <20231130023402.802282-1-kartilak@cisco.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-User: kartilak@cisco.com X-Outbound-SMTP-Client: 10.193.101.253, [10.193.101.253] X-Outbound-Node: rcdn-core-9.cisco.com X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 29 Nov 2023 18:34:36 -0800 (PST) VIC firmware has updated definitions. Modify structure and definitions to sync with the latest VIC firmware. Reviewed-by: Sesidhar Baddela Reviewed-by: Arulprabhu Ponnusamy Reviewed-by: Hannes Reinecke Signed-off-by: Karan Tilak Kumar --- drivers/scsi/fnic/vnic_scsi.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/fnic/vnic_scsi.h b/drivers/scsi/fnic/vnic_scsi.h index 4e12f7b32d9d..f715f7942bfe 100644 --- a/drivers/scsi/fnic/vnic_scsi.h +++ b/drivers/scsi/fnic/vnic_scsi.h @@ -26,7 +26,7 @@ #define VNIC_FNIC_RATOV_MAX 255000 #define VNIC_FNIC_MAXDATAFIELDSIZE_MIN 256 -#define VNIC_FNIC_MAXDATAFIELDSIZE_MAX 2112 +#define VNIC_FNIC_MAXDATAFIELDSIZE_MAX 2048 #define VNIC_FNIC_FLOGI_RETRIES_MIN 0 #define VNIC_FNIC_FLOGI_RETRIES_MAX 0xffffffff @@ -55,7 +55,7 @@ #define VNIC_FNIC_PORT_DOWN_IO_RETRIES_MAX 255 #define VNIC_FNIC_LUNS_PER_TARGET_MIN 1 -#define VNIC_FNIC_LUNS_PER_TARGET_MAX 1024 +#define VNIC_FNIC_LUNS_PER_TARGET_MAX 4096 /* Device-specific region: scsi configuration */ struct vnic_fc_config { @@ -79,10 +79,19 @@ struct vnic_fc_config { u16 ra_tov; u16 intr_timer; u8 intr_timer_type; + u8 intr_mode; + u8 lun_queue_depth; + u8 io_timeout_retry; + u16 wq_copy_count; }; #define VFCF_FCP_SEQ_LVL_ERR 0x1 /* Enable FCP-2 Error Recovery */ #define VFCF_PERBI 0x2 /* persistent binding info available */ #define VFCF_FIP_CAPABLE 0x4 /* firmware can handle FIP */ +#define VFCF_FC_INITIATOR 0x20 /* FC Initiator Mode */ +#define VFCF_FC_TARGET 0x40 /* FC Target Mode */ +#define VFCF_FC_NVME_INITIATOR 0x80 /* FC-NVMe Initiator Mode */ +#define VFCF_FC_NVME_TARGET 0x100 /* FC-NVMe Target Mode */ + #endif /* _VNIC_SCSI_H_ */ -- 2.31.1