svn commit: r322294 - head/sys/arm/mv/armada38x
Marcin Wojtas
mw at FreeBSD.org
Wed Aug 9 01:25:48 UTC 2017
Author: mw
Date: Wed Aug 9 01:25:47 2017
New Revision: 322294
URL: https://svnweb.freebsd.org/changeset/base/322294
Log:
Enable pl310 coherent operation in platform init for Armada 38x
Updating PL310 sotfware context sc_io_coherent field in
platform_pl310_init() routine for Armada 38x helps to avoid
using 'arm,io-coherent' property, which is by default not present
in the device tree node in Linux.
This way another step for DT unification between two operating
systems is done. The improvemnt will also work after enabling
PLATFORM for Marvell ARMv7 SoCs.
Reviewed by: andrew, cognet (mentor)
Approved by: cognet (mentor)
Obtained from: Semihalf
Differential Revision: https://reviews.freebsd.org/D11883
Modified:
head/sys/arm/mv/armada38x/armada38x_pl310.c
Modified: head/sys/arm/mv/armada38x/armada38x_pl310.c
==============================================================================
--- head/sys/arm/mv/armada38x/armada38x_pl310.c Wed Aug 9 01:24:52 2017 (r322293)
+++ head/sys/arm/mv/armada38x/armada38x_pl310.c Wed Aug 9 01:25:47 2017 (r322294)
@@ -57,6 +57,9 @@ platform_pl310_init(struct pl310_softc *sc)
pl310_write4(sc, PL310_PREFETCH_CTRL, PREFETCH_CTRL_DL |
PREFETCH_CTRL_DATA_PREFETCH | PREFETCH_CTRL_INCR_DL |
PREFETCH_CTRL_DL_ON_WRAP);
+
+ /* Disable L2 cache sync for IO coherent operation */
+ sc->sc_io_coherent = true;
}
void
More information about the svn-src-all
mailing list