Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1961631imm; Thu, 24 May 2018 03:39:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpRljcuXPoJg9wp1GE83JgooqpRO2AfzjRhwueB9mWi8xBIO+gyhFUbKOGWNnYwlRs6WZuW X-Received: by 2002:a17:902:28ab:: with SMTP id f40-v6mr6866311plb.208.1527158358303; Thu, 24 May 2018 03:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527158358; cv=none; d=google.com; s=arc-20160816; b=p4fh8U+mONuu3bZCY8gr+YFvGOvLhjvtkBR/wM8CThb1NXWPb62m9Y9CoexIDaNdTt qAgjNAkVG0qESAwJ/C12WHcQP3Dwuu+QBxKblnW5M2owUIdOdVh56r3h+1/APAm0piQT EX+XV2nGThRDiAuK+7O9UeGlFRF1wONq6VA4mRB6uCjKK55t10WJrPAlde1bVLTlB9u1 qXT1VA6xLQ6D8ePDlwPFZIH9gi926WSK4+EM8MEBmHg+v3bs2OEIhvEWo0+Gyr0tZqhF 99mo2NYKb1QWNCU9R2iXPJ90TXrPg8T3SYZzoZXUNhyeX7mwXIpF4VEjA49YmUK0WFt5 rl3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=jo/ea8/VIw1lW96y/oQXdct0KHE6kWJlsIocgAXg5v4=; b=Km/37tIanpm/r3KrfCjtaNyGfNM+DDRevcNnKuNmdsKZQIpG51DWLWlUmRbLTYyOhP /DGcQZPkEqcIMfs0s5elnZShZ8Fesgw4QB4Ymq0Jdxv/+98AqUH1aOhvRuBWklxXoQrc 14kfl0MluYUbq7F4b7JNo8kZX5XOa871q6HYDChdCa0YxCsMmYI1xeBFcCHueFACv82O sUOHPaHfB7nC5juqpn7UDnzdUYlUJ+LR5vjzt+HgXPbp5m8EOOq+zBpKzN7C3IP4b41o hRQX3W8uCjJHjXuD8unnH6xwpvFSc5t94XAimyKrlIxGfWw0j9zgHsIn1ogS3GpvYhAc PKvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kS2FxIl5; 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 c14-v6si3311240plo.359.2018.05.24.03.39.03; Thu, 24 May 2018 03:39:18 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=kS2FxIl5; 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 S1032219AbeEXKi0 (ORCPT + 99 others); Thu, 24 May 2018 06:38:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:40612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030777AbeEXJ7e (ORCPT ); Thu, 24 May 2018 05:59:34 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F65020899; Thu, 24 May 2018 09:59:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155973; bh=MS8n0VWdPtY3TT1+9pekKNlbDWjcp9zfd71frBwBA10=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kS2FxIl5N+9RQauG5Mwod/KU3hptGtLZkbnTD5KfYWMEFsYrSac+4B+EL9lVa3Btx 5Y0WGGDuRrfFFPlMQNk+SBz19FyiUbRd3UIxvetf97tvwUCTnte1VDL6pUKi6dzk3z ZBPntKjNCeCHca+RCKeBA8L/UvlN2I4FZYPtqxQg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rahul Lakkireddy , Ganesh Goudar , "David S. Miller" Subject: [PATCH 4.16 019/161] cxgb4: fix offset in collecting TX rate limit info Date: Thu, 24 May 2018 11:37:24 +0200 Message-Id: <20180524093020.661919414@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093018.331893860@linuxfoundation.org> References: <20180524093018.331893860@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rahul Lakkireddy [ Upstream commit d775f26b295a0a303f7a73d7da46e04296484fe7 ] Correct the indirect register offsets in collecting TX rate limit info in UP CIM logs. Also, T5 doesn't support these indirect register offsets, so remove them from collection logic. Fixes: be6e36d916b1 ("cxgb4: collect TX rate limit info in UP CIM logs") Signed-off-by: Rahul Lakkireddy Signed-off-by: Ganesh Goudar Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h | 28 +++++++--------------- 1 file changed, 9 insertions(+), 19 deletions(-) --- a/drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h @@ -419,15 +419,15 @@ static const u32 t6_up_cim_reg_array[][I {0x7b50, 0x7b54, 0x280, 0x20, 0}, /* up_cim_280_to_2fc */ {0x7b50, 0x7b54, 0x300, 0x20, 0}, /* up_cim_300_to_37c */ {0x7b50, 0x7b54, 0x380, 0x14, 0}, /* up_cim_380_to_3cc */ - {0x7b50, 0x7b54, 0x2900, 0x4, 0x4}, /* up_cim_2900_to_3d40 */ - {0x7b50, 0x7b54, 0x2904, 0x4, 0x4}, /* up_cim_2904_to_3d44 */ - {0x7b50, 0x7b54, 0x2908, 0x4, 0x4}, /* up_cim_2908_to_3d48 */ - {0x7b50, 0x7b54, 0x2910, 0x4, 0x4}, /* up_cim_2910_to_3d4c */ - {0x7b50, 0x7b54, 0x2914, 0x4, 0x4}, /* up_cim_2914_to_3d50 */ - {0x7b50, 0x7b54, 0x2920, 0x10, 0x10}, /* up_cim_2920_to_2a10 */ - {0x7b50, 0x7b54, 0x2924, 0x10, 0x10}, /* up_cim_2924_to_2a14 */ - {0x7b50, 0x7b54, 0x2928, 0x10, 0x10}, /* up_cim_2928_to_2a18 */ - {0x7b50, 0x7b54, 0x292c, 0x10, 0x10}, /* up_cim_292c_to_2a1c */ + {0x7b50, 0x7b54, 0x4900, 0x4, 0x4}, /* up_cim_4900_to_4c60 */ + {0x7b50, 0x7b54, 0x4904, 0x4, 0x4}, /* up_cim_4904_to_4c64 */ + {0x7b50, 0x7b54, 0x4908, 0x4, 0x4}, /* up_cim_4908_to_4c68 */ + {0x7b50, 0x7b54, 0x4910, 0x4, 0x4}, /* up_cim_4910_to_4c70 */ + {0x7b50, 0x7b54, 0x4914, 0x4, 0x4}, /* up_cim_4914_to_4c74 */ + {0x7b50, 0x7b54, 0x4920, 0x10, 0x10}, /* up_cim_4920_to_4a10 */ + {0x7b50, 0x7b54, 0x4924, 0x10, 0x10}, /* up_cim_4924_to_4a14 */ + {0x7b50, 0x7b54, 0x4928, 0x10, 0x10}, /* up_cim_4928_to_4a18 */ + {0x7b50, 0x7b54, 0x492c, 0x10, 0x10}, /* up_cim_492c_to_4a1c */ }; static const u32 t5_up_cim_reg_array[][IREG_NUM_ELEM + 1] = { @@ -444,16 +444,6 @@ static const u32 t5_up_cim_reg_array[][I {0x7b50, 0x7b54, 0x280, 0x20, 0}, /* up_cim_280_to_2fc */ {0x7b50, 0x7b54, 0x300, 0x20, 0}, /* up_cim_300_to_37c */ {0x7b50, 0x7b54, 0x380, 0x14, 0}, /* up_cim_380_to_3cc */ - {0x7b50, 0x7b54, 0x2900, 0x4, 0x4}, /* up_cim_2900_to_3d40 */ - {0x7b50, 0x7b54, 0x2904, 0x4, 0x4}, /* up_cim_2904_to_3d44 */ - {0x7b50, 0x7b54, 0x2908, 0x4, 0x4}, /* up_cim_2908_to_3d48 */ - {0x7b50, 0x7b54, 0x2910, 0x4, 0x4}, /* up_cim_2910_to_3d4c */ - {0x7b50, 0x7b54, 0x2914, 0x4, 0x4}, /* up_cim_2914_to_3d50 */ - {0x7b50, 0x7b54, 0x2918, 0x4, 0x4}, /* up_cim_2918_to_3d54 */ - {0x7b50, 0x7b54, 0x291c, 0x4, 0x4}, /* up_cim_291c_to_3d58 */ - {0x7b50, 0x7b54, 0x2924, 0x10, 0x10}, /* up_cim_2924_to_2914 */ - {0x7b50, 0x7b54, 0x2928, 0x10, 0x10}, /* up_cim_2928_to_2a18 */ - {0x7b50, 0x7b54, 0x292c, 0x10, 0x10}, /* up_cim_292c_to_2a1c */ }; static const u32 t6_hma_ireg_array[][IREG_NUM_ELEM] = {