From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (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 557AB12CD9D for ; Fri, 24 May 2024 15:09:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563378; cv=none; b=C99/uoooKPMbt+xZbj4ALKzWMtxHwi1bF+FxVPUzYwiGGs6VXCpMYGUazc+85m/xBuIDv7pxshYBl4maZ28WflwtdLjuTY3Jmn1WbhxSARvXKIk0pmjT+vndJ+95AhJNV0dvygJEGSdveJHb/BesvLFFjWlGVW12LJldVkDCD/s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563378; c=relaxed/simple; bh=ZHnaZHaZskD/xonYeSEZFFMg+YXeoBIVEBxcMi8GbMo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uEEsqZenzTZuvIQE5g8gIjnC/mHdINLdcITO/aXDL4bTJi/iNRMDR80IVZpInFfAQo8y/4ar1ZOBsmm925HQ7Nf+Wd6LNVVA/eg63/irDzcKDvln6TyF3PbYjOvNNWzsmviFJIX17+AG2lZgCmMgeHaxEMWTu68lNW2K3a5FXjI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=gsgvX6Hj; arc=none smtp.client-ip=209.85.222.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="gsgvX6Hj" Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-794b1052194so8819285a.1 for ; Fri, 24 May 2024 08:09:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1716563376; x=1717168176; 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=JPPk9ZMB0Ku0hRWNSYQthiNRSt0noAUHxb8eADGB9tY=; b=gsgvX6HjugJJ0dQc6gTulNKF8t0nJmmC/VSsBCBv7yr07ySteF8jDoolV6WS3cGRfx 4I4Dte3aYty2pVGmlAw6+hBvjKwq06Vh1eS9LEWgXs5+smKd/lch5AxR4sdgztBagxMK t5DpFdTc/Dn2psnbn8xvy/NhTLicqpXZKnISF/xC4f1zBNE7VZIbdt9lRbLbxBo5cjg0 QEDTPpsAzCUKIzmM2qdLKBfVBMSZ74TkgLF8LTAM+aqyl8DgF6j9ZHFo11oVFc+0UmAq b8wkqau1zPRGUl6+Kv2nEjw+ZBDJBqftbuqsN+lqs3aMcJi+/PXgNjFrtqcNy5VU4Kcb O6fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716563376; x=1717168176; 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=JPPk9ZMB0Ku0hRWNSYQthiNRSt0noAUHxb8eADGB9tY=; b=B7BkWq8KGuJJ9csHWzUUh4368bVyYlgQD7MxvMeOjVAoLBNBHeuO3FRvyGc9r3m6Zb xik17u/XS2ZMdbp6OlnXyjUU39MrtKoejNt9UTI2q7RsBvqN0Ut+gOAoh1Qrk5vTByA5 0S70MDAmfPDGQ8ix6oEqZ/afH/wzhAfbuFlW77YMPz4EYrms1kSCCeJStDQCbT2juWA0 +quccrboJoKawpR2tlcT8MkEO3tTNl8Aqie0ABQnRz+mICPvpnxus2eWns0iAiu0wX24 Av5Pkjy9e5YmsfgvtjJQo19L+FaArZQxsUFO1VHCmfyz330zjW78YLA3xifinWXxtWFR S2Qg== X-Forwarded-Encrypted: i=1; AJvYcCVLvj+FWT+QHJV8NEu6QS0WqjN25M0J1g4XWNeAFGXjaOFDWi1+FTuqs1PZiyUzuvUBQqqjdG/MHAzuRL1U3Qqv5MRZjg/axYC5rQ== X-Gm-Message-State: AOJu0Yw4WW8QTbghmUn7iZ3FTjUUJ7tR/6A+sf1962ucTIZHsMqhuQrs kN5KWq1BlMnHpJjgfrZUiLS6rahJ4lgMMP18vY2qnFPO565F3DuTnRYSY7xbar8= X-Google-Smtp-Source: AGHT+IF+iMK+Fk/kuTHFaJ9i9wXeJLcDfA5+fUTHGZpkoNnrMobEJ8vPGJL+mvQIBsyXRFWw9nLt/A== X-Received: by 2002:a05:620a:2603:b0:790:d62a:da09 with SMTP id af79cd13be357-794ab08688dmr336194185a.5.1716563376237; Fri, 24 May 2024 08:09:36 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id af79cd13be357-794abcc0f04sm71408585a.42.2024.05.24.08.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 08:09:35 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sAWY2-001QzP-Mh; Fri, 24 May 2024 12:09:34 -0300 Date: Fri, 24 May 2024 12:09:34 -0300 From: Jason Gunthorpe To: Tomasz Jeznach Cc: Anup Patel , Zong Li , Joerg Roedel , Will Deacon , Robin Murphy , Paul Walmsley , devicetree@vger.kernel.org, Conor Dooley , Albert Ou , linux@rivosinc.com, linux-kernel@vger.kernel.org, Rob Herring , Sebastien Boeuf , iommu@lists.linux.dev, Palmer Dabbelt , Nick Kossifidis , Krzysztof Kozlowski , linux-riscv@lists.infradead.org, Lu Baolu Subject: Re: [PATCH v5 2/7] iommu/riscv: Add RISC-V IOMMU platform device driver Message-ID: <20240524150934.GR69273@ziepe.ca> References: <4a1ac62b8b452f9face321c29502dee8ee88191c.1715708679.git.tjeznach@rivosinc.com> Precedence: bulk X-Mailing-List: devicetree@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, May 23, 2024 at 09:13:43AM -0700, Tomasz Jeznach wrote: > > > The activation of IOMMU_DMA for the RISC-V architecture will be > > > feasible once the core components achieve compatibility with the DMA > > > subsystem, which unfortunately is currently not the case. Without > > > IOMMU_DMA enabled, driver will recognize RISC-V IOMMU hardware, > > > register itself in the IOMMU core subsystem, and will provide basic > > > IDENTITY protection domains for connected devices. > > > > I am not asking for IOMMU_DMA feature instead I am asking for > > supporting device MSIs in this series. > > > > Ok. Makes sense. > I've looked at the option to pull in / add small change to enable MSI > bypass window for systems with IMSIC enabled. With that, MSIs will be > supported, however without full interrupt remapping capabilities that > could IOMMU provide. If that sounds as sufficient change I'll add it > to this series. Honestly I would prefer you keep that seperate as we really need to discuss the irq window stuff in alot of detail. The current thing ARM has done comes with alot of problems. This series seems pretty good to me as is, let's get it merged. Jason