From patchwork Mon Dec 11 17:36:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Karan Tilak Kumar (kartilak)" X-Patchwork-Id: 176827 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7221657vqy; Mon, 11 Dec 2023 09:36:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwvCdH252Rfg71hg4KjPi1CLNv3vZo1JQI6/WLmoSqO63KqYTc8zaJRBz7C58PPBkeOosc X-Received: by 2002:a17:902:7c02:b0:1d0:b37b:a1f8 with SMTP id x2-20020a1709027c0200b001d0b37ba1f8mr2023122pll.28.1702316214588; Mon, 11 Dec 2023 09:36:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702316214; cv=none; d=google.com; s=arc-20160816; b=HkQuWzhYyR0fSE13y19e/Vzo4IS/v344qLV6iCN8XMtoUD8nZO3wZXwoV0RUrQcmXG GIU1G4dwpzc/efFP/hNoHHabE4r9yON+fGu5/tpwsYVSPZpXltyWjlrvuGzr+cotFV+L 3PyY3q9RpvKiu6r1A3iM7e6cEfna3ndq+AnYE6pUfSKIJqZRVf+expzqAQ3wnR5MKzv5 LIqFUH4rYIBF1O50sQlAnQQCbSNU1qZXUckVSpTVNj+ohen6UoTKfelwKIfsDAEGvPNb v/jr9mv/q4ObDVLLUte84PndxWPqX65rJcZkxOYC0ownWCGQna226QX/cMbd9gWKLYSJ WlnQ== 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=yzE+DScml8LXkmGF9PaK2gaBY0OaEYVQS56/1qEyoMixhx2UNdRLYdf3/m4HnI3v8K 1wvYtN+30/sfIkqVuxv25Sa1JeZuvqsHabANEBodN8PXzDy/qLLwg+t4jE53A+julxoK msRTYj6ml0Vu6C6v0bSoVngFd5wIA5+TBEnw6c4RC7p9SVsetWGMwlYnW9RAowVUR5Qd b9gDaV28IuXBWTa9lqjeTDcFwQ9Fvw3Lvf67ZbSzJUh3kJ6SB+emCejodTCFUw+51osi OJZc4oADljPJSE3Y3UE48uGBsqa8fzhZDoXhiIyjSDxeWE4FiHmnW9sALukiEd9e4cd2 wOqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=jVbu2q4p; 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id k129-20020a632487000000b005c627018c32si6219945pgk.431.2023.12.11.09.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 09:36:54 -0800 (PST) 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=jVbu2q4p; 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 75E2E809FEF8; Mon, 11 Dec 2023 09:36:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344759AbjLKRgk (ORCPT + 99 others); Mon, 11 Dec 2023 12:36:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344760AbjLKRgj (ORCPT ); Mon, 11 Dec 2023 12:36:39 -0500 Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D28EE3; Mon, 11 Dec 2023 09:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=1858; q=dns/txt; s=iport; t=1702316205; x=1703525805; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vKMcJbVI16nKTuw5jMpXehmO07rhNZFlAtgMRWXtmPU=; b=jVbu2q4pt8bhEdjroS5NGqxTh+YerN+q2jrP0jSQWFAdn+P0PFz8Ko2m F6knZSJsr7AcoThwsmErRC0eaj17DDiGnSSCJ02Y8JZq/2hM6MKib5Ikd TUiNUHNBlLya3dS9YxBGAq2eT+8gP8UJgZmLe5o4G3r9/ZQ1QtCWqWuZK k=; X-CSE-ConnectionGUID: FuROo1BXSzuMvbdqNAM/ig== X-CSE-MsgGUID: TCSA5oFaQTKCS4felmfuuw== X-IronPort-AV: E=Sophos;i="6.04,268,1695686400"; d="scan'208";a="193348164" Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by alln-iport-7.cisco.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2023 17:36:44 +0000 Received: from localhost.cisco.com ([10.193.101.253]) (authenticated bits=0) by rcdn-core-1.cisco.com (8.15.2/8.15.2) with ESMTPSA id 3BBHaKqt009547 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 11 Dec 2023 17:36:43 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 v6 01/13] scsi: fnic: Modify definitions to sync with VIC firmware Date: Mon, 11 Dec 2023 09:36:05 -0800 Message-Id: <20231211173617.932990-2-kartilak@cisco.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231211173617.932990-1-kartilak@cisco.com> References: <20231211173617.932990-1-kartilak@cisco.com> MIME-Version: 1.0 X-Authenticated-User: kartilak@cisco.com X-Outbound-SMTP-Client: 10.193.101.253, [10.193.101.253] X-Outbound-Node: rcdn-core-1.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 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]); Mon, 11 Dec 2023 09:36:49 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785007926719886911 X-GMAIL-MSGID: 1785007926719886911 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_ */