|
@@ -803,6 +803,7 @@ static inline struct context_entry *iommu_context_addr(struct intel_iommu *iommu
|
|
struct context_entry *context;
|
|
struct context_entry *context;
|
|
u64 *entry;
|
|
u64 *entry;
|
|
|
|
|
|
|
|
+ entry = &root->lo;
|
|
if (ecs_enabled(iommu)) {
|
|
if (ecs_enabled(iommu)) {
|
|
if (devfn >= 0x80) {
|
|
if (devfn >= 0x80) {
|
|
devfn -= 0x80;
|
|
devfn -= 0x80;
|
|
@@ -810,7 +811,6 @@ static inline struct context_entry *iommu_context_addr(struct intel_iommu *iommu
|
|
}
|
|
}
|
|
devfn *= 2;
|
|
devfn *= 2;
|
|
}
|
|
}
|
|
- entry = &root->lo;
|
|
|
|
if (*entry & 1)
|
|
if (*entry & 1)
|
|
context = phys_to_virt(*entry & VTD_PAGE_MASK);
|
|
context = phys_to_virt(*entry & VTD_PAGE_MASK);
|
|
else {
|
|
else {
|