[PATCH] drm/ttm: Don't clear page metadata of imported sg pages (original) (raw)
Jakob Bornecrantz jakob at vmware.com
Wed Feb 5 06:37:25 PST 2014
- Previous message: [PATCH] drm/ttm: Don't clear page metadata of imported sg pages
- Next message: [Bug 69901] intel ivy bridge/radeonsi PRIME hang since 3.14
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
----- Ursprungligt meddelande -----
These page pointers shouldn't be visible to TTM in the first place, but until we fix that up, don't clear the page metadata because that will upset the exporter.
Reported-by: Cristoph Haag <haagch.christoph at googleemail.com> Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com> --- drivers/gpu/drm/ttm/ttmtt.c | 3 +++ 1 file changed, 3 insertions(+)
Reviewed-by: Jakob Bornecrantz <jakob at vmware.com>
diff --git a/drivers/gpu/drm/ttm/ttmtt.c b/drivers/gpu/drm/ttm/ttmtt.c index 9af9908..75f3190 100644 --- a/drivers/gpu/drm/ttm/ttmtt.c +++ b/drivers/gpu/drm/ttm/ttmtt.c @@ -380,6 +380,9 @@ static void ttmttclearmapping(struct ttmtt *ttm) pgofft i; struct page **page = ttm->pages; + if (ttm->pageflags & TTMPAGEFLAGSG) + return; + for (i = 0; i < ttm->numpages; ++i) { (*page)->mapping = NULL; (*page++)->index = 0; -- 1.7.10.4
- Previous message: [PATCH] drm/ttm: Don't clear page metadata of imported sg pages
- Next message: [Bug 69901] intel ivy bridge/radeonsi PRIME hang since 3.14
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]