Rafal Jaworowski 530a5fb294 Improve checking whether an ARM VA has a valid mapping before performing cache
sync.

VIPT/PIPT caches need valid VA-PA mapping in PTE for a cache operation to
succeed (unlike VIVT). Prior to this fix pmap was using l2pte_valid() for that
check, but this is not sufficient as the function merely checks if a PTE
exists (there can be existing but _invalid_ entries in the table).

A new pmap_has_valid_mapping() routine is introduced to do this job right by
checking proper PTE flags.

Among other potential problems this cures coherency issues with L2 caches on
MV-78100.

Submitted by:	Grzegorz Bernacki, Piotr Ziecik
Reviewed, tested by:	marcel
Obtained from:	Semihalf
MFC after:	1 week
2010-02-07 20:48:57 +00:00
..
2010-02-07 18:00:13 +00:00
2010-01-06 05:58:07 +00:00
2010-01-24 10:22:39 +00:00
2009-11-29 20:47:43 +00:00
2010-02-01 12:43:04 +00:00
2009-11-12 00:36:22 +00:00
2010-01-25 16:09:50 +00:00