Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2886987rdb; Tue, 6 Feb 2024 00:07:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNc7tNFyAi8hGb5ll2yuy5v0P98NR+ZTO4lYf9OnPa2P5Jffhah4dm6KPta1BYq4tchCm5 X-Received: by 2002:a17:90a:c583:b0:295:cfb4:9d4c with SMTP id l3-20020a17090ac58300b00295cfb49d4cmr1725294pjt.33.1707206825299; Tue, 06 Feb 2024 00:07:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707206825; cv=pass; d=google.com; s=arc-20160816; b=VqF03fPGfN3wyynQ7MG/ZELm+aEX7Q7MPb6weH5vTEEqhL2At00DfAV/vfh9Tuu0dh Ilt+3Md1wz+eXJj4wMGcBc8yd024FmrOlthNv/BFnYZip8dp3y/bGHNbkPlAf7GiU6UX FB53hdjqDc7YPlYdhdWA16XM2oBtFxt++UEwj5ahk5KmeaPjn1stdkiRFSa4boe3CuXh QNzTDDRSjOGzBWQsQTUEELjoVaMKEHbh/G6Bkrl5FHfcSngmTou2i8XSlPur40RdoySc OKcdf9XidGp9YBn6TxCTjOcrFS3hl9lcmcBh4uhebzZANTGNpn3YesZEKyQ21ErtXSzw xyug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=VoG77iC4V8mtXCplQh9IiWyiocJNF7CpVFSOwa43ZiE=; fh=GSPPk47pHGFb0q7PAMnT4goWd9OexK+DQo4sh4opl8g=; b=qnWizmoQ5WQcQMn45GzCIkKn/afALcQSn8+1furr8PpsmyNtZ6ueHJ+zPhVECb/Ggd 37hU37bnfKEa437bbC73bc8xW0214m49VhIbXneYasyQoBx5e5Kyq8BaYoWvWyMTyEza MrCeo+pnCm0A3jfGsgppQm3D6Q2SLgxMWj4hIAiPG9yO67D2E1T8/UjIHVc/hubgtIpL UL/6xbK1r02Jv7vhS4GBOMlxnCcTES77fdkR4UO/KRB4PF05mtaCZb/KCG84yVsiZImM bWfuLGfKbt9DrV23SB14oPgQcC7BuSAYVb74z8BpIs2QrLLtKTAsJag3JzwxJ0yLtQoF nqWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WjRlTHnf; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-54470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCWvM6VPCPrxg2nxcIih6jpPDMEmQeqwxJg4Aq8X0rxFAewzPRZ8AyjrLs+XRKZrlaO5JC/UeXrU0kapnFi8eS7eFLaxiIYK3IvStx9bRg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ml10-20020a17090b360a00b0029651a4eb01si732665pjb.46.2024.02.06.00.07.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 00:07:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WjRlTHnf; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-54470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EF6CA282CB2 for ; Tue, 6 Feb 2024 08:07:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6FE012B17D; Tue, 6 Feb 2024 08:05:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WjRlTHnf" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47D3D12B16D for ; Tue, 6 Feb 2024 08:05:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707206714; cv=none; b=XmQjHJUVnCPYsSD41t11pgtpXtdvlr7hyGewh3ZEKOH+03PI4nxXI0DYxMM/peG49NLHtaq4WkXdFjvw3l5nATgFm/3dezFTYDf+eCSCzSwDBqh1MB3LJye2tr7KnICL6NDjsuCizAaUICSKa14nPh9uefiZlsEiHGdSy6ckZbA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707206714; c=relaxed/simple; bh=MsHf8cVdpuCFq4ctLxFOemRpS5F5u/extnlTkO7PvNY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QsE5qdXaOJaKCcgniG9zTek8UQ5RgiQMC5R+OYeERsbXfmhjMv/0b18UUW/1rjiEh433FiGf8XAibPigfzvgD9KBDiSmgaFhTGCxNKq9+hifxY84PZ8EwsKaUAcgnbIGKq/ocY2CrWhm+1R7QDKbQV9F9hZtFnDxwgkk84rWZME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WjRlTHnf; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707206712; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=VoG77iC4V8mtXCplQh9IiWyiocJNF7CpVFSOwa43ZiE=; b=WjRlTHnfXWY6Vw1QFvsuI4gM4LxpnlFzEuZ0IlNj+I56ctkg4dlUj8GOSkp+0+xspPEOft 8VoTowKv6KACm4BGbf0227CgLXvXtnwd5u8ureQKMzkvpwXqAcMNqEmket6BOT0ThY7lX+ cQVR67sxQcosonnLm+zgvIQwQPsaKLk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-148-IXlGMc1pNmqu9FkmToUdZQ-1; Tue, 06 Feb 2024 03:05:06 -0500 X-MC-Unique: IXlGMc1pNmqu9FkmToUdZQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 85A4085A588; Tue, 6 Feb 2024 08:05:05 +0000 (UTC) Received: from redhat.com (unknown [10.42.28.53]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AECA02166B32; Tue, 6 Feb 2024 08:05:00 +0000 (UTC) Date: Tue, 6 Feb 2024 08:04:57 +0000 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= To: "Dr. Greg" Cc: "Reshetova, Elena" , "Jason A. Donenfeld" , "Hansen, Dave" , "Kirill A. Shutemov" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , "x86@kernel.org" , Theodore Ts'o , Kuppuswamy Sathyanarayanan , "Nakajima, Jun" , Tom Lendacky , "Kalra, Ashish" , Sean Christopherson , "linux-coco@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2] x86/random: Issue a warning if RDRAND or RDSEED fails Message-ID: Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= References: <20240130083007.1876787-1-kirill.shutemov@linux.intel.com> <20240130083007.1876787-2-kirill.shutemov@linux.intel.com> <88a72370-e300-4bbc-8077-acd1cc831fe7@intel.com> <20240206011247.GA29224@wind.enjellic.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240206011247.GA29224@wind.enjellic.com> User-Agent: Mutt/2.2.12 (2023-09-09) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 On Mon, Feb 05, 2024 at 07:12:47PM -0600, Dr. Greg wrote: > > Actually, I now believe there is clear evidence that the problem is > indeed Intel specific. In light of our testing, it will be > interesting to see what your 'AR' returns with respect to an official > response from Intel engineering on this issue. > > One of the very bright young engineers collaborating on Quixote, who > has been following this conversation, took it upon himself to do some > very methodical engineering analysis on this issue. I'm the messenger > but this is very much his work product. > > Executive summary is as follows: > > - No RDRAND depletion failures were observable with either the Intel > or AMD hardware that was load tested. > > - RDSEED depletion is an Intel specific issue, AMD's RDSEED > implementation could not be provoked into failure. My colleague ran a multithread parallel stress test program on his 16core/2HT AMD Ryzen (Zen4 uarch) and saw a 80% failure rate in RDSEED. > - AMD's RDRAND/RDSEED implementation is significantly slower than > Intel's. Yes, we also noticed the AMD impl is horribly slow compared to Intel, had to cut test iterations x100 With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|