Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A42FDC4338F for ; Thu, 29 Jul 2021 16:50:11 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 26A3960EB2 for ; Thu, 29 Jul 2021 16:50:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 26A3960EB2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 970068312B; Thu, 29 Jul 2021 18:50:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="pxugp+eH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C9FF083140; Thu, 29 Jul 2021 18:49:46 +0200 (CEST) Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (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 54B3982F3F for ; Thu, 29 Jul 2021 18:49:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x730.google.com with SMTP id z24so6595760qkz.7 for ; Thu, 29 Jul 2021 09:49:41 -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:user-agent; bh=oteFK1jWhxIJ0vaoESCJ5Np6etQPHT2N9Z2AahyNwn0=; b=pxugp+eH2rOsScVdofhl6OxvA37V8P1B9Z1lFZmDmX2huTDHj6bJtGMznZmmUuCNym h7AKWHtp6uzh2tKKfXDaDSlDrGDE/wsnwf9Dbuz+T64QwE0i5RCdMTJRZlTrEKX48XcV i+lBJAj8TxFXKjCacosli0zYhGSq4DitFO9TE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oteFK1jWhxIJ0vaoESCJ5Np6etQPHT2N9Z2AahyNwn0=; b=Icll6drNY93JVqZQ1I3Tzh8X5r7oNGK6wu4LZmCB9KbAD2fUCFvQlnAKRDrkCF72EE VOYD/33YvlKjEjn+r3bAhmoSoP+gCP/Jsxywrwz0+2udTgfYs1bQ451l6lbavoFey2tB Rn3x5zjRKYEkRDEUauiDqSvafe9eqVLAYuyQv+H+zlUdb6bIqqzc9nWQjyEarHMZrXmi 4tBCmUofvWu5QwP8/TYe7Abi/JBJS6fjg3p6SLQ3xVy/al0sSxvjMY1mk3FQCCCaAvMT Q45n/4teAhZ7daX6rj/6J8bAayWPjQE40xGMA/PUgu5SPohqOZ51U8/qotziWGzwyDbw lV3w== X-Gm-Message-State: AOAM532S3UUqEHKOwlN8PBJEtgz4FmuQqSyMrPa6Xj02bes9DFoWlihw aDOHQWlrpgejXR6tGeUJSqw+sxIEsJcP0Q== X-Google-Smtp-Source: ABdhPJzhWWjibD9qhIAYfYHDm9ItlmoxtRsm/q9ijTu703hPCLizBcNKojJALVYpPTxcae17Turccw== X-Received: by 2002:a05:620a:1521:: with SMTP id n1mr6076180qkk.400.1627577380192; Thu, 29 Jul 2021 09:49:40 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-94ed-10de-2168-2ec4.res6.spectrum.com. [2603:6081:7b01:cbda:94ed:10de:2168:2ec4]) by smtp.gmail.com with ESMTPSA id w71sm2059776qkb.67.2021.07.29.09.49.38 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Jul 2021 09:49:39 -0700 (PDT) Date: Thu, 29 Jul 2021 12:49:37 -0400 From: Tom Rini To: Patrick Delaunay Cc: u-boot@lists.denx.de, Patrice Chotard , mark.kettenis@xs4all.nl, Anastasiia Lukianenko , Harald Seiler , Oleksandr Andrushchenko , Simon Glass , Suneel Garapati , U-Boot STM32 Subject: Re: [PATCH v2 2/2] arm64: Update memcpy_{from, to}io() helpers Message-ID: <20210729164937.GU9379@bill-the-cat> References: <20210719092151.1346480-1-patrick.delaunay@foss.st.com> <20210719112135.v2.2.I43db93d122a7c13b1505b1f565127780cad729ef@changeid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="e080i1BlFqO+k9+3" Content-Disposition: inline In-Reply-To: <20210719112135.v2.2.I43db93d122a7c13b1505b1f565127780cad729ef@changeid> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --e080i1BlFqO+k9+3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 19, 2021 at 11:21:51AM +0200, Patrick Delaunay wrote: > From: Patrice Chotard >=20 > At early U-Boot stage, before relocation, MMU is not yet configured > and disabled. DDR may not be configured with the correct memory > attributes (can be configured in MT_DEVICE instead of MT_MEMORY). >=20 > In this case, usage of memcpy_{from, to}io() may leads to synchronous > abort in AARCH64 in case the normal memory address is not 64Bits aligned. >=20 > To avoid such situation, forbid usage of normal memory cast to (u64 *) in > case MMU is not enabled. >=20 > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > Cc: mark.kettenis@xs4all.nl > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! --=20 Tom --e080i1BlFqO+k9+3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEC3CEACgkQFHw5/5Y0 tywV7AwAuMsT4jLvkmkrpJKbHQFTTKWfmd61+Hxtxz2xTKTZhtxJdrUMjeZt/3Cq YRUcbgWagOZKh2JeDqPpGAvhY9A6fZFXmDfP1XEm9F7w6Hjvz28rYFASev4Nl3Bd 8Hgg8mk4nGswoIquTPGAbz7Y0ts2fuM7jtxT8u2Du1Yrc5l6zCivhMiARKg0Is+w 8Q/QjZFbQt362xpQTV6FqvCR1TyZYdnTMYENN5OoLZW9nMGrdvV5JTlCd/lU8kSa EunhcrLdxErvMo8thEvYZYqShUh72xeelLZzzeoH6k3jZr6tUBQLwPU3Wjmwllv/ 2n7Bzqb55C038vZUJnvBiAYpA2zWg+EwSysz5UDPI7pVuyed3X3dK4Ajfg0q6MZl J/VXru+hqxttptHjnHC2N97hB2ct3YerCO4aR8bAkKCzkgalAY/p/GqtpdKskaAJ UbLpfwsHXCVmujmiVmjjpSQEXrvGbHHtE2PzTZoU0Wi0fkLjTgCxiJsT5iIAZD8i wzggAKw2 =SA5z -----END PGP SIGNATURE----- --e080i1BlFqO+k9+3--