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=-9.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 0FABCC2B9F7 for ; Wed, 26 May 2021 12:15:07 +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 BA53F613D8 for ; Wed, 26 May 2021 12:15:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA53F613D8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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: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=TD7LGaP15v1SDt9sqiQSl4Y6HY6iBuWukK2NNwgwqi8=; b=fjBFrG+X8W4lV/ UH1ochdSjBXm5bHZhp8a8hyMECraqKkxLe6cf528J4TonjpUb8CBq3aBbvBhmq+6ogWr/N+YObUgG 5VLMVqf2nN7vFDqCCch/eczrEpwcd1DKjZNGOfP1H1AtCnMJf7qwtALPdbiz1tuLqThoEl5gOZDmf O9SkhOetJCgm9c+LqsCfBxInLtC6gVNAujJ3BwACK7EOp0kMegzCZSDkczfnDxHFWMcyzQxDzr1BI o2f5zxkItBJq9yWQm8eFj8e5V1uVAwlcaxQZzQJmFIZ9UoW169weodHQedIdbxxGu5nM670bX6P/G Ql1CQ6uiKaFdQHIuqgvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1llsOE-00DrF3-Qg; Wed, 26 May 2021 12:12:01 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1llqOo-00D4hU-C1 for linux-arm-kernel@lists.infradead.org; Wed, 26 May 2021 10:04:28 +0000 Received: by mail-ej1-x631.google.com with SMTP id s22so1465228ejv.12 for ; Wed, 26 May 2021 03:04:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6vKl5wXX6m3B8S615pg0hNiDymSmdGcKHVZ5IanzTbQ=; b=RvdlZigy0NWOWJ5IX5kOqv4M+9H8owkJpPuwqCEa0ZFeXMQvC2wnCU0G1XLX2Oh6Qc UAXeaBKUhYPqs1/d/mttTaGZGK9zKg+9e4AxltWH+fx4279o+OGKgeEKOSqFliABtgMd F5RxumrPAmjoNhm4FfbM/nnmwiar30lyihH6qjQ/l9AeaQfwTFxDUQ5ihdPJQg49O5EB xqKeQmK8Hhze3vM0He32bxgYZrIYVzF1W6r7Zf3YaPHaylVedwvZbQi2Ub/EoitPSdKS 9isi5bRJBqy0mWSlA6p4kk3B9OZH1XzUFbOe0Q2MUXOGJckm8xFm2WR4gOBvIf1ClDZb zwwQ== 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=6vKl5wXX6m3B8S615pg0hNiDymSmdGcKHVZ5IanzTbQ=; b=NXIsIqMmZ6Hvu3A8czBbGltkWar5bFG7DNoUYkD2yt4rXLAjFUCrR65ONHeD1T9cEu usapXF8L49BnIYKF4syP1xVw8JfentR7g1SlEttlsITViZ02xv5WqcSrJCqxwnvi4OP/ +bu7r8kOrN2AFDpgUiOPYqn5+D2Aj+lxKooz9XeEeTEBiE3tC6tYO4Lw5c3HSKUK5Hmo eZswdabccO3GXG9vCByLT2cDD1Fl645dZL0PO/+WCBfWhaZpa7ii8nD4ecFcSu9OAPCF 3O0nOxH2O2ZA7ocRbwTyglf/JHrVOEqP4HugJsrhGHoNkzrwlojwQJkTcLEftFAu8r5Y cSdQ== X-Gm-Message-State: AOAM533anW5D2h1YGP3bddZMONn2u7lQ6FBQpQZAyd58NkbjGP/i77nC l+90nUugKK8AEUVjrMxSKWl8zg== X-Google-Smtp-Source: ABdhPJyikgVRUFu3nC9T4AMVWatJFwbVikBSeD8fXfrM/F9mmEI89dlrOXNO+Hf2sPTVJ5KE1IhXEQ== X-Received: by 2002:a17:906:7f06:: with SMTP id d6mr32984690ejr.189.1622023461876; Wed, 26 May 2021 03:04:21 -0700 (PDT) Received: from myrica (adsl-84-226-106-126.adslplus.ch. [84.226.106.126]) by smtp.gmail.com with ESMTPSA id j4sm9339398edq.13.2021.05.26.03.04.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 03:04:21 -0700 (PDT) Date: Wed, 26 May 2021 12:04:03 +0200 From: Jean-Philippe Brucker To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Len Brown , Joerg Roedel , "Michael S. Tsirkin" , Will Deacon , Catalin Marinas , Lu Baolu , David Woodhouse , ACPI Devel Maling List , "open list:AMD IOMMU (AMD-VI)" , virtualization@lists.linux-foundation.org, Linux ARM , Eric Auger , sebastien.boeuf@intel.com, Robin Murphy , kevin.tian@intel.com, Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla Subject: Re: [PATCH v2 3/6] ACPI: Add driver for the VIOT table Message-ID: References: <20210423113836.3974972-1-jean-philippe@linaro.org> <20210423113836.3974972-4-jean-philippe@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210526_030426_458615_7142E999 X-CRM114-Status: GOOD ( 18.62 ) 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, May 21, 2021 at 06:39:24PM +0200, Rafael J. Wysocki wrote: > > diff --git a/drivers/acpi/viot.c b/drivers/acpi/viot.c > > new file mode 100644 > > index 000000000000..710e5a5eac70 > > --- /dev/null > > +++ b/drivers/acpi/viot.c > > @@ -0,0 +1,350 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Virtual I/O topology > > In the first place, more information on what this is all about, please. > > What it does and how it is used. Sure, I can add: * * The Virtual I/O Translation Table (VIOT) describes the topology of * para-virtual IOMMUs and the endpoints they manage. The OS uses it to * initialize devices in the right order, preventing endpoints from * issuing DMA before their IOMMU is ready. * * When binding a driver to a device, before calling the device driver's * probe() method, the driver infrastructure calls dma_configure(). At * that point the VIOT driver looks for an IOMMU associated to the device * in the VIOT table. If an IOMMU exists and has been initialized, the * VIOT driver initializes the device's IOMMU fwspec, allowing the DMA * infrastructure to invoke the IOMMU ops when the device driver * configures DMA mappings. If an IOMMU exists and hasn't yet been * initialized, VIOT returns -EPROBE_DEFER to postpone probing the device * until the IOMMU is available. */ Thanks, Jean _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel