From nobody Fri Nov 14 21:43:50 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=1590499998; cv=none; d=zohomail.com; s=zohoarc; b=EVEmb85SKYNkkjx5Azm2a5akuazAq1JBI/tzDybgTixVNOc7GWCcxUjaAbSxsnSd9cYsFinPWcSwFsMAiBDnOfEFZJ+5Ii5B9Up4dUYogM4K7nRY1pmGqWGB1NloyKl+1TodgryGM8pBewT/UXTFh/B7Ft7JkA75u9+PBNPULaw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590499998; 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=VSFcwT6vg70122qEIwzoJ6Hd1EJfHvLASO6S6ygESomE4y+MCUSoWY7677R9/rCEJksdnAVK4ZCNacq8Wom6pG7oCj2KoxemZxeLeyTGvY7YkIuLL9Py1eeU1dhOpV2JyWljXXFzWDPeAu93u06l4lxADq633fJYv/lIa0R7xAg= 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 1590499998088391.9194234729508; Tue, 26 May 2020 06:33:18 -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-467-29oXkySCOquFJELZSSMuLg-1; Tue, 26 May 2020 09:33:14 -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 C2133100CCC3; Tue, 26 May 2020 13:33:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A249D707C6; Tue, 26 May 2020 13:33:06 +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 71B381809554; Tue, 26 May 2020 13:33:06 +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 04QDX3Mf012398 for ; Tue, 26 May 2020 09:33:03 -0400 Received: by smtp.corp.redhat.com (Postfix) id 547A15EDEA; Tue, 26 May 2020 13:33:03 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2617D5EDDB for ; Tue, 26 May 2020 13:33:02 +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 C4E54180122F for ; Tue, 26 May 2020 13:33:02 +0000 (UTC) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-288-ID4XBhg9NvCOkhIXrM1o1g-1; Tue, 26 May 2020 09:32:57 -0400 Received: by mail-ed1-f51.google.com with SMTP id g9so17643582edw.10; Tue, 26 May 2020 06:32:56 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 06:32:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590499996; 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=Do7wlhGls04ymIAg79wfFJe6G+vxmtdNSUwv24AsBHp886Ay+4GME8NqKPoaF5/r/iNWY2 ScLJEhr92W5FHFa/7MNGTiN8yXph3V2vvkN7x+SuvjNLLsVouYfxuPt7HUIF2AAA6HkSZf NqeapiHzzVnu2qOGvMvKWwBOJalN+qo= X-MC-Unique: 29oXkySCOquFJELZSSMuLg-1 X-MC-Unique: ID4XBhg9NvCOkhIXrM1o1g-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=i/2ofcOwlnKv3YQP0s60XKcfnx95ayQOIJ3TQkQUOrY2sgUj+WOpmyZlFaCFr0pJBz oWg9VKVN8U3QvFXeEeO+VLTcPme3Nw+pyew8BFSANbgrmK2/p/ap4BweQWbutPUytqNP mgv/Necl3kg4pIzP3If790u6P6gEAnzYeJ90AAo8iApowt2UWkAMwznzHteKNWwmQdw2 DWszWaXSJEf+/3cV3Zk6jOAU7xWTJKDpgrz2VF08Z6JKL5QI8VLXPZnOUC/j2dCc6nKC ABUOVAobUR6UPHziWweBncgDsRcJBvxCTZdwVtFp1d2hk9SylzppyXxnHfbrZD1uBOU/ KfWw== X-Gm-Message-State: AOAM531sZYNU3UnLtNaqQcB0/ZPCPIeIaHwlGXShDpxuIKYYScmA0Rhn zAZYT3JkuHNgYPwFcuYfgUk= X-Google-Smtp-Source: ABdhPJzh5e2NJGorrQJUH5eWtCdS6ap4rrW8N0+JXwmSTQz4ZyMcEgH1vsP+EBW4EoanR6T4h6cucQ== X-Received: by 2002:aa7:ca49:: with SMTP id j9mr20535964edt.186.1590499975531; Tue, 26 May 2020 06:32:55 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 04/14] hw/pci-host/bonito: Map peripheral using physical address Date: Tue, 26 May 2020 15:32:37 +0200 Message-Id: <20200526133247.13066-5-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) 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