From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (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 4D81418C02E for ; Tue, 26 May 2026 12:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779799609; cv=none; b=fg0a3tc7oC35SSF9f3ZkGFsBHpKFLkMg6Vx0LKaGa5GHASRfwL0ZeQ9DXVTCB42kJ8AhMcgesIG+AwtTfIqZhTV2A/u6GQFZ47n5b8zZPvq/47QKNsVLFwwqyLZJLTZ6INJbX6EpHRF747bn/jEc5nJAi3x5ClKv75kMHDDxPGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779799609; c=relaxed/simple; bh=+hRCNp3yRrFFeHRFFnlkcM+fPzzhC3iINewSunuMq3Q=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=opWVsn68Dmwcpt4pwr8+y6u42Gion80aaMGaSPSjoHhgNcu4Oac5xd6Ea1/D7Xaap7qntIkXKO8C1eEqQOad4fl+lnfGv6JOOVELZXhTiEKPiDb9wOevptXzRfZI4e24kUb4Jv1nPK5sNsfnHCtJROJRXKPFbqltjtXCi1d2Q3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--joonwonkang.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=UsOvOlU8; arc=none smtp.client-ip=209.85.215.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--joonwonkang.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="UsOvOlU8" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-c82c935e048so6607790a12.0 for ; Tue, 26 May 2026 05:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779799608; x=1780404408; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=YHjPWhLuYkDH4+fqjN1tzfTEtaV0zDhulaeTcgzzM9c=; b=UsOvOlU8U4K84Nzxqj6u1YFfDIed1gmEVXSAGcgxS2uQc8EFFvZJm4MvGt3XIl30lq EGnmfftzwqoeNcKhsJE/T7JG/zNm3pJzBpDAjPQq7z8f4OG74lEWrGcxCmCLfkpdwQdn rZ9+XXBkHh+WL28sHvwiofONjQ4+io5zC2C4BqqtwtiTGyzE2BTDNLDWyLoGnSmqPBgw r+znXN2jL0VkGgnS3InuIS4Ut0qXa0Dy4aBBw1Mc/bNBp7Eirf/WepZUP0UZ9hYYWpvx iV117T9XYArTFuzoUxiqUK0hNFqvtUwCnj0lDo2gdKFIAE98pW4ztbgB5X6NVv20ZcIJ Gt9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779799608; x=1780404408; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YHjPWhLuYkDH4+fqjN1tzfTEtaV0zDhulaeTcgzzM9c=; b=OpngQSS1rAW3troV7yOMtngynwFEbnLQlwBgQlCBx+5K9b2SiUe9KIypejzQ+bvjvN ih29UOu05if9m2phakEj+obLD76sSH+hBdI78rQiSM2tHFHXTOVTWXdIWKioPF+MYiCy 3zzdYqFFHiNLFvefgzZIsjNGXVXmg21cswf+lUh7Z9RVxRvZUO+V4P0Ehp4zbsNELWRb 6lrTNAEnnA1QCnZEpLrLve3ffdD/+d0DUwOnXo5sHl4Z6AcucWrz0qdG/ACXViURtvsp wlIvpOnbbT6LSNpvU58LHXUgyCsuz/5k5Kpt4hzioqvR3VBD9oP1fiJkhUv9w89EUqRJ LyKA== X-Forwarded-Encrypted: i=1; AFNElJ/5OnUvTygPvocxn0+hpaZHV2rWhBXlmi6qsbYmc5maiVRRqAoRdy62T4od+RMUMitYj0WwxiVnp+Ci/Xc=@vger.kernel.org X-Gm-Message-State: AOJu0YzmjXNUf5pPtPRfFb/IhJweWLfUd11EAbWDFP/V5cC5uCeg1LoP z24qDB5eZUpdK/fTupD5PVEQcz/XCcjth8lOS2jPZi6q6zhUrDm5vJINdN7uSqf3LoAXvEQ8IB0 DeoPCRFYicToV+/DXsjyBRY9Urg== X-Received: from pfvo11.prod.google.com ([2002:a05:6a00:1b4b:b0:82f:8e5d:a777]) (user=joonwonkang job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:3c89:b0:3b3:dd0:a624 with SMTP id adf61e73a8af0-3b32978b421mr14638532637.23.1779799607252; Tue, 26 May 2026 05:46:47 -0700 (PDT) Date: Tue, 26 May 2026 12:46:45 +0000 In-Reply-To: <20260526123903.GF2487554@ziepe.ca> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260526123903.GF2487554@ziepe.ca> X-Mailer: git-send-email 2.54.0.746.g67dd491aae-goog Message-ID: <20260526124645.2494330-1-joonwonkang@google.com> Subject: Re: [PATCH v2] iommu: Allow device driver to use its own PASID space for SVA From: Joonwon Kang To: jgg@ziepe.ca Cc: 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, joonwonkang@google.com, joro@8bytes.org, jpb@kernel.org, kas@kernel.org, kees@kernel.org, kevin.tian@intel.com, 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 Content-Type: text/plain; charset="UTF-8" > 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. Alright, thanks for the confirmation. Thanks, Joonwon Kang