From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D7CC27AC48; Thu, 5 Jun 2025 21:04:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749157448; cv=none; b=e2ATYI2lORvTE5eMgORlc5VCzLeNKe2zHekf/RYBUe1Qxl5wJBzIr2WiEITI7z9ptK4GwKdxIs/2BIpl3Q9R7UX3rY7oEG/RXPpZR6CM7Y5Ch7gJdKAWEvfBubC6SXCEQV+7DssJTjQdvwDNEQiry4IHRGk0nGv+I2TuU0jssRQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749157448; c=relaxed/simple; bh=5z4lyN6eFPIUIuW6ETWM+sIFBqvUb6kdsqF23bzMXIQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Dx9MWYnh8TJkgyXsnR8JlBij0O0tl+mnZTxvbBjymSoCKCGiQw2jG53Jp2QiTxULSRt+XDGTHIbnU+Bn/uzxRywK1cp63+v2jt3QMxbZH/CtRi9G+rXieOvHiZ4Y/QnqMZLpOSRGViFA/xqG9OB9TInUBk399cMqgUc6zn6Y75M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=cD7s8vD0; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="cD7s8vD0" Received: from DESKTOP-0403QTC. (unknown [40.65.108.177]) by linux.microsoft.com (Postfix) with ESMTPSA id 8450D210D0C2; Thu, 5 Jun 2025 14:04:00 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8450D210D0C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1749157441; bh=Gund+dK5aJW6UtaEJ+x2rgplZpVnxwe1S5F5gyh6HAA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:Reply-To:From; b=cD7s8vD0a0AfPh3ebIr231hpAoYtxnmr5f0EAkqfQvSQ1jXXObO60Olle7BNyh26Y PQSAfLA3l+EG5LI4UboSinv7mYXWDeCbzO5VLzMylLYL36WykSm86yqe0ISRwemYjE RuzFbs8q4U3a2qW3X85abq+4uV8QpooHP9orWnmw= Date: Thu, 5 Jun 2025 14:03:58 -0700 From: Jacob Pan To: Jason Gunthorpe Cc: Jonathan Corbet , iommu@lists.linux.dev, Joerg Roedel , Justin Stitt , Kevin Tian , linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev, Bill Wendling , Nathan Chancellor , Nick Desaulniers , Miguel Ojeda , Robin Murphy , Shuah Khan , Suravee Suthikulpanit , Will Deacon , Alexey Kardashevskiy , Alejandro Jimenez , James Gowans , Michael Roth , Pasha Tatashin , patches@lists.linux.dev, jacob.pan@linux.microsoft.com Subject: Re: [PATCH v2 12/15] iommupt: Add the x86 64 bit page table format Message-ID: <20250605140358.2dd6c083@DESKTOP-0403QTC.> In-Reply-To: <12-v2-5c26bde5c22d+58b-iommu_pt_jgg@nvidia.com> References: <0-v2-5c26bde5c22d+58b-iommu_pt_jgg@nvidia.com> <12-v2-5c26bde5c22d+58b-iommu_pt_jgg@nvidia.com> Reply-To: jacob.pan@linux.microsoft.com X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Jason, On Mon, 5 May 2025 11:18:42 -0300 Jason Gunthorpe wrote: > +config IOMMU_PT_X86_64 > + tristate "IOMMU page table for x86 64 bit, 4/5 levels" > + depends on !GENERIC_ATOMIC64 # for cmpxchg64 > + default n > + help > + iommu_domain implementation for the x86 64 bit 4/5 level > page table. > + It supports 4K/2M/1G page sizes and can decode a sign > extended > + portion of the 64 bit IOVA space. > + > + Selected automatically by an IOMMU driver that uses this > format. + > config IOMMU_PT_KUNIT_TEST > tristate "IOMMU Page Table KUnit Test" if !KUNIT_ALL_TESTS > depends on KUNIT > depends on IOMMU_PT_AMDV1 || !IOMMU_PT_AMDV1 > + depends on IOMMU_PT_X86_64 || !IOMMU_PT_X86_64 Is this intended? or you mean: depends on IOMMU_PT_X86_64 || IOMMU_PT_AMDV1