]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
gma500: Discard modes that don't fit in stolen memory
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Thu, 12 Jan 2012 14:40:12 +0000 (14:40 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Jan 2012 09:02:06 +0000 (09:02 +0000)
commit9f821c675a389cf4aab7f1dc8ee0860fba4f3204
tree5c4dde154e229e235da1d91624aba163d9c88cb6
parentafe887df1c3806da98d4edfeef7794d11eb0fe16
gma500: Discard modes that don't fit in stolen memory

[This fixes a crash on boot if the system is plugged into an HDTV so it's
 probably appropriate to push even though it didn't make the window. We could
 be cleverer about this but the simple version seems to be the safe one]

From: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>

At the moment we cannot allocate more than stolen memory size for framebuffers.
To get around that issues we discard modes that doesn't fit. This is a temporary
solution until we can freely allocate framebuffer memory.

[Currently the framebuffer needs to be linear in kernel space due to limits
 in the kernel fb layer - AC]

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/cdv_intel_crt.c
drivers/gpu/drm/gma500/cdv_intel_hdmi.c
drivers/gpu/drm/gma500/oaktrail_hdmi.c
drivers/gpu/drm/gma500/psb_intel_sdvo.c