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 0C2DEC433EF for ; Sat, 11 Jun 2022 03:03:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D80148445D; Sat, 11 Jun 2022 05:01:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ysoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ysoft.com header.i=@ysoft.com header.b="LrhSAVH1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 617B7843E7; Fri, 10 Jun 2022 15:50:06 +0200 (CEST) Received: from uho.ysoft.cz (uho.ysoft.cz [81.19.3.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EE60E843F2 for ; Fri, 10 Jun 2022 15:50:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ysoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michal.vokac@ysoft.com Received: from [10.1.8.213] (unknown [10.1.8.213]) by uho.ysoft.cz (Postfix) with ESMTP id 45E37A02A1; Fri, 10 Jun 2022 15:50:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1654869000; bh=9PiG4RNidBZkkBUqjvZvV/xVyigPpotQpJsOSR3+sQ8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LrhSAVH1l9UVIhdK6ndfIJkq1KK5oQ3BPaEWB/xA8jl2fZcuNEu/gMhDSZ516vkav H81Okcz2/9i40nq4IGnrSo5p4khLZA/vn2g2Hp+qRPqOyzym5iGvbMW1xYrIXA+E4J vIkBgs2d6v4THZSSfXrl6eY0JDrnYe0/sj3sKRR8= Message-ID: <342bbc5c-a648-a213-63d0-bb0370c6fa71@ysoft.com> Date: Fri, 10 Jun 2022 15:50:00 +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: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in, caam_hash() Content-Language: en-US To: Fabio Estevam Cc: Stefan Roese , U-Boot-Denx , Gaurav Jain , dullfire@yahoo.com, Rasmus Villemoes , Schrempf Frieder , Heiko Thiery , ZHIZHIKIN Andrey , Horia Geanta Neag References: From: =?UTF-8?B?TWljaGFsIFZva8OhxI0=?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Sat, 11 Jun 2022 05:01:08 +0200 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.5 at phobos.denx.de X-Virus-Status: Clean On 10. 06. 22 13:47, Fabio Estevam wrote: > [EXTERNAL EMAIL] > > Hi Michal, > > On Fri, Jun 10, 2022 at 7:02 AM Michal Vokáč wrote: > >> Hi Fabio, >> I had the very same problem/error on i.MX6 and figured out that >> CONFIG_ARCH_MISC_INIT=y must be enabled otherwise the caam_jr driver >> is not initialized. > > Yes, correct. There is a patch from Gaurav to address this: > https://lists.denx.de/pipermail/u-boot/2022-June/485959.html OK, thanks for the reference. It took me some time to reply to the thread and this patch came in the meantime. >> Hash algo: sha256 >> Hash value: 13e0b23bd49f9e86a0425080fc788db67bf318d6f103f217d5705a455737e91c >> Verifying Hash Integrity ... sha256CACHE: Misaligned operation at range [122c4604, 122ce684] >> + OK >> Loading fdt from 0x122c4604 to 0x18000000 >> Booting using the fdt blob at 0x18000000 >> Loading Kernel Image >> Using Device Tree in place at 18000000, end 1800d04d > > On a imx6sabresd the board simply hangs in SPL, when CONFIG_IMX_HAB=y: > https://lists.denx.de/pipermail/u-boot/2022-June/485993.html > > Does your board use SPL? Normally it does but I am not that far yet. We are in a process of upgrade from v2019.07 to the latest version and moving everything from the legacy support to the driver model etc. is quite challenging. So far I am building just the non-SPL version and loading it over the NXP uuu tool to fail-fast. I expect ton of new problems once I move to the SPL version :) Regards, Michal