WRITE_THRU on 8xx missing

Dan Malek dan at embeddededge.com
Thu Sep 5 12:12:13 EST 2002


Joakim Tjernlund wrote:

> I just noticed that _PAGE_WRITETHRU is defined in the linuxppc_2_4 tree but not in
> the linuxppc_2_4_devel tree, which is the one I am using :-(. Has this "function" been removed ,
> never to return or is the devel tree in a flux now for mpc8xx?

I don't know what we will do.  We always seems to be running out of control bits
in the PTE, so this is the first one to go if we need one for something else.
The writethrough mode is also a pain to support dynamically because it requires
special code in the tlb miss exception to load/clear bits in the PMD/L1 descriptor.
Adding this code nearly doubles the size of the exception handler, when you want
minimal instructions, for a feature (almost) no one uses.  At best, the writethrough
mode may return when I finish the large pages someday, and will be a special case
that covers a modulo 4M space on a 4M boundary (which I don't yet know how we
would allocate).

For burst flash, I suggest you read the archives for a discussion where you
double map the cache into a copyback mode space read and an uncached space
for write.  You will then invalidate during a write operation.  This would
maximize performance and require no VM or cache management changes.


>>I want to use this mapping to do burst reads but single writes for a flash device.

Are you sure writethough mode will do this?  I don't think it will as I believe
any cache enabled mode will burst.  To prevent burst you have to run with
caches disabled or have it inhibited in the memory controller.  Check it out.

Thanks.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list