Skip to content

Commit

Permalink
intel-agp: Set dma mask for i915
Browse files Browse the repository at this point in the history
If DMAR is configured in but absent, we really do want to make sure that
the dma mask is set appropriately. Otherwise we get mapping failures on
highmem. Spotted by Zhenyu Wang.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Aug 5, 2009
1 parent 6a12235 commit ba3139f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/char/agp/intel-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,12 @@ static int intel_i915_configure(void)

intel_i9xx_setup_flush();

#ifdef USE_PCI_DMA_API
if (pci_set_dma_mask(intel_private.pcidev, DMA_BIT_MASK(36)))
dev_err(&intel_private.pcidev->dev,
"set gfx device dma mask 36bit failed!\n");
#endif

return 0;
}

Expand Down

0 comments on commit ba3139f

Please sign in to comment.