From nobody Fri Nov 14 21:46:05 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590500006; cv=none; d=zohomail.com; s=zohoarc; b=Vhnjc4vxrgCAcElLa91PDBKjGLMp1Mdd+1UbeUIDUSl1mfPQr59RuCl0mjvXTDn2K0ymzjOLVsQjndZbrxlxvXwyWV6UvAkg5DNyzgc0sQb14fdlyrQoVRvoaquwROv1gZmPI6mPz2jACqZdfVDsm6ngtR+NVPWEg7e0BHURZGc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590500006; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=W8VxI71hr8dlU8kpN6GleuQ2+cio9Eeh3dClavw718g=; b=J7IDAlQPPc7KlBam4EMy0zIYUc/7coo9aRYH590xvMPrfr7Mgw6/IKLHTTEntYMkIgSasx2wbGcHkYqgEPfFzlArjf00osg53wBhWARzm9TGSGsUokqdxsR1xiqqi69YwiKHho2jdRrQGl9rueolWdEXAtR64qWowWiSP6I9fkU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 159050000650178.46444498999597; Tue, 26 May 2020 06:33:26 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-174-YvP_07PJO1OBhIXf0jw7CQ-1; Tue, 26 May 2020 09:33:22 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 497B71855A1D; Tue, 26 May 2020 13:33:12 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2771A83C05; Tue, 26 May 2020 13:33:12 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id ECBC26B493; Tue, 26 May 2020 13:33:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04QDXAHL012444 for ; Tue, 26 May 2020 09:33:10 -0400 Received: by smtp.corp.redhat.com (Postfix) id BD7A45EDEE; Tue, 26 May 2020 13:33:09 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 71D365EDEC for ; Tue, 26 May 2020 13:33:09 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 35A0380066A for ; Tue, 26 May 2020 13:33:09 +0000 (UTC) Received: from mail-ej1-f66.google.com (mail-ej1-f66.google.com [209.85.218.66]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-123-oNhRnS4jOy-kYq7W39OQ3g-1; Tue, 26 May 2020 09:33:02 -0400 Received: by mail-ej1-f66.google.com with SMTP id a2so23784519ejb.10; Tue, 26 May 2020 06:33:00 -0700 (PDT) Received: from x1w.redhat.com (71.red-88-21-204.staticip.rima-tde.net. [88.21.204.71]) by smtp.gmail.com with ESMTPSA id n25sm1623084edo.56.2020.05.26.06.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 06:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590500005; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=W8VxI71hr8dlU8kpN6GleuQ2+cio9Eeh3dClavw718g=; b=SFZE7B9HgWVBDsN6MAQ2OQCJ8w2eraFdMQzU5JdsE8/+hONdPHKKIwMBwbXjeocCNxq5Yy 3AiQWwwzAZW28G3TgDStG5F9/NDC/S5AJY9Zi079dAQu2wPKxiuQ6iX/+OyAI5MzQzcc0w lwyV21ZwRwnJV7zCupfSj7mSLEIWoBM= X-MC-Unique: YvP_07PJO1OBhIXf0jw7CQ-1 X-MC-Unique: oNhRnS4jOy-kYq7W39OQ3g-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=W8VxI71hr8dlU8kpN6GleuQ2+cio9Eeh3dClavw718g=; b=KXowtGISA1XVJzJ5+fwsH/I6W/XpDvWmYbC1jHOepBLqDJhPpgW07PffzOvwMB7Xyg ZhmMPvyXtxOojZdspGCA06e0k8HQBVwzuX6sSTK1iQiQQbTMogiuBgp0xoU6FJAZ9eq9 zBnu+HRWdMMet8wmZokxmtGmIRzGDOpL2QtUhjsO0cjDG+iSggpK+P66mMpHgA+I/IxU 18NXTHNkirBgIM7IzcRqYNFmG+Zen4N7L7GiOwB9akH5CIlSkvT35beGp+79qKIKvpT8 VivXvqJ5jFOFPPjyGVFarNJw7XQ2/D5vsavvunkdq3aeFR2d2OtYN4U1WncJZM5TJ+xw qukg== X-Gm-Message-State: AOAM531JSOrS5ue0EHA/1D1OrLhhPpQEv6hM05vpGtwO6vzbYwQVSZkw 1KzlYkGXWEecqjqOrkI9K/YrawkZ3eU= X-Google-Smtp-Source: ABdhPJzUY1mUjqfY86NxCT30EKGDVSOLNKM9YhYJAw21KF/OkFe4oJC9gCeR4bBH8SluGHqM1JaFuw== X-Received: by 2002:a17:906:b348:: with SMTP id cd8mr1127899ejb.139.1590499980033; Tue, 26 May 2020 06:33:00 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 07/14] hw/pci-host/bonito: Better describe the I/O CS regions Date: Tue, 26 May 2020 15:32:40 +0200 Message-Id: <20200526133247.13066-8-f4bug@amsat.org> In-Reply-To: <20200526133247.13066-1-f4bug@amsat.org> References: <20200526133247.13066-1-f4bug@amsat.org> MIME-Version: 1.0 X-Mimecast-Spam-Signature: yes X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: Laurent Vivier , Aleksandar Rikalo , libvir-list@redhat.com, Thomas Huth , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Markovic , Huacai Chen , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Better describe the I/O CS regions, add the ROMCS region. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-11-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/pci-host/bonito.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c index 52015cc2a7..20f2797a73 100644 --- a/hw/pci-host/bonito.c +++ b/hw/pci-host/bonito.c @@ -673,6 +673,8 @@ static void bonito_realize(PCIDevice *dev, Error **errp) sysbus_init_mmio(sysbus, &s->iomem_cop); sysbus_mmio_map(sysbus, 4, 0x1fe00300); =20 + create_unimplemented_device("ROMCS", BONITO_FLASH_BASE, 60 * MiB); + /* Map PCI IO Space 0x1fd0 0000 - 0x1fd1 0000 */ memory_region_init_alias(&s->bonito_pciio, OBJECT(s), "isa_mmio", get_system_io(), 0, BONITO_PCIIO_SIZE); @@ -680,10 +682,17 @@ static void bonito_realize(PCIDevice *dev, Error **er= rp) sysbus_mmio_map(sysbus, 5, BONITO_PCIIO_BASE); =20 /* add pci local io mapping */ - memory_region_init_alias(&s->bonito_localio, OBJECT(s), "isa_mmio", - get_system_io(), 0, BONITO_DEV_SIZE); + + memory_region_init_alias(&s->bonito_localio, OBJECT(s), "IOCS[0]", + get_system_io(), 0, 256 * KiB); sysbus_init_mmio(sysbus, &s->bonito_localio); sysbus_mmio_map(sysbus, 6, BONITO_DEV_BASE); + create_unimplemented_device("IOCS[1]", BONITO_DEV_BASE + 1 * 256 * KiB, + 256 * KiB); + create_unimplemented_device("IOCS[2]", BONITO_DEV_BASE + 2 * 256 * KiB, + 256 * KiB); + create_unimplemented_device("IOCS[3]", BONITO_DEV_BASE + 3 * 256 * KiB, + 256 * KiB); =20 memory_region_init_alias(pcimem_alias, NULL, "pci.mem.alias", &bs->pci_mem, 0, BONITO_PCIHI_SIZE); --=20 2.21.3