|
Hi,
> Does this mean only one ioctl call will be issue per blob will be used?
Yes, one ioctl is issued to add all pages to physmap IOCTL_PRIVCMD_MMAPBATCH_V2 then all pages are removed from physmap as a result of munmap().
> At least to me, it feels like switching to TLBI range (or a series os IPAS2E1IS) is an easier win. But if you feel like doing the larger rework, I would be happy to have a look to check whether it would be an acceptable change for upstream.
Thank you. Yes, I agree. I just wanted a solution that also works for older CPUs. A series of IPAS2E1IS can work for older CPUs but there will be a lot of invocations (222815 * 4K, using the same example). Although, each invocation would be much less costly
as compared to VMALLS12E1IS, so still seems like a viable solution. I shall evaluate this and let you know.
> IPAS2E1IS only allows you to invalidate one address at the time and is available on all processors. The R version is only available when the processor support TLBI range and allow you to invalidate multiple contiguous address.
Thanks, got it.
Regards,
Haseeb
|