From mboxrd@z Thu Jan 1 00:00:00 1970 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 7D9F0EB64D8 for ; Thu, 22 Jun 2023 14:01:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 124A18628F; Thu, 22 Jun 2023 16:01:06 +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="gFGoFYtj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 423AB86301; Thu, 22 Jun 2023 16:01:03 +0200 (CEST) Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) (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 6041786281 for ; Thu, 22 Jun 2023 16:00:47 +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-xf33.google.com with SMTP id 6a1803df08f44-62fe1e6dc65so61376876d6.0 for ; Thu, 22 Jun 2023 07:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1687442446; x=1690034446; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zIqa/48Iy6l9aYz+cqslfcAiXcUL4m02ctOyhahgyBY=; b=gFGoFYtjRJiUY+OjGpwJwJUPtNv7Y/zukhaZW7hP5Rzb5nLAfNatK4Qmb6hUeDjqtE 7om+6EYi/tJGzcZWssCPRI1ROTB45IzUf4HF89yLTSleY9oLdgqZ3/QEULF4GtHwj4aw osGwaFIi6cU1hEQtlMVtCH0Zan3uQIlg+9vwU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687442446; x=1690034446; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zIqa/48Iy6l9aYz+cqslfcAiXcUL4m02ctOyhahgyBY=; b=jWLPiOO7wpWu6xHNBWqAwl87k5GyFVBaRUgLiAbDg51Q6zSkhQiZZ/WRdznO+Pc2hP jWikk0EtVNKMscIMQDfccmyNn3wR4nnN6hS2xF057go6vPXjKRG3adJf5jycgVGqzU5V rp4QElr4bRsTvek5dLz2BRW6adNnjDwIsZ5ABu1jGCu3bYBRfqYzkxuranz5QqoGsAr9 25ZwPEx8eHEvBVuSkeVl7dly6zJm6e2/UeGsRm32X5qPn0YRj3O5P+W4ndfcUZv3nypg 7pPJXAIp7OWn/CqCguNrQmENpt00A2A21CpuaT7b4skQVEgEzyg34fgLhAjG+dKQadyC YlAQ== X-Gm-Message-State: AC+VfDxUnTDoH9nbHqzYoooL4b74F3Trkbzj3ClLVNpFDQ8MqTftfzec wP8QNY4dHqR5wrI3vJxNc5JbbXGjx/Y81CTtghshAA== X-Google-Smtp-Source: ACHHUZ6v8vr3dyzlSvg3vEYbCM91UfE8+Efuh144FHM8dF0/fPN720yLt8tPNiDU/WvDwhMs/Zf4Zw== X-Received: by 2002:a05:6214:21a8:b0:630:1bc2:d66c with SMTP id t8-20020a05621421a800b006301bc2d66cmr12814593qvc.64.1687442445989; Thu, 22 Jun 2023 07:00:45 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-1822-f178-f78c-4fe8.res6.spectrum.com. [2603:6081:7b00:6400:1822:f178:f78c:4fe8]) by smtp.gmail.com with ESMTPSA id q10-20020a0c8b0a000000b006300e92ea02sm3805549qva.121.2023.06.22.07.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 07:00:45 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de, =?UTF-8?q?Pali=20Roh=C3=A1r?= , Simon Glass , Francesco Dolcini Cc: Francesco Dolcini Subject: Re: [PATCH v2 0/2] common/memsize.c: Fix get_ram_size() when cache is enabled Date: Thu, 22 Jun 2023 10:00:44 -0400 Message-Id: <168744241829.1369808.5834074653724684657.b4-ty@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230530133327.178278-1-francesco@dolcini.it> References: <20230530133327.178278-1-francesco@dolcini.it> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 On Tue, 30 May 2023 15:33:25 +0200, Francesco Dolcini wrote: > From: Francesco Dolcini > > Ensure that every write is flushed to memory and afterward reads are > from memory. > Since the algorithm rely on the fact that accessing to not existent > memory lead to write at addr / 2 without this modification accesses > to aliased (not physically present) addresses are cached and > wrong size is returned. > > [...] Applied to u-boot/next, thanks! -- Tom