From nobody Fri Nov 14 21:41:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590490083; cv=none; d=zohomail.com; s=zohoarc; b=Cur8hMZLNUSLupt7tJ2WiH7krp6G6gX0wGETS1ECfs69LjfPpUiFFLzBKKTXLSUv841VP+fNpZZz4lBRLS5cuSm6nnOX1tDHn0T6FCh+1azX3Qy51kNxJWAciDcT4RXW83nq1JU7lNJvG3ZORQ+sEd+I7EYfYlzT46FsPiQCJc0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590490083; 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=ExVlN86Dv7JggIxvLUBjz5FHxHeWDg8nuqJ3/185rZA=; b=espbxEZTLNjZWOQ9koTQPQlyyiQbEP5SWRcbl8w11gyjT16SAMaXU+AClnb8q9nsvqRw8Lyih6y1d05uUZTiZp0jymAsiQikptrGAvR0e6snzssyULDdivTpjcBFD26oKPhYIybfVg1tumrW9Vh2rzWdU7rkic1aHmX6uYedsWc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1590490083356242.12338709121275; Tue, 26 May 2020 03:48:03 -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-331-Nj1t7PAQPo6bCwPRY3YBMA-1; Tue, 26 May 2020 06:47:59 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A4AE864AD0; Tue, 26 May 2020 10:47:51 +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 861C879C4C; Tue, 26 May 2020 10:47:51 +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 5AC8A65D0F; Tue, 26 May 2020 10:47:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04QAljwi029830 for ; Tue, 26 May 2020 06:47:46 -0400 Received: by smtp.corp.redhat.com (Postfix) id B1DC810F8E19; Tue, 26 May 2020 10:47:44 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 529BE1000DA0 for ; Tue, 26 May 2020 10:47:43 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (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 E9FC5833B47 for ; Tue, 26 May 2020 10:47:42 +0000 (UTC) Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-402-MY_3nysJMOypsaXCxdC4qg-1; Tue, 26 May 2020 06:47:35 -0400 Received: by mail-ed1-f66.google.com with SMTP id d24so17201931eds.11; Tue, 26 May 2020 03:47:34 -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 c27sm3342597ejd.19.2020.05.26.03.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 03:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590490082; 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=ExVlN86Dv7JggIxvLUBjz5FHxHeWDg8nuqJ3/185rZA=; b=LRfELkPnpLw7M7sqawwdvCy5eM6pzjoDj7pwC4DAmIJmGQxsR84GOfQRqy5IqPMPnrLBTB OTSaqCru+npGpnFe31agJx+s0EoqN0f6NXNITchfSmJJGRiLodmFmdBao5686nIeVnj7em w8Pkkrrb1HM0C7+TH9EEMx8he3RVA7Q= X-MC-Unique: Nj1t7PAQPo6bCwPRY3YBMA-1 X-MC-Unique: MY_3nysJMOypsaXCxdC4qg-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=ExVlN86Dv7JggIxvLUBjz5FHxHeWDg8nuqJ3/185rZA=; b=TVlSz43alaglDfr25gFcpPtIoH3wGpr2flkD112PAb6jimernwDTWZqB2Yuqm7igWc sxs8r643U8ldNwG8Tf+8QONBODRaLk5uZH6ZE7ZqV2aTZ2QKw+H/eATEmMgOt52ebWbM XmaRlDrJFSwk7XMdpt6TPBpnBdFpPmaYGGREngcp08PqHbFdm2W2WvYzU7mpDGwGad0D C7TFCPlurXWAeBmNgzD2Vqpriy0jG9/CJIDpAuCPSiRE1jSX/WT8Kl+D3WD45K9i+jQz /qLoxxp3iat2tLoP9mu5pdj31FQuo39tf0KsWD1ucjp/NYqI/6wsf9qBqgMM73ti5m3q +uaw== X-Gm-Message-State: AOAM533LNDUve4AocAzeQr2EkYKlyLfZFJ+wXKuly3a1eXmUljIHB0r6 JFMLPxB+NyQaxNWhtVIfzpY= X-Google-Smtp-Source: ABdhPJzHu36DajOmP5Yy+ZDR/NQuP7WVnBAlHlsYi1iESqNhjAYoDuAuPU3hfKvuG4eDjyRO6ncuEQ== X-Received: by 2002:a50:ed06:: with SMTP id j6mr18875441eds.209.1590490053806; Tue, 26 May 2020 03:47:33 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 04/14] hw/pci-host/bonito: Map peripheral using physical address Date: Tue, 26 May 2020 12:47:16 +0200 Message-Id: <20200526104726.11273-5-f4bug@amsat.org> In-Reply-To: <20200526104726.11273-1-f4bug@amsat.org> References: <20200526104726.11273-1-f4bug@amsat.org> MIME-Version: 1.0 X-Mimecast-Spam-Signature: yes X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 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.11 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) Peripherals are mapped at physical address on busses. Only CPU/IOMMU can use virtual addresses. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-8-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/pci-host/bonito.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c index b874468ea6..b90e5a636d 100644 --- a/hw/pci-host/bonito.c +++ b/hw/pci-host/bonito.c @@ -647,12 +647,12 @@ static void bonito_realize(PCIDevice *dev, Error **er= rp) memory_region_init_io(&s->iomem_ldma, OBJECT(s), &bonito_ldma_ops, s, "ldma", 0x100); sysbus_init_mmio(sysbus, &s->iomem_ldma); - sysbus_mmio_map(sysbus, 3, 0xbfe00200); + sysbus_mmio_map(sysbus, 3, 0x1fe00200); =20 memory_region_init_io(&s->iomem_cop, OBJECT(s), &bonito_cop_ops, s, "cop", 0x100); sysbus_init_mmio(sysbus, &s->iomem_cop); - sysbus_mmio_map(sysbus, 4, 0xbfe00300); + sysbus_mmio_map(sysbus, 4, 0x1fe00300); =20 /* Map PCI IO Space 0x1fd0 0000 - 0x1fd1 0000 */ memory_region_init_alias(&s->bonito_pciio, OBJECT(s), "isa_mmio", --=20 2.21.3