From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD90FC4338F for ; Mon, 23 Aug 2021 09:19:26 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5BE4C6136F for ; Mon, 23 Aug 2021 09:19:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5BE4C6136F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=verisilicon.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:53780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mI673-0000Ht-DY for qemu-devel@archiver.kernel.org; Mon, 23 Aug 2021 05:19:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mI65W-0006my-6S; Mon, 23 Aug 2021 05:17:50 -0400 Received: from [101.89.135.45] (port=44451 helo=shasxm03.verisilicon.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1mI65Q-0004AC-Fx; Mon, 23 Aug 2021 05:17:49 -0400 Content-Language: zh-CN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; d=Verisilicon.com; s=default; c=simple/simple; t=1629710102; h=from:subject:to:date:message-id; bh=8uv6waHRcI0bnycZTrYtIglsrUAN9CGAvGZy+61uXco=; b=eD0Q1DYINW/xmKH0G+uwg5t60RccZ1ftfNgvWys80JXRjRpu9DiD0nYh/b+Rk5v03VcMrCkPR5G qLR5XZW/S8YvKoJRMg+KIhA8ajFxIVlFDtbl9K6WSaeFmXsnocRLqx1m9BtRi/6uziNUAYqLEmo+E eIa30ywQvQRLLvsVSpw= Received: from SHASXM03.verisilicon.com ([fe80::938:4dda:a2f9:38aa]) by SHASXM06.verisilicon.com ([fe80::59a8:ce34:dc14:ddda%16]) with mapi id 14.03.0408.000; Mon, 23 Aug 2021 17:15:00 +0800 From: "Li, Chunming" To: "eric.auger@redhat.com" , "peter.maydell@linaro.org" , Peter Maydell Subject: [PATCH v3 0/4] hw/arm/smmuv3: Support non PCI/PCIe devices Thread-Topic: [PATCH v3 0/4] hw/arm/smmuv3: Support non PCI/PCIe devices Thread-Index: AQHXl/03JZ8T3FCsZ0CNQ+atIxw77auAzKWA Date: Mon, 23 Aug 2021 09:14:59 +0000 Message-ID: <49C79B700B5D8F45B8EF0861B4EF3B3B01142F972E@SHASXM03.verisilicon.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [182.148.13.223] x-tm-as-product-ver: SMEX-11.0.0.4179-8.100.1062-25628.004 x-tm-as-result: No--2.776100-0.000000-31 x-tm-as-user-approved-sender: Yes x-tm-as-user-blocked-sender: No MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 101.89.135.45 (deferred) Received-SPF: pass client-ip=101.89.135.45; envelope-from=Chunming.Li@verisilicon.com; helo=shasxm03.verisilicon.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Liu, Renwei" , "qemu-arm@nongnu.org" , "Wen, Jianxian" , "qemu-devel@nongnu.org" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The current SMMU v3 model only support PCI/PCIe devices, so we update it fo= r=20 non-PCI/PCIe devices. . Add independent IOMMU memory regions for non-PCI/PCIe devices . Add SID value property setting for non-PCI/PCIe devices . Add PL330 DMA controller into "virt" machine and connect with SMMU v3 . Test PL330 DMA controller and PCIe e1000 network with SMMU v3 enabled Notes: You need apply PL330 memory region patch before compile "virt" machine: https://patchew.org/QEMU/4C23C17B8E87E74E906A25A3254A03F4FA1FEC31@SHASXM0= 3.verisilicon.com/ The old PL330 model cannot configure its memory region manually.=20 So we update it and provide path. The patch was reviewed and will be merged in target-arm.next for 6.2. Chunming Li (4): hw/arm/smmuv3: Support non PCI/PCIe device connect with SMMU v3 hw/arm/smmuv3: Update implementation of CFGI commands based on device SID hw/arm/virt: Update SMMU v3 creation to support non PCI/PCIe device connection hw/arm/virt: Add PL330 DMA controller and connect with SMMU v3 hw/arm/smmuv3.c | 81 ++++++++++++++++++-------- hw/arm/virt.c | 108 ++++++++++++++++++++++++++++++++++- include/hw/arm/smmu-common.h | 12 +++- include/hw/arm/smmuv3.h | 2 + include/hw/arm/virt.h | 3 + 5 files changed, 178 insertions(+), 28 deletions(-) --=20