Turn on Intel and AMD IOMMU support and interrupt remapping #146
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.
Signed-off-by: Pooja Trivedi [email protected]
Description
X2APIC (Intel's Advanced Programmable Interrupt Controller) hardware improves efficiency in multiprocessor systems. If interrupt mapping is not enabled on the kernel (via CONFIG_IRQ_REMAP kernel config option), X2APIC is automatically disabled as indicated by a somewhat misleading error message on kernel console:
What it says: IRQ remapping doesn't support X2APIC mode, disable x2apic.
What it actually means: IRQ remapping isn't enabled, so x2APIC was disabled.
The solution is to turn on IRQ remapping. When turning on irq remapping via menuconfig, the changes seen in the PR are made in the kernel config.
Why is this needed
When testing on Lenovo SR950 server, Hook kernel panics with the following call trace:
A Hook built with irq remapping support works successfully. Ubuntu, Oracle Linux etc. have the option turned on.
Fixes: #
How Has This Been Tested?
How are existing users impacted? What migration steps/scripts do we need?
Checklist:
I have: