Skip to content

Commit

Permalink
agp/intel: Make intel_i965_mask_memory use dma_addr_t for physical ad…
Browse files Browse the repository at this point in the history
…dresses

Otherwise, the high bits to be stuffed in the unused lower bits of the
page address are lost.

Signed-off-by: Pierre Willenbrock <pierre@pirsoft.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Pierre Willenbrock authored and Dave Airlie committed Jun 20, 2009
1 parent a95fe46 commit 0b7af26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/agp/intel-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ static int intel_i915_create_gatt_table(struct agp_bridge_data *bridge)
static unsigned long intel_i965_mask_memory(struct agp_bridge_data *bridge,
struct page *page, int type)
{
unsigned long addr = phys_to_gart(page_to_phys(page));
dma_addr_t addr = phys_to_gart(page_to_phys(page));
/* Shift high bits down */
addr |= (addr >> 28) & 0xf0;

Expand Down

0 comments on commit 0b7af26

Please sign in to comment.