nouveau: bring back legacy mmap handler
authorDave Airlie <airlied@redhat.com>
Tue, 16 Dec 2014 06:33:09 +0000 (16:33 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 22 Dec 2014 22:11:43 +0000 (08:11 +1000)
commit2036eaa74031b11028ee8fc1f44f128fdc871dda
tree56bc33a7b5fed78b78f7d3e3232cdb02316c7592
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
nouveau: bring back legacy mmap handler

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 <daniel.vetter@ffwll.ch>
Cc: <stable@vger.kernel.org> # 3.18
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_ttm.c