]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: Reject modes that are too big for VRAM
authorChristopher Harvey <charvey@matrox.com>
Tue, 26 Feb 2013 15:55:44 +0000 (10:55 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Mar 2013 22:31:31 +0000 (08:31 +1000)
commitdab1a67e19f63ef716f03497762317f701908b1e
treebaf14d4c84706e13ac7b4c683dd0de476e27443c
parent0f73d693cbda1fc0e6e9bfa0d73cee20342504fb
drm/mgag200: Reject modes that are too big for VRAM

A monitor or a user could request a resolution greater than the
available VRAM for the backing framebuffer. This change checks the
required framebuffer size against the max VRAM size and rejects modes
if they are too big. This change can also remove a mode request passed
in via the video= parameter.

Signed-off-by: Christopher Harvey <charvey@matrox.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mgag200/mgag200_mode.c