diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-02 22:40:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-02 22:40:34 -0400 |
commit | 20a2078ce7705a6e0722ef5184336eb8657a58d8 (patch) | |
tree | 5b927c96516380aa0ecd68d8a609f7cd72120ad5 /drivers/gpu/drm/drm_modes.c | |
parent | 0279b3c0ada1d78882f24acf94ac4595bd657a89 (diff) | |
parent | 307b9c022720f9de90d58e51743e01e9a42aec59 (diff) |
Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
Pull drm updates from Dave Airlie:
"This is the main drm pull request for 3.10.
Wierd bits:
- OMAP drm changes required OMAP dss changes, in drivers/video, so I
took them in here.
- one more fbcon fix for font handover
- VT switch avoidance in pm code
- scatterlist helpers for gpu drivers - have acks from akpm
Highlights:
- qxl kms driver - driver for the spice qxl virtual GPU
Nouveau:
- fermi/kepler VRAM compression
- GK110/nvf0 modesetting support.
Tegra:
- host1x core merged with 2D engine support
i915:
- vt switchless resume
- more valleyview support
- vblank fixes
- modesetting pipe config rework
radeon:
- UVD engine support
- SI chip tiling support
- GPU registers initialisation from golden values.
exynos:
- device tree changes
- fimc block support
Otherwise:
- bunches of fixes all over the place."
* 'drm-next' of git://people.freedesktop.org/~airlied/linux: (513 commits)
qxl: update to new idr interfaces.
drm/nouveau: fix build with nv50->nvc0
drm/radeon: fix handling of v6 power tables
drm/radeon: clarify family checks in pm table parsing
drm/radeon: consolidate UVD clock programming
drm/radeon: fix UPLL_REF_DIV_MASK definition
radeon: add bo tracking debugfs
drm/radeon: add new richland pci ids
drm/radeon: add some new SI PCI ids
drm/radeon: fix scratch reg handling for UVD fence
drm/radeon: allocate SA bo in the requested domain
drm/radeon: fix possible segfault when parsing pm tables
drm/radeon: fix endian bugs in atom_allocate_fb_scratch()
OMAPDSS: TFP410: return EPROBE_DEFER if the i2c adapter not found
OMAPDSS: VENC: Add error handling for venc_probe_pdata
OMAPDSS: HDMI: Add error handling for hdmi_probe_pdata
OMAPDSS: RFBI: Add error handling for rfbi_probe_pdata
OMAPDSS: DSI: Add error handling for dsi_probe_pdata
OMAPDSS: SDI: Add error handling for sdi_probe_pdata
OMAPDSS: DPI: Add error handling for dpi_probe_pdata
...
Diffstat (limited to 'drivers/gpu/drm/drm_modes.c')
-rw-r--r-- | drivers/gpu/drm/drm_modes.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index f83f0719922e..faa79df02648 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c | |||
@@ -848,6 +848,26 @@ bool drm_mode_equal(const struct drm_display_mode *mode1, const struct drm_displ | |||
848 | } else if (mode1->clock != mode2->clock) | 848 | } else if (mode1->clock != mode2->clock) |
849 | return false; | 849 | return false; |
850 | 850 | ||
851 | return drm_mode_equal_no_clocks(mode1, mode2); | ||
852 | } | ||
853 | EXPORT_SYMBOL(drm_mode_equal); | ||
854 | |||
855 | /** | ||
856 | * drm_mode_equal_no_clocks - test modes for equality | ||
857 | * @mode1: first mode | ||
858 | * @mode2: second mode | ||
859 | * | ||
860 | * LOCKING: | ||
861 | * None. | ||
862 | * | ||
863 | * Check to see if @mode1 and @mode2 are equivalent, but | ||
864 | * don't check the pixel clocks. | ||
865 | * | ||
866 | * RETURNS: | ||
867 | * True if the modes are equal, false otherwise. | ||
868 | */ | ||
869 | bool drm_mode_equal_no_clocks(const struct drm_display_mode *mode1, const struct drm_display_mode *mode2) | ||
870 | { | ||
851 | if (mode1->hdisplay == mode2->hdisplay && | 871 | if (mode1->hdisplay == mode2->hdisplay && |
852 | mode1->hsync_start == mode2->hsync_start && | 872 | mode1->hsync_start == mode2->hsync_start && |
853 | mode1->hsync_end == mode2->hsync_end && | 873 | mode1->hsync_end == mode2->hsync_end && |
@@ -863,7 +883,7 @@ bool drm_mode_equal(const struct drm_display_mode *mode1, const struct drm_displ | |||
863 | 883 | ||
864 | return false; | 884 | return false; |
865 | } | 885 | } |
866 | EXPORT_SYMBOL(drm_mode_equal); | 886 | EXPORT_SYMBOL(drm_mode_equal_no_clocks); |
867 | 887 | ||
868 | /** | 888 | /** |
869 | * drm_mode_validate_size - make sure modes adhere to size constraints | 889 | * drm_mode_validate_size - make sure modes adhere to size constraints |