From owner-svn-src-all@freebsd.org Tue Apr 18 10:34:11 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D97E1D44E11; Tue, 18 Apr 2017 10:34:11 +0000 (UTC) (envelope-from zbb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A6C53106F; Tue, 18 Apr 2017 10:34:11 +0000 (UTC) (envelope-from zbb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3IAYAhZ039936; Tue, 18 Apr 2017 10:34:10 GMT (envelope-from zbb@FreeBSD.org) Received: (from zbb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3IAYAdV039935; Tue, 18 Apr 2017 10:34:10 GMT (envelope-from zbb@FreeBSD.org) Message-Id: <201704181034.v3IAYAdV039935@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zbb set sender to zbb@FreeBSD.org using -f From: Zbigniew Bodek Date: Tue, 18 Apr 2017 10:34:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r317087 - head/sys/arm/arm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2017 10:34:12 -0000 Author: zbb Date: Tue Apr 18 10:34:10 2017 New Revision: 317087 URL: https://svnweb.freebsd.org/changeset/base/317087 Log: Execute PL310_ERRATA_727915 only for related revisions Part of PL310 erratum 727915 in pl310_wbinv_range() was executed uncoditionally for all possible controllers' revisions. This patch adds appropriate condition, since extra operations are required only for revisions between r2p0 and r3p0. Submitted by: Marcin Wojtas Obtained from: Semihalf Sponsored by: Stormshield Reviewed by: meloun-miracle-cz Differential revision: https://reviews.freebsd.org/D10221 Modified: head/sys/arm/arm/pl310.c Modified: head/sys/arm/arm/pl310.c ============================================================================== --- head/sys/arm/arm/pl310.c Tue Apr 18 10:32:21 2017 (r317086) +++ head/sys/arm/arm/pl310.c Tue Apr 18 10:34:10 2017 (r317087) @@ -272,7 +272,9 @@ pl310_wbinv_range(vm_paddr_t start, vm_s #ifdef PL310_ERRATA_727915 - platform_pl310_write_debug(pl310_softc, 3); + if (pl310_softc->sc_rtl_revision >= CACHE_ID_RELEASE_r2p0 && + pl310_softc->sc_rtl_revision < CACHE_ID_RELEASE_r3p1) + platform_pl310_write_debug(pl310_softc, 3); #endif while (size > 0) { #ifdef PL310_ERRATA_588369 @@ -293,7 +295,9 @@ pl310_wbinv_range(vm_paddr_t start, vm_s size -= g_l2cache_line_size; } #ifdef PL310_ERRATA_727915 - platform_pl310_write_debug(pl310_softc, 0); + if (pl310_softc->sc_rtl_revision >= CACHE_ID_RELEASE_r2p0 && + pl310_softc->sc_rtl_revision < CACHE_ID_RELEASE_r3p1) + platform_pl310_write_debug(pl310_softc, 0); #endif pl310_cache_sync();