Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282733
b: refs/heads/master
c: 36d7c53
h: refs/heads/master
i:
  282731: c5df1bc
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk authored and Dave Airlie committed Jan 6, 2012
1 parent e769808 commit 70e3d43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 3000bf393302a8c786e9ebfc778050cb0d6226c4
refs/heads/master: 36d7c537c3082a492ff851fb0da40ae3d7c5565d
7 changes: 5 additions & 2 deletions trunk/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ static void ttm_dma_pages_put(struct dma_pool *pool, struct list_head *d_pages,
{
struct dma_page *d_page, *tmp;

if (npages && set_pages_array_wb(pages, npages))
/* Don't set WB on WB page pool. */
if (npages && !(pool->type & IS_CACHED) &&
set_pages_array_wb(pages, npages))
pr_err(TTM_PFX "%s: Failed to set %d pages to wb!\n",
pool->dev_name, npages);

Expand All @@ -396,7 +398,8 @@ static void ttm_dma_pages_put(struct dma_pool *pool, struct list_head *d_pages,

static void ttm_dma_page_put(struct dma_pool *pool, struct dma_page *d_page)
{
if (set_pages_array_wb(&d_page->p, 1))
/* Don't set WB on WB page pool. */
if (!(pool->type & IS_CACHED) && set_pages_array_wb(&d_page->p, 1))
pr_err(TTM_PFX "%s: Failed to set %d pages to wb!\n",
pool->dev_name, 1);

Expand Down

0 comments on commit 70e3d43

Please sign in to comment.