Files
u-boot-tk1-som/include
Hans de Goede a8552c7c9b console: Fix pre-console flushing via cfb_console being very slow
On my A10 OlinuxIno Lime I noticed a huge (5+ seconds) delay coming from
console_init_r. This turns out to be caused by the preconsole buffer flushing
to the cfb_console. The Lime only has a 16 bit memory bus and that is already
heavy used to scan out the 1920x1080 framebuffer.

The problem is that print_pre_console_buffer() was printing the buffer once
character at a time and the cfb_console code then ends up doing a cache-flush
for touched display lines for each character.

This commit fixes this by first building a 0 terminated buffer and then
printing it in one puts() call, avoiding unnecessary cache flushes.

This changes the time for the flush from 5+ seconds to not noticable.

The downside of this approach is that the pre-console buffer needs to fit
on the stack, this is not that much to ask since we are talking about plain
text here. This commit also adjusts the sunxi CONFIG_PRE_CON_BUF_SZ to
actually fit on the stack. Sunxi currently is the only user of the pre-console
code so no other boards need to be adjusted.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2015-05-19 18:37:30 +02:00
..
2014-07-30 08:48:03 -04:00
2015-04-18 16:54:29 -04:00
2015-05-05 20:58:20 -06:00
2015-01-14 11:35:43 -05:00
2014-02-04 16:32:20 +01:00
2014-02-21 08:42:47 -05:00
2015-04-29 21:02:33 -06:00
2014-06-21 10:06:58 -06:00
2015-04-10 14:23:23 +02:00
2014-10-25 15:27:36 -04:00
2015-04-22 12:14:55 -04:00
2014-12-05 08:06:15 -08:00
2015-01-21 10:25:02 +01:00
2015-04-23 16:46:50 -07:00
2015-03-05 08:56:39 -05:00
2014-11-19 08:48:42 +01:00
2015-01-29 17:09:59 -07:00
2014-12-11 13:18:43 -07:00
2013-09-24 09:10:33 -04:00
2014-10-25 15:27:37 -04:00
2015-05-08 17:24:17 -04:00
2014-05-28 10:58:19 +09:00
2014-06-20 11:54:29 -06:00
2014-10-22 16:56:41 -06:00
2015-04-23 09:05:53 -06:00
2013-09-20 10:30:54 -04:00
2015-05-05 12:29:36 +03:00
2014-05-30 14:03:24 -04:00
2013-11-09 17:21:01 +01:00
2015-01-06 10:10:04 +02:00
2015-04-16 19:27:40 -06:00
2015-01-05 12:08:55 -05:00
2015-04-20 17:57:13 -05:00
2014-11-24 12:00:00 +01:00
2015-03-05 20:50:29 -05:00
2013-12-04 08:11:28 -05:00
2015-01-21 10:25:53 +01:00