Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2292012lqt; Mon, 22 Apr 2024 07:04:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIBuwHacziy2MRKZpaIZDUeaWd92W6S4tk+e475gAji1laFSmGbQFf6KYF2IilXYgDJnWpT0aiExlAr2nXBe79+cWHq8n5q2dtcDaE9g== X-Google-Smtp-Source: AGHT+IFjLov2jVv5bGNwYz/fKBLEbBQdMgH0ZMaSty//t8QlO+FWmzJ8Gyz8YYfWYWYv+2xl4OEH X-Received: by 2002:a50:aad8:0:b0:570:c8f:1a35 with SMTP id r24-20020a50aad8000000b005700c8f1a35mr5606316edc.8.1713794666784; Mon, 22 Apr 2024 07:04:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713794666; cv=pass; d=google.com; s=arc-20160816; b=ba6gZskbUJNrSL8kJmvqQ8PU9Vuo+KC7wiKM+nkmPQBb3YsM53j+tn78iDGGxjMEAK nrSFtLKY8y+lJKUM1cNmSXFSEnsS8sojAtwVaNZ9GWHAKCJsGjGJXis3qdlwEXNoQmfz 7XTzf7Cyav+nlA1SKrViv0XlgAPF07Vna5DKD7iRGfhLiP111PldnRk0PiEUNw1Mrp3A 2YsJjMr0VaUaKLC2+o2ggkTTktHpT2+ahDgJgkp+1lNDzyqZLrjFOlLjOMmPupJh9UZg I+83IJfA7ERhLgKjyhhn3pGrDsQQoJuuKrF9XbXyhamWN4XjPiD7l05k2lUoi38VQeuL VuuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Smn/GN3sG+lGMYd6Ebt3cqlYzxir9sCZCB3vZvQtkjI=; fh=QoibKLEXIEpBTozPPb1rUm1yOH8lEO4NM4wINRwoqkM=; b=cE73SNpcwL5mGsd5+9qOI/GoFRXNPhzAyvpb+vPiRRF3UY74Gt94B0TQPKZtdKvUY2 fe9/3SzEGScWYm595A+9xj6kt4/iQNO8KlH+CEc8ntAENj2CZLhCC4umJocLukyxf0Rt qB/LowUSMZSj2IjZlXpYzBKu1rEeU+LeuyJVomegeeoEtC+Ug3Am6v04P3akVOb7CnU5 qnjq38r9qCeNW1ioW+HFcJlsAoADRcu1hxojTrgz6oS5nPkHURIIwfT2RsT64kiFJcpi jTt3db3HcYJjStFLbdeHtQoTwrM6qkxV0pVnL085utusQ8RZgI/QGKH4bEX8fBMH+EZh gRdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=feAlIGVk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153512-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i29-20020a50d75d000000b0056e32c889desi5905073edj.561.2024.04.22.07.04.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 07:04:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=feAlIGVk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153512-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 827A01F21A36 for ; Mon, 22 Apr 2024 14:04:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 818EB1509A2; Mon, 22 Apr 2024 14:04:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="feAlIGVk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A23CA14F9EB; Mon, 22 Apr 2024 14:04:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713794658; cv=none; b=fJbikAHjLlRfppVaar5sysWsqwmcInZmSzG6yD9K2MpANNG6Let0mJOy8dajob7akADC649l1NYloy06CWNpnMOmzKxzRHaShOVrKvLdEzF+pw6EB0Rn2dP9bnzO4qcSpLMZqCehWxdIDHGADRqPS8oVmq6wRWVOs2HQh4HB1tk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713794658; c=relaxed/simple; bh=6S2xDWTRnzyPkq2E+nBY5AiINL0m8wq/LI6ka+0jqfo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BJEq7V5qOy9q24kdQlv/6PZFq7OyijiFZcLjcH/KMnmQCpekbZrTIFeBKlp08fxHJG6FQxpel6pHwy4Tq986+564r0tQTTo8vWGPzg0oHntZb8TVG/t/GLSb8HXsIFhlc08dwkonD01UicsPy4jXAJIDon5HhBfgYOnfslmZYaE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=feAlIGVk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E85E4C32781; Mon, 22 Apr 2024 14:04:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713794658; bh=6S2xDWTRnzyPkq2E+nBY5AiINL0m8wq/LI6ka+0jqfo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=feAlIGVkuaoRq7hj5iefuaj7ZYPf3feZg5AOcaLs3V/HNbwPFl0zvPaN7B5LwVyj3 5d2uCBrJDhE8MbYj/b60uGmST/OIqOwZKbijoOBRrWf1D4gtYw1y83NKMdaq8x/s40 c+M/EeuRU2NIfITCWIhKw4rv55aME6HNDFmsBN90c1jbkvkUlL5vN05gJpFrMc4ycd FbeKtdhdTIOHkA2CJFdEsb4DFfV1+whzH400oogS34PRRn7EZzwQYiixQ1qRrHlHRU xJRkdLPRhrNM1G/feJks1/AjDJ2y02Lo6hABykjBf/ghONntAHPRy7kR5OFv05ntTm hiZTIqyyf/lgA== Date: Mon, 22 Apr 2024 09:04:15 -0500 From: Rob Herring To: Tomasz Jeznach Cc: Joerg Roedel , Will Deacon , Robin Murphy , Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Sunil V L , Nick Kossifidis , Sebastien Boeuf , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, iommu@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux@rivosinc.com Subject: Re: [PATCH v2 1/7] dt-bindings: iommu: riscv: Add bindings for RISC-V IOMMU Message-ID: <20240422140415.GA1139322-robh@kernel.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Apr 18, 2024 at 09:32:19AM -0700, Tomasz Jeznach wrote: > Add bindings for the RISC-V IOMMU device drivers. > > Co-developed-by: Anup Patel > Signed-off-by: Anup Patel > Signed-off-by: Tomasz Jeznach > --- > .../bindings/iommu/riscv,iommu.yaml | 149 ++++++++++++++++++ > MAINTAINERS | 7 + > 2 files changed, 156 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iommu/riscv,iommu.yaml > > diff --git a/Documentation/devicetree/bindings/iommu/riscv,iommu.yaml b/Documentation/devicetree/bindings/iommu/riscv,iommu.yaml > new file mode 100644 > index 000000000000..d6522ddd43fa > --- /dev/null > +++ b/Documentation/devicetree/bindings/iommu/riscv,iommu.yaml > @@ -0,0 +1,149 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iommu/riscv,iommu.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: RISC-V IOMMU Architecture Implementation > + > +maintainers: > + - Tomasz Jeznach > + > +description: |+ > + The RISC-V IOMMU provides memory address translation and isolation for > + input and output devices, supporting per-device translation context, > + shared process address spaces including the ATS and PRI components of > + the PCIe specification, two stage address translation and MSI remapping. > + It supports identical translation table format to the RISC-V address > + translation tables with page level access and protection attributes. > + Hardware uses in-memory command and fault reporting queues with wired > + interrupt or MSI notifications. > + > + Visit https://github.com/riscv-non-isa/riscv-iommu for more details. > + > + For information on assigning RISC-V IOMMU to its peripheral devices, > + see generic IOMMU bindings. > + > +properties: > + # For PCIe IOMMU hardware compatible property should contain the vendor > + # and device ID according to the PCI Bus Binding specification. > + # Since PCI provides built-in identification methods, compatible is not > + # actually required. For non-PCIe hardware implementations 'riscv,iommu' > + # should be specified along with 'reg' property providing MMIO location. > + compatible: > + oneOf: > + - items: > + - const: riscv,pci-iommu > + - const: pci1efd,edf1 Given the PCI compatible string is a specific vendor and device, it is more specific than "riscv,pci-iommu" and should come first. > + - items: > + - const: pci1efd,edf1 Why do you need to support this without riscv,pci-iommu? > + - items: > + - const: riscv,iommu I agree with what Conor said on this. Rob