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 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 7D15FC4338F for ; Sat, 31 Jul 2021 08:46:32 +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 BFA4B6023F for ; Sat, 31 Jul 2021 08:46:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BFA4B6023F 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 3D78E8327A; Sat, 31 Jul 2021 10:46:20 +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="ggdRIhPE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D18A08326E; Sat, 31 Jul 2021 10:45:50 +0200 (CEST) Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) (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 46EAB83255 for ; Sat, 31 Jul 2021 10:45:45 +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-pl1-x631.google.com with SMTP id e21so13896112pla.5 for ; Sat, 31 Jul 2021 01:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fKuNtjznKj7kia/3t9mFTGlNtXO5//nQu5hhiTkSTfg=; b=ggdRIhPEpKApFcE+glO0/Cf8zmJs6DbE3oMbLbTbIlNaUuisnj3ll7gcQg5avf7Hhw /Ug9Y7bcXDzqiVSs9en3Q7waLc5CL5pU4YQt6xwCfvI3p64SAkURbY/7oDI7aiYWivBK j+up4U8QIsuRZc7tjs+aVfsX8gwVkJZE6cqTgMnUxdKFBwbw3TDydlqurQwncHNqbdMa A1lqUIK21iWurKnL/OptBgU+IWxR7L9CNeUiDn2A4Wvy3BUYMGGMyyv2nuKfRrUboBfH HJCBGgZW4ncOgcPggqPDeWVWjgzKzSJPDDHeR6fl+9qyRgAQgLQxmVr5/5+xazlP4QJy IHUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fKuNtjznKj7kia/3t9mFTGlNtXO5//nQu5hhiTkSTfg=; b=PQZS12WWx4TsqtVneHitIZzgS6TgZ7+MMGl+ktO3W2p1Mg1G7UHqxi1+ONrupvtMWI CPhlKvrMfQ7lwk53KCsJd/zcWIHHJXtm4DMIW+rOicj5gsGvmb+iHLwwjkJLX+WlYE1y k5GZnQ/c6/qNKTGw7uJNOSLonmcxwjKDEicLK8I+n2JzgwsxIW61D5tjVFCAqHQLyoMi 0BgkjWHx2zZ5io+9YVpxeAQg48caelg+yWscibn0Fnvd6pZPyU0tTQAViSUlSrq88O6K f13M70M2Piuf2s18XKK2O7t38yzXrr2KCKeCo4RuDirRbmYoQH4YPds5Qa3SAxe/3Beo FM2w== X-Gm-Message-State: AOAM532XULfkAds1RXZ69Hwl3eBQn6jfFlH0S710c5ADFzw/LXWJJc/v h/bDNM/yRT2Q2/sJ81FXip0= X-Google-Smtp-Source: ABdhPJxVzpw+aicHJlB5iXpAsL8VQqODuj3JPqXvcpjsKcLx2bzfBx5keYsjAb0bmPT9XNRhL2kbxQ== X-Received: by 2002:a63:d443:: with SMTP id i3mr4728108pgj.391.1627721138576; Sat, 31 Jul 2021 01:45:38 -0700 (PDT) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id h6sm688355pfv.155.2021.07.31.01.45.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Jul 2021 01:45:38 -0700 (PDT) From: Bin Meng To: Simon Glass , u-boot@lists.denx.de Cc: Bin Meng Subject: [PATCH 0/7] x86: Various fixes to MTRR and FSP codes Date: Sat, 31 Jul 2021 16:45:22 +0800 Message-Id: <20210731084529.7524-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. This series is available at u-boot-x86/crownbay for testing. Bin Meng (7): x86: fsp: Don't program MTRR for DRAM x86: mtrr: Do not clear the unused ones in mtrr_commit() x86: mtrr: Skip MSRs that were already programmed in mtrr_commit() x86: mtrr: Abort if requested size is not power of 2 x86: cmd: hob: Fix the command usage and help messages x86: cmd: hob: Fix display of resource type for system memory x86: fsp: Only FSP2 has INIT_PHASE_END_FIRMWARE arch/x86/cpu/mtrr.c | 13 ++++++++----- arch/x86/include/asm/mtrr.h | 7 ++++--- arch/x86/lib/fsp/fsp_common.c | 16 +++++++++------- arch/x86/lib/fsp/fsp_dram.c | 35 ++++++++++------------------------- cmd/x86/hob.c | 9 ++++----- 5 files changed, 35 insertions(+), 45 deletions(-) -- 2.25.1