alistair23-linux/drivers/gpu/drm/nouveau
Jani Nikula 938fd8aaf5 drm/edid: fix Baseline_ELD_Len field in drm_edid_to_eld()
The Baseline_ELD_Len field does not include ELD Header Block size.

From High Definition Audio Specification, Revision 1.0a:

	The header block is a fixed size of 4 bytes. The baseline block
	is variable size in multiple of 4 bytes, and its size is defined
	in the header block Baseline_ELD_Len field (in number of
	DWords).

Do not include the header size in Baseline_ELD_Len field. Fix all known
users of eld[2].

While at it, switch to DIV_ROUND_UP instead of open coding it.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: Dave Airlie <airlied@linux.ie>
[danvet: Fix compile fail in nouveau.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-11-14 10:29:12 +01:00
..
core Merge branch 'linux-3.18' of git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-fixes 2014-10-20 16:14:19 +10:00
dispnv04 drm: Move drm_crtc_init from drm_crtc.h to drm_plane_helper.h 2014-11-05 00:14:55 +01:00
nvif Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-10-14 09:39:08 +02:00
Kconfig
Makefile drm/gk104-/disp: infoframe registers moved yet again on kepler 2014-09-15 22:25:16 +10:00
nouveau_abi16.c
nouveau_abi16.h
nouveau_acpi.c ACPIPHP / radeon / nouveau: Remove acpi_bus_no_hotplug() 2014-09-15 13:15:34 -06:00
nouveau_acpi.h
nouveau_agp.c
nouveau_agp.h
nouveau_backlight.c
nouveau_bios.c
nouveau_bios.h
nouveau_bo.c drm/nouveau: export reservation_object from dmabuf to ttm 2014-10-01 11:11:15 +02:00
nouveau_bo.h drm/nouveau: export reservation_object from dmabuf to ttm 2014-10-01 11:11:15 +02:00
nouveau_chan.c Merge branch 'linux-3.18' of git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-fixes 2014-10-20 16:14:19 +10:00
nouveau_chan.h
nouveau_connector.c
nouveau_connector.h
nouveau_crtc.h
nouveau_debugfs.c
nouveau_debugfs.h
nouveau_display.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-10-14 09:39:08 +02:00
nouveau_display.h drm/nouveau: make sure display hardware is reinitialised on runtime resume 2014-10-02 13:32:24 +10:00
nouveau_dma.c
nouveau_dma.h
nouveau_dp.c
nouveau_drm.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-10-14 09:39:08 +02:00
nouveau_drm.h drm/nouveau: bump driver patchlevel to 1.2.1 2014-09-30 14:04:00 +02:00
nouveau_encoder.h
nouveau_fbcon.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-10-14 09:39:08 +02:00
nouveau_fbcon.h Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-10-14 09:39:08 +02:00
nouveau_fence.c drm/nouveau: export reservation_object from dmabuf to ttm 2014-10-01 11:11:15 +02:00
nouveau_fence.h drm/nouveau: assign fence_chan->name correctly 2014-09-30 14:04:00 +02:00
nouveau_gem.c drm/nouveau: export reservation_object from dmabuf to ttm 2014-10-01 11:11:15 +02:00
nouveau_gem.h drm: Pass dma-buf as argument to gem_prime_import_sg_table 2014-09-30 14:04:00 +02:00
nouveau_hwmon.c
nouveau_hwmon.h
nouveau_ioc32.c
nouveau_ioctl.h
nouveau_nvif.c nouveau: __iomem misannotations 2014-10-09 02:39:11 -04:00
nouveau_platform.c
nouveau_platform.h
nouveau_prime.c drm/nouveau: export reservation_object from dmabuf to ttm 2014-10-01 11:11:15 +02:00
nouveau_reg.h
nouveau_sgdma.c
nouveau_sysfs.c
nouveau_sysfs.h
nouveau_ttm.c drm/<ttm-based-drivers>: Don't call drm_mmap 2014-09-24 11:42:51 +10:00
nouveau_ttm.h
nouveau_usif.c
nouveau_usif.h
nouveau_vga.c drm/nouveau/runpm: fix module unload 2014-09-18 19:22:37 -04:00
nouveau_vga.h
nv04_fbcon.c
nv04_fence.c drm/nouveau: assign fence_chan->name correctly 2014-09-30 14:04:00 +02:00
nv10_fence.c drm/nouveau: assign fence_chan->name correctly 2014-09-30 14:04:00 +02:00
nv10_fence.h
nv17_fence.c drm/nouveau: export reservation_object from dmabuf to ttm 2014-10-01 11:11:15 +02:00
nv50_display.c drm/edid: fix Baseline_ELD_Len field in drm_edid_to_eld() 2014-11-14 10:29:12 +01:00
nv50_display.h
nv50_fbcon.c
nv50_fence.c drm/nouveau: export reservation_object from dmabuf to ttm 2014-10-01 11:11:15 +02:00
nv84_fence.c drm/nouveau: export reservation_object from dmabuf to ttm 2014-10-01 11:11:15 +02:00
nvc0_fbcon.c
nvc0_fence.c