arch/x86: Make sure PCIE allocated IRTEs are tighten to irq/vector
As all interruption need to go through VT-D, calling vt-d remap will happen on lower level as seen next, so make sure all pcie related irq/vector get tighten to their respective allocated IRTE. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
84319db9fe
commit
fa34b135f5
1 changed files with 7 additions and 0 deletions
|
@ -244,6 +244,13 @@ uint8_t arch_pcie_msi_vectors_allocate(unsigned int priority,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INTEL_VTD_ICTL
|
||||
vtd_set_irte_vector(vtd, vectors[i].arch.irte,
|
||||
vectors[i].arch.vector);
|
||||
vtd_set_irte_irq(vtd, vectors[i].arch.irte,
|
||||
vectors[i].arch.irq);
|
||||
vtd_set_irte_msi(vtd, vectors[i].arch.irte, true);
|
||||
#endif
|
||||
prev_vector = vectors[i].arch.vector;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue