Skip to content

[PW_SID:1075354] PCI: Allow disabling port services on broken root ports#1699

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

[PW_SID:1075354] PCI: Allow disabling port services on broken root ports#1699
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1075354

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 1075354 applied to workflow__riscv__fixes

Name: PCI: Allow disabling port services on broken root ports
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1075354
Version: 1

RevySR added 2 commits March 31, 2026 18:58
Add PCI_DEV_FLAGS_NO_PORT_SERVICES to allow quirks to prevent the PCIe
port service driver from probing specific devices. This provides a
per-device equivalent of the global pcie_ports=compat kernel parameter.

Some platforms have PCIe root ports that break MSI delivery to downstream
devices when native port services (AER, PME, bwctrl, etc.) are active.
The existing pci_host_bridge native_* flags do not cover all services
(notably bwctrl), so a mechanism to skip port driver probing entirely
on a per-device basis is needed.

Cc: stable@vger.kernel.org
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
SG2042's PCIe root ports [1f1c:2042] fail to deliver MSI interrupts to
downstream devices when native port services are enabled. Devices under
an affected root port receive zero interrupts despite successful vector
allocation, causing driver timeouts (e.g. amdgpu fence fallback timer
expired on all rings).

Set PCI_DEV_FLAGS_NO_PORT_SERVICES on SG2042 root ports to prevent the
port service driver from probing, restoring correct MSI delivery.

Fixes: 1c72774 ("PCI: sg2042: Add Sophgo SG2042 PCIe driver")
Cc: stable@vger.kernel.org
Signed-off-by: Han Gao <gaohan@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: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 138.43 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1378.13 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1990.71 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.66 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 28.10 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.88 seconds
Result: WARNING
Output:

CHECK: No space is necessary after a cast
#47: FILE: include/linux/pci.h:257:
+	PCI_DEV_FLAGS_NO_PORT_SERVICES = (__force pci_dev_flags_t) (1 << 15),

WARNING: The commit message has 'stable@', perhaps it also needs a 'Fixes:' tag?

total: 0 errors, 1 warnings, 1 checks, 17 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Commit a35e809e9cf1 ("PCI: Add per-device flag to disable native PCIe port services") has style problems, please review.

NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 1 warnings, 1 checks, 17 lines checked
CHECK: No space is necessary after a cast
WARNING: The commit message has 'stable@', perhaps it also needs a 'Fixes:' tag?


@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 83.13 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
kdoc
Desc: Detects for kdoc errors
Duration: 0.87 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
module-param
Desc: Detect module_param changes
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] PCI: Add per-device flag to disable native PCIe port services"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 136.78 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1223.75 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1731.94 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.50 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 27.86 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.01 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 83.56 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
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 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
kdoc
Desc: Detects for kdoc errors
Duration: 0.88 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
module-param
Desc: Detect module_param changes
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] PCI: Add quirk to disable PCIe port services on Sophgo SG2042"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.51 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot deleted the pw1075354 branch March 31, 2026 23:37
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