Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2995484lqo; Tue, 21 May 2024 03:53:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtJKZYEwKgjqce2OlLxxAcb1NNefuiXzZ8Acu6iLaV5LGr6vR0LIWs7aSm+yQLDYFtXwzOMLGOHQwPSC/tuQ8U4GYYhxSBMoz1iY42Lw== X-Google-Smtp-Source: AGHT+IEKPqBB98cDNKht82EeFNAyy5MgsinnD02005Pgfb0VbGbkbd/1SdRuptRCRJqGSAyirG7b X-Received: by 2002:a50:8d5e:0:b0:572:2fdf:b965 with SMTP id 4fb4d7f45d1cf-5752b432b79mr8675000a12.7.1716288826350; Tue, 21 May 2024 03:53:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716288826; cv=pass; d=google.com; s=arc-20160816; b=WoaVjKt7BBjbeYmlDueiMnHAiB9bt7ptu475NzS0/mMfoN1uEkhibTGgNyQ3yF92dz knvYjRk1zFFOqj0Wqo6lNrZQRrDfVFjMWdM+oQkd6HdfP923Ah8QpLKgzoFBco/Pc2l7 kkjLkLUBPEiTA0TVs5BoFU4CZSMsxsuZK0+3dNXrDwM6Y8/JMcmvyDfeu5q547BIyIAE 5Xm1Mb/rDFPBy7GJKeYa3aZdZJbUo6GgVuBU+apUVmHSJfhU77NnhOnaLNCc5CxLTb4r UUs+I24idc+bVmefEhJC0Yzqui9BuQqVlStlVBpadWRW8i4wEKMEtz4YYcSkFAbvlkwo y7MQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=LzviPdFToe7N+N7RSM3aJIgPadrGjL45EsO5NgIiyEk=; fh=sj/XGO0KrP8bjM6okLag312LJGscRiHYb7yjo14ECiA=; b=c7ho8lQ/IzL1Kd7MksEk2kZDqvY0VBq7ARlfBqGHMyenS7qCx19lXoK4ArP+7Z2kG8 AcjiNMtfACGEqLNsNcLnggm6FwPR6EMGiXGiz4Uocl0tRHwNtnch4lvuvFY9Xvg17KY4 2XLnh3FZkEpxg4Y7qvAN2yN4zqQiFilo1YQVVswzRcKSo/KTmNCesbA3gLKdvyT9lFdd sX46ld/qiLK5ZGNynSTF+xRmjXyLTCwEYwH4FF+l+GFuVydU8+vV1PmAKmu3yh7rk6e7 44SfmiRh2C6vOGfAR4SM18kOFpqMygl5jr3ouhGnIpU8Ix0rcwNzNkfBYdkj/8pJUA3d o59g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=YIqtsrZd; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-crypto+bounces-4299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3276c6si13919282a12.417.2024.05.21.03.53.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 03:53:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=YIqtsrZd; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-crypto+bounces-4299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 17F4E1F2277A for ; Tue, 21 May 2024 10:53:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D715674404; Tue, 21 May 2024 10:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="YIqtsrZd" X-Original-To: linux-crypto@vger.kernel.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39EC0763F7; Tue, 21 May 2024 10:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716288797; cv=none; b=KtwxqEOZspwL+uukeNBuI1TzcG+tC0/v5ouJBmLPRWDBxqoLYaIEatbZfMNBo8coeWZoRsucOggdfK7pWmuVMOG/PY1PTOmZk2rzs8JfCX94KMrgoG97DB1dfrOfl6hGWskEZ9nbs9vOI0UYuKwko7shbQH+EqFvjXIAhc3j+WQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716288797; c=relaxed/simple; bh=dowC5snCViyUp3MM3htWW9ZdSaW74v3qHe/otMwVQOU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=g/ItXR/UZvEZpEpYbQdKxgrBNa01a2kG40xkhf+dsrKF+SZL21fKYpvW39rr2OFiM1O/TQaOivz9yowLFikBJ65WL7DGcy7kH9D/5PBNK/ztUUyxEgKC3AAY6ir86S/RzWoOUdur81GJ1SQCsoN7PA6DSFrr662QBhTgrhfet8U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=YIqtsrZd; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 177D388743; Tue, 21 May 2024 12:53:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1716288794; bh=LzviPdFToe7N+N7RSM3aJIgPadrGjL45EsO5NgIiyEk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=YIqtsrZdXQE3n0QlNZ0Es8ETEVpS9tDNxjGGX9B7kMfO1ElngRmOewRZKt04EMBwI vjaCvSyuIkLN5u1qJBQfCFrrjZrtKt3idMAXZB32C5GJ680x62jdIN3gDd8So+g/62 5wSBA6muhwquFD2sYPdxAeUcckWsQkLfef0D6LcLir47CR4zps5im2TDbNwRJc2Bih vE+TQ0U5yHY7Vdff5n3il+RpjA0oly2PeCUX4A9gYvkFsOUQljM4tOeZuOA9Uq7aBo v6v7akauVsED0GgD40WFzvJVyWHb1gjjU0JzgO4Y9eZ4NZF6y5T+QffOpBpRoB5x4Z MmGhzTkSrbX3A== Message-ID: <0a37659a-1c5e-4bff-ab8e-9c777c0520d5@denx.de> Date: Tue, 21 May 2024 12:27:26 +0200 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] [RFC] clk: stm32mp1: Keep RNG1 clock always running To: Gatien CHEVALLIER , linux-crypto@vger.kernel.org Cc: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Alexandre Torgue , Gabriel Fernandez , Herbert Xu , Maxime Coquelin , Michael Turquette , Olivia Mackall , Rob Herring , Stephen Boyd , Yang Yingliang , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com References: <20240513220349.183568-1-marex@denx.de> <51951dd4-8e8c-4e67-89f6-6a710022e34f@foss.st.com> <3257e8f8-5bb0-4c75-a3a3-e5685b65de2a@denx.de> <5b39b5b6-7008-4362-a578-3faab87cd23b@foss.st.com> <2eb2b80e-8650-46cf-9d8f-6dd6a884558a@denx.de> <07d54026-5d2a-49a3-9211-bfc6e62afec3@foss.st.com> Content-Language: en-US From: Marek Vasut In-Reply-To: <07d54026-5d2a-49a3-9211-bfc6e62afec3@foss.st.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 5/17/24 5:39 PM, Gatien CHEVALLIER wrote: Hi, >> Possibly. I use script as init which contains basically #!/bin/sh , >> mount of a few filesystems like dev, proc, sys, and then the pm_test >> sequence to avoid wasting time booting full userspace. >> > Ok, > > The strangest thing is not being to enable the clock, maybe there's > something on the clock driver side. Tracking clock enable/disable > may lead to something. I suspect the problem is that rng_read and runtime suspend/resume can run in parallel, that's why this problem occurs. >>> FYI, I have been running your script with (echo devices > >>> /sys/power/pm_test) for 5 hours now and haven't been able to >>> reproduce the issue. >> >> Maybe the 'devices' test is not enough and the deeper pm_test states >> have some sort of impact ? >> > > Maybe, I don't have the knowledge to confirm or invalidate this. > Tasks should be frozen before drivers are put to sleep so my instinct > would say no but you can't take it for granted :) Could it be the kernel that requires randomness ?