From nobody Sat Nov 23 23:54:13 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=yeah.net ARC-Seal: i=1; a=rsa-sha256; t=1728144456; cv=none; d=zohomail.com; s=zohoarc; b=MeJml1Yxn2nlD+BsEDZqIB1Y4jpaHvjtSjrr5mBAUQMKZIgEm/oej6EhBlk9fG3pBnsWX3vclncryILQmOgOWakrPMgudsY3SyZYg3g5eyEOJGigt49WyfrR2rJvcsgTN7YAVLLAQpsd9d9armAcURx3QmHwrxa39KiV/ZTvxU4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1728144456; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Xla+EA8qRYrB7ivezOYRniSwbMZHRHRQUQ/0GUXCzao=; b=EI9HMA59kcxDG00vDP7oLsV+Z85maMtD+EXvcLpwCDaZZMs9uRwlask36BcEKwa+jsXwuyDz/ePMqc1LTUUHKIXFGQzYnPrHxzkqRpBkBtcnimLVjho791p/J2EXP5moF4FTf686pfKepAJhlXOEDt7QfqnhXmOxqhjKIiM6XdE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1728144456223905.3409474149347; Sat, 5 Oct 2024 09:07:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sx7JE-0008JI-8L; Sat, 05 Oct 2024 12:07:08 -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 1sx7JC-0008Iu-Bp for qemu-devel@nongnu.org; Sat, 05 Oct 2024 12:07:06 -0400 Received: from mail-m16.yeah.net ([1.95.21.14]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sx7JA-0002aJ-9p for qemu-devel@nongnu.org; Sat, 05 Oct 2024 12:07:06 -0400 Received: from localhost.localdomain (unknown []) by gzsmtp3 (Coremail) with SMTP id M88vCgCnyun1YwFnyEiwAQ--.25016S3; Sun, 06 Oct 2024 00:06:17 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yeah.net; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=Xla+E A8qRYrB7ivezOYRniSwbMZHRHRQUQ/0GUXCzao=; b=ctDV65rYI/669GNWfYdPn gO9xuflqFgPBw25/dW74pE/Iao0DReCo4r+p7NhiwW/H5ooueaz2rrh4BtuuDNOT hvJHYJFJXP4lehrhj5xVeqgY64VaN885pYt7KwNMf/HRd8H0DkPe5ueKfki3G66i w37dPtkkfyn/HHWWFX75YA= From: Chao Liu To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, bin.meng@windriver.com, edgar.iglesias@gmail.com, alistair@alistair23.me, Chao Liu Subject: [PATCH v3 1/2] xilink_zynq: Add various missing unimplemented devices Date: Sun, 6 Oct 2024 00:06:05 +0800 Message-ID: <1193cf07fbfa67f94ebad9bd897358f248f703cb.1728141040.git.chao.liu@yeah.net> X-Mailer: git-send-email 2.46.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: M88vCgCnyun1YwFnyEiwAQ--.25016S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7Aw4DAry3Wr4DJF48Zr1kZrb_yoW8CryxpF s8CrZxWrWrtFZrA397WrnFqF1Ygws7Ca4UGrW3C393uFsakr1DJF4vq3Z5KFyrGr4qvw13 XF43tFn5Kr12y3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jfuciUUUUU= X-Originating-IP: [112.19.146.115] X-CM-SenderInfo: pfkd0hxolxq5hhdkh0dhw/1tbiCRFvKGcBHYV+OAABsm Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=1.95.21.14; envelope-from=chao.liu@yeah.net; helo=mail-m16.yeah.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @yeah.net) X-ZM-MESSAGEID: 1728144457350116600 Content-Type: text/plain; charset="utf-8" Add xilinx zynq board memory mapping is implemented in the device. Remove a ignore_memory_transaction_failures concurrently. Source: Zynq-7000 SoC Data Sheet: Overview, Chapter: Memory Map See: https://www.mouser.com/datasheet/2/903/ds190_Zynq_7000_Overview-159549= 2.pdf Signed-off-by: Chao Liu --- hw/arm/xilinx_zynq.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c index 37c234f5ab..77010bebeb 100644 --- a/hw/arm/xilinx_zynq.c +++ b/hw/arm/xilinx_zynq.c @@ -34,6 +34,7 @@ #include "hw/net/cadence_gem.h" #include "hw/cpu/a9mpcore.h" #include "hw/qdev-clock.h" +#include "hw/misc/unimp.h" #include "sysemu/reset.h" #include "qom/object.h" #include "exec/tswap.h" @@ -229,6 +230,16 @@ static void zynq_init(MachineState *machine) zynq_machine->cpu[n] =3D ARM_CPU(cpuobj); } =20 + /* PL AXI */ + create_unimplemented_device("zynq.pl-axi.port0", 0x40000000, 1 * GiB); + create_unimplemented_device("zynq.pl-axi.port1", 0x80000000, 1 * GiB); + + /* IOP devices */ + create_unimplemented_device("zynq.iop-devices", 0xE0000000, 256 * MiB); + + /* Programmable register access via AMBA APB bus */ + create_unimplemented_device("zynq.amba", 0xF8000000, 32 * MiB); + /* DDR remapped to address zero. */ memory_region_add_subregion(address_space_mem, 0, machine->ram); =20 @@ -394,7 +405,6 @@ static void zynq_machine_class_init(ObjectClass *oc, vo= id *data) mc->init =3D zynq_init; mc->max_cpus =3D ZYNQ_MAX_CPUS; mc->no_sdcard =3D 1; - mc->ignore_memory_transaction_failures =3D true; mc->valid_cpu_types =3D valid_cpu_types; mc->default_ram_id =3D "zynq.ext_ram"; prop =3D object_class_property_add_str(oc, "boot-mode", NULL, --=20 2.46.1 From nobody Sat Nov 23 23:54:13 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=yeah.net ARC-Seal: i=1; a=rsa-sha256; t=1728144450; cv=none; d=zohomail.com; s=zohoarc; b=WDxlZXDDdLSEA15aeNDC2jrrULyBdRTTt0boPX4jOZc2gMA9TbBpFl8BndPdRY8mAK1n3LpUnglwADbz9SVMnC3GfJw2Puhy+5WOIjRJKTNJTNy7Uf1gbddxlUaKcDBfQNwObn/Xh7d7sCDcEk8YItkP8ntFEUZ+6lyeE2dc5i4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1728144450; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=dAi6Etdnj+bzXLvZ2nY6nMe4oTUVjb5cLyBKiqkX/Yk=; b=i0TezHKsq1v2NurHVvZaHfBcOP9ZhBHynCFmNBnFwLBLEMEbTtlgIgsXMTxCpyJJ7G5fJh+UrAmxq5maAcssEyrZVF36SvGDqOrVvnW3kPcujX1uymrks9ZBORFBxY2XpbQa/3TMQqsgAvyQDt/OLmu+KzkwmciXbyEFr8qd1Po= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1728144450413755.8809913752722; Sat, 5 Oct 2024 09:07:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sx7Iy-0008HR-T1; Sat, 05 Oct 2024 12:06:52 -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 1sx7Iu-0008Gi-RS for qemu-devel@nongnu.org; Sat, 05 Oct 2024 12:06:49 -0400 Received: from mail-m16.yeah.net ([220.197.32.16]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sx7Io-0002P5-Ok for qemu-devel@nongnu.org; Sat, 05 Oct 2024 12:06:47 -0400 Received: from localhost.localdomain (unknown []) by gzsmtp3 (Coremail) with SMTP id M88vCgCnyun1YwFnyEiwAQ--.25016S4; Sun, 06 Oct 2024 00:06:19 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yeah.net; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=dAi6E tdnj+bzXLvZ2nY6nMe4oTUVjb5cLyBKiqkX/Yk=; b=fxmk7MjmX0/uTUYVxGSFT rAEZBbKkbhDMkYmBTG1huvC2ZvF3A+Y5gSc9Y0JCLX4ZQjeQJWVTFMS0PIwJAXBH BNHSUsGv3p2ViCrJjscgKGuQxqFMtU4ckRf+0bvF/85Acsvf0YHhuPrkruet8aG4 xLKk3Xw+Z+bw7b3RHgVoKw= From: Chao Liu To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, bin.meng@windriver.com, edgar.iglesias@gmail.com, alistair@alistair23.me, Chao Liu Subject: [PATCH v3 2/2] xilink-zynq-devcfg: Fix up for memory address range size not set correctly Date: Sun, 6 Oct 2024 00:06:06 +0800 Message-ID: <0034b90c6a533563863aba7e9fb2f19b6cc59284.1728141040.git.chao.liu@yeah.net> X-Mailer: git-send-email 2.46.1 In-Reply-To: References: MIME-Version: 1.0 Signed-off-by: Chao Liu Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: M88vCgCnyun1YwFnyEiwAQ--.25016S4 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUVFksDUUUU X-Originating-IP: [112.19.146.115] X-CM-SenderInfo: pfkd0hxolxq5hhdkh0dhw/1tbiCRFvKGcBHYV+OAACsl Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=220.197.32.16; envelope-from=chao.liu@yeah.net; helo=mail-m16.yeah.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @yeah.net) X-ZM-MESSAGEID: 1728144453707116600 Content-Type: text/plain; charset="utf-8" diff --git a/hw/dma/xlnx-zynq-devcfg.c b/hw/dma/xlnx-zynq-devcfg.c index b8544d0731..7170353a62 100644 --- a/hw/dma/xlnx-zynq-devcfg.c +++ b/hw/dma/xlnx-zynq-devcfg.c @@ -372,7 +372,7 @@ static void xlnx_zynq_devcfg_init(Object *obj) s->regs_info, s->regs, &xlnx_zynq_devcfg_reg_ops, XLNX_ZYNQ_DEVCFG_ERR_DEBUG, - XLNX_ZYNQ_DEVCFG_R_MAX); + XLNX_ZYNQ_DEVCFG_R_MAX * 4); memory_region_add_subregion(&s->iomem, A_CTRL, ®_array->mem); --=20 2.46.1