coreboot-kgpe-d16/src/lib
Hung-Te Lin 79445817ae edid: Fix extension parsing when EDID blob does not have any extensions.
When parsing "extensions", we should skip the first EDID (main) block and start
from offset 128 (EDID may have only main block, so an EDID without any
extension is fine) because the header format for main block and extensions are
different.

Without this we will see "Unknown extension block" on all EDIDs, and seeing an
error (1) return value for EDIDs without extension.

Also, after the first "unknown" error is fixed, we can now collect all return
values from parse_extension, and return an error when any of the extensions are
wrong (not just last one).

Change-Id: I0ee029ac8ec6800687cd7749e23989399e721109
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/193011
(cherry picked from commit fdf0cc2e9573c19b550fa2b5e4e06337b114f864)
Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com>
Reviewed-on: http://review.coreboot.org/6995
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2014-10-01 17:24:43 +02:00
..
loaders Rename coreboot_ram stage to ramstage 2014-04-26 13:27:09 +02:00
bootmem.c coreboot: introduce notion of bootmem for memory map at boot 2014-03-03 21:47:27 +01:00
bootmode.c ChromeOS: Remove oprom_is_loaded 2014-05-01 15:39:26 +02:00
cbfs.c coreboot: unify infrastructure for loading payloads 2014-03-03 19:48:02 +01:00
cbfs_core.c cbfs: Check return value of map() for error 2014-08-10 22:28:10 +02:00
cbmem.c lib: Trivial - drop trailing blank lines at EOF 2014-07-08 13:52:15 +02:00
cbmem_console.c console: Fix includes 2014-03-04 15:26:08 +01:00
cbmem_info.c baytrail: snapshot power state in romstage 2014-05-13 16:11:04 +02:00
clog2.c src/lib/clog2.c: Fix style and clarity, remove some cruft 2014-06-20 08:06:51 +02:00
compute_ip_checksum.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
coreboot_table.c arm: libpayload: Add cache coherent DMA memory definition and management 2014-08-13 00:04:14 +02:00
debug.c Myles suspected this hangs certain machines, so back it out. 2010-04-15 12:43:07 +00:00
delay.c - Major cleanup of the bootpath 2003-07-19 04:28:22 +00:00
dynamic_cbmem.c lib/dynamic_cbmem.c: Include cbmem_console.h 2014-03-08 13:06:34 +01:00
edid.c edid: Fix extension parsing when EDID blob does not have any extensions. 2014-10-01 17:24:43 +02:00
fallback_boot.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
gcc.c lib: Trivial - drop trailing blank lines at EOF 2014-07-08 13:52:15 +02:00
gcov-glue.c coverage: use boot state callbacks 2013-05-01 07:08:44 +02:00
gcov-io.c Implement GCC code coverage analysis 2013-01-12 19:09:55 +01:00
gcov-io.h lib: Fix spelling 2013-07-10 20:17:51 +02:00
gcov-iov.h Implement GCC code coverage analysis 2013-01-12 19:09:55 +01:00
generic_dump_spd.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
generic_sdram.c Remove duplicate line from pci_ids.h. 2010-10-07 23:02:06 +00:00
hardwaremain.c arm: Move exception_init() close to console_init() 2014-09-13 02:21:02 +02:00
hexdump.c lib/hexdump: Use size_t for length parameter of hexdump32() 2014-05-05 08:59:05 +02:00
jpeg.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
jpeg.h Random cosmetic fixes (trivial). 2010-02-22 16:41:49 +00:00
libgcov.c Fix whitespace leaked into tree 2013-09-17 21:04:35 +02:00
lzma.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
lzmadecode.c load_payload: Use 32-bit accesses to speed up decompression. 2014-02-05 23:04:53 +01:00
lzmadecode.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
Makefile.inc delay: Have mdelay() / delay() available in romstage, too 2014-08-25 19:02:18 +02:00
malloc.c SMM: Add support for malloc in SMM if using TSEG 2012-07-24 23:44:19 +02:00
memchr.c Add an implementation for the memchr library function 2012-03-09 20:00:53 +01:00
memcmp.c - Initial checkin of the freebios2 tree 2003-04-22 19:02:15 +00:00
memcpy.c fix compiler warnings (trivial) 2009-01-20 21:40:16 +00:00
memmove.c tidy 2004-03-13 03:40:29 +00:00
memrange.c mtrr: only add prefetchable resources as WRCOMB for VGA devices 2014-02-09 22:08:53 +01:00
memset.c fix compiler warnings (trivial) 2009-01-20 21:40:16 +00:00
ramstage_cache.c ramstage_cache: allow ramstage usage add valid helper 2014-05-10 06:31:45 +02:00
ramtest.c ramtest.c: Add silent ram_check 2013-06-10 22:30:39 +02:00
reg_script.c baytrail: add more iosf access functions 2014-05-10 06:31:00 +02:00
rmodule.c rmodules: use rmodtool to create rmodules 2014-03-20 23:55:55 +01:00
rmodule.ld rmodule: Fix rmodule.ld for 64-bit 2014-09-23 22:27:10 +02:00
selfboot.c Rename coreboot_ram stage to ramstage 2014-04-26 13:27:09 +02:00
stack.c stack check: cosmetics 2014-09-12 22:03:53 +02:00
thread.c Possible thread stack implementation. 2014-08-07 23:55:15 +02:00
timer_queue.c coreboot: add timer queue implementation 2013-05-01 07:19:12 +02:00
timestamp.c SMP: Add arch-agnostic boot_cpu() 2014-02-11 21:55:30 +01:00
trace.c GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
version.c lib: Trivial - drop trailing blank lines at EOF 2014-07-08 13:52:15 +02:00