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=-15.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 46C4AC48BE6 for ; Wed, 16 Jun 2021 12:41:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 09D3561078 for ; Wed, 16 Jun 2021 12:41:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 09D3561078 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date :Message-ID:From:References:Cc:To:Subject:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OI5VouwBz2/UCX9PKP9M8tDcn9khnzfYwcIIPWfNVfY=; b=ow7/99IBv8Ku6r SjJezg4umBpaRRUo7tYdIaNaGZz3vk6n7fX9/N0bzwzql+C4D+RHXFy7Bx4ZWJ9sRf8vxO6Kqq4q0 slEzi4AdwZj3J8K7xyrG5iKJ9vNQp+e6riIV64imuchQzllzuQgm+mUkG/D7DJ/aOIaDSKxg0xkPQ Su+fyxQnkS3ITTefWVAn0BzcPYbN4bhQCYvGGT8cpS0JOZfQn/Lhj7DE89tsS0ORjmfTtawZE7cSV cVaWeHfIUTw/7PtSLi+z2lvqEnmrWqCVo2z4SfU9FFjMOCcoGjSXjChalSVrAMd1N2U5TR1uhK6ZX b6HstBX2C6KE49RsB9kg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltUq7-006Hl7-PW; Wed, 16 Jun 2021 12:40:15 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltUq2-006Hjf-KC for linux-arm-kernel@lists.infradead.org; Wed, 16 Jun 2021 12:40:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623847209; h=from:from:reply-to: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; bh=ubsBv6f8Gfa2qgRyhsGa5AFvRPZ+U40JlVZfwTYe0kE=; b=IspAIRSF5MLfvSgrlk/9zo7P4Y6ElTeBMmxbscxifP5BJnleb1bwbnaZ7A1BKSXMoq8BFk ezDiPyfluXiorcOtD0h0V9NTXM9AezksmZ7+wf//3H/FwFvBIv5IqfKC/XuM6+NwTiMI/e z95SraD19jUqhk22we8t9P+JXcj06eo= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-246-OSYFxHJzMqe9W8ho6TRt3w-1; Wed, 16 Jun 2021 08:40:06 -0400 X-MC-Unique: OSYFxHJzMqe9W8ho6TRt3w-1 Received: by mail-wm1-f71.google.com with SMTP id f22-20020a1c6a160000b029018f49a7efb7so1254930wmc.1 for ; Wed, 16 Jun 2021 05:40:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=ubsBv6f8Gfa2qgRyhsGa5AFvRPZ+U40JlVZfwTYe0kE=; b=I8zjttrHu9nTWBMBFWzl+tqiuPKysqgZrOEBYje7cXecU6OgJWjBTsbHVzm4o0YDhw hW9kk1hX2fIst/szVPnaoMCWAaQVEYuIcyKP9HzEQycXJ9S9hsUh2WAirkTQ5D3oA15w /ORHxZPCrk2IbTVgyrgZYgFljJxq+hzHGDVH9WnPSt8NN0uFz/oF+rHu6daCxqXDQq/l 9rPRYbc8IwY0i8L91MbyagXUHD18q2Y+D6GyMGHbEWXXN9NA27qyIZPTxAGpGfEcPJTz Rwa8+kW2JJ/WaEcPuCkCjSi93yNFGY3169Gx9NyVLXJmMQ2tg3M19ChHL2XiysVc8TBE BPfw== X-Gm-Message-State: AOAM530o8IUo0s0Bs1/JgKaOfntH4WQ0Xf9nRN1iiYAPiDRS84ckl7C8 8n/TQWV4WSLtsePT8J4IgFrxt4qDu+nsBAtbciw3hf70gcpQ+7byU6hF8WNQ/3R0bxa/K801rH0 9UOgb0o3OWc2Mr8E4bkuZm4kkZWkGHog0BjA= X-Received: by 2002:a5d:59af:: with SMTP id p15mr5235713wrr.292.1623847205678; Wed, 16 Jun 2021 05:40:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5WQBLU4IKG9p3xxW0FVoOol8q9XU19Rj2M+rLCk3pLwV7dw9cSLzoXZeV3mgmVA67Soicyw== X-Received: by 2002:a5d:59af:: with SMTP id p15mr5235693wrr.292.1623847205520; Wed, 16 Jun 2021 05:40:05 -0700 (PDT) Received: from [192.168.43.95] ([37.172.247.238]) by smtp.gmail.com with ESMTPSA id v15sm4914297wmj.39.2021.06.16.05.40.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Jun 2021 05:40:04 -0700 (PDT) Subject: Re: [PATCH v4 0/6] Add support for ACPI VIOT To: Jean-Philippe Brucker , rjw@rjwysocki.net, lenb@kernel.org, joro@8bytes.org, mst@redhat.com Cc: will@kernel.org, catalin.marinas@arm.com, baolu.lu@linux.intel.com, dwmw2@infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux-foundation.org, virtualization@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, sebastien.boeuf@intel.com, robin.murphy@arm.com, kevin.tian@intel.com, lorenzo.pieralisi@arm.com, guohanjun@huawei.com, sudeep.holla@arm.com References: <20210610075130.67517-1-jean-philippe@linaro.org> From: Eric Auger Message-ID: <883de842-d50a-53f9-7589-a6d20e913f2d@redhat.com> Date: Wed, 16 Jun 2021 14:40:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210610075130.67517-1-jean-philippe@linaro.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=eric.auger@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210616_054010_800248_AE86EF9E X-CRM114-Status: GOOD ( 18.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: eric.auger@redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Jean, On 6/10/21 9:51 AM, Jean-Philippe Brucker wrote: > Add a driver for the ACPI VIOT table, which provides topology > information for para-virtual IOMMUs. Enable virtio-iommu on > non-devicetree platforms, including x86. > > Since v3 [1] I fixed a build bug for !CONFIG_IOMMU_API. Joerg offered to > take this series through the IOMMU tree, which requires Acks for patches > 1-3. > > You can find a QEMU implementation at [2], with extra support for > testing all VIOT nodes including MMIO-based endpoints and IOMMU. > This series is at [3]. > > [1] https://lore.kernel.org/linux-iommu/20210602154444.1077006-1-jean-philippe@linaro.org/ > [2] https://jpbrucker.net/git/qemu/log/?h=virtio-iommu/acpi > [3] https://jpbrucker.net/git/linux/log/?h=virtio-iommu/acpi I tested the series on both aarch64 and x86_64 with qemu. It works for me. Feel free to add my T-b. Tested-by: Eric Auger Thanks Eric > > > Jean-Philippe Brucker (6): > ACPI: arm64: Move DMA setup operations out of IORT > ACPI: Move IOMMU setup code out of IORT > ACPI: Add driver for the VIOT table > iommu/dma: Pass address limit rather than size to > iommu_setup_dma_ops() > iommu/dma: Simplify calls to iommu_setup_dma_ops() > iommu/virtio: Enable x86 support > > drivers/acpi/Kconfig | 3 + > drivers/iommu/Kconfig | 4 +- > drivers/acpi/Makefile | 2 + > drivers/acpi/arm64/Makefile | 1 + > include/acpi/acpi_bus.h | 3 + > include/linux/acpi.h | 3 + > include/linux/acpi_iort.h | 14 +- > include/linux/acpi_viot.h | 19 ++ > include/linux/dma-iommu.h | 4 +- > arch/arm64/mm/dma-mapping.c | 2 +- > drivers/acpi/arm64/dma.c | 50 +++++ > drivers/acpi/arm64/iort.c | 129 ++----------- > drivers/acpi/bus.c | 2 + > drivers/acpi/scan.c | 78 +++++++- > drivers/acpi/viot.c | 364 +++++++++++++++++++++++++++++++++++ > drivers/iommu/amd/iommu.c | 9 +- > drivers/iommu/dma-iommu.c | 17 +- > drivers/iommu/intel/iommu.c | 10 +- > drivers/iommu/virtio-iommu.c | 8 + > MAINTAINERS | 8 + > 20 files changed, 580 insertions(+), 150 deletions(-) > create mode 100644 include/linux/acpi_viot.h > create mode 100644 drivers/acpi/arm64/dma.c > create mode 100644 drivers/acpi/viot.c > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel