-
Notifications
You must be signed in to change notification settings - Fork 103
[Deepin-Kernel-SIG] [linux 6.6-y] [Deepin] deepin: arm64: deepin_desktop_defconfig: remove IOMMU_DEFAULT_PASSTHR… #1336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: linux-6.6.y
Are you sure you want to change the base?
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR updates the ARM64 desktop defconfig to remove the default IOMMU passthrough setting, enforcing strict DMA isolation by default and aligning the ARM64 desktop kernel configuration with other architectures. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…OUGH to default deepin inclusion category: other Removed CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y from defconfig to enforce strict DMA isolation by default. This change aligns ARM64 desktop kernel configuration with other arch. The config also affect cix in link [1]. Note that may bring some affect in some phytium FT2000 or Kunpeng 920 device. Link: deepin-community#1335 Fixes: 7821b9fb89ca ("add deepin-community#880 config") Fixes: ce41a38 ("arm64: Add deepin_arm64_desktop_defconfig") Reported-by: Dylan.Wu" <[email protected]> Signed-off-by: Wentao Guan <[email protected]>
0c3f9d6 to
071876b
Compare
deepin pr auto review我来帮你分析这个内核配置文件的变更。
改进建议:
总的来说,这是一个很好的安全改进,虽然可能会有轻微的性能影响,但安全性收益远大于性能损失。建议实施这个变更,但需要进行充分的测试以确保系统稳定性。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y from the Deepin ARM64 desktop kernel configuration to enforce strict DMA isolation by default. The change aligns the Deepin ARM64 defconfig with standard kernel security practices and other architecture configurations. The PR description notes potential compatibility impacts on certain Phytium FT2000 and Kunpeng 920 devices.
- Removes IOMMU passthrough mode to enable stricter DMA isolation
- Aligns ARM64 desktop configuration with security best practices
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| CONFIG_QCOM_IPCC=m | ||
| CONFIG_IOMMU_IO_PGTABLE_ARMV7S=y | ||
| CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y | ||
| CONFIG_IOMMUFD=m |
Copilot
AI
Dec 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description mentions this change may affect 'cix' (referencing CIX_DSP_REMOTEPROC and related configs at lines 4074-4077) and certain hardware devices (Phytium FT2000, Kunpeng 920). Consider adding a code comment near the IOMMU configuration section documenting this deliberate removal and any known hardware compatibility considerations, especially since CONFIG_SMMU_BYPASS_DEV=y is still enabled at line 4062 which may provide an alternative bypass mechanism for affected devices.
| CONFIG_IOMMUFD=m | |
| CONFIG_IOMMUFD=m | |
| # NOTE: The following IOMMU (SMMU) configuration may affect 'cix' (see CIX_DSP_REMOTEPROC and related configs previously at lines 4074-4077) | |
| # and certain hardware devices (Phytium FT2000, Kunpeng 920). The deliberate removal of CIX_DSP_REMOTEPROC and related configs | |
| # may impact compatibility for these devices. However, CONFIG_SMMU_BYPASS_DEV=y is still enabled below, which may provide | |
| # an alternative bypass mechanism for affected devices. Please review hardware requirements before modifying these options. |
Cryolitia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Avenger-285714, Cryolitia The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
COMMIT_MSG: add #880 config DIFF: |
Well. Nice try — archiving’s not for everybody. If archiving were a sport, Uniontech/deepin would be on the bench. Thank Caicai. |
|
/lgtm |
…OUGH to default
#1335
deepin inclusion
category: other
Removed CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y from defconfig to enforce strict DMA isolation by default.
This change aligns ARM64 desktop kernel configuration with other arch.
The config also affect cix in link [1].
Note that may bring some affect in some phytium FT2000 or Kunpeng 920 device.
Link: #1335
Fixes: 7821b9fb89ca ("add #880 config")
Fixes: ce41a38 ("arm64: Add deepin_arm64_desktop_defconfig")
Summary by Sourcery
Align ARM64 Deepin desktop kernel configuration with stricter default DMA/IOMMU isolation.
Enhancements:
Build: