[for 26.04_linux-nvidia-bos]: NVIDIA: SAUCE: iommu/arm-smmu-v3: Use identity domain for ASPEED BMC devices#392
Closed
kobak2026 wants to merge 1 commit into
Conversation
Contributor
PR Validation ReportPatchscan ✅ No Missing FixesAll cherry-picked commits checked — no missing upstream fixes found. PR Lint ✅ All checks passedDetailsChecking 1 commits... Cherry-pick digest: ┌──────────────┬───────────────────────────────────────────────┬────────────┬─────────┬───────────────────────────┐ │ Local │ Referenced upstream / Patch subject │ Patch-ID │ Subject │ SoB chain │ ├──────────────┼───────────────────────────────────────────────┼────────────┼─────────┼───────────────────────────┤ │ 8c2d38a54cc6 │ [SAUCE] iommu/arm-smmu-v3: use identity domai │ N/A │ N/A │ kobak, kobak │ └──────────────┴───────────────────────────────────────────────┴────────────┴─────────┴───────────────────────────┘ Lint: all checks passed. |
Collaborator
|
If we're going to pick this from 6.17-HWE then I think we should wait for the the original patch to merged into 6.17. |
0a9f682 to
c180164
Compare
Collaborator
|
Instead of Use |
…devices ASPEED BMC devices behind an AST1150 PCIe-to-PCI bridge receive DMA from BMC firmware using host physical addresses that bypass the kernel's DMA API entirely. When these devices are assigned a DMA translated domain, the SMMU generates F_TRANSLATION faults because the BMC's physical addresses have no corresponding IOVA mappings in the SMMU page tables. Fix this by returning IOMMU_DOMAIN_IDENTITY for PCI devices whose parent bridge has both the PCI_BRIDGE_NO_ALIASES flag and an ASPEED vendor ID, so the SMMU passes BMC DMA transactions through untranslated. Signed-off-by: Koba Ko <kobak@nvidia.com> (backported from commit 738fff0 linux-nvidia-6.17) [koba: rename PCI_DEV_FLAGS_PCI_BRIDGE_NO_ALIASES -> PCI_DEV_FLAGS_PCI_BRIDGE_NO_ALIAS; Nirmoy's upstream AST1150 NO_ALIAS quirk in 7.0 uses the singular form (bit 14 in include/linux/pci.h) vs the plural form (bit 15) in 6.17-next] Signed-off-by: Koba Ko <kobak@nvidia.com>
c180164 to
8c2d38a
Compare
Collaborator
Author
thanks, done |
nvmochs
approved these changes
Apr 28, 2026
Collaborator
nvmochs
left a comment
There was a problem hiding this comment.
Acked-by: Matthew R. Ochs <mochs@nvidia.com>
clsotog
approved these changes
Apr 28, 2026
Collaborator
clsotog
left a comment
There was a problem hiding this comment.
Acked-by: Carol L Soto <csoto@nvidia.com>
Collaborator
|
Merged, closing PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #371 to
26.04_linux-nvidia-bos(kernel 7.0).Companion to #371 (
24.04_linux-nvidia-6.17-next).BugLink: 5918716
Backport delta vs PR #371
Single rename in
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c:PCI_DEV_FLAGS_PCI_BRIDGE_NO_ALIASES→PCI_DEV_FLAGS_PCI_BRIDGE_NO_ALIASThe flag was renamed between 6.17 and 7.0 (
include/linux/pci.hdeclaresit as bit 14 in 7.0 vs bit 15 in 6.17). The AST1150 NO_ALIAS quirk
(
drivers/pci/quirks.c:quirk_aspeed_pci_bridge_no_alias) is alreadypresent on this branch, so the
dev_flagscheck fires correctly.Sanity build
builds cleanly;
arm_smmu_def_domain_typeis present in the resultingobject.
Verification carried over from PR #371
iommu.passthrough=1Verified on Vera by Koba Ko and Carol Soto on 2026-04-15.
LP: https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2150470