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 29FEBC001DF for ; Mon, 24 Jul 2023 14:53:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 849BE86808; Mon, 24 Jul 2023 16:52:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="P7m47i59"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E5998866DC; Mon, 24 Jul 2023 16:52:25 +0200 (CEST) Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (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 A1A1F8675D for ; Mon, 24 Jul 2023 16:52:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd32.google.com with SMTP id ca18e2360f4ac-7835e2286c4so197120039f.1 for ; Mon, 24 Jul 2023 07:52:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690210342; x=1690815142; 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=TYHxabLob18iE0aiG10TEPT1FoitSeZDMLLkNlQHiYI=; b=P7m47i59tZlHC7x2oGJDM+6hpMeovl2tiroIC0zh74+1LFXIsqzszDWGSJaUGGzZFX tste+dm46lGJ9Gp4+15gUwR8MPsZoDlgSQ7oWdL9j7BsNNyc1H/pgr9hMofN0zhhhmxO o4NpufN3ITOBxrTAQr5W3tKvNh0vqB6yaKkcI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690210342; x=1690815142; 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=TYHxabLob18iE0aiG10TEPT1FoitSeZDMLLkNlQHiYI=; b=dauPjYyKdDWpDjdmsLNoK/qTCL7SS05Nw+bcXt/lXVRjzeo+KNtPrVdRiBDg7kT7Ec Z0+JY3IQ/nxkMavuqkU9yqOv/EKBw3lV2KzmIlyrEDpuQRxQF2aair+nm4mdBjlJcW98 OKbUxP2FXbgjDkhQ6qwf0IXmtT/5JvmthaIGP12R/M+rRhn/ZZ3UzZBLNGXdSElC4Trf 3Aaoxccr4IjLje0xeHY0nqwMnxhkvgPypQWlV+pJAZe1N5PMTZUgvv770ho1hRx/zXrx YCvZFBeT67Ja+j1Zfu/Ydr0dnXGzJHYX5Ei5/jLCAYvd3VA1b16itm+6VyedqdRnaKcO 7M8A== X-Gm-Message-State: ABy/qLamxJtgLXVEYUyS/N2T47gcNii94fheKI+JSy04hsJx/+laGaki KZzt3cT8iW0AumFWscsOpH1zcCTGvL52lWTDbzg= X-Google-Smtp-Source: APBJJlGf4rEchZu4Yqv+rGHPOh1sQYnYaLBU0VNIbmA6npTVIAz0DlWTV1OMUMd4IChTzmbnql9ECQ== X-Received: by 2002:a5d:8198:0:b0:785:d5d4:9f1c with SMTP id u24-20020a5d8198000000b00785d5d49f1cmr123133ion.18.1690210342282; Mon, 24 Jul 2023 07:52:22 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id n12-20020a5d824c000000b007862c74cec6sm3462225ioo.1.2023.07.24.07.52.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 07:52:22 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass , Devarsh Thakkar , Michal Suchanek , Nikhil M Jain , Ovidiu Panait , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Rasmus Villemoes , Stefan Roese Subject: [PATCH 5/9] board_f: Fix corruption of relocaddr Date: Mon, 24 Jul 2023 08:52:01 -0600 Message-ID: <20230724145210.304917-5-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230724145210.304917-1-sjg@chromium.org> References: <20230724145210.304917-1-sjg@chromium.org> MIME-Version: 1.0 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 When the video framebuffer comes from the bloblist, we should not change relocaddr to this address, since it interfers with the normal memory allocation. This fixes a boot loop in qemu-x86_64 Signed-off-by: Simon Glass Fixes: 5bc610a7d9d ("common: board_f: Pass frame buffer info from SPL to u-boot") --- common/board_f.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index 7d2c380e91e2..5c8646b22283 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -419,7 +419,6 @@ static int reserve_video(void) if (!ho) return log_msg_ret("blf", -ENOENT); video_reserve_from_bloblist(ho); - gd->relocaddr = ho->fb; } else if (CONFIG_IS_ENABLED(VIDEO)) { ulong addr; int ret; -- 2.41.0.487.g6d72f3e995-goog