projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b48bdd9
)
drm/radeon: remove extra TT unpopulated check
author
Christian König
<
[email protected]
>
Thu, 1 Feb 2018 13:41:37 +0000
(14:41 +0100)
committer
Alex Deucher
<
[email protected]
>
Mon, 19 Feb 2018 19:19:53 +0000
(14:19 -0500)
The subsystem should check that, not the driver.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Roger He <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/radeon/radeon_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_ttm.c
b/drivers/gpu/drm/radeon/radeon_ttm.c
index c1e3862a48a4a9fbe860947fdc463b07ad603e75..c50620aadbd0a327269fb5a6ac5660b93fa12771 100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_ttm.c
+++ b/
drivers/gpu/drm/radeon/radeon_ttm.c
@@
-728,9
+728,6
@@
static int radeon_ttm_tt_populate(struct ttm_tt *ttm,
struct radeon_device *rdev;
bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG);
- if (ttm->state != tt_unpopulated)
- return 0;
-
if (gtt && gtt->userptr) {
ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
if (!ttm->sg)