Commit 5eac5494 authored by Raju Rangoju's avatar Raju Rangoju Committed by sanglipeng
Browse files

amd-xgbe: TX Flow Ctrl Registers are h/w ver dependent

stable inclusion
from stable-v5.10.166
commit a65a8727a2fe606036933222313c775964de6e92
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I87FRA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a65a8727a2fe606036933222313c775964de6e92



--------------------------------

[ Upstream commit 579923d8 ]

There is difference in the TX Flow Control registers (TFCR) between the
revisions of the hardware. The older revisions of hardware used to have
single register per queue. Whereas, the newer revision of hardware (from
ver 30H onwards) have one register per priority.

Update the driver to use the TFCR based on the reported version of the
hardware.

Fixes: c5aa9e3b ("amd-xgbe: Initial AMD 10GbE platform driver")
Co-developed-by: default avatarAjith Nayak <Ajith.Nayak@amd.com>
Signed-off-by: default avatarAjith Nayak <Ajith.Nayak@amd.com>
Signed-off-by: default avatarRaju Rangoju <Raju.Rangoju@amd.com>
Acked-by: default avatarShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent e1ea1642
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment