From patchwork Mon Feb 20 19:49:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1745223 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=lmIwW+9o; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PLCgg2cDJz23yV for ; Tue, 21 Feb 2023 06:50:07 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7865D8594B; Mon, 20 Feb 2023 20:49:52 +0100 (CET) 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="lmIwW+9o"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E023A8593E; Mon, 20 Feb 2023 20:49:45 +0100 (CET) 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,DKIMWL_WL_HIGH, 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-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (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 4BB828593E for ; Mon, 20 Feb 2023 20:49:40 +0100 (CET) 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-xd2a.google.com with SMTP id f9so1704191iox.2 for ; Mon, 20 Feb 2023 11:49:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=GxDvDJueFjea4F+erPE2h9PXuw8YnAcu9G9Y87vQqFU=; b=lmIwW+9oS7oemd5iSiqCPQlds4caStxephi4068hkzugrcxw6nlmHSgfKRQtyc40OS hOmLYPSQmS3DjHIuaEgAaXwx8Z+/2ztNPglwAZZ/7SqDWwgu+papJ9pNfIaBDU/NoFdb ysOdXrh3aAVSjL/1wWN4N4iGFvosFLbpHNUKg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=GxDvDJueFjea4F+erPE2h9PXuw8YnAcu9G9Y87vQqFU=; b=Aqg2g7hi1xmjskOtdjzAsA+FkiHarZ6MFIEd3p93f9UCIu2RyYxGOFBqyK7iGwSqke DSS7By9DnU0xbAS1vVRJN1TioULWfMJtjyTivtzB7RHlxqQpkeODBh1J/1nDvoCt4gwI H3zmBNwkXsDvt0uj47SkW7w3qtOxWFXToy2Lfy5lQiotu9r0zDrTD6/AozAGheYv294q ReEJ6piuxCCGPvMoe2Oh/S1GEsb8OCkShrMPI7kFrSzLiFiLIQ+YYP0Ym1BAND2Cyyqp yZMAYVnzH2U6nCHdjNVw/z7OLOFecKyoZws0J/YqWQEmkhKf5/T4laPLzV5Gnvfxs5n+ 10QA== X-Gm-Message-State: AO0yUKXnaMHclOBtKJ0ANtQ9amKtoh1EunlKRJ8AX9BGrfApSEw89uHI X+N5vV7IG0Dy/wec7uv36RSnQJYcN3ez3Fol X-Google-Smtp-Source: AK7set9PpDbKgn6VkHeOk0A7ubQtXTtaWVd5kKvUpCSroCgTRJpWJOSV2PBskuHFu0z0StqJcTWChQ== X-Received: by 2002:a6b:5c19:0:b0:715:e311:b8e8 with SMTP id z25-20020a6b5c19000000b00715e311b8e8mr956002ioh.18.1676922578711; Mon, 20 Feb 2023 11:49:38 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:9f65:93e2:a4c7:ed10]) by smtp.gmail.com with ESMTPSA id e7-20020a056638020700b003c4ec576030sm587521jaq.4.2023.02.20.11.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 11:49:38 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass Subject: [PATCH 02/13] x86: Adjust search range for sysinfo table Date: Mon, 20 Feb 2023 12:49:16 -0700 Message-Id: <20230220194927.476708-3-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230220194927.476708-1-sjg@chromium.org> References: <20230220194927.476708-1-sjg@chromium.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.6 at phobos.denx.de X-Virus-Status: Clean Avoid searching starting at 0 since this memory may not be available and the table cannot be there anyway. Start at 0x400 instead. Signed-off-by: Simon Glass --- arch/x86/cpu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c index 6fe6eaf6c84..3394e5b523c 100644 --- a/arch/x86/cpu/cpu.c +++ b/arch/x86/cpu/cpu.c @@ -352,7 +352,7 @@ long locate_coreboot_table(void) long addr; /* We look for LBIO in the first 4K of RAM and again at 960KB */ - addr = detect_coreboot_table_at(0x0, 0x1000); + addr = detect_coreboot_table_at(0x400, 0xc00); if (addr < 0) addr = detect_coreboot_table_at(0xf0000, 0x1000);