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 B1309A0561; Thu, 4 Mar 2021 21:33:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 00A9040693; Thu, 4 Mar 2021 21:33:32 +0100 (CET) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by mails.dpdk.org (Postfix) with ESMTP id CDB9140147 for ; Thu, 4 Mar 2021 21:33:30 +0100 (CET) Received: by mail-qk1-f173.google.com with SMTP id x10so3719659qkm.8 for ; Thu, 04 Mar 2021 12:33:30 -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=TdleHwS+gZnD0yvDHCj20jEoQKIqra89Rt0WXe3Xut5xqHNIvy5Iom4VNdC2xfdPC9 ICR+XhDYR4h7jVd3bvQd8Gm3qxertht5Q88bMx0ADnSGeIidz455OSJPilctuDocAXx1 fllREmTO/tTR3KcCzhotitXwdno7DkFzu1+N1MZnr6fKlDCsKnnoEhvwGGVD6IThxONE 2WLXJXaRRYQnHwZcf8fKJY9NOR43MwL/u3YWJdGeaEI8D64kjGIet4EfqZadAyP+ih/W Mau/jJG+Dt6A4svRO7ppTZCKucwTBkbLWMX2VLI4SuKYdKu1dqb3LiGqTixncFoYcF0c KtrQ== 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=CJNIajFg9+6Smlpbz5dEVILhcEZiKsL5Ev3Gi3kNnJFYBx6dQiS9PRmOfzdn1iPhRv 9pqgG5HCIkWPVUPzEX9j6skknuuS97aYLYfAyEHoQfAsBQHKW3f0491nQg63ca0Z55NE UQ2TnfXdAMyjB/ad9QW0w6co2NCrG7jBin63xme2+JmKeaL4DMq1Ww0RMdAsZ+q1ui58 UeZXMsbodbfrk7ExyKhPoAMvoplAJSjm/cLhxcmx0VUAqNw26jKFLq/BZq9eSBZrvo8+ pWFssQP17WVxJGFWRGBSgklTpsIWAYY6tYiOnHnG/GB99k2d7f8jZsnESiWvuAJ/NYA8 +lYA== X-Gm-Message-State: AOAM5310Dq9sWypX2R+tW8TWXYU0HKWn4uB0eLBBo2STmfInUS8nfxhr lGWr1iiVxlOX6PeM2h8JCHcUUFMXj3wILw== X-Google-Smtp-Source: ABdhPJz11UdS5NUrXYkS/mZfuqORWUqVcWcGZ8QFiELqY5tAyrm8/xrnlu8Ny5sxQocK8Zu11NLHzA== X-Received: by 2002:a05:620a:134a:: with SMTP id c10mr5693276qkl.481.1614890009866; Thu, 04 Mar 2021 12:33:29 -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 b65sm250710qkd.120.2021.03.04.12.33.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 12:33:29 -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: Thu, 4 Mar 2021 15:33:17 -0500 Message-Id: <20210304203321.6154-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-dev] [PATCH v2 1/5] net/ark: update pkt director initial state 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 Sender: "dev" 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