Skip to content

Commit a46f310

Browse files
committed
i915/gtt: fix ordering issues with status setup and DMAR
This code was setting up the status page before setting the DMAR-is-on-bit, so we were getting DMAR errors on the status page. Reverse the two bits of init code to the correct result. Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 784fe39 commit a46f310

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/char/agp/intel-gtt.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,14 +688,14 @@ static int intel_gtt_init(void)
688688

689689
intel_private.base.stolen_size = intel_gtt_stolen_size();
690690

691+
intel_private.base.needs_dmar = USE_PCI_DMA_API && INTEL_GTT_GEN > 2;
692+
691693
ret = intel_gtt_setup_scratch_page();
692694
if (ret != 0) {
693695
intel_gtt_cleanup();
694696
return ret;
695697
}
696698

697-
intel_private.base.needs_dmar = USE_PCI_DMA_API && INTEL_GTT_GEN > 2;
698-
699699
return 0;
700700
}
701701

0 commit comments

Comments
 (0)