Thread (19 messages) 19 messages, 4 authors, 2011-11-11

RE: [PATCH v2 1/5] [ppc] Process dynamic relocations for kernel

flat view

From: David Laight <hidden>
Date: 2011-11-10 09:17:23

=20
quoted
quoted
How about using clean_dcache_range() to flush the range runtime
address range [ _stext, _end ] ? That would flush the entire
instructions.
Wouldn't that result in more cache flushing than the original
solution?
quoted
For example, my kernel is 3.5MB.  Assuming a 32 byte cache line
size,
quoted
clean_dcache_range(_stext, _end) would result in about 115,000
dcbst's
quoted
(3.5MB / 32).
=20
Oops ! You are right. We could go back to the=20
clean_dcache_all() or the
initial approach that you suggested. (dcbst).
Maybe clean_dcache_range() itself should limit the range
to the size of the cache?
I suspect that code can easily know the cache size.

	David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help