From patchwork Mon Jan 27 05:06:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1229572 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=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=) 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.a=rsa-sha256 header.s=google header.b=nqvAAnxO; 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 485dQT2vZNz9sR1 for ; Mon, 27 Jan 2020 16:21:37 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 21543818E6; Mon, 27 Jan 2020 06:12:59 +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="nqvAAnxO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E407B814F4; Mon, 27 Jan 2020 06:10:01 +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 F0DE68182B for ; Mon, 27 Jan 2020 06:09:24 +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 x1so8555981iop.7 for ; Sun, 26 Jan 2020 21:09:24 -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=VrIJh0+YtCwC6yT1Hiq3GOWMItOzLwHepciLBExeSAc=; b=nqvAAnxOY4Te/JOA0o7PDINTPgPxrCJ7k4autY9i2F3P9pk3l7MPh8ctCQ/fQPCyDl OIiPYrHXCJGkk+SLiRKEn1m1hnX/EL2ov1rrATS9u3a9CG2KUjDJ5DNMywjVcYj6oA8O pop0TeopcOC9E2U0geyjlZUi0HzTSIqhwDY+4= 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=VrIJh0+YtCwC6yT1Hiq3GOWMItOzLwHepciLBExeSAc=; b=Rxtbr55gct+keTbuwCEiqSN6FZCa+nG3ufDKWZe/NyctPnxz/uX7JuUbpXFDFcoq04 ez7hLMRcQNkvXACVtFcXRGin/OnQznGMPJ8desvqqKHrJujwA809novY80WEHE2kCmew 7VGNT5cQZLRIsKwT5znJM2bKeMrDG8uiXvQnzG4jlccswrwEIbKiTkCpWa9Cl79WgzKn m5S5boKRR7ogW1WLcjvFuYno1MWH4OgMzVEkmeHZ1ojJF8+qIVHrOI5VcNxsJaAt7RZ9 jw93o1Lb9tjKppJ75RQ1z5sWBCVy5p9e7qNWekfZ9NMdHFko1tx4V3pMpf9JX2/w7cpH 1wcg== X-Gm-Message-State: APjAAAXwWAaW8gd8GMbDI9A2xdt7N/F+E6pzd+qSxc8fjwbizpGU4/Dw HTNBc40Q3nC1VwANo1gIFfjKx+1W2KcDag== X-Google-Smtp-Source: APXvYqyVkOSy2ZjDBprbNfr2dDHS86mA38Dru72LZWXsvCZ4ld4qkacCoGkaimNGEJ4qz/k1j8ufmQ== X-Received: by 2002:a6b:b7d5:: with SMTP id h204mr11529436iof.238.1580101763712; Sun, 26 Jan 2020 21:09:23 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id h23sm4313195ilf.57.2020.01.26.21.09.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jan 2020 21:09:23 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Subject: [PATCH 074/108] x86: Add a config for the systemagent PCIEX regions size Date: Sun, 26 Jan 2020 22:06:21 -0700 Message-Id: <20200126220508.74.Ibf6615ca086fcd12272968cb3f86975a5a6cef51@changeid> X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog In-Reply-To: <20200127050655.170614-1-sjg@chromium.org> References: <20200127050655.170614-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 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" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean Add a way to specify the required size for this region. This is used when generating ACPI tables. Signed-off-by: Simon Glass --- arch/x86/Kconfig | 18 ++++++++++++++++++ arch/x86/cpu/apollolake/Kconfig | 1 + 2 files changed, 19 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index af44da1091..5e3357ccee 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -950,4 +950,22 @@ config TPL_ACPI_GPE See https://queue.acm.org/blogposting.cfm?id=18977 for more info +config SA_PCIEX_LENGTH + hex + default 0x10000000 if (PCIEX_LENGTH_256MB) + default 0x8000000 if (PCIEX_LENGTH_128MB) + default 0x4000000 if (PCIEX_LENGTH_64MB) + default 0x10000000 + help + This option allows you to select length of PCIEX region. + +config PCIEX_LENGTH_256MB + bool + +config PCIEX_LENGTH_128MB + bool + +config PCIEX_LENGTH_64MB + bool + endmenu diff --git a/arch/x86/cpu/apollolake/Kconfig b/arch/x86/cpu/apollolake/Kconfig index c66863c52e..7d7b5c3a0e 100644 --- a/arch/x86/cpu/apollolake/Kconfig +++ b/arch/x86/cpu/apollolake/Kconfig @@ -13,6 +13,7 @@ config INTEL_APOLLOLAKE select TPL_X86_TSC_TIMER_NATIVE select SPL_PCH_SUPPORT select TPL_PCH_SUPPORT + select PCIEX_LENGTH_256MB select PCH_SUPPORT select P2SB select ACPI_GNVS_EXTERNAL