From patchwork Tue Aug 22 07:51:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 715709 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp129828wrp; Tue, 22 Aug 2023 00:51:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF2+XPTE1hkCnqBDPcJJwDstXNPlguzX4BA/8fe86LGr7M2xn+qx1GphGSctmIpckSw2Zvy X-Received: by 2002:adf:f587:0:b0:319:867e:97cb with SMTP id f7-20020adff587000000b00319867e97cbmr6520668wro.42.1692690687970; Tue, 22 Aug 2023 00:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692690687; cv=none; d=google.com; s=arc-20160816; b=bhBr5jYjKwxrb/muwJFkMo1ZURUdMfI1bOea8d3UC90B6xkiCvK5Or5vTfoByfNF+/ f+jtB/VqTjZHYr8fUk0ugQ8YWq90YMLpvG0Q0n6nczKK+w3Utr+MUS/yf443pp4mzTfA d1/IWoh84OlncuzJtf4XVPKECwoObyJOxA763+Bb4yHeXs5hn6lcGnchujjQnqBD3wDq kpTMFb75vqZm/s9cvDU7VDlmOkEb8FgkdGGOB9fN5SMRKHHHA3SZZNLUKxba8MKJftHf lYVhrAy9S62vASxi5I26VasGNioY9dLGqOpW7OU2YFGRt4GHL8RsB1ejbdUe8webAMBX EHbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=s+dqmZ9rDMBUi8pPdP0xXZ6665T9Du0SEQ0l6cJLlHg=; fh=ywerKgkclLRbK5/O5t74d04hntlxkInEq0zTAOr8pDU=; b=JNb2imguXnP4xMbLt6JoSLHdhQcjejVVUFPwwoKwTis5m2c387yTX8UJmkYcG8acvJ rUa8aNcYL8230hcKYLGEfPPEDjhwxKM4Q7kVqSEyGnJ9jjfAax0H+KLXiYF0zJetL5V1 5Hpbbcr8iNvMIzZgR7noC1xaavmFxTp5QAmONvzDeH7bsgcb1Fv4BX62sekzdrZamUVH pRWlMiHT99NgfwAcuHdW6YY2uFUwobf1RhjSlgT4t9gtuNiZqzVKR3QjT/0TgLBoEJmU Tki2d8ROg35kp5G9qG5gp0A47coXWCY8qNjyVGCENm+lnX9z5RiCjY0pLtjzo6/rb9hW Ul/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="L1PbW/Ff"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id o2-20020adfcf02000000b003175fe61efdsi4521457wrj.297.2023.08.22.00.51.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 00:51:27 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="L1PbW/Ff"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C4C388641A; Tue, 22 Aug 2023 09:51:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="L1PbW/Ff"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 405CE86416; Tue, 22 Aug 2023 09:51:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (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 5C9938641A for ; Tue, 22 Aug 2023 09:51:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bhupesh.sharma@linaro.org Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1bf48546ccfso20243695ad.2 for ; Tue, 22 Aug 2023 00:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692690680; x=1693295480; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=s+dqmZ9rDMBUi8pPdP0xXZ6665T9Du0SEQ0l6cJLlHg=; b=L1PbW/FfDW/J+nZM810ccKjTpoqUuiQFQOrt5LAdDUfsYEKqv8zywmByiuK/SljA5N chJYfEF1lfwo5r3b3pOLV0EocDQHcsHTw2dcAImTFxAlJYQuxO8IanKDhIU+hDltg8xx 6NfrNY5tKi1RwcbaeJPPkuLIZeORfeLeJQT7TYxzJ8BWBkAYCuIg0uAISznkaTLVGFi5 e7HKaiueFeNY+HcecNaPuZ/gU/clZNBWHNiVxhxXHu+7nu7NoSVoFaJU2H1O+aMQfTtE qP2ZqD/78ZV9oKueOcqW0qKzLbo30Kc6jKdKXJLN6w6BpPnGKUvzKEHkZ708O8qFbfqp 6YYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692690680; x=1693295480; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=s+dqmZ9rDMBUi8pPdP0xXZ6665T9Du0SEQ0l6cJLlHg=; b=DpZWuDQYhNWmWXXJkYxbOmOYqbBGcpD4ZVNCep/6BApzLmbEu1H30X0w8GLVYkBoJn ZtQBrEF9UitTckm27m9MPGldVeWSf4MRUXxoiW+tE9l80m2SUOmIbs5me2a+mKkaBBp7 4K1FPfkpPbD0RtkZzjAcyKLIXYY9WbReW2AiGGrDFMA8kuXVvFGJ0wFBXh/2kUuWbySX W6GqePEF0kGQQwis0aNbLpDw9SvKUSK9D5m+2NCBmWdGI42Yvvh7h8RLZqembqNebqrk wCi3YInmOh01Kp/0MDtxlDG2kDdYGF05yXmK9rGN4e+qAbMJYP2xmt0Ow7rcVKDPAI72 XONw== X-Gm-Message-State: AOJu0Yyk03JnxU2uUSzI3EsncAKFaEzcIrbZM5HeW7pK3/7XJmA0CgRc Y8dzYJsPxXrlu1S/9FI+n+2rONGHsGUlf3/8WqM= X-Received: by 2002:a17:902:70cc:b0:1bc:9c70:b955 with SMTP id l12-20020a17090270cc00b001bc9c70b955mr6195586plt.28.1692690680188; Tue, 22 Aug 2023 00:51:20 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:3924:9d49:2d2a:63e6:8974]) by smtp.gmail.com with ESMTPSA id ix21-20020a170902f81500b001bb8895848bsm8422199plb.71.2023.08.22.00.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 00:51:19 -0700 (PDT) From: Bhupesh Sharma To: u-boot@lists.denx.de Cc: sjg@chromium.org, trini@konsulko.com, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, Patrice Chotard , Patrick Delaunay , Peng Fan Subject: [PATCH v2 0/2] Disable setting ICACHE and DCACHE off for ARM64 platforms Date: Tue, 22 Aug 2023 13:21:10 +0530 Message-Id: <20230822075112.717992-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean As suggested by Tom, disable setting ICACHE and DCACHE off for ARM64 platforms. It is also noticed that with CACHEs off u-boot on ARM64 (ARMv8) boots slower. If some platforms still wish to turn off ICACHE / DCACHE during the SPL stage, support that configuration as well. While at it, also fix an compilation issue for stm32mp when SYS_DCACHE_OFF and/or SYS_DCACHE_SYS are enabled. Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Tom Rini Cc: Simon Glass Cc: Peng Fan Bhupesh Sharma (2): arm: stm32mp: Really fix compilation issue when SYS_DCACHE_OFF and/or SYS_DCACHE_SYS are enabled armv8: Disable SYS_DCACHE_OFF & SYS_ICACHE_OFF for ARM64 arch/arm/Kconfig | 2 ++ arch/arm/cpu/armv8/Makefile | 4 ++-- arch/arm/mach-stm32mp/cpu.c | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-)