From patchwork Mon Sep 2 09:54:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Burakov, Anatoly" X-Patchwork-Id: 143563 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B3F61458CD; Mon, 2 Sep 2024 11:58:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3570840DFD; Mon, 2 Sep 2024 11:55:50 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mails.dpdk.org (Postfix) with ESMTP id F2E284066A for ; Mon, 2 Sep 2024 11:55:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725270927; x=1756806927; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0whGVs7sWGUFBrDl6wbQUSByYdm0SOpKTqE4gXWzQu4=; b=PmnYSQfOlA6Tg32tzNeaLX34x4F635t1v1FPYwnSzVVwI//bP6SwBT8Z 4h9h/TWWIHtfyZvoVappCPDjWEC9SZPZ0f9Azlm/MABP3UHG5MkJrxV5J naAoTMEnc8PmN9/9i2eJdwMV8CjXgMOaGZ2Kku3gvz0e2ZfEnWI5gg29B xuVEAXzNqulqgyglzPivQrDrdS17KrbrNRXaRDudPZE5LS2oUFm6z4jwM dA7m+YxggCf7khvZAx29yuUf2CtbTY3ivsYpJNuFh9i9LfjMcoZcyC4uz qkee65aZR3hbI2J8YERBR/SSvka4AoXcri4dBTAwOFHhgBf29ERMCx9lF g==; X-CSE-ConnectionGUID: KFJeCKQyRaSYKbUxdToFBw== X-CSE-MsgGUID: rONhdgNAQw2HUkaK/5HtYg== X-IronPort-AV: E=McAfee;i="6700,10204,11182"; a="26747257" X-IronPort-AV: E=Sophos;i="6.10,195,1719903600"; d="scan'208";a="26747257" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2024 02:55:26 -0700 X-CSE-ConnectionGUID: SawRpSWHRRGCrbWtCP4Dqg== X-CSE-MsgGUID: yqTezTqsTt666GpoI5tWmQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,195,1719903600"; d="scan'208";a="64598021" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by fmviesa009.fm.intel.com with ESMTP; 02 Sep 2024 02:55:25 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: bruce.richardson@intel.com Subject: [PATCH v1 28/30] net/i40e/base: add trace buffer reading dependencies Date: Mon, 2 Sep 2024 10:54:40 +0100 Message-ID: <7e0c84da5f7caf5c91e97f036fed75cc80c43c37.1725270827.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Jedrzej Jagielski Some driver versions need to use "Read alternate - Indirect" command in order to get the content of trace buffer. This patch adds a couple of defines related to that functionality. Signed-off-by: Jedrzej Jagielski Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_type.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h index 2d5afb99dd..5d59446d96 100644 --- a/drivers/net/i40e/base/i40e_type.h +++ b/drivers/net/i40e/base/i40e_type.h @@ -1910,6 +1910,10 @@ struct i40e_lldp_variables { #define I40E_ALT_BW_RELATIVE_MASK 0x40000000 #define I40E_ALT_BW_VALID_MASK 0x80000000 +/* Alternate Ram Trace Buffer*/ +#define I40E_ALT_CANARY 0xABCDEFAB +#define I40E_ALT_BUFF_DWORD_SIZE 0x14 /* in dwords */ + /* RSS Hash Table Size */ #define I40E_PFQF_CTL_0_HASHLUTSIZE_512 0x00010000