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 74739C43334 for ; Fri, 17 Jun 2022 13:16:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E6A1E8431E; Fri, 17 Jun 2022 15:16:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.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=konsulko.com header.i=@konsulko.com header.b="ScIH5Xki"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A32F88431E; Fri, 17 Jun 2022 15:16:27 +0200 (CEST) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 51C3784319 for ; Fri, 17 Jun 2022 15:16:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2b.google.com with SMTP id n15so2338659qvh.12 for ; Fri, 17 Jun 2022 06:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jF4AA5j5EF78q8/+ubGtReLQbKc++jhF/LvRNr6hj6Y=; b=ScIH5XkigQvmGqd7gC4kbshgeG4WVT5bLOQ6Vijt2LG6+OE1LSxejCuMrX6mb55H0Q IjVnpUGWMNyqEdNhkHJer4AGiEwycsLo9vWHMQGgUFIOW9r0/HeZGmwK4XzHjzfBSFSu epQRzDuzZFjGkJOIq/7W5kXdza7LxSfCDBXws= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jF4AA5j5EF78q8/+ubGtReLQbKc++jhF/LvRNr6hj6Y=; b=iJ/Hu/xvPGLtS69XZyt+COUNtHXcDGC8eF+WUZNViEg8nBc4KBGDOUva98uvrqzcz1 b8dmHb0MWJgzlQdr363CgggvZSIdmkh5DO3vkdhPVMb/iNFqcChvGSp+SHF2WPcJfPlb +aYHo1aIXnrpY7lYbtTPha4kZVZVzmLSyfCSYl+g82F03HtnKtuQIL+9fEYnUmBuPd2p ggbGpac+v5xkG6DNAWBJZQLxXqmgYJnGgEm4h0TuEgqru0dgYLV3Yg6wNGZFXqZTLWWN pAKWN2Bc+RodzdSWBLZ33FPoEgLshoNc2G4HOWlBUC0ad6wjLMhrGs67ZfwUgelwtElM viyg== X-Gm-Message-State: AJIora86CcK1cAxlkITFOU+XjYAc4HTPFbvnY1j41GwCvBNxrWN24wE5 1SPwUvkU4BYs+Ae25Odu2WidqQ== X-Google-Smtp-Source: AGRyM1t01CgKmd0YMmQE4XbWyXnGbYUwTxIEJV74OEVPhV4exuB0E70b8M10oJZSUEX6d5FZWWd3ug== X-Received: by 2002:a05:6214:d05:b0:464:57fe:17b7 with SMTP id 5-20020a0562140d0500b0046457fe17b7mr8385567qvh.13.1655471782908; Fri, 17 Jun 2022 06:16:22 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id f10-20020a05620a280a00b006a77940be22sm4468498qkp.95.2022.06.17.06.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 06:16:22 -0700 (PDT) Date: Fri, 17 Jun 2022 09:16:19 -0400 From: Tom Rini To: Stefan Roese Cc: u-boot@lists.denx.de, Gaurav Jain , dullfire@yahoo.com Subject: Re: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash() Message-ID: <20220617131619.GH2484912@bill-the-cat> References: <20220429133444.419224-1-sr@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gl32Q9cg1UYx5OVO" Content-Disposition: inline In-Reply-To: <20220429133444.419224-1-sr@denx.de> X-Clacks-Overhead: GNU Terry Pratchett 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 --gl32Q9cg1UYx5OVO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 29, 2022 at 03:34:44PM +0200, Stefan Roese wrote: > While working on an LX2160 based board and updating to latest mainline > I noticed problems using the HW accelerated hash functions on this > platform, when trying to boot a FIT Kernel image. Here the resulting > error message: >=20 > Using 'conf-freescale_lx2160a.dtb' configuration > Trying 'kernel-1' kernel subimage > Verifying Hash Integrity ... sha256Error: Address arguments are not al= igned > CAAM was not setup properly or it is faulty > error! > Bad hash value for 'hash-1' hash node in 'kernel-1' image node > Bad Data Hash > ERROR: can't get kernel image! >=20 > Testing and checking with Gaurav Jain from NXP has revealed, that this > alignment check is not necessary here at all. So let's remove this > check completely. >=20 > Signed-off-by: Stefan Roese > Cc: Gaurav Jain > Cc: dullfire@yahoo.com > Reviewed-by: Gaurav Jain Applied to u-boot/master, thanks! --=20 Tom --gl32Q9cg1UYx5OVO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmKsfqMACgkQFHw5/5Y0 tyyyyAwAnJCOFGDroiskCyRZd2rZEL2mYshp1aSEGjsQ7qgTDRufoxs3O8HHiNss 26yDprhUPP1+0t9Y4veHf9wNivmwtjZQHY+/EUjEZVBJCyNq8oYfS6PVv0pC5NBv j76Ftl0htiNwn1R4tRWzngVauGv6ZvBymxJEZKWw9tRWmagxKZopgPKF8LtfB8xH FOe6F9mggiO+w5OqIeKp912/pWGcQVkoOVU7jL92owFrOpwxWnS1/SdfN3Zvh6J2 OuUBR1tdaT07aH2no3Yj6YdnUYn3R2tF+pgoXuUZmDc8k2gwRqE/YvLYbQRiFfkz 9s8okiF6CORWV8L71muJeB7kOur8qejOzqN3ysHbpTSOMzi6fSuLwRsf9FZTFqlB wReGO7OtBRVop93l2kJ3cHwuzdEqJqW59vqNS3914f+ZGvHIqR1CbQxZuTorOMPL +2/0g/QlkzrShKGU2V+5jFQ5QahVDZ3Km3SIrrxEBUpxKMpSfLtPAWiAxliXs1op fZN6MfRa =Y/SO -----END PGP SIGNATURE----- --gl32Q9cg1UYx5OVO--