Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp976436ybx; Fri, 1 Nov 2019 14:30:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6obaq87IoFpjS1Scu6d4jXUtc1vLDnH+I78P9IsIOamJeoto/DwTs4f5LUjNrWfmNI4zt X-Received: by 2002:a17:906:e57:: with SMTP id q23mr11927115eji.303.1572643800794; Fri, 01 Nov 2019 14:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572643800; cv=none; d=google.com; s=arc-20160816; b=rDv+SaRohnuynWLIw3zGUTMOVWTqn6Aex/gKl8zSz2/v/Yp3ksKF0EoI7fTDNIhFbY U1bf6Mlg4d17IMs1XZEHKmSDP7a0ujvOMlOHO6N0ATyqXCGexAW2MLCrnSFWRanf2XC/ YvWqJrOnrAwcYJ+X3ktWuB5NZ4ucR+a1qyOG8f4fWdfYwPNHj+P70p72ufhqi9FTyp/q N/qqDDebSS1SNFu78c62LMIV/2MSwroeWGbpR5lkXCWC0OhPCnYpXUGgN7nQUdETbih6 gTT8478Qt0jmbuSJFCVvs1xi40catUMjHhhvZCNYWakzBpGGsdjyJwch4CHEbHLYzbDt PPmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=akkZD3w083zl13woGTjsh480XINKZCL3wR8VL14OTmQ=; b=w0krN1ZtAc6BTBd6Qni8XA2lMm2sHghjSmVd6Nxd700fsSWKTdJoY+Q0TWxnC6UktK xewSIukHqVH8P48oTT50UiR/cwniIHODITinA0apUwTxCLHBmBgrM0nWggJFObV2jKlx JzR23Zts1npLuYwkNCqYuC9SJqU2UrxFymnVViC2gopIL/RU8MZKQdKIEvPn9dR9fKRK JdVdg5+MM7u+5pGnjk6Aw1hyOPV0dRfuvlZeMhhGix6r42KSdCHvgos07uxmIVqGOqlY wdLEKuTvT5DipxBdNkGWEb+X9MhwicvMq9yzGI6WVXY4zm//KBER7sOPgKDSNFdG3QZl KIcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=s0Vz8wh0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f19si1406519eda.435.2019.11.01.14.29.37; Fri, 01 Nov 2019 14:30:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=s0Vz8wh0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727001AbfKAV0o (ORCPT + 99 others); Fri, 1 Nov 2019 17:26:44 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:42969 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfKAV0n (ORCPT ); Fri, 1 Nov 2019 17:26:43 -0400 Received: by mail-oi1-f193.google.com with SMTP id i185so9343700oif.9 for ; Fri, 01 Nov 2019 14:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=akkZD3w083zl13woGTjsh480XINKZCL3wR8VL14OTmQ=; b=s0Vz8wh0GQ9oVFLmjY4JYB4Ahm42iKCgainya75ejaw+VdRDfft88VS6BcoRAIOLF6 hRc37n2vtK2pgiVbgYHLJHJoJKNqX3i+FgLVWUseXizVnLdELNDtCT2R9oKWfqhFEru1 Yw7TuoxlW1zCwHrf1/9rBmkVLwejj8GIMWpu3Cl06CuxcimZuGtOgNnvM37W2MzSNcUZ Fb0Ue/qO564LvEi6EdftMqD3bVfz1zmlbLi6jMaUn2HplbDzmArPbjdtMKmScfEaexJV 1M/ImLD4nnaxXfT6meC5xHAnY6ViRXAanGiHl3yo7uwsvD/Q7hw3yGdBU5aRGAn1EM5b 1DEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=akkZD3w083zl13woGTjsh480XINKZCL3wR8VL14OTmQ=; b=AaxoxlS7SqV5g1tQrbYa880SW96R5hib0oq3h8eZgF0rgA7dQnRx6hlO0Khk/ruQGg Y4wYhjZSH9Ktg5Wv7tHoI+XoW3CgAoLcGu4fLo04tMVdhG5SqJupdeapyUy3x4croRRS 4UiLYw24IOrJGZe873wHNbCrotH6cU4T0MZVy4veYi0mrqR61f/MTq9rS2Vi6ZeJ6qiv CgOBdgUyWmGm3ncnB1h70Er0ayaARL/Ip5DN1uJxTaZ/KzvqgTJpchiGZCjqEgR7+aHZ Nw6FhhGqfRXAbqUyqblFDlF9Y8uTzy1JLqaIsJf1onoBdACUaxgiJJfYNhJLATCs2EGp 5oaA== X-Gm-Message-State: APjAAAXb0Hhv8X1pof4EfkHvHFOa8b5uCJmmZ5K8h4ifdS2r1B3HLP+x 3IF78yenO3FOoAyOyn5Jw45KF4YQJ7LTw/A0mlNSTESm X-Received: by 2002:aca:f408:: with SMTP id s8mr1061686oih.69.1572643602372; Fri, 01 Nov 2019 14:26:42 -0700 (PDT) MIME-Version: 1.0 References: <20191030145112.19738-1-will@kernel.org> <6e457227-ca06-2998-4ffa-a58ab171ce32@arm.com> <20191030155444.GC19096@willie-the-truck> <20191031193758.GA2607492@lophozonia> <20191101114148.GA2694906@lophozonia> <20191101122825.GA318@e121166-lin.cambridge.arm.com> In-Reply-To: <20191101122825.GA318@e121166-lin.cambridge.arm.com> From: Saravana Kannan Date: Fri, 1 Nov 2019 14:26:05 -0700 Message-ID: Subject: Re: [PATCH 0/7] iommu: Permit modular builds of ARM SMMU[v3] drivers To: Lorenzo Pieralisi Cc: Jean-Philippe Brucker , Will Deacon , LKML , iommu@lists.linux-foundation.org, Bjorn Helgaas , Robin Murphy Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 1, 2019 at 5:28 AM Lorenzo Pieralisi wrote: > > On Fri, Nov 01, 2019 at 12:41:48PM +0100, Jean-Philippe Brucker wrote: > > [...] > > > > > I'm also wondering about ACPI support. > > > > > > I'd love to add ACPI support too, but I have zero knowledge of ACPI. > > > I'd be happy to help anyone who wants to add ACPI support that allows > > > ACPI to add device links. > > > > It's not as generic as device-tree, each vendor has their own table to > > describe the IOMMU topology. I don't see a nice way to transpose the > > add_links() callback there. Links need to be created either in a common > > path (iommu_probe_device()) or in the APCI IORT driver. > > We can create a generic stub that calls into respective firmware > handling paths (eg iort_dma_setup() in acpi_dma_configure()). > > There are three arches booting with ACPI so stubbing it out in > specific firmware handlers is not such a big deal, less generic > sure, but not catastrophically bad. Ok, good to know. > Obviously this works for IOMMU masters links It's unclear to me what you are referring to here and it's throwing me off on the rest of the email. Did you mean to say "IOMMU master's links"? As in the bus masters whose accesses go through IOMMUs? And "links" as in device links? OR Do you mean device links from bus master devices to IOMMUs here? > - for resources > dependencies (eg power domains) it deserves some thought, keeping in > mind that IOMMUs are static table entries in ACPI and not device objects > so they are not even capable of expressing eg power resources and > suchlike. If you can reword this sentence for me with more context or split it into separate sentences, I'd appreciate that very much. I'd help me understand this better and allow me to try to help out. > Long story short: adding IOMMU masters links in ACPI should be > reasonably simple, everything else requires further thought. -Saravana