Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156023
b: refs/heads/master
c: f121ecf
h: refs/heads/master
i:
  156021: 7504968
  156019: ae94422
  156015: 342782d
v: v3
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Jul 29, 2009
1 parent feb38c3 commit ac306d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73ba651fc246fcc3e446da4155e0425b4219d2c4
refs/heads/master: f121ecfebbea1452a17d57c656def7d1537440f7
14 changes: 10 additions & 4 deletions trunk/drivers/gpu/drm/ttm/ttm_tt.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,16 @@ void ttm_tt_cache_flush(struct page *pages[], unsigned long num_pages)
unsigned long i;

for (i = 0; i < num_pages; ++i) {
if (pages[i]) {
unsigned long start = (unsigned long)page_address(pages[i]);
flush_dcache_range(start, start + PAGE_SIZE);
}
struct page *page = pages[i];
void *page_virtual;

if (unlikely(page == NULL))
continue;

page_virtual = kmap_atomic(page, KM_USER0);
flush_dcache_range((unsigned long) page_virtual,
(unsigned long) page_virtual + PAGE_SIZE);
kunmap_atomic(page_virtual, KM_USER0);
}
#else
if (on_each_cpu(ttm_tt_ipi_handler, NULL, 1) != 0)
Expand Down

0 comments on commit ac306d3

Please sign in to comment.