From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 828C6A0561 for ; Thu, 18 Mar 2021 18:37:14 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0017C40698; Thu, 18 Mar 2021 18:37:13 +0100 (CET) Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by mails.dpdk.org (Postfix) with ESMTP id ABF914067C for ; Thu, 18 Mar 2021 18:37:12 +0100 (CET) Received: by mail-qv1-f54.google.com with SMTP id 30so3588545qva.9 for ; Thu, 18 Mar 2021 10:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atomicrules-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4PEex+9NsT1PJWcLe+/kjEa+XgDUT5Y3skR323ABv/E=; b=SimNCvfGGMdWy3hM66WetzRrBq+X75IQkU+9zOa5qxlZftnLbaw0ewNEypVm9MRclV jOnB/Z+BfGZ4C8XiW98KDiBqcCWAwVtTOrX+ju+6kZeDXaPgVmLeATyYr/zTgZCLGfeg PNCNKbjwYNwAijYvr5U+qhwmEW9MjDOnNDJ9fDMGl0+hvClmpu36vZiwhdfXaZehZ+AN uj9JnxuRcjFowK6JrivyUfg280YVUGpgJdH9/Vt32qjkv+/LHoQ5dG6jjrpnRVX+pj2I luXTo0HpajXFysqJFIDH859SbxCpOdIm2GcfUuUVAgYsNTM+6FbWzFCac0/8xV/JwhUA A0zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4PEex+9NsT1PJWcLe+/kjEa+XgDUT5Y3skR323ABv/E=; b=NdxldnujvabAAagaWmN9G1qhZQmR3ar5ai0Da0OMVxjNzx5w1oUG9chdnRRxdQty/2 rubHSEFzJqmENO2gybs2OpVtY36i1JmkAlqaT1ngl/YYd9JIe0jSE8yZizUAIKCnMEDt D0HBwhDlVgbsMoXunWTvjzxooFC+vnfXtRDJ3XqpgEv/pVKffWzIDWE2b8Kw0dhXRTTz V0klsiEotCXv+o0QBIf6avI60Yuf6hmk7j8ppDoOEo0tdLXO6RGqTUjMjVIQ720Eq1uN 23HHCg3ZaqmdjQ/0InJlBUBdvg+oE+/i9/vr4JWCinsWtKOo/+uRvDwbYzEi4koHdrWv lrUQ== X-Gm-Message-State: AOAM5301YX+94c/B2xljppQdDGbcWzsSKkF068XIgvKxRbZTmsj7iUxc +acNgi5WDjRFQ9MOJtyQCMeTIw== X-Google-Smtp-Source: ABdhPJzCOI5WsRTv+ZBnLjzselNIhWPxvnQsxXOPku1qq5Um/NA16DhXYnRTsX52CzKoB6yEo4tu+A== X-Received: by 2002:a0c:b410:: with SMTP id u16mr5526744qve.8.1616089031977; Thu, 18 Mar 2021 10:37:11 -0700 (PDT) Received: from z390.czeck.local (pool-72-74-133-40.bstnma.fios.verizon.net. [72.74.133.40]) by smtp.gmail.com with ESMTPSA id j1sm1931741qti.55.2021.03.18.10.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 10:37:11 -0700 (PDT) From: Ed Czeck To: dev@dpdk.org, ferruh.yigit@intel.com, bruce.richardson@intel.com Cc: shepard.siegel@atomicrules.com, john.miller@atomicrules.com, stable@dpdk.org Date: Thu, 18 Mar 2021 13:36:55 -0400 Message-Id: <20210318173700.15102-1-ed.czeck@atomicrules.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210304165637.24658-1-ed.czeck@atomicrules.com> References: <20210304165637.24658-1-ed.czeck@atomicrules.com> Subject: [dpdk-stable] [PATCH v5 1/6] net/ark: update pkt director initial state X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Fixes: b33ccdb17f55 ("net/ark: provide API for hardware modules MPU RQP and pktdir") Cc: stable@dpdk.org Signed-off-by: Ed Czeck --- drivers/net/ark/ark_ethdev.c | 1 + drivers/net/ark/ark_pktdir.c | 2 +- drivers/net/ark/ark_pktdir.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c index ef650a465..477e1de02 100644 --- a/drivers/net/ark/ark_ethdev.c +++ b/drivers/net/ark/ark_ethdev.c @@ -321,6 +321,7 @@ eth_ark_dev_init(struct rte_eth_dev *dev) ark->rqpacing = (struct ark_rqpace_t *)(ark->bar0 + ARK_RCPACING_BASE); ark->started = 0; + ark->pkt_dir_v = ARK_PKT_DIR_INIT_VAL; ARK_PMD_LOG(INFO, "Sys Ctrl Const = 0x%x HW Commit_ID: %08x\n", ark->sysctrl.t32[4], diff --git a/drivers/net/ark/ark_pktdir.c b/drivers/net/ark/ark_pktdir.c index 25e121831..dbfd2924b 100644 --- a/drivers/net/ark/ark_pktdir.c +++ b/drivers/net/ark/ark_pktdir.c @@ -22,7 +22,7 @@ ark_pktdir_init(void *base) return inst; } inst->regs = (struct ark_pkt_dir_regs *)base; - inst->regs->ctrl = 0x00110110; /* POR state */ + inst->regs->ctrl = ARK_PKT_DIR_INIT_VAL; /* POR state */ return inst; } diff --git a/drivers/net/ark/ark_pktdir.h b/drivers/net/ark/ark_pktdir.h index 4afd128f9..b5577cebb 100644 --- a/drivers/net/ark/ark_pktdir.h +++ b/drivers/net/ark/ark_pktdir.h @@ -7,7 +7,7 @@ #include -#define ARK_PKTDIR_BASE_ADR 0xa0000 +#define ARK_PKT_DIR_INIT_VAL 0x0110 typedef void *ark_pkt_dir_t; -- 2.17.1