Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1379322pxb; Sat, 16 Apr 2022 06:56:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZZDunYCX698BgVQrQ5AklYLD8ZFIJ9hD6FO4DR30OlwC8kOL0Y3YhQGW/syeoGW9Z5mhQ X-Received: by 2002:a17:902:9684:b0:158:b28c:41e0 with SMTP id n4-20020a170902968400b00158b28c41e0mr3581174plp.85.1650117362392; Sat, 16 Apr 2022 06:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650117362; cv=none; d=google.com; s=arc-20160816; b=I5C+FUoUxljkkG8yRE9DWkLy76pN/3KK4TY+i6eDRQjjNGj8a4jPHv3mTSWTg5ZGub Oitcp+ICSLXUReQIwPmcKyMKciqLNyjiFwpVOG0iBVpS58VG/koq1P8kdOzb2P4I61y4 gWMCATtxAPE9F/kvY03R408/ldqizl9twqiuPLMaf4xmCqRXtcxctjSsZQeLGG1BzSFL udEBwqNAvQIRzJf6r6DlIqQYPidnR8U/xWNA/4Sx5d2SzX3iku2tgMHFrNAhVG94NJar 82UysqA9TezFXxJtIfZiRwX6SHUIR8boqdAzPMBo9ZzpNAnLQ5Tfzy6ItuknhJ5CT3Os FbzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Oa17SrJjKK6fmQmyzunecCxaWKrt8dkxFwex7Ql3Gks=; b=MymrNVbUuPh/rdGRTiyoep8EgAfqmu0WFRdkplYY5lpR2rwv3qiR3v5xouHiC+t72m r3STR1AcW/45jabm9g9MHxeCsHAJC4ZZZwtfyQUpVqLajH2bq4ATWHh2MSgKAhLHOfSx nFt/GLHaSfZh6Mkh1gM57tnzAPK1Do21qlDA+o7pFQVo/2Qh8HbFJH5i4nW7aBLHeM4i DhFnalgdEcn1PiE4tOl2n9uwTQ6F7N7sf1+siKTWdKOe/Gl+cH434wi+oXfx9VMfcXS5 ofvIqcXxnyvq9owhhVclSQWzReoUvNEqqMwg/7LJcD0oNzKnBB67B8dxdQjTKlconSaN IK7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MBEszC9i; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc8-20020a17090b3b8800b001cb133b45f3si4714978pjb.143.2022.04.16.06.55.37; Sat, 16 Apr 2022 06:56:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MBEszC9i; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232058AbiDPNbX (ORCPT + 99 others); Sat, 16 Apr 2022 09:31:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230237AbiDPNbV (ORCPT ); Sat, 16 Apr 2022 09:31:21 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 555F989310 for ; Sat, 16 Apr 2022 06:28:49 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id v4so12770981edl.7 for ; Sat, 16 Apr 2022 06:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Oa17SrJjKK6fmQmyzunecCxaWKrt8dkxFwex7Ql3Gks=; b=MBEszC9ir1dkUP+gC2wCNRlI65n90W/3aVZBveXDM7JWgCsJyR7WJESBRpPHSdTV9W RDtLDQJs+8w1ZBD4W6IrfNlQ9e2sQpxVUa1OM70E5x/pq7ISvus46jPCkC3XGeyqMTrD anwqnAhPqSnzRAOsonJxQukVaDvPpVbcXgW5yS7hNdAvBt1xJ1ALHjDPO8SJF/R9dVOj wFNp++bR0EZoHWbpUzoBZ7YnVJNepjij0H6F9+q46Rd8FXv2rvVKMUGkz8NdP+xWlmkR Mo8x2b8OGjLEhPH6KZa08lI0hNxw+12cnVNOFZcAbatcEAWEHsYMfwHTJJojcOZVdjOR VFig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Oa17SrJjKK6fmQmyzunecCxaWKrt8dkxFwex7Ql3Gks=; b=aI+ceILtv4KdtmMFCTbxxN3OwNnZ563B1bP3oLot7bmaLZXiX2sAD+CtyjMW+fZ4k6 +gUPwOOjpX9Ebc7S9PHU/xc4c84sW3cWHcoUTeBniZlBLlDuX/jsdOj678zNPyoUd4Bb hOfM2iryggw+vpxTbMXPBq5zYnZKNNh9jUbE1RDTzmpoVdrJ8Xz4cQ66xmHnF06CDVE6 i8uwLHD4vUtQb7mpT/sir6e8GsiIlz4T7M/EaIgvrdgRnobLCWxW7O2kJC4DcvWLSQ/w h8Qe9cFIlyOMeC/wlmYX1nk4gdNLsqOkEq6lgEbwDmMDPzEZhbAxlKykmIihHeytNCor G2ew== X-Gm-Message-State: AOAM533F9dpS+QzPhhNOBRQxGbT7xolWHumh4qc5U9IuOtgGskvPITKs 4FlJVLj11aDPwYP+B6sNeCoiK9Jgbr0SXuznz4Y= X-Received: by 2002:a05:6402:190d:b0:41b:a70d:1367 with SMTP id e13-20020a056402190d00b0041ba70d1367mr3710967edz.155.1650115727817; Sat, 16 Apr 2022 06:28:47 -0700 (PDT) MIME-Version: 1.0 References: <20220111124104.2379295-1-festevam@gmail.com> In-Reply-To: From: Fabio Estevam Date: Sat, 16 Apr 2022 10:28:37 -0300 Message-ID: Subject: Re: [EXT] Re: [PATCH] crypto: caam - enable prediction resistance conditionally To: Varun Sethi Cc: Horia Geanta , Herbert Xu , Andrei Botila , "andrew.smirnov@gmail.com" , "fredrik.yhlen@endian.se" , "hs@denx.de" , "linux-crypto@vger.kernel.org" , Fabio Estevam Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Varun, On Sat, Apr 16, 2022 at 9:24 AM Fabio Estevam wrote: > Is the kernel patch that you plan to send along the lines of the > following U-Boot patch? > https://patchwork.ozlabs.org/project/uboot/patch/20220415111049.2565744-1-gaurav.jain@nxp.com/ Following the U-Boot fix, the kernel patch would look like this: --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -648,6 +648,8 @@ static int caam_probe(struct platform_device *pdev) return ret; } + if (of_machine_is_compatible("fsl,imx6sx")) + ent_delay = 12000; /* Get configuration properties from device tree */ /* First, get register page */ @@ -871,6 +873,8 @@ static int caam_probe(struct platform_device *pdev) */ ret = instantiate_rng(dev, inst_handles, gen_sk); + if (of_machine_is_compatible("fsl,imx6sx")) + break; if (ret == -EAGAIN) /* * if here, the loop will rerun, What do you think?