Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1337527rdh; Fri, 27 Oct 2023 11:03:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5+zkyKXsDKKpHAi5865OH3p/J33PEwyMmFf3XVj1jgcTnSbsbqhV6PBYqNU6T7yufE1KI X-Received: by 2002:a81:aa4a:0:b0:589:c065:b419 with SMTP id z10-20020a81aa4a000000b00589c065b419mr3860432ywk.34.1698429838531; Fri, 27 Oct 2023 11:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698429838; cv=none; d=google.com; s=arc-20160816; b=Z0nQKy4N5I88w82c5NVKdQgg5AuWLcdIO7v82xUpXAyYrCTxhCr03xJr6SofbG8Uwx oBwSRmO0cvXv5/L7mE3Mkjl9/g4h4p7ok6v+j5mNv6vuK4VwoVefp4gPtaT8Rr0S0nrv pClc3Co0pa2SDW01yH1ggBZLEvaznTUzs3sm855c6E4BppGAzUke9HAXpGAT4pOGOSNu /cOIBJNZT7Tbc/AeiYSc/SeCYAeEo8jTeKNWJLJIN7nJRoWPliU/3f9NCXWAz1MN+aLs z8cgef58M5izUkyI6An0K/78+Pi+ZG3QtK8xz05ZXl/6f4fFLLx4x5GWerURw2UmgsE2 vwog== 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=julGMfPSYmkTeN6PM6q+ZA6TGczlFan7XMby0BbmZXc=; fh=bKSAdOD9sjDLFpuVEw2QY/iOhn17PgYAzgX/PkCBS1w=; b=sUvnaLZGLC8LkTPC4WjcDm276kBtKsRtUGy1YKlndT0htu5GK6gewrzsmE/7+vZ1JB YsFfVB1wz740rGjxJ+9i3q+UbK5M8zqrdbRfWR9SnlCFVeXpymcqjQ4Caur8A5ZpEhfQ u8reU93Dy6RiSQCEGPa7Bm9MPZv8iKQdFV5+0J3qjGWHKWj1OoC6VyqH4+v3WaWOh39M 5xa2lPewSZD5jlW29jIVxZsMV8Voo+rA2ZJJtdLgG6m35z6OSpfa1GjTiR3Ej3Ru8AOk zn7jXnBRmBh+H52b0D2Cbi6crewjMfr4ZqLZY0gEF5xmLkfZRpiBEueXO6JfUxo+3pWI bl2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=jDWjJT2F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id t184-20020a815fc1000000b005ac61ae41c5si3358132ywb.227.2023.10.27.11.03.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 11:03:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=jDWjJT2F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 95EF982A8002; Fri, 27 Oct 2023 11:03:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232608AbjJ0SDd (ORCPT + 99 others); Fri, 27 Oct 2023 14:03:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbjJ0SD3 (ORCPT ); Fri, 27 Oct 2023 14:03:29 -0400 Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14659F4; Fri, 27 Oct 2023 11:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1929; q=dns/txt; s=iport; t=1698429807; x=1699639407; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bfN4RnDRd/wQBtbHZU4sV3kl2Zo449NxAVA6sUVHsHA=; b=jDWjJT2FxPLfbxF/kaM68Nfhp405IBl4FnfATC4+XOE1RWI2v/yYv99N PXUWytMjslA20tqKFPkvjbKoroK+24lAUhBJBVc2ATUU5zoQhT2YlcdDf dQa4jXZBXLXILuQiYOzopUqIWL8FGKfBve60Dn5Zm+0lHficpK5U9y/HD A=; X-CSE-ConnectionGUID: 4Mikn+5vR5qwsfm/TH5KCA== X-CSE-MsgGUID: YGTu7XepRTexKHPfGlcJ2w== X-IronPort-AV: E=Sophos;i="6.03,256,1694736000"; d="scan'208";a="179058432" Received: from rcdn-core-11.cisco.com ([173.37.93.147]) by alln-iport-2.cisco.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2023 18:03:24 +0000 Received: from localhost.cisco.com ([10.193.101.253]) (authenticated bits=0) by rcdn-core-11.cisco.com (8.15.2/8.15.2) with ESMTPSA id 39RI39Od029226 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 27 Oct 2023 18:03:23 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 Subject: [PATCH v2 01/13] scsi: fnic: Modify definitions to sync with VIC firmware Date: Fri, 27 Oct 2023 11:02:50 -0700 Message-Id: <20231027180302.418676-2-kartilak@cisco.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231027180302.418676-1-kartilak@cisco.com> References: <20231027180302.418676-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-11.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,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 27 Oct 2023 11:03:49 -0700 (PDT) VIC firmware has updated definitions. Modify structure and definitions to sync with the latest VIC firmware. Reviewed-by: Sesidhar Baddela Reviewed-by: Arulprabhu Ponnusamy 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