Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.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.lore.kernel.org (Postfix) with ESMTPS id CD862C433EF for ; Wed, 29 Jun 2022 09:02:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9665C83AC5; Wed, 29 Jun 2022 11:02:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656493352; bh=iWX7ORyvcagfMEE1TE1G3GJOe51aODwPBu2aGX/TlJ0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=H1bqDYhtuEtFhbc40hsWK2rWMOYGpDDNqyFX6tyh3W9EwlHpCsmZCV08mbK6dPlto BdHzgopfFKQBWIENa/3QQRnQp2fjai57JfFYhlrTokTbPYbzakljA/wyVHu07XXm3p t83v58leiG/1EgTqthLcKEI4Km71JlZqIfIA7U+JKm8r9zsH9crzRgbf+QSxEsoCpN 0dQNOEBnjCmlK+ceaalHpB/mD0jiRwMK0s0v5/ULqYRfItN/PoB65aucj45a6dhXHx sZFK6fPIvXM6VKweJ8joSnFm8dLSG8g/MwPz3Jjtz2SjPc/D+frt1O3tH0ykKVo5MS gLnjZpZ0flVYg== Received: from [IPV6:2001:a61:619c:6d01:60cd:c1b4:f12f:6fb3] (unknown [IPv6:2001:a61:619c:6d01:60cd:c1b4:f12f:6fb3]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbabic@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D8565838BB; Wed, 29 Jun 2022 11:02:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656493351; bh=iWX7ORyvcagfMEE1TE1G3GJOe51aODwPBu2aGX/TlJ0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=avypuqXNOccFg+rw4Hh5Ga8NlFfaEitQwzfvDWXhYFZQm4bbTsZBDwxp0DnfuCfZm Qug8wznmNEgq/5pxFcqGXjk+yTzk1gT1EcKtGqrErkFJUEwg8v7R7AI2trAPdqSlZl vJWp2sWeGCmJehtSnQICRj5B31DmDlaFodE9HnU1pcu6nYEO9J8UHqfvMpZJOuY9Ue ewrMAC1C8peIK2op/HzaLrbHQeYuLE6QwzdfZo5ka41lCQfFUFNLPkRD7dxfwWaBLm Xy+IGxJF9Q0IOaxfWC775wDR5FT7n4f7NTpTIVm9X6eTnHNneGp182SUBMak9Qyrb+ 4FBfPj9ugo6Tw== Message-ID: <52b0d565-7f97-32be-b237-6f660211a598@denx.de> Date: Wed, 29 Jun 2022 11:02:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver Content-Language: de-DE To: Gaurav Jain , Stefano Babic , Fabio Estevam Cc: U-Boot-Denx , Peng Fan , dl-uboot-imx , Horia Geanta , Varun Sethi , Ye Li References: <20220615123447.4087910-1-gaurav.jain@nxp.com> <1cd6876b-769e-6e35-56ed-dcef8fe7e863@denx.de> <4d596ff8-ab44-60ea-a066-9184e1876f75@denx.de> From: Stefano Babic In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 29.06.22 10:35, Gaurav Jain wrote: > Hi Stefano > > this patch is fixing dcache issue in fsl_rsa.c > > Error reported is in drivers/crypto/fsl/fsl_hash.c > addr = (addr << 32) | sec_in32(&ctx->sg_tbl[i].addr_lo); > > reported error is fixed in [v3] crypto/fsl: fsl_hash: Fix crash in flush dcache > http://patchwork.ozlabs.org/project/uboot/patch/20220616101009.809953-1-gaurav.jain@nxp.com/ Yes, and I have supposed to have merged this, too. I will pick up again both and let CI runs. Stefano > > Regards > Gaurav Jain > >> -----Original Message----- >> From: Stefano Babic >> Sent: Wednesday, June 29, 2022 12:51 PM >> To: Gaurav Jain ; Stefano Babic ; >> Fabio Estevam >> Cc: U-Boot-Denx ; Peng Fan ; dl- >> uboot-imx ; Horia Geanta ; >> Varun Sethi ; Ye Li >> Subject: Re: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the >> driver >> >> Caution: EXT Email >> >> Hi Gaurav, >> >> On 29.06.22 09:06, Gaurav Jain wrote: >>> Hi Stefano >>> >>> This patch is put into state "changes requested". >>> But it is a different patch in fsl_rsa. >>> There is no change requested with this patch. >>> >> >> Something went wrong - I have applied this patch to push to 2022.07, but in CI I >> get the same errors I found before, that is PowerPC build was >> broken: >> >> >> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.d >> enx.de%2Fu-boot%2Fcustodians%2Fu-boot-imx%2F- >> %2Fjobs%2F457090&data=05%7C01%7Cgaurav.jain%40nxp.com%7C98808 >> 23b97ef4669f51108da599feffc%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0 >> %7C0%7C637920840703403368%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4 >> wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C >> %7C%7C&sdata=FGDL9eBnjyUDc423myN4jVoK7QD9VZiitvZao6mz04s%3D >> &reserved=0 >> >> I hadn't time to check this, and I suppose that issue is not yet fixed and I drop the >> patch from MR (Layerscape is broken, too), that is V3 has not fixed CI as in V2. >> Or is there anothe rpatch I had to pick up ? >> >> Best regards, >> Stefano >> >> >> >>> Regards >>> Gaurav Jain >>> >>>> -----Original Message----- >>>> From: Stefano Babic >>>> Sent: Wednesday, June 15, 2022 6:20 PM >>>> To: Gaurav Jain ; Fabio Estevam >>>> >>>> Cc: U-Boot-Denx ; Peng Fan ; >>>> dl- uboot-imx ; Horia Geanta >>>> ; Varun Sethi ; Ye Li >>>> >>>> Subject: Re: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache >>>> issue in the driver >>>> >>>> Caution: EXT Email >>>> >>>> On 15.06.22 14:45, Gaurav Jain wrote: >>>>> Hi Fabio >>>>> >>>>>> -----Original Message----- >>>>>> From: Fabio Estevam >>>>>> Sent: Wednesday, June 15, 2022 6:11 PM >>>>>> To: Gaurav Jain >>>>>> Cc: U-Boot-Denx ; Stefano Babic >>>>>> ; Peng Fan ; dl-uboot-imx >>>>>> ; Horia Geanta ; Varun >>>>>> Sethi ; Ye Li >>>>>> Subject: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue >>>>>> in the driver >>>>>> >>>>>> Caution: EXT Email >>>>>> >>>>>> Hi Gaurav, >>>>>> >>>>>> On Wed, Jun 15, 2022 at 9:35 AM Gaurav Jain >> wrote: >>>>>>> >>>>>>> From: Ye Li >>>>>>> >>>>>>> issue: >>>>>>> CAAM fails with key error when perform Modular Exponentiation >>>>>>> using PKHA Block in CAAM >>>>>>> >>>>>>> Fix: >>>>>>> add flush and invalidate dcache for keys, signature and output >>>>>>> decrypted data processed by CAAM. >>>>>>> >>>>>>> Fixes: 34276478f7 (DM: crypto/fsl - Add Freescale rsa DM driver) >>>>>>> Signed-off-by: Ye Li >>>>>>> Reviewed-by: Gaurav Jain >>>>>>> Acked-by: Peng Fan >>>>>>> --- >>>>>> >>>>>> Please always explain what changed in the current version of the patch. >>>>>> >>>>>> I assume you fixed the build error found in CI, correct? >>>>> >>>>> This is a different patch in fsl_rsa.c I will send a different patch >>>>> for the error reported by you. >>>> >>>> Ouch...I have misunderstood. Well, then I willwait for your patch.. >>>> >>>> Regards, >>>> Stefano >>>> >>>>> >>>>> Regards >>>>> Gaurav Jain >> >> >> -- >> ================================================================= >> ==== >> DENX Software Engineering GmbH, Managing Director: Wolfgang Denk >> HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany >> Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de >> ================================================================= >> ==== -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =====================================================================