Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Test: smmu pmu and nvme conflict #30

Open
adamliyi opened this issue May 10, 2021 · 1 comment
Open

Test: smmu pmu and nvme conflict #30

adamliyi opened this issue May 10, 2021 · 1 comment

Comments

@adamliyi
Copy link
Collaborator

adamliyi commented May 10, 2021

If enable 'Smmu PMU' in BIOS, it may conflict with nvme, OS may fail to find rootfs on nvme disk.

Three patches are necessary to fix this issue:

  1. torvalds/linux@52f3fab - backported to 5.4.y (87957b2). It is already on 5.10.y branch(52f3fab0067d') - "iommu/arm-smmu-v3: Don't reserve implementation defined register space"
  2. AmpereComputing/ampere-centos-kernel---DEPRECATED@1164351: "perf/smmuv3: Allow sharing MMIO registers with the SMMU driver" (or: 779bed7502d9)
  3. b1d2d3dd016f3: "ACPI/IORT: Fix PMCG node single ID mapping handling"

Tests shows, without patch: 'perf/smmuv3: Allow sharing MMIO registers with the SMMU driver', kernel will NOT boot.
Without the other two patches, kernel can still boot.

Test steps:

1. Enable Smmu PMU in BIOS
2. Revert patch: https://github.com/AmpereComputing/ampere-lts-kernel/commit/779bed7502d9 in 5.4 kernel
3. Build&install kernel and reboot
4. OS boot into initrd emergency shell (there is no /dev/nvme* device nodes)
@adamliyi
Copy link
Collaborator Author

This test case is manual test. Test script will only check for the 3 patches exists, e.g:

wget https://github.com/AmpereComputing/ampere-lts-kernel/commit/779bed7502d9.patch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant