Message ID | 20200706033741.2169374-2-sjg@chromium.org |
---|---|
State | Superseded |
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=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=ElqgDbDJ; 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 4B0WVk0xY4z9sDX for <incoming@patchwork.ozlabs.org>; Mon, 6 Jul 2020 13:38:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7A05B81BD5; Mon, 6 Jul 2020 05:37:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="ElqgDbDJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3E5B681BC0; Mon, 6 Jul 2020 05:37:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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 A011481BC0 for <u-boot@lists.denx.de>; Mon, 6 Jul 2020 05:37:48 +0200 (CEST) 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 k23so37819450iom.10 for <u-boot@lists.denx.de>; Sun, 05 Jul 2020 20:37:48 -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=hUX9fxjoKHbcJoSzUTcNxwRwqwA3FpXRQNFXUqM7EQg=; b=ElqgDbDJmJW9v1+XThiP8OnDjXGhQpa/ey9tWQTsQ6hfBN0wItRrk15nU9otXPFPJg Ji+fQpkXsk2tDpeNAOHMpqH7eIdsSag071owifKosJYahCrf3KAN1HJHLX1RLOI+iEyV 9fRXSJuODvLUOpu9CQSDr5jf/Jr8fQsD4WsPY= 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=hUX9fxjoKHbcJoSzUTcNxwRwqwA3FpXRQNFXUqM7EQg=; b=j9vMQhUSBOHLWbSFICsDygnMTIVcGYnxyS8sp73s5i+SySXUs2g/LB4WkpQ+/+sjeN i1vxsTA+arx7xjao/r+L865XxNxORccSmOI/AU37BYGpqdsA+LvOZfJqdf+PH4x7LEby gXx9il/vnAYFIAoUP+Kh6n1Jn/9PwKgQyrqg2ohtyH9kjHEUkOTPOsbyZU1shl7tEN2q ftTvW//sOG9trizOp+TzgXzJPtvwng6iYDPN+8Wipki6q5bqXkyNcG9Bd04cD1xlXgPq ObCD8JtG8x73psM7K5JXn0Qt4KRlAFXAMhJ+o+W9qox99W0pydZ8PWIDvYft+E3PaYyA Updw== X-Gm-Message-State: AOAM532mV0BF41sZM13xmrXbQJZMxaHwKH/QqG0HWyBNhpOs/UMD8dR5 kjw5ZHLfWWL8A0Lpuq9KJLaaWx449H7ZHA== X-Google-Smtp-Source: ABdhPJzm5hNhHqvKZwx4Ln2oMSMI3/fudBlDZ9ejzG/J6cIar9nh//UjMpwnZ/43+2galOUt/6tvzA== X-Received: by 2002:a02:6381:: with SMTP id j123mr13976865jac.103.1594006667160; Sun, 05 Jul 2020 20:37:47 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id v16sm10163631iow.19.2020.07.05.20.37.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jul 2020 20:37:46 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Bin Meng <bmeng.cn@gmail.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Wolfgang Wallner <wolfgang.wallner@br-automation.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v3 01/25] x86: mp_init: Switch to livetree Date: Sun, 5 Jul 2020 21:37:17 -0600 Message-Id: <20200706033741.2169374-2-sjg@chromium.org> X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog In-Reply-To: <20200706033741.2169374-1-sjg@chromium.org> References: <20200706033741.2169374-1-sjg@chromium.org> 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 <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.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
x86: Enhance MTRR functionality to support multiple CPUs
|
expand
|
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index 7fde4ff7e1..c25d17c647 100644 --- a/arch/x86/cpu/mp_init.c +++ b/arch/x86/cpu/mp_init.c @@ -507,8 +507,7 @@ int mp_init_cpu(struct udevice *cpu, void *unused) * seq num in the uclass_resolve_seq() during device_probe(). To avoid * this, set req_seq to the reg number in the device tree in advance. */ - cpu->req_seq = fdtdec_get_int(gd->fdt_blob, dev_of_offset(cpu), "reg", - -1); + cpu->req_seq = dev_read_u32_default(cpu, "reg", -1); plat->ucode_version = microcode_read_rev(); plat->device_id = gd->arch.x86_device;