5.4.124-rc1 review
Subsystems (3)
Greg Kroah-Hartman
maintainerPATCH 166/177 net: ethernet: mtk_eth_soc: Fix packet statistics support for MT7628/88
In reply to Greg Kroah-HartmanFrom: Stefan Roese <[email protected]>
[ Upstream commit ad79fd2c42f7626bdf6935cd72134c2a5a59ff2d ]
The MT7628/88 SoC(s) have other (limited) packet counter registers than currently supported in the mtk_eth_soc driver. This patch adds support for reading these registers, so that the packet statistics are correctly updated.
Additionally the defines for the non-MT7628 variant packet counter registers are added and used in this patch instead of using hard coded values.
--- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 67 ++++++++++++++------- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 24 +++++++- 2 files changed, 66 insertions(+), 25 deletions(-)
drivers/net/ethernet/mediatek/mtk_eth_soc.c +44 -23
@@ -675,32 +675,53 @@ static int mtk_set_mac_address(struct net_device *dev, void *p)void mtk_stats_update_mac (struct mtk_mac *mac) {struct mtk_hw_stats *hw_stats = mac->hw_stats; -unsigned int base =MTK_GDM1_TX_GBCNT ; -u64 stats; - - base += hw_stats->reg_offset; +struct mtk_eth *eth = mac->hw;u64_stats_update_begin (&hw_stats->syncp); - hw_stats->rx_bytes +=mtk_r32 (mac->hw, base); - stats =mtk_r32 (mac->hw, base +0x04 ); -if (stats) - hw_stats->rx_bytes += (stats <<32 ); - hw_stats->rx_packets +=mtk_r32 (mac->hw, base +0x08 ); - hw_stats->rx_overflow +=mtk_r32 (mac->hw, base +0x10 ); - hw_stats->rx_fcs_errors +=mtk_r32 (mac->hw, base +0x14 ); - hw_stats->rx_short_errors +=mtk_r32 (mac->hw, base +0x18 ); - hw_stats->rx_long_errors +=mtk_r32 (mac->hw, base +0x1c ); - hw_stats->rx_checksum_errors +=mtk_r32 (mac->hw, base +0x20 ); - hw_stats->rx_flow_control_packets += -mtk_r32 (mac->hw, base +0x24 ); - hw_stats->tx_skip +=mtk_r32 (mac->hw, base +0x28 ); - hw_stats->tx_collisions +=mtk_r32 (mac->hw, base +0x2c ); - hw_stats->tx_bytes +=mtk_r32 (mac->hw, base +0x30 ); - stats =mtk_r32 (mac->hw, base +0x34 ); -if (stats) - hw_stats->tx_bytes += (stats <<32 ); - hw_stats->tx_packets +=mtk_r32 (mac->hw, base +0x38 ); +if (MTK_HAS_CAPS (eth->soc->caps,MTK_SOC_MT7628 )) { + hw_stats->tx_packets +=mtk_r32 (mac->hw,MT7628_SDM_TPCNT ); + hw_stats->tx_bytes +=mtk_r32 (mac->hw,MT7628_SDM_TBCNT ); + hw_stats->rx_packets +=mtk_r32 (mac->hw,MT7628_SDM_RPCNT ); + hw_stats->rx_bytes +=mtk_r32 (mac->hw,MT7628_SDM_RBCNT ); + hw_stats->rx_checksum_errors += +mtk_r32 (mac->hw,MT7628_SDM_CS_ERR ); + }else { +unsigned int offs = hw_stats->reg_offset; +u64 stats; + + hw_stats->rx_bytes +=mtk_r32 (mac->hw, +MTK_GDM1_RX_GBCNT_L + offs); + stats =mtk_r32 (mac->hw,MTK_GDM1_RX_GBCNT_H + offs); +if (stats) + hw_stats->rx_bytes += (stats <<32 ); + hw_stats->rx_packets += +mtk_r32 (mac->hw,MTK_GDM1_RX_GPCNT + offs); + hw_stats->rx_overflow += +mtk_r32 (mac->hw,MTK_GDM1_RX_OERCNT + offs); + hw_stats->rx_fcs_errors += +mtk_r32 (mac->hw,MTK_GDM1_RX_FERCNT + offs); + hw_stats->rx_short_errors += +mtk_r32 (mac->hw,MTK_GDM1_RX_SERCNT + offs); + hw_stats->rx_long_errors += +mtk_r32 (mac->hw,MTK_GDM1_RX_LENCNT + offs); + hw_stats->rx_checksum_errors += +mtk_r32 (mac->hw,MTK_GDM1_RX_CERCNT + offs); + hw_stats->rx_flow_control_packets += +mtk_r32 (mac->hw,MTK_GDM1_RX_FCCNT + offs); + hw_stats->tx_skip += +mtk_r32 (mac->hw,MTK_GDM1_TX_SKIPCNT + offs); + hw_stats->tx_collisions += +mtk_r32 (mac->hw,MTK_GDM1_TX_COLCNT + offs); + hw_stats->tx_bytes += +mtk_r32 (mac->hw,MTK_GDM1_TX_GBCNT_L + offs); + stats =mtk_r32 (mac->hw,MTK_GDM1_TX_GBCNT_H + offs); +if (stats) + hw_stats->tx_bytes += (stats <<32 ); + hw_stats->tx_packets += +mtk_r32 (mac->hw,MTK_GDM1_TX_GPCNT + offs); + } +u64_stats_update_end (&hw_stats->syncp); }
drivers/net/ethernet/mediatek/mtk_eth_soc.h +22 -2
@@ -264,8 +264,21 @@/* QDMA FQ Free Page Buffer Length Register */ #define MTK_QDMA_FQ_BLEN 0x1B2C -/* GMA1 Received Good Byte Count Register */ -#define MTK_GDM1_TX_GBCNT 0x2400 +/* GMA1 counter / statics register */ +#define MTK_GDM1_RX_GBCNT_L 0x2400 +#define MTK_GDM1_RX_GBCNT_H 0x2404 +#define MTK_GDM1_RX_GPCNT 0x2408 +#define MTK_GDM1_RX_OERCNT 0x2410 +#define MTK_GDM1_RX_FERCNT 0x2414 +#define MTK_GDM1_RX_SERCNT 0x2418 +#define MTK_GDM1_RX_LENCNT 0x241c +#define MTK_GDM1_RX_CERCNT 0x2420 +#define MTK_GDM1_RX_FCCNT 0x2424 +#define MTK_GDM1_TX_SKIPCNT 0x2428 +#define MTK_GDM1_TX_COLCNT 0x242c +#define MTK_GDM1_TX_GBCNT_L 0x2430 +#define MTK_GDM1_TX_GBCNT_H 0x2434 +#define MTK_GDM1_TX_GPCNT 0x2438#define MTK_STAT_OFFSET 0x40/* QDMA descriptor txd4 */
@@ -476,6 +489,13 @@#define MT7628_SDM_MAC_ADRL (MT7628_SDM_OFFSET + 0x0c)#define MT7628_SDM_MAC_ADRH (MT7628_SDM_OFFSET + 0x10) +/* Counter / stat register */ +#define MT7628_SDM_TPCNT (MT7628_SDM_OFFSET + 0x100) +#define MT7628_SDM_TBCNT (MT7628_SDM_OFFSET + 0x104) +#define MT7628_SDM_RPCNT (MT7628_SDM_OFFSET + 0x108) +#define MT7628_SDM_RBCNT (MT7628_SDM_OFFSET + 0x10c) +#define MT7628_SDM_CS_ERR (MT7628_SDM_OFFSET + 0x110) +struct mtk_rx_dma {unsigned int rxd1;unsigned int rxd2;
Signature · 1 line
2.30.2
Greg Kroah-Hartman
maintainerPATCH 168/177 MIPS: alchemy: xxs1500: add gpio-au1000.h header file
In reply to Greg Kroah-HartmanFrom: Randy Dunlap <[email protected]>
[ Upstream commit ff4cff962a7eedc73e54b5096693da7f86c61346 ]
board-xxs1500.c references 2 functions without declaring them, so add the header file to placate the build.
../arch/mips/alchemy/board-xxs1500.c: In function 'board_setup':../arch/mips/alchemy/board-xxs1500.c:56:2: error: implicit declaration of function 'alchemy_gpio1_input_enable' [-Werror=implicit-function-declaration]
56 | alchemy_gpio1_input_enable();../arch/mips/alchemy/board-xxs1500.c:57:2: error: implicit declaration of function 'alchemy_gpio2_enable'; did you mean 'alchemy_uart_enable'? [-Werror=implicit-function-declaration]
57 | alchemy_gpio2_enable();
--- arch/mips/alchemy/board-xxs1500.c | 1 + 1 file changed, 1 insertion(+)
arch/mips/alchemy/board-xxs1500.c +1 -0
@@ -18,6 +18,7 @@#include <asm/reboot.h> #include <asm/setup.h> #include <asm/mach-au1x00/au1000.h> +#include <asm/mach-au1x00/gpio-au1000.h> #include <prom.h> const char *get_system_type (void )
Signature · 1 line
2.30.2
Greg Kroah-Hartman
maintainerPATCH 159/177 ASoC: cs35l33: fix an error code in probe()
In reply to Greg Kroah-HartmanFrom: Dan Carpenter <[email protected]>
[ Upstream commit 833bc4cf9754643acc69b3c6b65988ca78df4460 ]
This error path returns zero (success) but it should return -EINVAL.
--- sound/soc/codecs/cs35l33.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/cs35l33.c +1 -0
@@ -1201,6 +1201,7 @@ static int cs35l33_i2c_probe(struct i2c_client *i2c_client,dev_err (&i2c_client->dev,"CS35L33 Device ID (%X). Expected ID %X\n" , devid,CS35L33_CHIP_ID ); + ret = -EINVAL ; goto err_enable; }
Signature · 1 line
2.30.2
Greg Kroah-Hartman
maintainerPATCH 70/177 NFSv4: Fix v4.0/v4.1 SEEK_DATA return -ENOTSUPP when set NFS_V4_2 config
In reply to Greg Kroah-HartmanFrom: Zhang Xiaoxu <[email protected]>
commit e67afa7ee4a59584d7253e45d7f63b9528819a13 upstream.
Since commit bdcc2cd14e4e ("NFSv4.2: handle NFS-specific llseek errors"), nfs42_proc_llseek would return -EOPNOTSUPP rather than -ENOTSUPP when SEEK_DATA on NFSv4.0/v4.1.
This will lead xfstests generic/285 not run on NFSv4.0/v4.1 when set the CONFIG_NFS_V4_2, rather than run failed.
--- fs/nfs/nfs4file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfs4file.c +1 -1
@@ -168,7 +168,7 @@ static loff_t nfs4_file_llseek(struct ficase SEEK_HOLE :case SEEK_DATA : ret =nfs42_proc_llseek (filep, offset, whence); -if (ret != -ENOTSUPP ) +if (ret != -EOPNOTSUPP )return ret;/* Fall through */ default :
Re: [PATCH 5.4 135/177] net: netcp: Fix an error message
In reply to Greg Kroah-HartmanLe 31/05/2021 à 15:14, Greg Kroah-Hartman a écrit :
Quoted 23 lines
From: Christophe JAILLET <[email protected]>
[ Upstream commit
ddb6e00f8413e885ff826e32521cff7924661de0]'ret' is known to be 0 here.
The expected error code is stored in 'tx_pipe->dma_queue', so use it instead.While at it, switch from %d to %pe which is more user friendly.
Fixes 84640e27f230 ("net: netcp: Add Keystone NetCP core ethernet driver")Signed-off-by Christophe JAILLET <[email protected]>Signed-off-by David S. Miller <[email protected]>Signed-off-by Sasha Levin <[email protected]>--- drivers/net/ethernet/ti/netcp_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/ti/netcp_core.c +0
-0
drivers/net/ethernet/ti/netcp_core.c int netcp_txpipe_open(struct netcp_tx_pipe *tx_pipe) · line 1357
Quoted 10 lines
drivers/net/ethernet/ti/netcp_core.c +2
-2@@ -1350,8 +1350,8 @@ int netcp_txpipe_open(struct netcp_tx_pipe *tx_pipe) tx_pipe->dma_queue =knav_queue_open (name, tx_pipe->dma_queue_id,KNAV_QUEUE_SHARED );if (IS_ERR (tx_pipe->dma_queue)) { -dev_err (dev,"Could not open DMA queue for channel \"%s\": %d\n" , - name, ret); +dev_err (dev,"Could not open DMA queue for channel \"%s\": %pe\n" , + name, tx_pipe->dma_queue); ret =PTR_ERR (tx_pipe->dma_queue); goto err; }
Hi,
Apparently %pe is only supported up to (including) 5.5. It is not part of 5.4.123.
So this patch should not be backported here or should be backported differently, ie:
leave dev_err as-is
move "ret = PTR_ERR(tx_pipe->dma_queue);" 1 line above
(or %pe should be backported first)
PS: adding Dan Carpenter because we had a small discussion about some potential backport issue when, using %pe
CJ
Sasha Levin
maintainerRe: [PATCH 5.4 135/177] net: netcp: Fix an error message
Quoted 39 lines · Marion & Christophe JAILLET
Le 31/05/2021 à 15:14, Greg Kroah-Hartman a écrit :
Quoted 23 lines
From: Christophe JAILLET <[email protected]>
[ Upstream commit
ddb6e00f8413e885ff826e32521cff7924661de0]'ret' is known to be 0 here.
The expected error code is stored in 'tx_pipe->dma_queue', so use it instead.While at it, switch from %d to %pe which is more user friendly.
Fixes 84640e27f230 ("net: netcp: Add Keystone NetCP core ethernet driver")Signed-off-by Christophe JAILLET <[email protected]>Signed-off-by David S. Miller <[email protected]>Signed-off-by Sasha Levin <[email protected]>--- drivers/net/ethernet/ti/netcp_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/ethernet/ti/netcp_core.c +0
-0drivers/net/ethernet/ti/netcp_core.c int netcp_txpipe_open(struct netcp_tx_pipe *tx_pipe) · line 1357
Quoted 10 lines
drivers/net/ethernet/ti/netcp_core.c +2
-2@@ -1350,8 +1350,8 @@ int netcp_txpipe_open(struct netcp_tx_pipe *tx_pipe) tx_pipe->dma_queue =knav_queue_open (name, tx_pipe->dma_queue_id,KNAV_QUEUE_SHARED );if (IS_ERR (tx_pipe->dma_queue)) { -dev_err (dev,"Could not open DMA queue for channel \"%s\": %d\n" , - name, ret); +dev_err (dev,"Could not open DMA queue for channel \"%s\": %pe\n" , + name, tx_pipe->dma_queue); ret =PTR_ERR (tx_pipe->dma_queue); goto err; }Hi,
Quoted 5 lines
Apparently %pe is only supported up to (including) 5.5. It is not part of 5.4.123.
So this patch should not be backported here or should be backported differently, ie:
leavedev_erras-is
move "ret =PTR_ERR(tx_pipe->dma_queue);" 1 line above
I'll fix it up the way you've described above. Thanks!
Signature · 2 lines
Thanks, Sasha
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.124 release. There are 177 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 02 Jun 2021 13:06:20 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 9 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.124-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
Tested on arm64 and x86 for 5.4.124-rc1,
Kernel repo:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
Branch: linux-5.4.y
Version: 5.4.124-rc1
Commit: 4142e74be32ee4ca40200301fcabfca32800f9c5
Compiler: gcc version 7.3.0 (GCC)
arm64:
--------------------------------------------------------------------
Testcase Result Summary:
total: 8897
passed: 8897
failed: 0
timeout: 0
--------------------------------------------------------------------
x86:
--------------------------------------------------------------------
Testcase Result Summary:
total: 8897
passed: 8897
failed: 0
timeout: 0
--------------------------------------------------------------------
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.124 release. There are 177 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 02 Jun 2021 13:06:20 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.124-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
On ARCH_BRCMSTB, using 32-bit and 64-bit ARM kernels:
Signature · 1 line
Florian
Re: [PATCH 5.4 135/177] net: netcp: Fix an error message
In reply to Sasha LevinQuoted 5 lines · Sasha Levin
Quoted 5 lines
Hi,
Apparently %pe is only supported up to (including) 5.5. It is not part of 5.4.123.
It seems like it would be easier to just back port the %pe commit to v5.4? It seems to apply and build basically fine? I didn't try test it. It's commit 57f5677e535b ("printf: add support for printing symbolic error names").
Rasmus, we were always wondering when you were going to make it work for integer error codes. ;)
regards,
dan carpenter
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.124 release. There are 177 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 02 Jun 2021 13:06:20 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.124-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.
## Build
* kernel: 5.4.124-rc1
* git: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
* git branch: linux-5.4.y
* git commit: 4142e74be32ee4ca40200301fcabfca32800f9c5
* git describe: v5.4.122-186-g4142e74be32e
* test details:
https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.4.y/build/v5.4.122-186-g4142e74be32e
## No regressions (compared to v5.4.122-8-g69500752c057)
## No fixes (compared to v5.4.122-8-g69500752c057)
## Test result summary
total: 70304, pass: 58035, fail: 849, skip: 10732, xfail: 688,
## Build Summary
* arc: 10 total, 10 passed, 0 failed
* arm: 192 total, 192 passed, 0 failed
* arm64: 26 total, 26 passed, 0 failed
* i386: 14 total, 14 passed, 0 failed
* mips: 45 total, 45 passed, 0 failed
* parisc: 9 total, 9 passed, 0 failed
* powerpc: 27 total, 27 passed, 0 failed
* riscv: 21 total, 21 passed, 0 failed
* s390: 9 total, 9 passed, 0 failed
* sh: 18 total, 18 passed, 0 failed
* sparc: 9 total, 9 passed, 0 failed
* x86_64: 26 total, 26 passed, 0 failed
## Test suites summary
* fwts
* igt-gpu-tools
* kselftest-android
* kselftest-breakpoints
* kselftest-capabilities
* kselftest-cgroup
* kselftest-clone3
* kselftest-core
* kselftest-cpu-hotplug
* kselftest-cpufreq
* kselftest-drivers
* kselftest-efivarfs
* kselftest-filesystems
* kselftest-firmware
* kselftest-fpu
* kselftest-futex
* kselftest-gpio
* kselftest-intel_pstate
* kselftest-ipc
* kselftest-ir
* kselftest-kcmp
* kselftest-kvm
* kselftest-lib
* kselftest-livepatch
* kselftest-lkdtm
* kselftest-membarrier
* kselftest-memfd
* kselftest-memory-hotplug
* kselftest-mincore
* kselftest-mount
* kselftest-mqueue
* kselftest-net
* kselftest-netfilter
* kselftest-nsfs
* kselftest-openat2
* kselftest-pid_namespace
* kselftest-pidfd
* kselftest-proc
* kselftest-pstore
* kselftest-ptrace
* kselftest-rseq
* kselftest-rtc
* kselftest-seccomp
* kselftest-sigaltstack
* kselftest-size
* kselftest-splice
* kselftest-static_keys
* kselftest-sync
* kselftest-sysctl
* kselftest-timens
* kselftest-timers
* kselftest-tmpfs
* kselftest-tpm2
* kselftest-user
* kselftest-vm
* kselftest-x86
* kselftest-zram
* kvm-unit-tests
* libhugetlbfs
* linux-log-parser
* ltp-cap_bounds-tests
* ltp-commands-tests
* ltp-containers-tests
* ltp-controllers-tests
* ltp-cpuhotplug-tests
* ltp-crypto-tests
* ltp-cve-tests
* ltp-dio-tests
* ltp-fcntl-locktests-tests
* ltp-filecaps-tests
* ltp-fs-tests
* ltp-fs_bind-tests
* ltp-fs_perms_simple-tests
* ltp-fsx-tests
* ltp-hugetlb-tests
* ltp-io-tests
* ltp-ipc-tests
* ltp-math-tests
* ltp-mm-tests
* ltp-nptl-tests
* ltp-open-posix-tests
* ltp-pty-tests
* ltp-sched-tests
* ltp-securebits-tests
* ltp-syscalls-tests
* ltp-tracing-tests
* network-basic-tests
* packetdrill
* perf
* rcutorture
* v4l2-compliance
--
Naresh Kamboju
https://lkft.linaro.org
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.124 release. There are 177 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 02 Jun 2021 13:06:20 +0000. Anything received after that time might be too late.
Build results:
total: 157 pass: 157 fail: 0 Qemu test results: total: 428 pass: 428 fail: 0
Guenter