[Letux-kernel] [Openpvrsgx-devgroup] [PATCH] pvrsgx/1.14: get_user_pages_remote no longer takes task_struct
Tony Lindgren
tony at atomide.com
Wed Nov 11 06:27:11 CET 2020
* Tony Lindgren <tony at atomide.com> [201111 04:46]:
> Hi,
>
> * David Shah <dave at ds0.me> [200818 18:26]:
> > This isn't actually running yet, I get the following error:
> >
> > [ 12.663492] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
> > [ 13.846168] PVR_K:(Error): PollForValueKM: Timeout. Expected 0x1 but found 0x0 (mask 0x1).
> > [ 13.880820] PVR_K:(Error): SGXInitialise: Wait for uKernel initialisation failed
> >
> > followed by a PVR register dump.
>
> I'm seeing the above too running pvrsrvinit with ddk-1.17. Looks like we
> have some regression for ddk-1.14 and ddk-1.17 somewhere, or something got
> changed in Linux that caused it.
>
> I've confirmed that letux-pvrsrvkm-5.7-rc1 still works for pvrsrvinit with
> no errors, while running pvrsrvinit starting with letux-pvrsrvkm-5.8-rc1
> causes the the error above.
>
> There are hardly any changes to drivers/gput/pvrsgx between those versions,
> does anybody have ideas what might have broken?
Oh and we have ddk-1.9 working for droid4 though, and I have the following
added -DPVR_LINUX_MEM_AREA_USE_VMAP to those hacks.. Looks like the following
change fixes the issue for ddk-1.17, and probably for ddk-1.4 too.
No idea what changed to need this though, any ideas?
I wonder if we should just enable this unconditionally for all the makefiles
after we understand why this is needed?
Regards,
Tony
-------------- next part --------------
diff --git a/drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/Makefile b/drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/Makefile
index d6dbeb513566c..ba54bf2ff1a5c 100644
--- a/drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/Makefile
+++ b/drivers/gpu/drm/pvrsgx/1.14.3699939/eurasia_km/Makefile
@@ -117,6 +117,7 @@ ccflags-y += \
-DLDM_PLATFORM \
-DSUPPORT_SGX_EVENT_OBJECT \
-DPVR2D_ALT_2DHW \
+ -DPVR_LINUX_MEM_AREA_USE_VMAP \
-DSUPPORT_SGX_HWPERF \
-DSUPPORT_SGX_LOW_LATENCY_SCHEDULING \
-DSUPPORT_LINUX_X86_PAT \
diff --git a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
index fb5507bf5ba31..fdca642a9c3e2 100644
--- a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
+++ b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
@@ -117,6 +117,7 @@ ccflags-y += \
-DLDM_PLATFORM \
-DSUPPORT_SGX_EVENT_OBJECT \
-DPVR2D_ALT_2DHW \
+ -DPVR_LINUX_MEM_AREA_USE_VMAP \
-DSUPPORT_SGX_HWPERF \
-DSUPPORT_SGX_LOW_LATENCY_SCHEDULING \
-DSUPPORT_LINUX_X86_PAT \
More information about the Letux-kernel
mailing list