Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp956025lqj; Mon, 3 Jun 2024 06:15:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTanrdXvfqytLL++NcTOLxmpPcSRReCBcxSG3HOCjRbGxrfdhrKbV9G7LY1K8MMD4Z/Wrv/AkmkuUJbbg9t619S4iOQXIDuxcJg/Yx7A== X-Google-Smtp-Source: AGHT+IE9he0e8tpCE98DzFSEXdOhCOKg2VI/ILVjgLusXijERvnkv9BGNui77BCP2ZFLcUzIg/th X-Received: by 2002:a17:90a:ce89:b0:2bf:7eb7:373b with SMTP id 98e67ed59e1d1-2c1dc5c8ac6mr7001695a91.33.1717420546889; Mon, 03 Jun 2024 06:15:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717420546; cv=pass; d=google.com; s=arc-20160816; b=UaxFI2ge5fvI7TxjyL1FbIcub2LEY6PKd6dWqNgdSpy14Is0TduPaYj3FDaDmlN9+c vYbZN9aa/c9f0K56Pu7e/54AWoHyFUnQrUAInxgbzEmuO07ZtGyWozWcOYL+fIfWH2uY nn5dghyYzUD1xceNM0y3D8IyAeipGIyYA5JUil0X7aTWwl5scD/LvgD3RgVSEkTEHZjc 5/BLmSBbxDPuvRPPbcGy57zyLvimRqZKRknvSbcvdGJ+85n5JTqTZndujqZgdDVhih/x qcXGA0FXqDC4kAnEkltbTgC/l5DCot963CVBrcl8rXIS4WaET2/8ZGchnwmdfhtX/MUi 4DFA== 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=IcEqjvHDHPrKWRNXO1NAMZemLV5LQ0B+lnFn7VKosBA=; fh=eYRjvycq3T5bn34pipm4gCy9sEKsiq9ftYpOKXxmQgs=; b=GfDW5l4CpW28O9Opea8XQenvWgSEToJ4tq7/rhH1PwZBuxVjkK+gXHDSwtWhf1DEPV u3YBOOvmTMrjSjRakgfuz9IloGzaTd4fs84D1JXI5H+XTDk6PjjoQUzAe6p13gZw6QkL ioe8uygLE6N9CHjgYFRG/QRA5YBYIAL7VO61pS0DOJ5fb5q4sjGC76/wLHHHioaozT7i bEiEuvPiMBWUb4d+V5kf8UhL3RxSxh+JELcgPfis3ktS5Ao4/W8UNH2VV+dIVMtjQcFp wCjiyIPxrw6pYXaKId2LDlcg/V2wY6gzDN05RpTrCcaonpvH3d3fEpZnrZ+GSn235way jgzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="JeLo/M+t"; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-199154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199154-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c284e7c9si6367259a91.177.2024.06.03.06.15.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 06:15:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="JeLo/M+t"; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-199154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199154-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EBF3DB22E38 for ; Mon, 3 Jun 2024 13:00:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F117E12D1FE; Mon, 3 Jun 2024 12:59:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="JeLo/M+t" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD34D12D1E8 for ; Mon, 3 Jun 2024 12:59:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419563; cv=none; b=HuU1Of/XbfHonhRKCfXCkhRwJCkxgd4TtKcX29iNZhV6j810ngpO0+Mmf+efFW8tUp5JCt42JxYJk/wjEmRBRRG7+LB2hdQXjxy+pqVQXoFVoONqEDGIExWt5s4FQxPbain+NB2ehmKnUFREKX0vkBcdVruqdQNnM+9IdlTS9Do= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419563; c=relaxed/simple; bh=FyBQj0hG8ss9ZEv8V0JnRplnqLFC/O3chXUnsMv0bk8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kRUQdqGTFXmSVKSd8Dp9snIs23nSGD9NqFZwA9naUuAswWuIE5mGF115xH4fJrsO71g1SWovBLTXsNvWZMw7J1B4in5kVXJABUQCKZ03jx+ZnZq9s7D1MYUMmOxjYjRYASbk/Avwjh9uE6oyT401bTURANGnycYn55GyhE15/5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=JeLo/M+t; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a692130eb19so79955366b.2 for ; Mon, 03 Jun 2024 05:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1717419560; x=1718024360; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IcEqjvHDHPrKWRNXO1NAMZemLV5LQ0B+lnFn7VKosBA=; b=JeLo/M+twDSGb/+JKEc1ziAuPex3mhlraQxyeFJDnRlEYnOe9dFET2OjkDM/OuEYjq cAxAtMI/ubK5Q+nt6wgCHg1qV9t/ucAeURl1PCk3SLSlC3ZeODP/o6FSd15Tfnx6WvIC lHOnw7DgNoSt2TniBXE16XR3m/B2n7f6Op5plUm/7WN9ITfODxKpPc9IlqhQUHBgTFUh Oo8LOAReVvhlw8lAZv5bHZ9JcFv/mgfanQd5MjrdJX3XG/did6lsU1UJgE7J1mu9v/ND TTv9a0M47y99aiqTqwBI54VN10SrVk4bq9v3T3gwzfxXOoDs4beGC0Aa1zsYVF+XpiQy j3QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717419560; x=1718024360; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IcEqjvHDHPrKWRNXO1NAMZemLV5LQ0B+lnFn7VKosBA=; b=MkKAvsGHScbAbaKMHqFQDOd2JE042lkkY59193QKXXaDJhBasIpRwpmr8qKwhen9gh CwjpoqEgwc5NRu3kX53jrAJ40c9f9hZg6OmkI5daMGQj6hpiUASQ41euKvUFZI0rSIoW 0L39YxdeHxjbwwabPxUs3PDdpIV1EDayVrm5cDuNYH6NbI4deYa/vILUxpb2nTgWToqF Ig7mGOZRCjpk48BCqVUWt8D4bTFTCLl5dMwF7frNIQCzSCdB9CkUhj79t6VtZRYsvmlL O+iU5qwasd2OZPkPmYgdAyn8qa+PdxuYYoe5mgFByXLziGTXlzHPE6jLfsnoQiEpDWfc IPWw== X-Forwarded-Encrypted: i=1; AJvYcCXSPYO/2dYPDehfcgZ39dXBX16hRifr2xvbiLhCSxfJj5SLqFRnTNmi+STHyutq/xaVELOYWxV4HZCChM74bVI25WALiqLoaFIFTNJ0 X-Gm-Message-State: AOJu0YzFbATpahPfqlXRYyzO4NQ6838q524HXd8CEKaSo8V4mI7yI3yC zmq7DQdSb4mYggn4U3XddVMwnWOlISay1/PcPfZl53yLnWj0jL6O0clv+WqapYE= X-Received: by 2002:a17:906:d7ac:b0:a68:bae4:d66f with SMTP id a640c23a62f3a-a68bae4e717mr359112966b.30.1717419560024; Mon, 03 Jun 2024 05:59:20 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a68b66c0c87sm347330266b.73.2024.06.03.05.59.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:59:19 -0700 (PDT) Date: Mon, 3 Jun 2024 14:59:18 +0200 From: Andrew Jones 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 , Rob Herring , 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, Lu Baolu Subject: Re: [PATCH v6 2/7] iommu/riscv: Add RISC-V IOMMU platform device driver Message-ID: <20240603-d622cdac0016f1f854bf2b4c@orel> References: <7dcd9a154625704cbf9adc4b4ac07ca0b9753b31.1716578450.git.tjeznach@rivosinc.com> 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: <7dcd9a154625704cbf9adc4b4ac07ca0b9753b31.1716578450.git.tjeznach@rivosinc.com> On Fri, May 24, 2024 at 12:34:42PM GMT, Tomasz Jeznach wrote: ... > +static struct platform_driver riscv_iommu_platform_driver = { > + .probe = riscv_iommu_platform_probe, > + .remove_new = riscv_iommu_platform_remove, Hi Tomasz, I think we should also support .shutdown (just turn the IOMMU off?), otherwise the IOMMU driver reports EBUSY and fails to initialize when rebooting. Same comment for the PCI driver. Thanks, drew