[coreboot] unrv2b delay (v2)

Arne Georg Gleditsch arne.gleditsch at numascale.com
Mon Oct 27 13:24:36 CET 2008


The unrv2b uncompression algorithm appears to behave very badly in the
absence of a proper cache.  Instrumentation indicates somehting like ~180
i-stream cacheline requests for _every_ d-stream cacheline request
during decompression.  The following patch copies the unrv2b function to
DRAM before performing the actual decompression, reducing the run-time
from 12.5s to 50ms in my environment.  The patch is somewhat rough, and
assumes that (1) the unrv2b function is less than 1k in size, and (2)
that placing a copy of the function just after the decompress
destination is unproblematic.  It works well for me, though.

Signed-off-by: Arne Georg Gleditsch <arne.gleditsch at numascale.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: s2912_unrv2b_rel.diff
Type: text/x-diff
Size: 1647 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20081027/53eff9f1/attachment.bin>

More information about the coreboot mailing list