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 ECD37C77B73 for ; Tue, 30 May 2023 23:50:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A5F8A860C4; Wed, 31 May 2023 01:50:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="iKMEr6+Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E03A28601B; Wed, 31 May 2023 00:08:47 +0200 (CEST) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 37B0084773 for ; Wed, 31 May 2023 00:08:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ghidoliemanuele@gmail.com Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3f6d3f83d0cso53691425e9.2 for ; Tue, 30 May 2023 15:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685484524; x=1688076524; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GTwRrkNVlj9JhbDDrup/zHcOcOxMKKGm3erermlxKls=; b=iKMEr6+ZFiQT6k+VJGkA04iiAjb/ym11szwvV23O/U/9HXxSosCuBOnkvDC4E9mHFJ IBRPwmKWAlmoZxH1bnH8NxXT7WmsjSPEYboZ0AALLFmf9121ns7kE4e8ql7gM6QkVKuC PkwVFAKH1zDczIEL9rLxQgJz3MlybPXMNYcR7EiEvPu4yn3lHuJlxrL4iRej2qyyFdBR 9pFD5CRtX4XRNUNjvBzeMH8JlXD4+TkgTulNLssWIQdLpTAWkAsBLuR/h2UyCspNtugZ 7JlWSZYN5ZPZoyQ88RVUEvWdP9k25+6p9ANJKSJysXnd4X1VSUoVaEKVNzUOOc01U8xM G/bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685484524; x=1688076524; 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=GTwRrkNVlj9JhbDDrup/zHcOcOxMKKGm3erermlxKls=; b=ctcpNBNaaIezpfvvk0JK4TQGUcngMMvwZgxVdTDUC9/BQkJfaOrbbJ/ux+xdkl9TF3 NboR6i/XgbNSTJy7f5+RnzYeU7OXsexwLiDyHZ1fZD5y4zi2508vCj8HxarbJT1SIAYo 8P/QdclNEhbARM52ifAwD2lj+IG1i0T/Uhli4fHyVUNR7xOHwEabaG2O17X7/uZ1To1C RHPjaHRf+dj6gQ3Na7sLK8Vg9W6gstZD1/Q2pwIgsCYYGnpDX1ZUBiLO+10IsRqlfEED ZbDr6X7sYqrzXLXmeZbcccxBRMp/KHEvM0ZL91JDqZcVaxy909Jy6dJuZDVCF2QEIbOI eCjg== X-Gm-Message-State: AC+VfDx42tLLdIF74lWeacvRyfA5oo5tAom05DEWxGjFc6qN03idiWhV iU4u7Hg8Byp3SxlEjcJ78HKSEji6N1OBEA== X-Google-Smtp-Source: ACHHUZ4JrsWyGu7WR8QpSeDBbWdfSibctEOrX0ptxgrzd8HmwwhT3zz5CIGuTERSn7sIYoluGoV4Vg== X-Received: by 2002:a7b:cd18:0:b0:3f4:ef34:fbc2 with SMTP id f24-20020a7bcd18000000b003f4ef34fbc2mr2985661wmj.24.1685484524053; Tue, 30 May 2023 15:08:44 -0700 (PDT) Received: from localhost.localdomain ([151.48.123.38]) by smtp.gmail.com with ESMTPSA id n15-20020a1c720f000000b003f6cf9afc25sm18338995wmc.40.2023.05.30.15.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 15:08:43 -0700 (PDT) From: Emanuele Ghidoli To: u-boot@lists.denx.de, Simon Glass , Heinrich Schuchardt Cc: Francesco Dolcini , Emanuele Ghidoli Subject: [RFC PATCH 0/1] Cache incoherent if re-enabled on Cortex-R(5) Date: Wed, 31 May 2023 00:08:34 +0200 Message-Id: <20230530220835.2358955-1-ghidoliemanuele@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 31 May 2023 01:50: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.8 at phobos.denx.de X-Virus-Status: Clean From: Emanuele Ghidoli I want to propose this patch cause I experience weird behavior on AM62x Cortex-R U-boot spl. Seem that the stack is "restored" to the time dcache_disable was called. The effect is that the code between dcache_disable and dcache_enable is executed twice, but the second execution runs with wrong function parameters. Best regards, Emanuele Emanuele Ghidoli (1): arm: add invalidate_dcache_all() after disable cache arch/arm/lib/cache-cp15.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.34.1