Message ID | 20191206213936.v6.39.Ie9c9e62df6466e428461a20bf17322a7626dd193@changeid |
---|---|
State | Accepted |
Commit | 42791100180943c0f776a325843c66540e9595e7 |
Delegated to: | Bin Meng |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="C50xA4yn"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47VHCQ4cbJz9sPL for <incoming@patchwork.ozlabs.org>; Sat, 7 Dec 2019 15:53:22 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9F24581733; Sat, 7 Dec 2019 05:48:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="C50xA4yn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 51E358172B; Sat, 7 Dec 2019 05:48: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=-0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (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 BC73381695 for <u-boot@lists.denx.de>; Sat, 7 Dec 2019 05:48:42 +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-il1-x142.google.com with SMTP id w13so8149361ilo.1 for <u-boot@lists.denx.de>; Fri, 06 Dec 2019 20:48:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FdK5g7xxmsX2mZRsAW90Q92lTxCkxb99JAMpzghzxXk=; b=C50xA4yn0+T2dmrNm8p4cC4JSMsSacbMGQWXgGoM5d9FCqTUGiK++Ehv8Z4FwSHt6h /0tSQzt0ejVI5ff0yGQ8KXPj3X1MJtiG1vS9suwVQeBqJBGk6UkFiaeCO/KZ/8YYa2A0 roj+R9Q7jwG9Jm2yhKQsuW0sYVZaJEngekmQU= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=FdK5g7xxmsX2mZRsAW90Q92lTxCkxb99JAMpzghzxXk=; b=YMrd5IySQRjspw3SNBT/mN4ijUH8u8TZWGgVUCwQ4KMccgQPedVAfhPnnbtDKhBshy VqGqilh72P7WZrWJ9GcKVReus5zxCmvSRe5zWGm/fonKB19DjGY8PEyD1EY8frlR3iDm KnUvdDkJdTauJ4EvF5YRqGo8Z5MePRI5X3A1ZdxhZFKNgXxGvsDlymIN2vxZ5jXagbmW Nprh4LaAruDIzGV4cebCLPTf2FG3D1fIfaUrMuH+Bofu/1BM4Lt86un+Xb7YITcmRj/b 1SxRHfORV0/pBCUwXOONnxWYViExLeeCdoOaqDu01iy40avc2mEJulQQXU8zSYddT7kc XTGw== X-Gm-Message-State: APjAAAWAcyBHxiGRHSJaiXR4f3c1YKpYE9ul9mo8y+u8G9SSQg77O29D MHUDyM4ocnqPUW6Q3E6gGR1dGh6dONs= X-Google-Smtp-Source: APXvYqyqjZZmPHJNu23d0ih66ZL2+eFuZjRD1o50SQiBACCq4dArEOdQM7odSvfNTz43TMiYSQLM1g== X-Received: by 2002:a92:1e0c:: with SMTP id e12mr170048ile.115.1575694121586; Fri, 06 Dec 2019 20:48:41 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id o7sm4549410ilo.58.2019.12.06.20.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 20:48:41 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Subject: [PATCH v6 039/102] x86: Set up the MTRR for SDRAM Date: Fri, 6 Dec 2019 21:42:12 -0700 Message-Id: <20191206213936.v6.39.Ie9c9e62df6466e428461a20bf17322a7626dd193@changeid> X-Mailer: git-send-email 2.24.0.393.g34dc348eaf-goog In-Reply-To: <20191207044315.51770-1-sjg@chromium.org> References: <20191207044315.51770-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
x86: Add initial support for apollolake
|
expand
|
On Sat, Dec 7, 2019 at 12:48 PM Simon Glass <sjg@chromium.org> wrote: > > Set up MTRRs for the FSP SDRAM regions to improve performance. > > Signed-off-by: Simon Glass <sjg@chromium.org> > Reviewed-by: Bin Meng <bmeng.cn@gmail.com> > --- > > Changes in v6: None > Changes in v5: > - Fix FST typo > > Changes in v4: None > Changes in v3: > - Move mtrr_add_request() call into this patch > > Changes in v2: None > > arch/x86/lib/fsp/fsp_dram.c | 5 +++++ > 1 file changed, 5 insertions(+) > applied to u-boot-x86/next, thanks!
diff --git a/arch/x86/lib/fsp/fsp_dram.c b/arch/x86/lib/fsp/fsp_dram.c index 987cb4f8f3..9ce0ddf0d3 100644 --- a/arch/x86/lib/fsp/fsp_dram.c +++ b/arch/x86/lib/fsp/fsp_dram.c @@ -9,6 +9,7 @@ #include <asm/fsp/fsp_support.h> #include <asm/e820.h> #include <asm/mrccache.h> +#include <asm/mtrr.h> #include <asm/post.h> DECLARE_GLOBAL_DATA_PTR; @@ -61,6 +62,8 @@ int dram_init_banksize(void) gd->bd->bi_dram[bank].start = res_desc->phys_start; gd->bd->bi_dram[bank].size = res_desc->len; + mtrr_add_request(MTRR_TYPE_WRBACK, res_desc->phys_start, + res_desc->len); log_debug("ram %llx %llx\n", gd->bd->bi_dram[bank].start, gd->bd->bi_dram[bank].size); } @@ -69,6 +72,8 @@ int dram_init_banksize(void) gd->bd->bi_dram[0].start = 0; gd->bd->bi_dram[0].size = low_end; + mtrr_add_request(MTRR_TYPE_WRBACK, 0, low_end); + return 0; }