From nobody Tue Mar 29 15:53:39 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AA7421A3450A; Tue, 29 Mar 2022 15:53:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KSYyC3SpRz3tPF; Tue, 29 Mar 2022 15:53:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648569219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2VMIwmt34nm64K6IPMM2q+ocFBiz+XIS6Lyr1o/J1xI=; b=PtdhNQtMmjOS1NrDB58erBHqGrzJtIQyWAqjtImqtrrIbyVWliQ2a6qtFyhBOKTmg6ETvR zfrfgl5uu/GEREzYgO0BaW6Deed6W6txihnBAljfkHx0RYnRlxuzspuGm4cfBlqqgkgwwM RAjAp7tQl4Xgk1pKBOi5qdxV8Hs8UxvbrAQkDQRpEDw/BQHOrA01W4R6pfAP1dbarBfSQH jSxCaiJsJyI78/VLrF0p8EMJ2tzlQ8WkGfjkYm1M7UTbSJVmyWncN/jcB2omlcIzwEPkHF blcn3/qApaeShWIANAAis1EDcH+gLquaaVMG1KZkvQAUWkoL5KuATAog4Capvg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2265C219C7; Tue, 29 Mar 2022 15:53:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22TFrdeY071370; Tue, 29 Mar 2022 15:53:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22TFrcMB071369; Tue, 29 Mar 2022 15:53:39 GMT (envelope-from git) Date: Tue, 29 Mar 2022 15:53:39 GMT Message-Id: <202203291553.22TFrcMB071369@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: D Scott Phillips Subject: git: 0e19a22dd145 - stable/13 - arm64: Add explicit barrier after address translation instruction List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: scottph X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0e19a22dd145c3e508978500a3b78592c84db5d0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648569219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2VMIwmt34nm64K6IPMM2q+ocFBiz+XIS6Lyr1o/J1xI=; b=ERY/YeowmKtN4X48NwlagHZvp8BKaMbPFduR/KSrcq9tLtt06Se5ymffNMayGedKewjE2d DIwhdHSSD/Q+rdBgbSEf/lVqwUKxJnPy0zyt95A1aQ1HDbsExv9LuvxoQNh9fNxyOmkRt5 u/1KCftjN7tHNdrZz6z7vRpwS9QY2BX4dyR1oyA/xXCjs0tSzDid2XivIzL4zNm8OfHQ5b +LpvY2SCkWsTwVK/whzT21FcScFMvgWYYhQwAAas3QAi48zzf2Fa/u5aQcDgnbHBa7xOoZ D5JKrz/4tZAqVdD5fkviGBJQEJBd3iicH6qksAGGHS6X3FQsaCLRIknsBxLDHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648569219; a=rsa-sha256; cv=none; b=gAV2QpAN/GLfpkcJ5eltyuoXULIdqtDAJiKshALLG7f4u5fxZA1luOwUcw4u0llz5k2RuY gHLO8m9Prg/7Gvsg3ztmbh12d9goUAi6VPvX+xWm7Bj+PzVZT76abZh+/bjsiduLoRD09q SxckjVtjTIBgAQr759EnkKYzyaWSdyYQjD2VsoG1A3FtaZ58h9xNel4R4/hDaaYV4M+/M6 afCLGtS7cgQRARkUj3LBsUOj4Cf7rgiGadCRefMSGakcrhTqN3z7uyjfmhjzLiVuz5/Hgq 2sO1WvAnRAiYC4Qmmg+29ePP6npd4FPjPwEgsaoKIt2e/sLZcx8AdJ+A+WCUwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by scottph: URL: https://cgit.FreeBSD.org/src/commit/?id=0e19a22dd145c3e508978500a3b78592c84db5d0 commit 0e19a22dd145c3e508978500a3b78592c84db5d0 Author: D Scott Phillips AuthorDate: 2022-03-25 16:04:47 +0000 Commit: D Scott Phillips CommitDate: 2022-03-29 15:47:44 +0000 arm64: Add explicit barrier after address translation instruction Following ARMARM sec D5.2.11, which says: > Where an instruction results in an update to a System register, > as is the case with the AT * address translation instructions, > explicit synchronization must be performed before the result is > guaranteed to be visible to subsequent direct reads of the > PAR_EL1. Reviewed By: andrew MFC after: 3 weeks Sponsored by: Ampere Computing Differential Revision: https://reviews.freebsd.org/D34665 (cherry picked from commit 7be7bd67758520ea2f9784a81ad244e99a7632f0) --- sys/arm64/include/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arm64/include/cpu.h b/sys/arm64/include/cpu.h index c926372a0ec6..b37301c276ce 100644 --- a/sys/arm64/include/cpu.h +++ b/sys/arm64/include/cpu.h @@ -198,7 +198,8 @@ arm64_address_translate_ ##stage (uint64_t addr) \ uint64_t ret; \ \ __asm __volatile( \ - "at " __STRING(stage) ", %1 \n" \ + "at " __STRING(stage) ", %1 \n" \ + "isb \n" \ "mrs %0, par_el1" : "=r"(ret) : "r"(addr)); \ \ return (ret); \