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 3093AA0567 for ; Tue, 9 Mar 2021 17:08:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 324714068A; Tue, 9 Mar 2021 17:08:29 +0100 (CET) Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by mails.dpdk.org (Postfix) with ESMTP id D17AA4068A for ; Tue, 9 Mar 2021 17:08:27 +0100 (CET) Received: by mail-qv1-f53.google.com with SMTP id dj14so6651298qvb.1 for ; Tue, 09 Mar 2021 08:08:27 -0800 (PST) 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=2BUr8rO3oU4a/nxUamftNfJLG+8Sv8RoU9/dA14EPWrXd95vyE6eyos1ABZ/6jFkmC rLsLrJZjj26xQ/85CO7jmfhgG/Y/gW28S2A4XYaBXSoLCOPMyfu7S0LW69agTmpymGid 78FK6ESw5v7XsbYtNw+Y30x2IWe7JMST4gi2go1WFT0plysqmMxFmNh6pGmYA3+ngvPo x3sV/4TJ/cDHz6QVWZekGfbVPr6WQVTcz5eJmxQa+BtIjd32uTBZo2ioi/BIbc5JmxnS V2gNsjDT1kH1MweR5VFZ9K9Yj8cMI8uGLQvwLQIplP+Rb0Zn17IVHd5qaihplpsuCrxt 5dgQ== 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=G2Ex3xgU4BXNlnZoL5BkBKJsIHb6cj1cZoajExXhQ86N5XxTzs8VPIQ0WjpMrQ/QHm G1u6stg725d8Jr6rg8ZnHcfhkQnS26ISJ31m7SwlhjCitGV0BMwGKPjvHO4aCmaz3jZn GksYuSh5yq3Ov6HdliqA1le37hjtpzZZVyfl20mr3V0F6aFiuKCmmHvRzz5uOufkQAkY iCr1ho5IzQcg3//ent46ZoeMeT5jqKbPLcgWTcHDgxuDxuljel27sKYpqyd6bDdYgS6m zah5D9/1NNBL249wyjIlQ2ulw9q73byVrHpTYgIR/ohPAN17nR5v12Mph/DjhxLJfwk4 SlfQ== X-Gm-Message-State: AOAM531FmThY6mHxAyFIJ97qEaRKF2cH2LHztdjl8cmy/aNcJLyCbyyG 6sflWuRGP1DcKLWEt2askoNMnw== X-Google-Smtp-Source: ABdhPJzeUCw122Ou5M4apJSRXIhQILP6ATdhC6R3eSrjg5r2k3rTwmi2rdGBtJCl1ADw0WQooSnepQ== X-Received: by 2002:ad4:4dc6:: with SMTP id cw6mr4460679qvb.31.1615306107186; Tue, 09 Mar 2021 08:08:27 -0800 (PST) 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 j24sm10376407qka.67.2021.03.09.08.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 08:08:26 -0800 (PST) From: Ed Czeck To: dev@dpdk.org, ferruh.yigit@intel.com Cc: shepard.siegel@atomicrules.com, john.miller@atomicrules.com, stable@dpdk.org Date: Tue, 9 Mar 2021 11:08:13 -0500 Message-Id: <20210309160818.3553-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 v4 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