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:
97bf6af
)
nouveau: bring back legacy mmap handler
author
Dave Airlie
<
[email protected]
>
Tue, 16 Dec 2014 06:33:09 +0000
(16:33 +1000)
committer
Dave Airlie
<
[email protected]
>
Mon, 22 Dec 2014 22:11:43 +0000
(08:11 +1000)
nouveau userspace back at 1.0.1 used to call the X server
DRIOpenDRMMaster interface even for DRI2 (doh!), this attempts
to map the sarea and fails if it can't.
Since
884c6dabb0eafe7227f099c9e78e514191efaf13
from Daniel,
this fails, but only ancient drivers would see it.
Revert the nouveau bits of that fix.
Acked-by: Daniel Vetter <
[email protected]
>
Cc: <
[email protected]
> # 3.18
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/nouveau/nouveau_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_ttm.c
b/drivers/gpu/drm/nouveau/nouveau_ttm.c
index 753a6def61e7ce474d73b21b9affe84ae8b1a861..3d1cfcb96b6bfd9e7dfa50e282d6e3761009f7e1 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_ttm.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_ttm.c
@@
-28,6
+28,7
@@
#include "nouveau_ttm.h"
#include "nouveau_gem.h"
+#include "drm_legacy.h"
static int
nouveau_vram_manager_init(struct ttm_mem_type_manager *man, unsigned long psize)
{
@@
-281,7
+282,7
@@
nouveau_ttm_mmap(struct file *filp, struct vm_area_struct *vma)
struct nouveau_drm *drm = nouveau_drm(file_priv->minor->dev);
if (unlikely(vma->vm_pgoff < DRM_FILE_PAGE_OFFSET))
- return
-EINVAL
;
+ return
drm_legacy_mmap(filp, vma)
;
return ttm_bo_mmap(filp, vma, &drm->ttm.bdev);
}