Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2017 01:25:47 +0000 (UTC)
From:      Marcin Wojtas <mw@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322294 - head/sys/arm/mv/armada38x
Message-ID:  <201708090125.v791Plrp018119@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708090125.v791Plrp018119>