From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B28DC433ED for ; Mon, 10 May 2021 18:07:28 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED7BB611AB for ; Mon, 10 May 2021 18:07:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED7BB611AB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XA49XxZDZl8TIQAxoj2vU8CIpXBlTBzBw19/mpa7dF4=; b=UvHbok4tjAr7M/ClMB/Sowyjb p8EXZcmAe2Ol2JyCOub0LVfDbarZNlYE6bXwrGllwVvh8ps0FoDN0G/GwTusJauErjkJXwwXTX37T fpjjoOq2h7F9UKBgcWMsgVEPh4x/d4DTAJMpRATmBKgBU4vIdFIK/XBR0M9S75KHT6RYj5/n3qlkK G/SfxA15XgY7SIVp6geHL8SLgdK4GwPY4Xrfk7rgW5bproE+bs8kcw8FEibnUo1wUTcGLFuUJCgmA oPYrI2AiKGkTdATFUb0+4xKQYTNX1EgjuaS/ycLlpbDJMXoily6xPOB4eUuF+LKxS+p0PhJmGaB2D 6fBwOQKTg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgAID-00FMel-Af; Mon, 10 May 2021 18:06:09 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgACr-00FKf8-Qp for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 18:00:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=1GenpVSedcoY2vsxTrKIoC7FbVh0qLKMEN10DQuUCFg=; b=P0D8j2b3pywQbnIjBhuvCDm0xe 5aYEcFrx/nVnHhTVuEUTh5zbNDr6kUB9gYocWaG9UzABXPCjQKZjeJzI4rBzzcTTyfivaXqmPNkXv O0wpsWgMz6+r9/7jDhdjGEtyYH8v7Rx31bhi7yTXWOMJwqBcTAOBe0idwhrAtNn/Gv7VwZhnmzv7o MC7UsN1JPYX3tcprWQyrxOlYBanF5PvlOSBsxJOIlZLYpunnI4o0cLHBydaA/4ZZWxJTt+e3rxiIw IKEC86DXlliHgn6iZDdqyL3SGw5bxbLk41wRZtzYRXlFP9Yw+21R+bvRaiCalwyb9IId09hQLvD/X mIKp945w==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgACo-0090xq-VG for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 18:00:36 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 01681611BD; Mon, 10 May 2021 18:00:32 +0000 (UTC) From: Catalin Marinas To: Mark Rutland , Peter Collingbourne , Vincenzo Frascino , Will Deacon Cc: Evgenii Stepanov , stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andrey Konovalov Subject: Re: [PATCH v2] arm64: mte: initialize RGSR_EL1.SEED in __cpu_setup Date: Mon, 10 May 2021 19:00:31 +0100 Message-Id: <162066962704.23704.7597765574879024372.b4-ty@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210507185905.1745402-1-pcc@google.com> References: <20210507185905.1745402-1-pcc@google.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_110035_043918_F879B53A X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 7 May 2021 11:59:05 -0700, Peter Collingbourne wrote: > A valid implementation choice for the ChooseRandomNonExcludedTag() > pseudocode function used by IRG is to behave in the same way as with > GCR_EL1.RRND=0. This would mean that RGSR_EL1.SEED is used as an LFSR > which must have a non-zero value in order for IRG to properly produce > pseudorandom numbers. However, RGSR_EL1 is reset to an UNKNOWN value > on soft reset and thus may reset to 0. Therefore we must initialize > RGSR_EL1.SEED to a non-zero value in order to ensure that IRG behaves > as expected. Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: mte: initialize RGSR_EL1.SEED in __cpu_setup https://git.kernel.org/arm64/c/37a8024d2655 -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel