Message ID | 20191206213936.v6.35.I2740ad290fe58e0b8a6874f37320f069978b62e1@changeid |
---|---|
State | Accepted |
Commit | 0a0b09b47b2d3d492765a6436d7ad88a33c6744d |
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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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="GminVxqE"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 47VHB81M2Wz9sPL for <incoming@patchwork.ozlabs.org>; Sat, 7 Dec 2019 15:52:16 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4DEDB803C3; Sat, 7 Dec 2019 05:48:39 +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="GminVxqE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3800C816BB; Sat, 7 Dec 2019 05:48:38 +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 BBACE816AD for <u-boot@lists.denx.de>; Sat, 7 Dec 2019 05:48:34 +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 u16so8104398ilg.10 for <u-boot@lists.denx.de>; Fri, 06 Dec 2019 20:48:34 -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=suN43gk4y0CA4iH44v/2/gmiy/1Enc9Q/RJxyL+O9j4=; b=GminVxqE2cFNeVfuY5Tym5CUgcA0BxtCRklnujVc+AxURyBK6mu+oO1DiQ2ewfhHhX CaVc5yG4gYQcUzHDke2FyW00UGtrjDDH7viiyxPStYfVQvXIXTSsvNMs5Dc40Zhj0gUC btSI2/KqCLCJYu2ux5vMjkhT6icLf2AMGZDw4= 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=suN43gk4y0CA4iH44v/2/gmiy/1Enc9Q/RJxyL+O9j4=; b=jgWLAVoqHO/LQJg4+qkPayRuI0sS3J3DQPs8VUBnJd5i03hCAKPeh2Ur8rwF6DoQ8A cjPUOqTD9Qh1DiM8eFPa2tvav/n3S9JunEcOj8R5Uo3ImicTF63YktGWire7zoje01Eo ZjpJJ7ETAfWHADBgTbpKYeguq/Hcym40BfZHXYBC4wx36nDkN+w7IV8XtzVwQdJarnDV DgeVfqpe+1oX5R5y3tkSVARU/ArTjyO8hRRnC9LIqIQ0YiMyZCbZzJPVIiMEKyYpDYRS fVXqn+3oVf2ZABMobfG4SeyEGcfHuPoDzPfut2kUnxJxnCiTK651WwLLpnjER3V3DLSR voxQ== X-Gm-Message-State: APjAAAWuwPtoJdIzXf2CV0N3YBUbW2LMvqzgxrB6fFCQGuszf/yWbuZV 1npWa0hPq/cYHuTOgQWHugyjpjShCsQ= X-Google-Smtp-Source: APXvYqzih1teV41xlHnN19bHq994qmKSCvdWY1gGt9+MlRCJ9MNdhi+if8a3Msbu50c0TOyZUXu5pw== X-Received: by 2002:a92:6908:: with SMTP id e8mr17321490ilc.56.1575694113590; Fri, 06 Dec 2019 20:48:33 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 20:48:33 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Subject: [PATCH v6 035/102] x86: Add mrccache support for a 'variable' cache Date: Fri, 6 Dec 2019 21:42:08 -0700 Message-Id: <20191206213936.v6.35.I2740ad290fe58e0b8a6874f37320f069978b62e1@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: > > Add support for a second cache type, for Apollo Lake. > > 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: > - apollolake -> Apollo Lake > > Changes in v3: > - Move the mrccache_get_region() change into this patch > > Changes in v2: None > > arch/x86/include/asm/mrccache.h | 1 + > arch/x86/lib/mrccache.c | 3 ++- > 2 files changed, 3 insertions(+), 1 deletion(-) > applied to u-boot-x86/next, thanks!
diff --git a/arch/x86/include/asm/mrccache.h b/arch/x86/include/asm/mrccache.h index b81e2b2fb6..0917cf2470 100644 --- a/arch/x86/include/asm/mrccache.h +++ b/arch/x86/include/asm/mrccache.h @@ -30,6 +30,7 @@ struct mrc_region { /* Types of MRC data */ enum mrc_type_t { MRC_TYPE_NORMAL, + MRC_TYPE_VAR, MRC_TYPE_COUNT, }; diff --git a/arch/x86/lib/mrccache.c b/arch/x86/lib/mrccache.c index 1278737ce4..10949d249e 100644 --- a/arch/x86/lib/mrccache.c +++ b/arch/x86/lib/mrccache.c @@ -241,7 +241,8 @@ int mrccache_get_region(enum mrc_type_t type, struct udevice **devp, } /* Find the place where we put the MRC cache */ - mrc_node = dev_read_subnode(dev, "rw-mrc-cache"); + mrc_node = dev_read_subnode(dev, type == MRC_TYPE_NORMAL ? + "rw-mrc-cache" : "rw-var-mrc-cache"); if (!ofnode_valid(mrc_node)) return log_msg_ret("Cannot find node", -EPERM);