From patchwork Mon Mar 6 22:02:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 13162441 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9797DC61DA4 for ; Mon, 6 Mar 2023 22:08:01 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZIx4-0007do-P5; Mon, 06 Mar 2023 17:05:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZIx2-0007QP-Ia for qemu-devel@nongnu.org; Mon, 06 Mar 2023 17:05:00 -0500 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZIwr-0006oH-Eq for qemu-devel@nongnu.org; Mon, 06 Mar 2023 17:04:51 -0500 Received: by mail-pj1-x1029.google.com with SMTP id y2so11290814pjg.3 for ; Mon, 06 Mar 2023 14:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1678140288; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:from:to:cc:subject:date :message-id:reply-to; bh=T4Ht91dtise3VXyeM0B1MvojQi2kjoyoe8PlK/ZAG1w=; b=eCRqu08W02petCUTE1XyrLSFg+jLgbgpZzqWKS47OcrOlHhaXvjxUI368gFXmE7pmu Smd6Fk4FYlsPniZz3I6LpS0JTcnFAZ5HgK8jXMdkCfE8a1yZ+TTjAtBtdX/ZZ6sXNMm0 U0e3iO+sfmsIaN3UDHucOARWbysy9BgCmoGURVZ+LVved5/dBKfYBAN4JI9kvmQBJLXa 9IodZTV/zwLJzr73UAYvLJ/gdcW7H7Pu3gmo4ahMIWzy3WUjlviGLnv6bCvOhKnhZN0S m+SED30EuNV7t9AECuNSqueC81xW2Ff5Cw1jomkksnYex2wc1pe0yk2VACbLdgAZ1SqW cDYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678140288; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T4Ht91dtise3VXyeM0B1MvojQi2kjoyoe8PlK/ZAG1w=; b=11DgTFtpNjjjqD2w3uSlHTRbwopTYvf4omqb1RGuxcdnaUaMoCVFVF3aa4K2dJgNQd RsmA81AfgIuSOYQ0xyFQrD/L200xq5QuYfjhZXRiLqxFYeIk9JjpwGOe9LqFgUn8lq3j 7aAfHNbD++Bji8Donn6cGhDG96zXTx0MVntTlmNiJbSqT4XxRV1nU9Px3z8f9VW2I0G6 Jt5U//zGby0l7Tajj3j5BD2dvX7Pom6nqZKOj/kYBlR2Oxt4Bs989TewAMhKSzMEhzp0 huW3a85iZSfYl27le1Q4BIMwNyBSRFic0F6l3og1aCbYqTq+TCsjolVppf0aXIMAaDGG Ti5Q== X-Gm-Message-State: AO0yUKUIqPL7aWg58F6ZXLTVjJ7aBrd0XqK+3mYd8Cyt9vlK9+N9O1h/ YINbWCDS1b1oCpeXiJEaozvO4A== X-Google-Smtp-Source: AK7set9kzOG86b6FYsRqzBdH5UrEEgwIH1y4ave7mMhDTqCErWlb3sEuucmKFsnAVYtNFfTxz7jvFA== X-Received: by 2002:a17:90b:3e8d:b0:233:ca14:6afb with SMTP id rj13-20020a17090b3e8d00b00233ca146afbmr13246385pjb.37.1678140288507; Mon, 06 Mar 2023 14:04:48 -0800 (PST) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id ga7-20020a17090b038700b00233db0db3dfsm8291035pjb.7.2023.03.06.14.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 14:04:48 -0800 (PST) Subject: [PULL 21/22] hw/riscv/virt.c: Initialize the ACPI tables Date: Mon, 6 Mar 2023 14:02:58 -0800 Message-Id: <20230306220259.7748-22-palmer@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306220259.7748-1-palmer@rivosinc.com> References: <20230306220259.7748-1-palmer@rivosinc.com> MIME-Version: 1.0 Cc: qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Sunil V L , Bin Meng , Andrew Jones , Palmer Dabbelt From: Palmer Dabbelt To: Peter Maydell Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=palmer@rivosinc.com; helo=mail-pj1-x1029.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Sunil V L Initialize the ACPI tables if the acpi option is not disabled. Signed-off-by: Sunil V L Reviewed-by: Bin Meng Reviewed-by: Andrew Jones Message-ID: <20230302091212.999767-8-sunilvl@ventanamicro.com> Signed-off-by: Palmer Dabbelt --- hw/riscv/virt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index aed303e1e6..4e3efbee16 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -1323,6 +1323,10 @@ static void virt_machine_done(Notifier *notifier, void *data) if (kvm_enabled()) { riscv_setup_direct_kernel(kernel_entry, fdt_load_addr); } + + if (virt_is_acpi_enabled(s)) { + virt_acpi_setup(s); + } } static void virt_machine_init(MachineState *machine)