From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) (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 DF55E3DDDBB for ; Tue, 26 May 2026 12:39:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779799147; cv=none; b=Qe9TNmgqmusQ8lVeCwYzBOd6/4QhwjCQVQf8+/+63H8lytQxZM/2N3EMK14aB27GbKtspeF1gL6dvUOSqI350qJRWHQYgF9RZnk+hLjLs4v2prXaLgi3gVbtnRzCwlprQpRb75ysLlGifFEZj36Pp//cQ0/Ty1MWpQThofD9tpo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779799147; c=relaxed/simple; bh=gR461qSVi+sCLs2bLEZQZYpjTssDK+7+J8oi0wKZ0Ng=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ze5q0+AYxuVg2cNaxHBINiu61W9z2PdQOiIadGWZ9llfYn5mJKpN5QFAylHkAnNu8JgqyM8bgZsnS6dKqUqPpzyU+RaRXrwhrUR+SUUo/rLzRi6fsE934iNLTFQwX/UQgqUgzipW/RorCAsfVIajkket7QK7BTrdGyLo7SJT4wA= 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=Da3cr5vf; arc=none smtp.client-ip=209.85.219.41 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="Da3cr5vf" Received: by mail-qv1-f41.google.com with SMTP id 6a1803df08f44-8acae26e564so137460246d6.2 for ; Tue, 26 May 2026 05:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1779799145; x=1780403945; 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=qyrvhlE7ALt0w7ZGlx0St+b9OxdpME7Sw9W+x9BvzqU=; b=Da3cr5vfmxEXLslsIvOBm2MwJoeSDOPszSlllr1Tlo2Bxs6fEcuD0qCxiN+9pOZUxO jKNmz+W69ULsn4b/FcvwZQ5dfGzkPLppQG3gqW/9IWiULl2pWPuH7lwdt9mT2ZA4fMcX PaPvfL6GQU4QyHTB/GJfgWSmIxbGCVqELwNaBXgVezFJcAAjRD0VJzRehFo7eyQ2dWLi zZnPIuZRseycsbcsezKupZIKNTotbmUlSYGRvJ17K9qjxAqGuJVZ94eqbTcLZOHSI+Ky UmDKklCPJ/DF8XE58WyVtqzcJZEDw9+wfoR55OjX6GsFP6XHI0n7gYr5xZWbYTggegxg XtOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779799145; x=1780403945; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qyrvhlE7ALt0w7ZGlx0St+b9OxdpME7Sw9W+x9BvzqU=; b=LFRs1Yl7VGuDJnFBDxdTett2WH3up7avaxM0CpXYm0ylYm6liFMsOFrPUKyePAa3AA 5JU39ZuPjw+N9Fm2o8HmJFQns0hSknZc4+O2hf2o6tmeLdE2i6qzEfkNXCR7jZSrZ96d 12g9bQedAz9jjd93Z42BdvFqyB5HkD+qp40GvwN0+Ing9XvVTEhV8KO9Scc3QOuFcpEC chr8hjtg2tuhN+Ja/rt7zK68StBN0p4Lic6wjDq6y5XjJR1fg1LIoiU+Mg6Uj7+T46pK iHa6aHXQlN/ojt7SeT2avUZxv/XRZX1LwLHcAeOmf1clXg/St0+ro+8Wv0QAdMExyQ1q tyGQ== X-Forwarded-Encrypted: i=1; AFNElJ+ERHyxK0UIMFHXogzdU59DrcEhAKgrT04jD95amCEEs0N3UQiLYtDfzJLiVw8TozwNyh3Cq0cUAMtf2qk=@vger.kernel.org X-Gm-Message-State: AOJu0YxADsblQMPkypPQWQuZQLV5Y2tak2flMY0nR9WQMjlT/+pf0rN5 ibMQ4dHQPlxsa9GEfJzQNUqoByafp7xwhbYpDrPNK41z3N58oTrJ834YQRHOhB1MulU= X-Gm-Gg: Acq92OGEqRftFN2evseAvqNWAEtcYAArhQbYHO7j6LiJKl5hqB0tledmbWfZwGHSzkr NKUI91C8Ug6vi+8b1mbwi/GsmtcmKUTc7zju9G3xHRSfgLq/lq8ANUAcE0EsJHg2nMDPNGBccHO w384/p/zdBtguQxWm6mt6OTtYipBXa2l+edrs0/vPoZdsv4oJP7QyuyUYATR/NtcgR0Ta0MbNOh 9Ke2As0WiLpYiKedTn7gfuvwA9HPpU4LHihxJhZzu0xqwlW7hNKqIpzWKyLdCZcbPU5jwWrZzFG O6MNJFgdTWatIUTztxZ1w0FEj4EbtMIWxOE4LZeMrR1iFqKEUqoTsosaBfNIlpO1IomyhBwGRKx 1bLS1lGHf9e5LStdiDGAIK/kDwKLh68Fqybx7slGzPIU7E87yLsQfXHH3RUdOalN2mC3Y1uiFx5 UtW0uAz2rVecM+YTj+wiglA8i5srGT9FFfETRVf5gGU9hvnUiAwefYM6hjEz8RqjOCqM0TwK/JE tgyQA== X-Received: by 2002:a05:6214:262e:b0:8ca:ee3:6e99 with SMTP id 6a1803df08f44-8cc7b6a504amr305513016d6.44.1779799144630; Tue, 26 May 2026 05:39:04 -0700 (PDT) Received: from ziepe.ca (crbknf0213w-47-54-130-67.pppoe-dynamic.high-speed.nl.bellaliant.net. [47.54.130.67]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8cc8130a1a3sm139020606d6.37.2026.05.26.05.39.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2026 05:39:04 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1wRr3n-0000000DPQA-2CBd; Tue, 26 May 2026 09:39:03 -0300 Date: Tue, 26 May 2026 09:39:03 -0300 From: Jason Gunthorpe To: Joonwon Kang Cc: kevin.tian@intel.com, Alexander.Grest@microsoft.com, alexander.shishkin@linux.intel.com, amhetre@nvidia.com, baolu.lu@linux.intel.com, bp@alien8.de, dave.hansen@linux.intel.com, easwar.hariharan@linux.microsoft.com, hpa@zytor.com, iommu@lists.linux.dev, jacob.jun.pan@linux.intel.com, joro@8bytes.org, jpb@kernel.org, kas@kernel.org, kees@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mingo@redhat.com, nicolinc@nvidia.com, peterz@infradead.org, praan@google.com, robin.murphy@arm.com, ryasuoka@redhat.com, smostafa@google.com, sohil.mehta@intel.com, tglx@kernel.org, will@kernel.org, x86@kernel.org, xin@zytor.com Subject: Re: [PATCH v2] iommu: Allow device driver to use its own PASID space for SVA Message-ID: <20260526123903.GF2487554@ziepe.ca> References: <20260526123606.2488278-1-joonwonkang@google.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: <20260526123606.2488278-1-joonwonkang@google.com> On Tue, May 26, 2026 at 12:36:06PM +0000, Joonwon Kang wrote: > > > From: Joonwon Kang > > > Sent: Tuesday, May 26, 2026 2:58 PM > > > > > > > On Mon, May 25, 2026 at 03:29:24PM +0000, Joonwon Kang wrote: > > > > > > > > > Currently, the only known expected user of the new kAPI is our team. > > > Since > > > > > I test if the patch resolves our problem before sending it, I believe it > > > > > should be good enough. Do you mean more than our team by > > > "accompanied > > > > > users"? > > > > > > > > He means you cannot send patches like this that only serve OOT drivers > > > > to the mainline kernel. > > > > > > Hmm, it gets back to the chicken-and-egg problem. So, do you recommend > > > deferring the patch submission until we find a new in-tree user of the > > > new kAPI? I believe we will not make our module in-tree anytime soon. > > > Or, is it like I still can send the patch and get it reviewed although we > > > cannot merge it to the mainline? > > > > > > > It's not chicken-and-egg problem. Just always send them together. > > > > so let's wait until your module is ready for in-tree review... > > Since adding a new kAPI has this limitation, what do you think about the > idea of adding a new boot parameter to enforce disabling ENQCMD at EL0 and > using the non-global PASID space in that case? This way, I guess we could > resolve our issue without having to wait until we have new in-tree users. > Do you think it should have the same limitation? No, you can't hack up the kernel for OOT drivers. Jason