From patchwork Wed Jul 24 06:02:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 814148 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp2619208wro; Tue, 23 Jul 2024 23:09:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUuvJOMjeD92eHHAh5q9RkoT2dc9zqc1QdR1NSqDaQDT60oLBOUzLwtJQan8jYT4tKPC+08/HO7zzrsq1nGWMWO X-Google-Smtp-Source: AGHT+IGtWYY9X5Xc1WXn/auk5az+jV+1smSiSGSMeR5G6sRxqOMGS+7xfEqA92ha7U2iMBn54OEa X-Received: by 2002:a2e:7315:0:b0:2ef:2504:22d8 with SMTP id 38308e7fff4ca-2f02b99e038mr12403401fa.48.1721801368543; Tue, 23 Jul 2024 23:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721801368; cv=none; d=google.com; s=arc-20160816; b=W2yLi7k80Rqs7+F3YrJl8ArqUkjFPVgHgkDMhMCK/tx4Fhm1RWa9cRlmJI/oiMmQOF G1H5OM2sgUipaFp73zjRieF4oH5u5wAvR0NTfS6ljkiMEQYyXLUxDSmWj4H+dn/FVND6 oJfAvmTUyQeMwvjXXjgaXdndI557Ec3tJUnQ469dH0mqSbneqYrU7YH7k5h65bN1ZZ8M 5rURD2zx1gCwZF2YvGkMfhksK0sGN943sG/QstnX/9P+1QfCPz2+myzZp6nrQYjBbJ08 sLm1KK+xNc6ao1V3l9CWEAx4OFDFDb/AYcsIuS8eCPUOvMlJMJu8MlNgD/jupDD/NEMW FqDQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from; bh=TvtpO7jQ1WKXJ0EmktZeRcXApNuRFvvjOH9own6S/5Q=; fh=eimiGswTlodK8yi2DcDfSicmKwvq5bxKQKpD+SkkTNY=; b=I/dU9qjpTuCcJl1qrEybXZm2TUlog/g6tUjAw19+UAnNmvBfIOqNEJWjJGoH7cs3ro ZeWY1jc1jjypJhPCGKtoGVoX+D7ApfoBn0h749hbet/mtzsxZBkfPbOnq3Kls7vua6XV xtjlNdz4cIzk8cd5HT0psJwKqBgTlhqEoAKl+T7Sr1rCfep8DV1AWwtKrbfVTLHOtV88 ls98bXWI4uIqUTt0X4on4fd8+vuwSoALtjhaTOwiuoo1zTugRBFUusKiNtEkZgyQmvoV QEimW7RLuuTc1WB4E/dopJPKQ1Rh13sZrh6bKF6FPAs8ljiZvOleHUVlmGEpkq3WSVWD YosQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ffacd0b85a97d-369e366f03dsi1325939f8f.273.2024.07.23.23.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 23:09:28 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (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 E97DB8883D; Wed, 24 Jul 2024 08:05:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 1BAE18884F; Wed, 24 Jul 2024 08:05:01 +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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=ham autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id C78DD8881C for ; Wed, 24 Jul 2024 08:04:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BDC571476; Tue, 23 Jul 2024 23:05:17 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AA9FF3F766; Tue, 23 Jul 2024 23:04:47 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Marek Vasut , Mark Kettenis , Michal Simek , Patrick DELAUNAY , Patrice CHOTARD , Huan Wang , Angelo Dureghello , Daniel Schwierzeck , Thomas Chou , Rick Chen , Max Filippov , Sughosh Ganu Subject: [PATCH 25/40] sandbox: move the TCG event log to the start of ram memory Date: Wed, 24 Jul 2024 11:32:09 +0530 Message-Id: <20240724060224.3071065-26-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724060224.3071065-1-sughosh.ganu@linaro.org> References: <20240724060224.3071065-1-sughosh.ganu@linaro.org> 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 The TCG event log buffer is being set at the end of ram memory. This region of memory is to be reserved as LMB_NOMAP memory in the LMB memory map. The current location of this buffer overlaps with the memory region reserved for the U-Boot image, which is at the top of the usable memory. This worked earlier as the LMB memory map was not global but caller specific, but fails now because of the overlap. Move the TCG event log buffer to the start of the ram memory region instead. Signed-off-by: Sughosh Ganu --- Changes since rfc: New patch arch/sandbox/dts/test.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 5fb5eac862..1e1e9eaeb5 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -78,7 +78,7 @@ event_log: tcg_event_log { no-map; - reg = <(CFG_SYS_SDRAM_SIZE - 0x2000) 0x2000>; + reg = <(CFG_SYS_SDRAM_BASE + 0x1000) 0x2000>; }; };