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=-14.5 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,SPF_HELO_NONE,SPF_PASS 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 CECC2C433ED for ; Fri, 14 May 2021 12:38:00 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 50BE06145B for ; Fri, 14 May 2021 12:38:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 50BE06145B 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=puHAHUoWEVoMgQ0I5Mq6+ehBWrsQ7kud10sGCFTNiB0=; b=VCA5mWDXAFrPQS4wHny3Q9raT 1kY442y8KLD2zotyR27g9jCl3/vdAncBm3O4/NB1Feis+e4FFqe+qTryiHMmUi/V0Y/xzi3Z+I0V4 gswpmyc1DLovMmPtpOFWbWpBwS6eSdPHFf2c9xASEoUx2zf3Ar8Df6oyc5VxsD/sIV12EEuNjg7mM 0V//rpWogTVPkmUSeZIOKrkB6AMdU/mPe+lbDrfye8sR01OVRgKaEA2x3MoSGuAJ7c9TkYrBKqAi6 P46qjyUhz3m8HaTS2R0uEAVqm3hejJ59BeoyxGKpGpIOH9geZC2bsVAq/EDzIovQG9N53AkZ7vpk5 L4DJB/tWQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhX2p-00835R-D0; Fri, 14 May 2021 12:35:55 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhX2m-008358-Lb for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 12:35:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:In-Reply-To:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=4A2APivfcyDaCt/06VnummJz8bYOcJRXXs3FFpQO3XU=; b=yz1/M8hYog1BJV8i38lWwmwtHw utQZbRt8n3+ATM4FS4i4p+0Sgi499afbpSkjOWiQUS7lfSnJO3oJehJ3Ic92wIRcYfZcFvadNKFpv /MyEn78485U9YB/TxY2s1mzYNdCCzsLQPvHusD1Dscncskc7TPln9cAw9chYQ/7lAfmtZg9NQ+Mh8 oaqhbzRVbvhCnUBHHxSTMVrm4Mtq41cdO5dH7LCoNiiOnj1W1iV8RXnUd/tBqT8mqkTlx6Fet+xUA mH9lr9t2TKnQjBk2BHtnynU/zZOOQfFYTTrQsF18lXj5saBw3/N7p2vKg9AYQi51rdrnPAS/SxaNx 8no2Afig==; Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhX2j-00Byex-HJ for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 12:35:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620995748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4A2APivfcyDaCt/06VnummJz8bYOcJRXXs3FFpQO3XU=; b=DR8350E5faQ7MzMSnkOahdHjYXiCViQSRTV+8/uWnf5Wroy3AkLlB5epAqp8pt8crF082w 4j8zDi8Rqg4jbWXoKPsUA2Uw5487GxUUFjXIgBApPTmD8fGITFTK5NrbN1COOvD5PC1vum bQ3N+TZxysCOanY19VGYKy7axJVpvLw= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-395-jKQP1zXJNB6iocfD3S-glw-1; Fri, 14 May 2021 08:35:34 -0400 X-MC-Unique: jKQP1zXJNB6iocfD3S-glw-1 Received: by mail-wm1-f70.google.com with SMTP id r10-20020a05600c2c4ab029014b601975e1so1773730wmg.0 for ; Fri, 14 May 2021 05:35:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4A2APivfcyDaCt/06VnummJz8bYOcJRXXs3FFpQO3XU=; b=om5/1ErJ+zYcbbOBLA+54zZsjwRhJuniSv8WZgYE9ZB5ycu6cz9YPUJLB9KWolPoiw ZA8rn3Ox+akdVyt7Fo1uViHJJ3HZc6eQnYADJml84XKJl9FOeZ/VF70qyqhOOrYFqdbn E0jPcve4NFvx1qOM0KMFKUsvnTR1cIqYqIQg9dFje6qL6isE61XWX/KHJ8CKo/4ZmhM4 17MHht+IMvMmNyaCI5se1U6LYqYoLe0P5pRYRx7Oqy6gtgQQ9flej5qQp/xHndCB1gRs kn0TjkkEBZ0jgy0JkNSBwHB9p0LzBABOZkiSqmrvhGEy6Mhy0vVf5cQM72LA8tpditRm 5WIA== X-Gm-Message-State: AOAM5330DtdimrXt2Bt9v+ONsg3vJ8F7EoSMvKbhdgQFhYCo5JN7tLKh H+Eh8tBStZ0Ae1GjwyKkb/Y7eYrgYqF0LLTQZWKQePG/6KLitTa5E/KT3PU4Ge0L0mNhDPjODyH n9KaOLd4xKDw3vRGsCY6xH6aUj2/QEaeZGmI= X-Received: by 2002:a1c:7515:: with SMTP id o21mr49597665wmc.90.1620995733554; Fri, 14 May 2021 05:35:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjfU7fJ2sLn26ewhol2WN23VUlfrplBITfOMhtu8CSpXBAXmHZPIuRLwrEYMB8vP4IQNrraA== X-Received: by 2002:a1c:7515:: with SMTP id o21mr49597643wmc.90.1620995733363; Fri, 14 May 2021 05:35:33 -0700 (PDT) Received: from redhat.com ([2a10:800c:1fa6:0:3809:fe0c:bb87:250e]) by smtp.gmail.com with ESMTPSA id q27sm2855356wrz.79.2021.05.14.05.35.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 05:35:32 -0700 (PDT) Date: Fri, 14 May 2021 08:35:29 -0400 From: "Michael S. Tsirkin" To: Jean-Philippe Brucker Cc: rjw@rjwysocki.net, lenb@kernel.org, joro@8bytes.org, 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, eric.auger@redhat.com, sebastien.boeuf@intel.com, robin.murphy@arm.com, kevin.tian@intel.com, lorenzo.pieralisi@arm.com, guohanjun@huawei.com, sudeep.holla@arm.com Subject: Re: [PATCH v2 0/6] Add support for ACPI VIOT Message-ID: <20210514083449-mutt-send-email-mst@kernel.org> References: <20210423113836.3974972-1-jean-philippe@linaro.org> MIME-Version: 1.0 In-Reply-To: <20210423113836.3974972-1-jean-philippe@linaro.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210514_053549_674663_7EA9BFF4 X-CRM114-Status: GOOD ( 18.99 ) 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: , 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 On Fri, Apr 23, 2021 at 01:38:31PM +0200, Jean-Philippe Brucker wrote: > Add a driver for the ACPI VIOT table, which provides topology > information for para-virtual platforms. Enable virtio-iommu on > non-devicetree platforms, including x86. Acked-by: Michael S. Tsirkin Mostly ACPI stuff so I assume it's best to merge through that tree. > Since v1 [1]: > * The VIOT header definitions have been picked for v5.13 > * Share more code with IORT. Patches 1 and 2 extract the common code > from IORT. > * Simplify the VIOT driver. Use the existing fwnode infrastructure > instead of adding hooks to the IOMMU driver. > > You can find a QEMU implementation at [2], with extra support for > testing all VIOT nodes including MMIO-based endpoints and IOMMU. This > series, based on linux-next, is at [3] > > [1] https://lore.kernel.org/linux-iommu/20210316191652.3401335-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 > > 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 | 60 +++++- > drivers/acpi/viot.c | 350 +++++++++++++++++++++++++++++++++++ > 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, 548 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 > > -- > 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel