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.2 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,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 2396EC433F5 for ; Thu, 2 Sep 2021 22:43:47 +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 9F0536023F for ; Thu, 2 Sep 2021 22:43:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9F0536023F 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 AC66183524; Fri, 3 Sep 2021 00:42:36 +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="nDOh8Ihf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 42C17834F1; Fri, 3 Sep 2021 00:42:28 +0200 (CEST) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (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 4384183508 for ; Fri, 3 Sep 2021 00:42:23 +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-x734.google.com with SMTP id f22so3965755qkm.5 for ; Thu, 02 Sep 2021 15:42:23 -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=oXmrMwxF23tKgs6K87Br1+w0DM7QPgGXoRKqmpz5Qwg=; b=nDOh8Ihfx/TM6EugjzGn4fzJTuGmn3/NDdCJI0KnJ0TffiuRzZ8L23CI9uvtGLmY2C j0eO0hZPiJlo3XhQ8xvevSv2y2+RkTdCkXhZ9unaedgFeBkktyo/R3elVlEPeuEfCYWR BdsatJWrCCvtCoOnAkcrV4rAXX/t9DxvFYnM8= 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=oXmrMwxF23tKgs6K87Br1+w0DM7QPgGXoRKqmpz5Qwg=; b=HcwE/RRZWKxNLsvt/G6Uf9NMc+69KEWW/KMFXahWctucndElGP+pCJqzDTudaXqm0J Qhji9FuNQ5aDot+Ajodmod3yiPL3Ey33/VaIeppQTu6RsOv1Ql9RF86cufLa1ehIl85f feCoF5HulZP8qfRSG+CdP9jrwq7OPn3qTt9HtEb63AxIKfNr4FSnT+bXpnciXa7JeZKj nwCNddRryarwFKwuBE3XoQ1Rk8KcOOQ7GkbNg1OFb1NolENAvq3XKwO63K3QZJIU3bLB otyhFgRQfNUQmVWZY8I/FrB1zOroQgJbruNMrgpzBFWYmP4bADX4Rlh9pgLgLP77aafo OjVw== X-Gm-Message-State: AOAM533MwLcPxFbMVJPggD4TXovv3B7ChzYrJjDD1eLjJ5hw8oiB6Mwu S6R6dUXSB0HNgE739uHVqKUD4OfB3IYsTw8V X-Google-Smtp-Source: ABdhPJzlh2QUMRYId1iH7JFbJyXml6LaPIuKDqmoJfFdE4J4fyIFnw5j6yT8icCh4w3bcvv6ZvKYig== X-Received: by 2002:ae9:e609:: with SMTP id z9mr499397qkf.222.1630622542134; Thu, 02 Sep 2021 15:42:22 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-95b1-4c42-35f4-d991.res6.spectrum.com. [2603:6081:7b01:cbda:95b1:4c42:35f4:d991]) by smtp.gmail.com with ESMTPSA id s18sm2519204qkj.87.2021.09.02.15.42.20 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Sep 2021 15:42:21 -0700 (PDT) Date: Thu, 2 Sep 2021 18:42:18 -0400 From: Tom Rini To: Samuel Holland Cc: u-boot@lists.denx.de, Jagan Teki , Andre Przywara Subject: Re: [PATCH v2] ARM: Prevent the compiler from using NEON registers Message-ID: <20210902224218.GZ858@bill-the-cat> References: <20210822005402.18113-1-samuel@sholland.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="V2CTZWrWH5Cp9k2u" Content-Disposition: inline In-Reply-To: <20210822005402.18113-1-samuel@sholland.org> 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 --V2CTZWrWH5Cp9k2u Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 21, 2021 at 07:54:02PM -0500, Samuel Holland wrote: > For ARMv8-A, NEON is standard, so the compiler can use it even when no > special target flags are provided. For example, it can use stores from > NEON registers to zero-initialize large structures. GCC 11 decides to > do this inside the DRAM init code for the Allwinner H6. >=20 > However, GCC 11 has a bug where it generates misaligned NEON register > stores even with -mstrict-align. Since the MMU is not enabled this early > in SPL, the misaligned store causes an exception and breaks booting. >=20 > Work around this issue by restricting the compiler to using GPRs only, > not vector registers. This prevents any future surprises relating to > NEON use as well. >=20 > Signed-off-by: Samuel Holland > Acked-by: Andre Przywara Applied to u-boot/next, thanks! --=20 Tom --V2CTZWrWH5Cp9k2u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmExU0oACgkQFHw5/5Y0 tywOiQv+JctxtLOrfNXP2dG/UJF7jubnSEIE6r78B8y94PnFmkCaHwqYpVlRQXhE WtQnzr0LHVouN1uFmwV3dveyZo39P+eKVVEnPxJaLMTnDbfrFnXdju/EIvJWJU3/ Wlk5vt9KrsxFrCc/IXde+S573SSO0rcVqt+O4vNEVcL+E7S5MUWl2DMDykYKzlrc omOBljVs7JoG4A59KoCARgItLkTSAr04bIPxuTfqUucwAOmUgIFrt7Eexa9uUfZQ EPhr8y7KUnTjak9q0OE8nYaKYgEajsCjMrKdX67SJtDdcqGkETAwZ5Q1ehnGalpk SpJTVaq+eIXocIe3FQUesjAHg0QW8k1TZlyhf3IhGCmMHc7XLg9IPeLbRgUVMLfa nHohtYUc+02xrnCXGr/HTlogETvSJD7/PdCqtaK1bCd0Gve1OwmwGt8CtG7ojKBt zcdeKpxo6+teg+h/INgfls0Y6mJN2FjbDD/yr9MXru+/LHAnWcCI8Y+ZNQQlxMze u8fz3wBy =Spem -----END PGP SIGNATURE----- --V2CTZWrWH5Cp9k2u--