From patchwork Mon Jul 27 03:44:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1336611 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=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=Tq1XDwgC; 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 4BFQjF62s8z9sPB for ; Mon, 27 Jul 2020 13:46:57 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A54B882309; Mon, 27 Jul 2020 05:46:13 +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="Tq1XDwgC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3C3F2822E1; Mon, 27 Jul 2020 05:45:56 +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-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) (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 45FC78229F for ; Mon, 27 Jul 2020 05:45:47 +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-ot1-x342.google.com with SMTP id w17so11322416otl.4 for ; Sun, 26 Jul 2020 20:45:47 -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=RwsP1RcYKpfWPnTFUVaVR0ZsuHagTcoFxh7TLa3cwd8=; b=Tq1XDwgCYCuaKnu2uvM1qCzVuOBO2wx0KGcQnu1u7C4A5X03O/Azcim+85uomIlC2k gs/paY6RtsT71FukZkD4rHImAjoim4OQ4tY0BAOzK0NitWbFFK/GhZ0jFcyV93k68JD3 EvQbv+xBNxQZtZNqvzGO5QdD9v45ktwI/1LmM= 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=RwsP1RcYKpfWPnTFUVaVR0ZsuHagTcoFxh7TLa3cwd8=; b=On3qXEe8o6Raqvc0UKcKMZyC4Wtflm6c1RbLqyLbCEXVLnNu6H/egAIU19S/6fp9Bh vYilTE+EIxal18uZdEkI2IpXLAWojbD/ZjM22IyGa2cM5hI6gnXfvf04I259zQHKihxr Rpss+I/BY4ZifJYcH6utp/n0snfyblt0FPxHGrJz19KNPXOrUU16H7kq+OjTWOz4U5oS owMEkX9CEwgd8yKyOyt58G+aieah2TFJ+3t+sZH8+1kqG++GYrufy4bnLaDkKj5+iEbi mPfWZv7HFLMwhpJJsG1zzXd6jePACLzhJnJV6JZuaem8CzytbO63Haza/4ob2Ct+lzoR X4iA== X-Gm-Message-State: AOAM5323/uDperLmOd6kg9cpCiC4e1lR+riHgj33AsLw25Qm9A8miYg6 rfr0/31HFhqE8a9aF5zmUDW3spiNXpESbg== X-Google-Smtp-Source: ABdhPJxyZ0AfqB6eWuxqlTWb4fEm8h8dFzcB4RrWbsSRgURmYD+J6ryghyQU/2/SdGC4qg53wDmBvw== X-Received: by 2002:a05:6830:230c:: with SMTP id u12mr18422369ote.313.1595821546015; Sun, 26 Jul 2020 20:45:46 -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 p64sm1808996oih.39.2020.07.26.20.45.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jul 2020 20:45:45 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Wolfgang Wallner , Bin Meng , Simon Glass Subject: [PATCH v1 06/54] x86: Add a config for the systemagent PCIEX regions size Date: Sun, 26 Jul 2020 21:44:38 -0600 Message-Id: <20200726214408.v1.6.Ibf6615ca086fcd12272968cb3f86975a5a6cef51@changeid> X-Mailer: git-send-email 2.28.0.rc0.142.g3c755180ce-goog In-Reply-To: <20200727034526.1461514-1-sjg@chromium.org> References: <20200727034526.1461514-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 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 ff4f06ed79c..e90d1171f19 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -964,4 +964,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 99d4e105c25..37d6289ee41 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 SMP_AP_WORK