From patchwork Fri Oct 13 08:17:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Song Gao X-Patchwork-Id: 733195 Delivered-To: patch@linaro.org Received: by 2002:a5d:54d1:0:b0:31d:da82:a3b4 with SMTP id x17csp1347420wrv; Fri, 13 Oct 2023 01:24:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErqeVhu+SEenTmzUEXSgecKaatzOgq/aCr6x8KTMM1NhpSNjKLosS0OVzVj+upe+1OyshZ X-Received: by 2002:a05:622a:34b:b0:418:1c4d:cb77 with SMTP id r11-20020a05622a034b00b004181c4dcb77mr34326708qtw.58.1697185473697; Fri, 13 Oct 2023 01:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697185473; cv=none; d=google.com; s=arc-20160816; b=DzhJe8rdLMKvXLd7LSyqEXRE9tX8Leg9D3Ghf+XwBBdo6Bfn+ISy/xvZrvZTyn1BGG W41XO0Gu0dydz64pn4hvrXawzohwxu73Onsz+68kl/RtWh7QxGieTIWzVNvNiV6RqYt6 CRlacmdIuY0LVCIDgZCf/FH5zQVoIl0M2FFsOM+QRmAVnjZpkUl5HWTUOIXLq4Fp8XpQ hCmsJbp7IQO9w6QP+jpkiVXRGLp7K/3Rk0fIeFuxY6bIl14OEVStN/R8W9uFEOetd20W xgM3ieu+LKei/137KJarTAE3RZSrKyzV303ZkqrxE9fdKcu/12s75NJ1OHCp4P9iht8h fiGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=nKGdKFLCNvc63++eiOvYsJVUTcmghLXkLlSuRJ3GSYI=; fh=4s8le4oWTdfTW8Pa5bmcDOIeKTNf98pUZlj8GndI+JU=; b=I4C323Qzwvmjzw0oiV8IIHy2BTG3y1L7TOzdMN5r3IvLSkAQGItJ4FyD2o8LzOGaGh 6+5zNwZ0PxEO2p5J+U5V/f3LRjiW859/hquh94N0G5zuTGIx/q/iMXdD2ijLNr/jPOhL avIs39G2lEKaFUPpzudTPhrpzgPOLwLQVmJn3od1uM/xA7SRpvQh+1ZpAsFc0Q46O1Wp ywS4SINYwlmFOaYgSyt3wyTavbsYeOBHlQ2Rhk/Fmn9qwFuoEiJVefkTlPsd+DuqOwZ6 L/dLkMxj9xPiMyBuiuir2yawzb/fv2GURej//toRajA0zN1854RR5GMu2rhHdpVZXv5X pndA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t19-20020ac85893000000b00419695d7c7csi864699qta.442.2023.10.13.01.24.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Oct 2023 01:24:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrDN9-000403-1g; Fri, 13 Oct 2023 04:18:15 -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 1qrDN0-0003ba-5R for qemu-devel@nongnu.org; Fri, 13 Oct 2023 04:18:08 -0400 Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrDMv-0003SI-Nl for qemu-devel@nongnu.org; Fri, 13 Oct 2023 04:18:05 -0400 Received: from loongson.cn (unknown [10.2.5.185]) by gateway (Coremail) with SMTP id _____8AxZ+g0_Shl8aQxAA--.59844S3; Fri, 13 Oct 2023 16:17:56 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxbNwt_ShlyKIiAA--.7352S6; Fri, 13 Oct 2023 16:17:56 +0800 (CST) From: Song Gao To: qemu-devel@nongnu.org Cc: richard.henderson@linaro.org, stefanha@gmail.com, =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PULL 4/7] hw/loongarch/virt: Remove unused ISA UART Date: Fri, 13 Oct 2023 16:17:47 +0800 Message-Id: <20231013081750.2944412-5-gaosong@loongson.cn> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20231013081750.2944412-1-gaosong@loongson.cn> References: <20231013081750.2944412-1-gaosong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxbNwt_ShlyKIiAA--.7352S6 X-CM-SenderInfo: 5jdr20tqj6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=gaosong@loongson.cn; helo=mail.loongson.cn 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, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé The LoongArch 'virt' machine doesn't use any ISA UART. No need to build the device model, remove its Kconfig entry. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Song Gao Message-Id: <20231010135342.40219-2-philmd@linaro.org> Signed-off-by: Song Gao --- hw/loongarch/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/loongarch/Kconfig b/hw/loongarch/Kconfig index 1e7c5b43c5..fcd5f2b4b6 100644 --- a/hw/loongarch/Kconfig +++ b/hw/loongarch/Kconfig @@ -7,7 +7,6 @@ config LOONGARCH_VIRT imply NVDIMM select ISA_BUS select SERIAL - select SERIAL_ISA select VIRTIO_PCI select PLATFORM_BUS select LOONGARCH_IPI From patchwork Fri Oct 13 08:17:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Song Gao X-Patchwork-Id: 733194 Delivered-To: patch@linaro.org Received: by 2002:a5d:54d1:0:b0:31d:da82:a3b4 with SMTP id x17csp1346800wrv; Fri, 13 Oct 2023 01:22:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSP+aDDu2wRhi/5G2mjvb6MmM2MF+pK1yl9GhNpDIRgcDN5Fe+rB0gWxR7FQ7e6N0XQbLl X-Received: by 2002:ac8:7f8d:0:b0:411:fa33:f0da with SMTP id z13-20020ac87f8d000000b00411fa33f0damr30147938qtj.9.1697185348759; Fri, 13 Oct 2023 01:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697185348; cv=none; d=google.com; s=arc-20160816; b=YRDzQBRrtAVIDdRlkv33pNXj6giiTqYxX+zu9ZKHQ1YMQxUlqGfzpLLdoPLhVigFEr 1pi1oLNM59crU+S+dVrWPsY69gMzszUqCgPiER5ihov55eoq8NvYnSqzGZLHuBMsfhqH 2Xk7KSjZiKCSUtoq/oQXeMsSWjRXomBsL0XWni8RuUrkwAukA9xPV2k4Y6POe2vkQZfJ Z771DXqbX6eQe9lIgSbQnBuKVCd4VPcmuz/Gs8wpcCQ8Hs72mC19SPI3+n1tS2B3XBPk hQsZiyaMs0MuRB2zu9+j4JfqKiVLqcAt8xyATiI2lqGu3lhC7AxWQhrQyJ7qvEFJA8xg sTEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=Vh/3LRgFNKSX3ZgphLEeVeJ3m8BHVSokW4tLb2V845E=; fh=4s8le4oWTdfTW8Pa5bmcDOIeKTNf98pUZlj8GndI+JU=; b=qrhC0ICwuqMIvtKMo9Or1MnqpVFTp7zuHdOYa4/vDrRgv0S1jVgrfGjfX/4La1ge6r xknLogbdh3H8YfYaEcCR+q+PgEvsv5C0LQYA4gbJ2jicn4Hgw0nQYOjiZM/irAh9Rmw9 NoTCIDkGpv4pYiXwtwNQcOguUqSV/9J8sW1P2jqCJdgzRXMfHPVJ0s1GDfaDhfW+NF0Q VXFdHUzHw6h6tLYeKiDxOA6NdqrrNJs6wzrf81ASv4alPAwOXQ7GcaAXK+cIJetRtlSg hdazHAbcJ76PbsIGgnaAGjQj95qq6HeiFNwd2UQ3ZPhBY00Jr39qhLUqFhLBZL/HES7W 2vPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v12-20020a05622a130c00b004180797569asi858195qtk.401.2023.10.13.01.22.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Oct 2023 01:22:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrDN9-0004DE-2A; Fri, 13 Oct 2023 04:18:15 -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 1qrDMy-0003Z4-Ll for qemu-devel@nongnu.org; Fri, 13 Oct 2023 04:18:06 -0400 Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrDMv-0003SR-0B for qemu-devel@nongnu.org; Fri, 13 Oct 2023 04:18:04 -0400 Received: from loongson.cn (unknown [10.2.5.185]) by gateway (Coremail) with SMTP id _____8Bxyeo0_Shl9aQxAA--.20476S3; Fri, 13 Oct 2023 16:17:56 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxbNwt_ShlyKIiAA--.7352S7; Fri, 13 Oct 2023 16:17:56 +0800 (CST) From: Song Gao To: qemu-devel@nongnu.org Cc: richard.henderson@linaro.org, stefanha@gmail.com, =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PULL 5/7] hw/loongarch/virt: Remove unused ISA Bus Date: Fri, 13 Oct 2023 16:17:48 +0800 Message-Id: <20231013081750.2944412-6-gaosong@loongson.cn> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20231013081750.2944412-1-gaosong@loongson.cn> References: <20231013081750.2944412-1-gaosong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxbNwt_ShlyKIiAA--.7352S7 X-CM-SenderInfo: 5jdr20tqj6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=gaosong@loongson.cn; helo=mail.loongson.cn 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, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé The LoongArch 'virt' machine doesn't use its ISA I/O region. If a ISA device were to be mapped there, there is no support for ISA IRQ. Unlikely useful. Simply remove. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Song Gao Message-Id: <20231010135342.40219-3-philmd@linaro.org> Signed-off-by: Song Gao --- hw/loongarch/Kconfig | 1 - hw/loongarch/virt.c | 5 ----- include/hw/loongarch/virt.h | 3 --- 3 files changed, 9 deletions(-) diff --git a/hw/loongarch/Kconfig b/hw/loongarch/Kconfig index fcd5f2b4b6..5727efed6d 100644 --- a/hw/loongarch/Kconfig +++ b/hw/loongarch/Kconfig @@ -5,7 +5,6 @@ config LOONGARCH_VIRT imply VIRTIO_VGA imply PCI_DEVICES imply NVDIMM - select ISA_BUS select SERIAL select VIRTIO_PCI select PLATFORM_BUS diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c index c6f64e941b..c1791f80dd 100644 --- a/hw/loongarch/virt.c +++ b/hw/loongarch/virt.c @@ -878,11 +878,6 @@ static void loongarch_init(MachineState *machine) machine_memory_devices_init(machine, device_mem_base, device_mem_size); } - /* Add isa io region */ - memory_region_init_alias(&lams->isa_io, NULL, "isa-io", - get_system_io(), 0, VIRT_ISA_IO_SIZE); - memory_region_add_subregion(address_space_mem, VIRT_ISA_IO_BASE, - &lams->isa_io); /* load the BIOS image. */ loongarch_firmware_init(lams); diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h index f1659655c6..674f4655e0 100644 --- a/include/hw/loongarch/virt.h +++ b/include/hw/loongarch/virt.h @@ -16,8 +16,6 @@ #define LOONGARCH_MAX_CPUS 256 -#define VIRT_ISA_IO_BASE 0x18000000UL -#define VIRT_ISA_IO_SIZE 0x0004000 #define VIRT_FWCFG_BASE 0x1e020000UL #define VIRT_BIOS_BASE 0x1c000000UL #define VIRT_BIOS_SIZE (4 * MiB) @@ -38,7 +36,6 @@ struct LoongArchMachineState { MemoryRegion lowmem; MemoryRegion highmem; - MemoryRegion isa_io; MemoryRegion bios; bool bios_loaded; /* State for other subsystems/APIs: */