Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp271278imu; Fri, 14 Dec 2018 19:19:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/WwHpmfgwPpeIJzjMDDxOA9NRmEh9c9GNCoGBXO8hBmA9anOhb9lTsCmbPKtlMYomVZZv+J X-Received: by 2002:a63:85c6:: with SMTP id u189mr4752060pgd.156.1544843980999; Fri, 14 Dec 2018 19:19:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544843980; cv=none; d=google.com; s=arc-20160816; b=IQjKdQuZH0D9EQMr1qDXLh2CJVrMjatz2mXUFcLDZWJbNKzj/hwdha0EQVQTOb+h+M LcKRSsygkIf8kq3NOYbLNe0omc5DPgFerwMsKrfEx3SBeHitDmA7AdxjK2zNAw8Uqde2 XvyyOA/Kd0MyIfg/1hg+VGIPKi+BrpAUWLC+P92AFZWZJQc3cFqLeuS/VMd590hwsLMd SqHzwQeyb6BB1awIqGSjgToief71YoMKo3uNtPzSmIzrlxHhu1jHCmGxshvuvL1ktiwC v5i7aCkiQ2XxIIeFz9P3nCd3hhcoIoTMGyAwUNZZxbBk/w3WjDO5n01UEA5dMZWZ9cwN dhug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=7PmyZPBfStfhryC4VMqSTgaHdaCVTVSiPjWbbwnuYjI=; b=XvzRgzV4gUrv6JSvmClhcHlgEncUNxIviTxZeIvTR15e/dEPfEAdKPbSCedpfmAHVo TPV4+QQNg0ZDODuuJBRS2FecNhCsOOOoVJ01bbitXKvEH9QSNqbeYQxwGopuECuGrgpI lnlS6fL9pETj5NgBsXa+d/NxZDCPkQxAWWNXZg8AxMQFvVz/ZqRjcW0BcS/+sBHItFKi t8bSGxSy6Pf3yELaN7afEvNcCc4HSSGH/UIYbrqP+JmmnN3chZ3vvOPEvPwCouSYvnmt T2EXN+dp3NMAITLrSJSaACcLri4PfzOZXM803J//OArurLW6bkzz+bzl5a+h4Kg/Iegy ygxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si5524235pgr.396.2018.12.14.19.19.09; Fri, 14 Dec 2018 19:19:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730198AbeLODRf (ORCPT + 99 others); Fri, 14 Dec 2018 22:17:35 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:16132 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728881AbeLODRd (ORCPT ); Fri, 14 Dec 2018 22:17:33 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id E8CDE31D07556; Sat, 15 Dec 2018 11:17:29 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.408.0; Sat, 15 Dec 2018 11:17:22 +0800 From: Peng Li To: CC: , , , , , Subject: [Patch net 01/10] net: hns: Incorrect offset address used for some registers. Date: Sat, 15 Dec 2018 11:53:20 +0800 Message-ID: <1544846009-50276-2-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1544846009-50276-1-git-send-email-lipeng321@huawei.com> References: <1544846009-50276-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yonglong Liu According to the hip06 Datasheet: 1. The offset of INGRESS_SW_VLAN_TAG_DISC should be 0x1A00+4*all_chn_num 2. The offset of INGRESS_IN_DATA_STP_DISC should be 0x1A50+4*all_chn_num Signed-off-by: Yonglong Liu Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c index e557a4e..dc9215a 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c @@ -2166,9 +2166,9 @@ void hns_dsaf_update_stats(struct dsaf_device *dsaf_dev, u32 node_num) DSAF_INODE_LOCAL_ADDR_FALSE_NUM_0_REG + 0x80 * (u64)node_num); hw_stats->vlan_drop += dsaf_read_dev(dsaf_dev, - DSAF_INODE_SW_VLAN_TAG_DISC_0_REG + 0x80 * (u64)node_num); + DSAF_INODE_SW_VLAN_TAG_DISC_0_REG + 4 * (u64)node_num); hw_stats->stp_drop += dsaf_read_dev(dsaf_dev, - DSAF_INODE_IN_DATA_STP_DISC_0_REG + 0x80 * (u64)node_num); + DSAF_INODE_IN_DATA_STP_DISC_0_REG + 4 * (u64)node_num); /* pfc pause frame statistics stored in dsaf inode*/ if ((node_num < DSAF_SERVICE_NW_NUM) && !is_ver1) { -- 1.9.1