From patchwork Mon Jan 30 18:22:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 50400 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2331173wrn; Mon, 30 Jan 2023 10:26:56 -0800 (PST) X-Google-Smtp-Source: AK7set8ghEEmk9JC2FSXiJIqpNoPXHpAnTZsmoyFP/B3QAENtOvjqtOWYRXxPTzSePe3eTgoPx3L X-Received: by 2002:a17:906:344d:b0:878:a893:48db with SMTP id d13-20020a170906344d00b00878a89348dbmr13879555ejb.65.1675103216719; Mon, 30 Jan 2023 10:26:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675103216; cv=none; d=google.com; s=arc-20160816; b=h37vBJQVvykkUeiArUAM4n4l8gaUWnzaFcFzz7TCZmbW6vgySlr0v0/5A6Ll2KyWsF RRCzX1TLSCp5CQD1NcxLZoNaz00LGgv1SS5yFMygtmahhQuDIn432tNtFrcgWKBVk2/8 UcSTtRLZtWX6FEGerVymlgQppZGWJTRXmaKUboA+nKA6tj3MuBiiyVtFMLdDEF8RTwFJ D0dLxkktPujcOKsSlSDz07uwi/FVVnNUBFeONJ3ZqU435u7Q9XZ76Kzla6FyXh61/jID XTYiSm/7MOI5qyWBzeSfFs6VDLcYLfch3XKq0xGCa4I5BwOH+vIdG2vSvzwEc9Kf5HOf n5Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ucIkerkqr4QmI5UkdMXW8uEBrl0PvtR2G4Rv/JZMzew=; b=kxjksKM1dzNDF1Y951ptQmWMYzGt14H0ZShhMX9RreHUS+q9fOyY7hlA0Vwb9ONpjy HPtNYw1R4B/alqpvA6bqqkkG+Q6fKhD1T2r7uqDJC+HMj33W9NdtI3kCzkMvsWk4kB7Q w19lrpo4SaTQfLDqQlAmg21GBoTQbnvMIGkpt4VCq/+BA5kYtTEDOLaoIloYQVAuIUGX TpVSbWFw5RgM5u/nbqxhc8YOTqXR3vsaipCmcX7O1DBKnJoYUC9sbiizmtYRuI/I2o9S qlSutanHM9iKNDBwiIzYi05txt4L3ZBlUmgHY4+wMh5fX7VvGaiIjqsRVGuv5NqEIigI LEjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=GhrwpBT3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a170906018900b00883ec4c63dfsi8581775ejb.146.2023.01.30.10.26.31; Mon, 30 Jan 2023 10:26:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=GhrwpBT3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235634AbjA3SYE (ORCPT + 99 others); Mon, 30 Jan 2023 13:24:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234005AbjA3SXp (ORCPT ); Mon, 30 Jan 2023 13:23:45 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C0BD1E1C9 for ; Mon, 30 Jan 2023 10:23:10 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id v23so12555415plo.1 for ; Mon, 30 Jan 2023 10:23:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ucIkerkqr4QmI5UkdMXW8uEBrl0PvtR2G4Rv/JZMzew=; b=GhrwpBT3N31+nOt/CtgKmnAGMi653hgs/75GWs74Cqht6JG/AUohZ9ARL3pkvdkfmj GGOZc26wqFHqO7mxkcg3Ji/bn0HnDTjs+diwm80n7Jus44aORApx5bQiKn82JGyfTCYv hLqZbyZnw2mPfz9cuau3/Zw6fHKe0n82KCiDP07hBTERsyddqX5tlDZsMxgaTW1bTNpo KxuF/f6QYreKfafdgIWZX2SL50FtFfyns379QlTz0qZo60LNmMpt4E2ApfVNvqyuC5TA bTk7rP8MGgWtYVewzHcJEdMTwddvaOYKbkRdF7nMfjQRFzmhTRP94xlgUWzIEO/hT95a UI5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ucIkerkqr4QmI5UkdMXW8uEBrl0PvtR2G4Rv/JZMzew=; b=19mcgVXAd4ajF0Y2itDT0zkLtF/MelCrXPVqifcB0JVA2TBZFULueIfTlRSexRkHcG hbFfStHyinaIFD9Kb85uoa2ilJ6ZZriDvNPL/co1Rbv3Xr8I7Khe/rgprWP6m4SwCe28 vY5O2w57Pe4RZe53cDK2aE2x2417BHzbscw7YHBMYGCDtum0PWT69YSjrhYSzyH3OTPw NZJQyEJxCGdVunZ1yb1Vl86DiYDpe1+bA1yhWcRtSt60cft6g4C9uepEgSVGARkEtIyp kJegK2TNteynu3Mp0SFHJfRLQL11Ixa0ZuyoFpjFh8p0RGkiAG7LRaNTKUsmg720G998 TRzA== X-Gm-Message-State: AFqh2kpqPZ0hTXrCJ7/+x0FIMMr3t2UpnXLeE48IlgYlsDaFdPZm1k8L U5lqZmOc9YR74lMoPhTaSOARVA== X-Received: by 2002:a17:90b:348e:b0:229:5cab:67a8 with SMTP id kd14-20020a17090b348e00b002295cab67a8mr52332355pjb.24.1675102986650; Mon, 30 Jan 2023 10:23:06 -0800 (PST) Received: from kerodipc.Dlink ([49.206.9.96]) by smtp.gmail.com with ESMTPSA id j193-20020a638bca000000b00478162d9923sm7000291pge.13.2023.01.30.10.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 10:23:05 -0800 (PST) From: Sunil V L To: Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Thomas Gleixner , Marc Zyngier , Daniel Lezcano , Jonathan Corbet Cc: linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Anup Patel , Andrew Jones , Atish Patra , Sunil V L Subject: [PATCH 07/24] RISC-V: ACPI: Enable ACPI build infrastructure Date: Mon, 30 Jan 2023 23:52:08 +0530 Message-Id: <20230130182225.2471414-8-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20230130182225.2471414-1-sunilvl@ventanamicro.com> References: <20230130182225.2471414-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756473030934850443?= X-GMAIL-MSGID: =?utf-8?q?1756473030934850443?= Enable build infrastructure to add ACPI support for RISC-V. Signed-off-by: Sunil V L --- arch/riscv/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index d153e1cd890b..f664350679bc 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -12,6 +12,9 @@ config 32BIT config RISCV def_bool y + select ACPI_GENERIC_GSI if ACPI + select ACPI_MCFG if (ACPI && PCI) + select ACPI_REDUCED_HARDWARE_ONLY if ACPI select ARCH_CLOCKSOURCE_INIT select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2 @@ -598,6 +601,7 @@ config EFI_STUB config EFI bool "UEFI runtime support" depends on OF && !XIP_KERNEL + select ARCH_SUPPORTS_ACPI if 64BIT select LIBFDT select UCS2_STRING select EFI_PARAMS_FROM_FDT @@ -703,3 +707,4 @@ source "drivers/cpufreq/Kconfig" endmenu # "CPU Power Management" source "arch/riscv/kvm/Kconfig" +source "drivers/acpi/Kconfig"