linux_old1/drivers/gpu/drm/cirrus
Takashi Iwai 7f551b1eee drm/cirrus: Limit modes depending on bpp option
The commit [8975626ea35a: drm/cirrus: allow 32bpp framebuffers for
cirrus drm] broke X modesetting driver because cirrus driver still
provides the full list of modes up to 1280x1024 while the 32bpp can
support only up to 800x600.

We might be able to filter out the invalid modes in mode_valid
callback, but unfortunately the bpp in question can't be referred
there for now (let me know if there is a better way to retrieve the
bpp for the probed fb).

So, instead, this patch adds the bpp module option to specify the
maximal bpp explicitly and limits the resolutions in get_modes
depending on its value.

The default value is set to 24 so that the existing stuff keeps
working.  If you need a new 32bpp feature, specify cirrus.bpp=32
option explicitly.

Fixes: 8975626ea3 ('drm/cirrus: allow 32bpp framebuffers for cirrus drm')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-02-05 10:39:00 +10:00
..
Kconfig drm: Add separate Kconfig option for fbdev helpers 2013-10-11 23:36:58 +02:00
Makefile
cirrus_drv.c drm/cirrus: Limit modes depending on bpp option 2015-02-05 10:39:00 +10:00
cirrus_drv.h drm/cirrus: Limit modes depending on bpp option 2015-02-05 10:39:00 +10:00
cirrus_fbdev.c drm/cirrus: allow 32bpp framebuffers for cirrus drm 2014-11-20 11:42:46 +10:00
cirrus_main.c drm/cirrus: Limit modes depending on bpp option 2015-02-05 10:39:00 +10:00
cirrus_mode.c drm/cirrus: Limit modes depending on bpp option 2015-02-05 10:39:00 +10:00
cirrus_ttm.c drm/ttm: add reservation_object as argument to ttm_bo_init 2014-09-30 14:04:00 +02:00