[RFC PATCH 1/3] powerpc/pseries/iommu: Bring back userspace view for single level TCE tables

Timothy Pearson tpearson at raptorengineering.com
Wed Mar 20 05:36:51 AEDT 2024



----- Original Message -----
> From: "Jason Gunthorpe" <jgg at ziepe.ca>
> To: "Shivaprasad G Bhat" <sbhat at linux.ibm.com>
> Cc: "Timothy Pearson" <tpearson at raptorengineering.com>, "Alex Williamson" <alex.williamson at redhat.com>, "linuxppc-dev"
> <linuxppc-dev at lists.ozlabs.org>, "Michael Ellerman" <mpe at ellerman.id.au>, "npiggin" <npiggin at gmail.com>, "christophe
> leroy" <christophe.leroy at csgroup.eu>, "aneesh kumar" <aneesh.kumar at kernel.org>, "naveen n rao"
> <naveen.n.rao at linux.ibm.com>, "gbatra" <gbatra at linux.vnet.ibm.com>, brking at linux.vnet.ibm.com, "Alexey Kardashevskiy"
> <aik at ozlabs.ru>, robh at kernel.org, "linux-kernel" <linux-kernel at vger.kernel.org>, "kvm" <kvm at vger.kernel.org>, "aik"
> <aik at amd.com>, msuchanek at suse.de, "jroedel" <jroedel at suse.de>, "vaibhav" <vaibhav at linux.ibm.com>, svaidy at linux.ibm.com
> Sent: Tuesday, March 19, 2024 9:32:02 AM
> Subject: Re: [RFC PATCH 1/3] powerpc/pseries/iommu: Bring back userspace view for single level TCE tables

> On Tue, Mar 12, 2024 at 01:14:20PM -0500, Shivaprasad G Bhat wrote:
>> The commit 090bad39b237a ("powerpc/powernv: Add indirect levels to
>> it_userspace") which implemented the tce indirect levels
>> support for PowerNV ended up removing the single level support
>> which existed by default(generic tce_iommu_userspace_view_alloc/free()
>> calls). On pSeries the TCEs are single level, and the allocation
>> of userspace view is lost with the removal of generic code.
> 
> :( :(
> 
> If this has been broken since 2018 and nobody cared till now can we
> please go in a direction of moving this code to the new iommu APIs
> instead of doubling down on more of this old stuff that apparently
> almost nobody cares about ??
> 
> Jason

Just FYI Raptor is working on porting things over to the new APIs.  RFC patches should be posted in the next week or two.


More information about the Linuxppc-dev mailing list