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 0098DA0561 for ; Thu, 4 Mar 2021 17:54:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C44CE40147; Thu, 4 Mar 2021 17:54:34 +0100 (CET) Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by mails.dpdk.org (Postfix) with ESMTP id 9C3C840147 for ; Thu, 4 Mar 2021 17:54:33 +0100 (CET) Received: by mail-qk1-f176.google.com with SMTP id z190so28460453qka.9 for ; Thu, 04 Mar 2021 08:54:33 -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; bh=4PEex+9NsT1PJWcLe+/kjEa+XgDUT5Y3skR323ABv/E=; b=GUJzx7Rkrw4P5sulnOxL6sf2CrWejbp/Irg5ZipdQfbHJTc2VoZKIttHyP50rAkZN+ 5dPDnvdT26QUYinSQORU76lyZahasaOdF4Oh4FteubX1pBfksFwCE+wJBh+CHq1TjQwz oC3cb3/CZANRcto8yJtu4Ur/B7kKhD/LzN5nNeovMsK3MUyvCIzvNp+wO72zki1XyZXO LiwakiOR8eOz4y5EY4Ev8JFxSd3hTUn75FouzaCVCtxR5T+J5ymLEc7UMN7ZmoupZ/Ll SYvQmP1+EIaAC4IbyS6g1ysGUrhXFHqAiXm2q/Zp2/0if17ebY8ms7J6mahVlbx3EYb+ t4kw== 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; bh=4PEex+9NsT1PJWcLe+/kjEa+XgDUT5Y3skR323ABv/E=; b=YKH32Iism2pF4tU6GVHTKgxkjpY6KBV74e7wWBkQ8yVGOWBDrBscJvQA4aYUSrMtNf mMh0t0dKKqdOs+lvDIfSfKdIWUy6BSdVw7DjFkGpgWp4WuuFxutAphRSvQ/u6hjdubjo At8dqmzIkXM5gpbOFuKorzxTwnMwLLxVhdtMBrJluBfXXQ7flCTgHayGyP68o4ndpZ0L HWrMsvD3JvTQl1wNAxBatM5vpXEm4Sglvhi/r6ROxyZgchUWY6GJaCQ6w8TT9qktzYi6 vzWC5W75rNYyB1KEcpfdQhmsJkLauNc5WyFi7Pk19pdrHza+uHFdAljWH5+GPpQIj7TU B2tA== X-Gm-Message-State: AOAM533bT1uAq6LMCY8oXCcqHOsPSRjTurd8S+Kat9l1vTJIT0MqlQGf xpeyl0vuDXZMhsdvxbRij4CGag== X-Google-Smtp-Source: ABdhPJz7UyTuCi0Xx5nkTvoRr9iOx51nmO5GJrFV17WclMxmCxYl0h2OGEyy/H74VvSjEGUoaSCJ5Q== X-Received: by 2002:a37:a715:: with SMTP id q21mr4734790qke.309.1614876872642; Thu, 04 Mar 2021 08:54:32 -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 d16sm19246451qka.43.2021.03.04.08.54.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 08:54:32 -0800 (PST) From: Ed Czeck To: czeck@ieee.org Cc: stable@dpdk.org Date: Thu, 4 Mar 2021 11:54:20 -0500 Message-Id: <20210304165424.24159-1-ed.czeck@atomicrules.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-stable] [PATCH v1 1/5] 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