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 D3A85EB64DA for ; Wed, 12 Jul 2023 16:40:52 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJcsi-0003eH-Ks; Wed, 12 Jul 2023 12:40:00 -0400 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 1qJcsh-0003da-BR for qemu-riscv@nongnu.org; Wed, 12 Jul 2023 12:39:59 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJcsf-0004ar-Lh for qemu-riscv@nongnu.org; Wed, 12 Jul 2023 12:39:59 -0400 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-66872d4a141so5005807b3a.1 for ; Wed, 12 Jul 2023 09:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1689179992; x=1691771992; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=D902WXe63pYmiWsNpDy68C8o3fZwaz3JAmPZ0EGpNog=; b=iG4l8FVPI7oYlI22GP8jHv36gEoDHXFZ0M+pd+3Pn8uEVvRDyVU8jsSVN0GkhVbTID J/5vmG8lkxBETX9CGeRS6DuIUBd9CRJxjVh2ShuZWBI36zUqmnaPHQsWTt7tG/B76qoU TDBSBLvX82D27K2P6QAfZ0nCPK25sTL825A5pmCiFzBu9BhD/fGWbln8jhE5+pTizRoc M8iiQX3LlAr2xg8Qa23SOOuhqYPqbdL7wZGv5s23yxXVbUyV5IqTz7/jdL/NPB333gEY jao4LeiBHOYCl9/LWBRuw/jszwa+VRs8ppDZzhYo+S9SE/KKtMS/WFYf/25tFxMFX21V 6h1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689179992; x=1691771992; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D902WXe63pYmiWsNpDy68C8o3fZwaz3JAmPZ0EGpNog=; b=Vi3CV1tKRJtiaUhc10ztD7ZU69B97pn1lG2aTWgXVM9l7T9yIoU8YBSAyi4XfR1Efl PiWHqnDRz+gt6sA04dMdYx+Uw49RsIDO+ZC0G8EPv3A4MOraaMlf2Tfs5Hwq7Gqezlcq P6d4kOW9yd70ites+KQFpCDSXE1+4mZU0TsTSIgpBTptY2FMx7hK8ACjR52aJaGFYXBY wd1u1cv9hxVsMnjW8v0gdlLBCJdmFaS/ZmrC1HyEb8EljLjaCbTRrnE8vCUeFSFDG2FM eQfI/ZRpRvbdSdQCHxWQO1WcdvLlT2HmHqxfTqpmUmkNnf9wTWS+o6BEy22fV6V7P5Is 1C3A== X-Gm-Message-State: ABy/qLZUgPc14fU4e3shkT0psWoqjWRSucoZoYjqI0q/2DmZ8KNFSiM8 SjuVioehCBBbDqseKA2F9IzOJw== X-Google-Smtp-Source: APBJJlFZW4wQtQZVnwK/nOj7CqTSYws6xe30qDFxC+pztWR8snFQLb1P3WYOHHGHvuJ7ulx56TeEVA== X-Received: by 2002:a17:902:c3cc:b0:1b8:9f6a:39de with SMTP id j12-20020a170902c3cc00b001b89f6a39demr14219298plj.65.1689179991519; Wed, 12 Jul 2023 09:39:51 -0700 (PDT) Received: from sunil-pc.Dlink ([106.51.190.25]) by smtp.gmail.com with ESMTPSA id a18-20020a1709027d9200b001ac7f583f72sm4172824plm.209.2023.07.12.09.39.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 09:39:50 -0700 (PDT) From: Sunil V L To: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-riscv@nongnu.org Cc: "Michael S . Tsirkin" , Igor Mammedov , Ani Sinha , Peter Maydell , Shannon Zhao , Paolo Bonzini , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Andrew Jones , Anup Patel , Sunil V L Subject: [PATCH 00/10] RISC-V: ACPI: Enable AIA and update RHC Date: Wed, 12 Jul 2023 22:09:33 +0530 Message-Id: <20230712163943.98994-1-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=sunilvl@ventanamicro.com; helo=mail-pf1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org This series primarily enables AIA interrupt controllers in ACPI tables for RISC-V virt platform. It also updates RHCT with CMO and MMU related information. Below ECRs for these changes are approved by ASWG and will be available in next ACPI spec release. 1) MADT (AIA) - https://drive.google.com/file/d/1oMGPyOD58JaPgMl1pKasT-VKsIKia7zR/view?usp=sharing 2) RHCT - https://drive.google.com/file/d/1sKbOa8m1UZw1JkquZYe3F1zQBN1xXsaf/view?usp=sharing First patch in this series is to migrate a couple of functions from ARM architecture to common code so that RISC-V doesn't need to duplicate the same. The patch set is based on Alistair's riscv-to-apply.next branch. These changes are also available in riscv_acpi_b2_v1 branch at: https://github.com/vlsunil/qemu/ Sunil V L (10): hw/arm/virt-acpi-build.c: Move fw_cfg and virtio to common location hw/riscv: virt: Add PCI bus reference in RISCVVirtState hw/riscv: virt: Make few IMSIC macros and functions public hw/riscv: virt: Add PCIe HIGHMEM in memmap hw/riscv/virt-acpi-build.c: Add AIA support in RINTC hw/riscv/virt-acpi-build.c: Add IMSIC in the MADT hw/riscv/virt-acpi-build.c: Add APLIC in the MADT hw/riscv/virt-acpi-build.c: Add CMO information in RHCT hw/riscv/virt-acpi-build.c: Add MMU node in RHCT hw/riscv/virt-acpi-build.c: Add IO controllers and devices hw/acpi/aml-build.c | 41 +++++ hw/arm/virt-acpi-build.c | 42 ----- hw/riscv/Kconfig | 1 + hw/riscv/virt-acpi-build.c | 321 +++++++++++++++++++++++++++++++++--- hw/riscv/virt.c | 62 ++++--- include/hw/acpi/aml-build.h | 6 + include/hw/riscv/virt.h | 35 +++- 7 files changed, 416 insertions(+), 92 deletions(-) -- 2.39.2