[Openpvrsgx-devgroup] [PATCH] Update pvrsgx 1.14.3759903 to latest kernel

H. Nikolaus Schaller hns at goldelico.com
Sat Nov 13 15:00:03 CET 2021


FYI: I looked into

git diff --no-index drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/services4/srvkm/env/linux/osfunc.c drivers/gpu/drm/pvrsgx/1.14.3759903/eurasia_km/services4/srvkm/env/linux/osfunc.c

and there seems to be some different fixed for 1.14.3699939.

Mainly in OSAcquirePhysPageAddr() which uses 

-    psInfo->iNumPagesMapped = get_user_pages_remote(current->mm, uStartAddr, psInfo->iNumPages, FOLL_WRITE, psInfo->ppsPages, NULL, NULL);

since LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0)
 
instead of 

+    psInfo->iNumPagesMapped = get_user_pages(
+               uStartAddr, psInfo->iNumPages, 1, psInfo->ppsPages, NULL);

But don't ask me what the difference is and if it is the root cause of my kernel panic...

BR,
Nikolaus



More information about the openpvrsgx-devgroup mailing list