Message ID | 20191206213936.v6.46.I381c96a46dab9683b0de8d09ff0c5133b5da9615@changeid |
---|---|
State | Accepted |
Commit | e98791ab80bd136bfaba8c0b2c40651da45ffbf9 |
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="I/W7XxKx"; 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 47VHDp17g6z9sPL for <incoming@patchwork.ozlabs.org>; Sat, 7 Dec 2019 15:54:34 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0C05F81756; Sat, 7 Dec 2019 05:49:17 +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="I/W7XxKx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BE82B81754; Sat, 7 Dec 2019 05:49:15 +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-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) (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 3099D816C8 for <u-boot@lists.denx.de>; Sat, 7 Dec 2019 05:49:13 +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-xd42.google.com with SMTP id c16so9488402ioh.6 for <u-boot@lists.denx.de>; Fri, 06 Dec 2019 20:49:13 -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=iEMxOFNyxjMTjyzBYdnc9MMHNsOjeQ52qg1c+NZMPs4=; b=I/W7XxKxh1hecEFuVhmjzsNJgoBbMkACxOUdvB7khny0ZThCvdZlvPe3+MwL8j4404 bV7GTz0uIWjWzT2hBkYRaOhimra1IPXVqp9nJIy4daHeG5K0d43UkLX+R5NnpSlIo/iq 68iC4nHaBmPNhIYQzESvXoLXVWXZyDIYTs6C4= 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=iEMxOFNyxjMTjyzBYdnc9MMHNsOjeQ52qg1c+NZMPs4=; b=Kr0uPow6QiHN9qJNgBb+NsthrGp8bpxgFl8rG82aViHzzH4tJYFdk/LvZLfdDIqWBe rPPKthOC/6/8RQX6a7+egMCYrYtj1fHYhFNq5GfgZpVy+nj2WnDbAmcDaOtlDAZNOTNF 3jYR7IBUZNQCrl38q/V+Tl5L10zfZI87KAyFrNqbNu2gwE2K5W52hySe33Jz3c0WrCms cu7m1SVtRPPQT5RkTlNoXtJeplb563jy15ZMy4qrH13JbkxOufGH63k5PqoHBBYlwdF7 87K7D9pAWQtPod5kz+lJcztxaOBDaq43kpDogG6676xZcoX8QbQgyK0MyahT8pzLuaa8 tiHw== X-Gm-Message-State: APjAAAX5oRGrMbY+hp7X6OdnkJV7f2klIgoQEscZWY0Bekciem1pzIp8 du4XH079GBcplfj5Ri2W9bVOwFAjJz4= X-Google-Smtp-Source: APXvYqxJz5vXOjV0VILZI/YPySE+xcanD2h0R4VB0/odkEvV2AYSz/4/kNdLe7lR8xBGTkpFeSH57Q== X-Received: by 2002:a6b:f914:: with SMTP id j20mr13852268iog.223.1575694151792; Fri, 06 Dec 2019 20:49:11 -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.49.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 20:49:11 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Subject: [PATCH v6 046/102] x86: fsp: Set up an MTRR for the graphics frame buffer Date: Fri, 6 Dec 2019 21:42:19 -0700 Message-Id: <20191206213936.v6.46.I381c96a46dab9683b0de8d09ff0c5133b5da9615@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:49 PM Simon Glass <sjg@chromium.org> wrote: > > The FSP-S may do this but at least for coral it does not. Set this up so > that graphics is not deathly slow. > > It isn't clear whether the FSP is expected to set up MTRR. It is not > mentioned in the APL FSP document. > > Signed-off-by: Simon Glass <sjg@chromium.org> > Reviewed-by: Bin Meng <bmeng.cn@gmail.com> > --- > > Changes in v6: None > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v2: None > > arch/x86/lib/fsp/fsp_graphics.c | 4 ++++ > 1 file changed, 4 insertions(+) > applied to u-boot-x86/next, thanks!
diff --git a/arch/x86/lib/fsp/fsp_graphics.c b/arch/x86/lib/fsp/fsp_graphics.c index 91d2d08557..226c7e66b3 100644 --- a/arch/x86/lib/fsp/fsp_graphics.c +++ b/arch/x86/lib/fsp/fsp_graphics.c @@ -8,6 +8,7 @@ #include <vbe.h> #include <video.h> #include <asm/fsp/fsp_support.h> +#include <asm/mtrr.h> DECLARE_GLOBAL_DATA_PTR; @@ -97,6 +98,9 @@ static int fsp_video_probe(struct udevice *dev) if (ret) goto err; + mtrr_add_request(MTRR_TYPE_WRCOMB, vesa->phys_base_ptr, 256 << 20); + mtrr_commit(true); + printf("%dx%dx%d\n", uc_priv->xsize, uc_priv->ysize, vesa->bits_per_pixel);