Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF398C4338F for ; Mon, 2 Aug 2021 09:45:46 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1C63061050 for ; Mon, 2 Aug 2021 09:45:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1C63061050 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 32A81833B3; Mon, 2 Aug 2021 11:45:44 +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="MqUkH1hy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 171D7833B0; Mon, 2 Aug 2021 11:45:37 +0200 (CEST) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (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 53A06833B9 for ; Mon, 2 Aug 2021 11:45:33 +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=bmeng.cn@gmail.com Received: by mail-ej1-x629.google.com with SMTP id yk17so22229095ejb.11 for ; Mon, 02 Aug 2021 02:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=jD2hUQfbEP3mBpGzL8pqh33t0ZbTtr0jwE1nNzVyPjI=; b=MqUkH1hyNSNfHPqkQdD9LpiE8iAk+2eq1XicGf4x5tA1PoGVsxnobMD6J0FHjvLrwG g7SBlk3tDVxo+92bEoSfTFv2pqUVL4MSPUWFhZ0PliZw8pmQN5leQQWH7sQ8VeD4pz5S heBzN3dML1kkvOXwYgqyWlyp95JUMUde8prAxVugsw2lRiUFa0DfXiA0nqZgoRKKH2AU pOpgqF5D5qytn/jZtBVQ8EKEFX4TO20pmyp77QQrgheRQxmPtTUqAXGZ5uGDk138P4c0 lmCAqEu+MT+jb/MFLtJV5wKfyzKBy0cLZ0B584ZeqZEV0ICOZrT7MzkiUB8yztSbboiY coZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=jD2hUQfbEP3mBpGzL8pqh33t0ZbTtr0jwE1nNzVyPjI=; b=YbW75R9+HzvuwVTaoq3kZ592iyC+TNw9+/IvIcaIUIu4BcHaho6fqb1H1lWBA/SKH3 w8G38W13WUF2lXa23rt+VeExti4S2qhYICRa1b5uk74ivq3zzsr4UMYqkEx3es8vOrDz I2jpKVscYEwOEBqeX0V8fLmUxInGr1Q+j0LGAp8fOvUS01F010MdtZ15AYJxAnrV7Rbd KlJvWsE6dplhrlHg6TRnilk3SkcEUsPwZbc5pcnd5WwdfN3deb78oUqIrSNwuh6syeaP 0NS07pO5hXD9cYc/iaQr0gnVt69zWRg8v8I0JfQvUb057sVBV6xeBQ/SH+t/GI421GQ5 l2Wg== X-Gm-Message-State: AOAM53278eSjBmkIhhg+iQwTQsq5gq2a1GS47rAm1+mr0hAWhfgtkf8/ DnlzjuNsIASINonRbajkbtv6k5Iz3qBYwg== X-Google-Smtp-Source: ABdhPJyz3+2ynfUIYVS3vWZrKA3a1SJa6JgpkCSmPBCroBxygzjTlqPC4978v4FuuxAYhw7sNfu/ag== X-Received: by 2002:a17:906:38ce:: with SMTP id r14mr14318700ejd.268.1627897532823; Mon, 02 Aug 2021 02:45:32 -0700 (PDT) Received: from pek-vx-bsp2.wrs.com (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180]) by smtp.gmail.com with ESMTPSA id t10sm4131118edv.34.2021.08.02.02.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Aug 2021 02:45:32 -0700 (PDT) From: Bin Meng To: u-boot@lists.denx.de, Simon Glass Subject: [PATCH v3 0/2] x86: Various fixes to MTRR and FSP codes Date: Mon, 2 Aug 2021 17:45:20 +0800 Message-Id: <20210802094522.761676-1-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean At present Intel Crown Bay does not boot. This was caused by various regression issues introduced when supporting FSP2, and some flaws in MTRR codes. With this series, U-Boot boot again on Intel Crown Bay board. Changes in v3: - Add the missing header file include Changes in v2: - Keep programing MTRR to FSP2 only - Move board_final_cleanup() to fsp2 directory Bin Meng (2): x86: fsp: Don't program MTRR for DRAM for FSP1 x86: fsp: Only FSP2 has INIT_PHASE_END_FIRMWARE arch/x86/lib/fsp/fsp_common.c | 16 ---------------- arch/x86/lib/fsp/fsp_dram.c | 27 +++++++++++++++++++++++---- arch/x86/lib/fsp2/fsp_common.c | 17 +++++++++++++++++ 3 files changed, 40 insertions(+), 20 deletions(-) -- 2.25.1