Skip to content

[PW_SID:1061719] net: spacemit: A few error handling fixes#1556

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1061719
Closed

[PW_SID:1061719] net: spacemit: A few error handling fixes#1556
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1061719

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 1061719 applied to workflow__riscv__fixes

Name: net: spacemit: A few error handling fixes
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1061719
Version: 2

Even if we get a dma_mapping_error() while mapping an RX buffer, we
should still update rx_ring->head to ensure that the buffers we were
able to allocate and map are used. Fix this by breaking out to the
existing code after the loop, analogous to the existing handling for skb
allocation failure.

Fixes: bfec6d7 ("net: spacemit: Add K1 Ethernet MAC")
Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The DMA mappings were leaked on mapping error. Free them with the
existing emac_free_tx_buf() function.

Fixes: bfec6d7 ("net: spacemit: Add K1 Ethernet MAC")
Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 139.54 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1043.28 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1419.56 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.90 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 28.46 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.75 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 85.04 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
kdoc
Desc: Detects for kdoc errors
Duration: 0.95 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.33 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 140.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1050.85 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1424.04 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 27.66 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 28.66 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.76 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 83.91 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
kdoc
Desc: Detects for kdoc errors
Duration: 0.93 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot deleted the pw1061719 branch March 13, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants