]> git.baikalelectronics.ru Git - kernel.git/commit
gma500: handle poulsbo cursor restriction
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Mon, 21 May 2012 14:27:30 +0000 (15:27 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 22 May 2012 09:15:34 +0000 (10:15 +0100)
commit75b2a6c33dad7f7df38a23d4821c0c2d2605bc27
treed6cbf396d69caf53961e4c89b36cb359d51cc0f7
parenta438aab111f31638f4735f68b6ebe8f2f6e7bff3
gma500: handle poulsbo cursor restriction

Poulsbo needs a physical address in the cursor base register. We allocate a
stolen memory buffer and copy the cursor image provided by userspace into it.
When/If we get our own userspace driver we can map this stolen memory directly.
The patch also adds a mark in chip ops so we can identify devices that has this
requirement.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/cdv_device.c
drivers/gpu/drm/gma500/mdfld_device.c
drivers/gpu/drm/gma500/oaktrail_device.c
drivers/gpu/drm/gma500/psb_device.c
drivers/gpu/drm/gma500/psb_drv.h
drivers/gpu/drm/gma500/psb_intel_display.c
drivers/gpu/drm/gma500/psb_intel_drv.h