Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1666473pxb; Sat, 29 Jan 2022 13:09:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHmcalRSFxsLxFlGumARjcFJCQvpcaNRCR0cGWIJ5FnLDLZTzxiJ2Q3zDZ9ujf1HmmTp2I X-Received: by 2002:a05:6402:11cd:: with SMTP id j13mr5147728edw.116.1643490560065; Sat, 29 Jan 2022 13:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643490560; cv=none; d=google.com; s=arc-20160816; b=ZF5G38Dlp30Wfz2O2/bj1bSbw48WltRnB5O8yuv98O5JCKlcMfzrz4UWJWjWpgWc7q /c1m8ZCbt1gU6jytCk0swC20q9UpdrvyTFEtL6zIQw2CrajnmRb9M8K/V0qybgJWOkbK zn6sIHl+7v+WCgdLoeaIEoLK+7gdwSji5WT6PozHzSkgJkPGAZ9T20unCEu7/L6HlE6b TCp/DjXy0XiuI9O/SpFQ8LYDEvCkaQXg9jx1O70FI4qqtjewyErVYFLcCeuJ5BuzruiZ hSWET9MLYyELraHDnAR1XT+uqdpAsnGqaBKQeOfjhGdPBviaTqe8Y0/gI6egcUu1lTbZ 8S3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=nAFNtBJlS3hl3MBJrROBYeS31mZMUlyI46cCofdXZus=; b=AoPBDdp8bpJM4bqnTwEVeXMXLJNwv7J5d2T6u9WBh1Af5RkbF8jN365mZeNK1qOrBL mRw7iRdxHgLRsvncmSKh2ExP57SRajCW2wMQ7PGhYa6AN/jmZD6XEUKh568TosZCRnN9 ew9jUU/fyPPCH6eLuaAn3tvS7R6WQ1FwPqDeqrlge4NDEdve8ffYQEPpbCOB5Ka/s7Hm Tc7DV8fDi+0PPpy3Tfo2NVduB+abCknopPIQfqNvCF4wSeZNrDiWEw4trDAGMC//taaE nNWKgehyGU6rYxvI3Cdf9Sz7uk1SGDEJ9nGAhGW4mfw4relWi5xm216rT0XHh/r0BfqC hECg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si6379572edc.398.2022.01.29.13.08.56; Sat, 29 Jan 2022 13:09:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242510AbiA1GXg (ORCPT + 99 others); Fri, 28 Jan 2022 01:23:36 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:60596 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242520AbiA1GXc (ORCPT ); Fri, 28 Jan 2022 01:23:32 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nDKfN-0000yO-4l; Fri, 28 Jan 2022 17:23:26 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 28 Jan 2022 17:23:25 +1100 Date: Fri, 28 Jan 2022 17:23:25 +1100 From: Herbert Xu To: Fabio Estevam Cc: horia.geanta@nxp.com, andrei.botila@nxp.com, andrew.smirnov@gmail.com, fredrik.yhlen@endian.se, hs@denx.de, linux-crypto@vger.kernel.org, Fabio Estevam Subject: Re: [PATCH] crypto: caam - enable prediction resistance conditionally Message-ID: References: <20220111124104.2379295-1-festevam@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220111124104.2379295-1-festevam@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jan 11, 2022 at 09:41:04AM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Since commit 358ba762d9f1 ("crypto: caam - enable prediction resistance > in HRWNG") the following CAAM errors can be seen on i.MX6: > > caam_jr 2101000.jr: 20003c5b: CCB: desc idx 60: RNG: Hardware error > hwrng: no data available > caam_jr 2101000.jr: 20003c5b: CCB: desc idx 60: RNG: Hardware error > hwrng: no data available > caam_jr 2101000.jr: 20003c5b: CCB: desc idx 60: RNG: Hardware error > hwrng: no data available > caam_jr 2101000.jr: 20003c5b: CCB: desc idx 60: RNG: Hardware error > hwrng: no data available > > OP_ALG_PR_ON is enabled unconditionally, which may cause the problem > on i.MX devices. > > Fix the problem by only enabling OP_ALG_PR_ON on platforms that have > Management Complex support. > > Fixes: 358ba762d9f1 ("crypto: caam - enable prediction resistance in HRWNG") > Signed-off-by: Fabio Estevam > --- > drivers/crypto/caam/caamrng.c | 15 +++++++++++---- > 1 file changed, 11 insertions(+), 4 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt