NetBSD Problem Report #58572

From www@netbsd.org  Sat Aug 10 14:10:56 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id EA3781A9242
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 10 Aug 2024 14:10:55 +0000 (UTC)
Message-Id: <20240810141054.B73691A9243@mollari.NetBSD.org>
Date: Sat, 10 Aug 2024 14:10:54 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: aarch64 RNDRRS failures should be evcounted and dtraced
X-Send-Pr-Version: www-1.0

>Number:         58572
>Category:       port-arm
>Synopsis:       aarch64 RNDRRS failures should be evcounted and dtraced
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 10 14:15:00 +0000 2024
>Closed-Date:    
>Last-Modified:  Sat Aug 10 15:29:40 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current, 10
>Organization:
The NetRNDRRS Failedation
>Environment:
>Description:
Booting on a machine with RNDRRS (Oracle Cloud Infrastructure VM.Standard.A2.Flex instance):

[     3.692453] entropy: best effort
[     5.693122] entropy: ready

In order to confirm that this delay was due to hardware limitations, and otherwise do science on it, we need to be able to count (and ideally dtrace) when the RNDRRS instruction has failed.
>How-To-Repeat:
boot NetBSD on an OCI A2 instance
>Fix:
Yes, please!

>Release-Note:

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58572 CVS commit: src/sys/arch/aarch64
Date: Sat, 10 Aug 2024 15:21:00 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Sat Aug 10 15:20:59 UTC 2024

 Modified Files:
 	src/sys/arch/aarch64/aarch64: cpu.c
 	src/sys/arch/aarch64/include: cpu.h

 Log Message:
 aarch64: Count RNDRRS failure events and add dtrace probe.

 PR port-arm/58572: aarch64 RNDRRS failures should be evcounted and
 dtraced


 To generate a diff of this commit:
 cvs rdiff -u -r1.77 -r1.78 src/sys/arch/aarch64/aarch64/cpu.c
 cvs rdiff -u -r1.50 -r1.51 src/sys/arch/aarch64/include/cpu.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Sat, 10 Aug 2024 15:29:40 +0000
State-Changed-Why:
fixed in HEAD, needs pullup-10, inapplicable <10


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.