From patchwork Wed Sep 25 14:57:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1167487 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) 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="eoGo+gEN"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46dk236jzsz9sPK for ; Thu, 26 Sep 2019 02:25:47 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 9B2E0C221A9; Wed, 25 Sep 2019 16:13:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2E2D8C2223A; Wed, 25 Sep 2019 15:05:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7D343C2223B; Wed, 25 Sep 2019 15:05:24 +0000 (UTC) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by lists.denx.de (Postfix) with ESMTPS id C75BCC220D3 for ; Wed, 25 Sep 2019 14:59:09 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id n197so14590101iod.9 for ; Wed, 25 Sep 2019 07:59:09 -0700 (PDT) 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=cv2PMwe3j6AOKiMCAv2DY1psoYiLlwOoCVgQtMHwcas=; b=eoGo+gENoCcAx7zYmKZ+o7cCGT7zV66wTQGKca/mdVbQY8MyTS804dAmLGsPiq8HMN OWZBTX9qeGVqdN5YwntGkXHPyDmO25+CQbrUizL+MFv/0I5v7l//jWv1iVnNdniGea/C x/J/PZNe1XeBVIqxGy8e5PPMfoNkNy9CoFxII= 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=cv2PMwe3j6AOKiMCAv2DY1psoYiLlwOoCVgQtMHwcas=; b=QZU2fE+n//3NUCMuzeLkj/y2OM9LYDqj3aZet/HCwP6e2RJ5IN7LsxKXhuYP1Opw98 I7s4VnbFarrbgaUxsn4qJrMl+ZeQvhyqJ+jy7Kfb3yt26+Y3llovzV9xm6FvSuZ97lSk W6Yrv7MRcwuaSghxPFtnuXd1VYotfbKK+aR0CA4Pa8cTCL7wn9TUq+4J1f7vOH2vUaBc yWH63xOxNKhuN7xJY5rzAHJ4CVWbCPFgQC32CmELKXOwBxBUc0s2Nis0B8sTyUKV6VHD hJHWU1BOE1sf/F8qnghuQQPbrZEDqd48ifZH4K7wVrC7H0+JGYq970KijKX5g27bTDq6 96zw== X-Gm-Message-State: APjAAAWSC2o/y+Upf2Nve3k5pvLowRtrCjt3Kg1irqsaY1MeJh26fbg2 xeN9KTWzw7euRlyG1DPvS4gGK98Pf3I= X-Google-Smtp-Source: APXvYqx5HpHWjIuAKVzXWCNUSwP2kK3H6yi7hOWg+XG7M1JPBtXoftJOt6NqFWX7BP2BqyAnFxaDmw== X-Received: by 2002:a05:6638:928:: with SMTP id 8mr5460888jak.124.1569423548594; Wed, 25 Sep 2019 07:59:08 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id d9sm4254964ioq.9.2019.09.25.07.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 07:59:08 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Wed, 25 Sep 2019 08:57:13 -0600 Message-Id: <20190925145750.200592-90-sjg@chromium.org> X-Mailer: git-send-email 2.23.0.444.g18eeb5a265-goog In-Reply-To: <20190925145750.200592-1-sjg@chromium.org> References: <20190925145750.200592-1-sjg@chromium.org> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 089/126] x86: Set up the MTRR for SDRAM X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Set up MTRRs for the FST SDRAM regions to improve performance. Signed-off-by: Simon Glass --- arch/x86/lib/fsp/fsp_dram.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/lib/fsp/fsp_dram.c b/arch/x86/lib/fsp/fsp_dram.c index 9161af65b98..4a87516f422 100644 --- a/arch/x86/lib/fsp/fsp_dram.c +++ b/arch/x86/lib/fsp/fsp_dram.c @@ -8,6 +8,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; @@ -70,6 +71,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; }