[Letux-kernel] [Openpvrsgx-devgroup] kmscube running on dm3730 (GTA04) and omap5 (Pyra)

H. Nikolaus Schaller hns at goldelico.com
Sat Feb 29 09:23:20 CET 2020


> Am 29.02.2020 um 09:09 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> Hi,
> I managed to get the kmscube work on the DM3730 using
> the 1.17 DDK (and kernel).
> 
> What it needs:
> * Debian Bullseye (sid) because it needs libc >= 2.29 [1]
> * our latest kernel (e.g. letux-5.6-rc) with CONFIG_PVRSGX_1_17_4948957=y
> * installation of ddk-1.17-um from TI git (automated through [2])
> * apt-get install kmscube
> * kmscube -D /dev/dri/card1
> 
> (for some unknown reasons the default is card0).
> 
> So thanks to those who have provided these latest user-space libs.
> 
> Unfortunately OMAP5432 fails (with jacinto6evm install)
> 
> installing user space files for `jacinto6evm'
> mkdir -p //etc
> mkdir -p //usr/bin
> mkdir -p //usr/include
> mkdir -p //usr/lib
> cp -ar ./targetfs/jacinto6evm/etc/* //etc
> cp -ar ./targetfs/jacinto6evm/bin/* //usr/bin
> cp -ar ./targetfs/jacinto6evm/include/* //usr/include
> cp -ar ./targetfs/jacinto6evm/lib/* //usr/lib
> root at letux:~# pvrsrvctl --start --no-module
> [ 3775.545418] drm_version: maj=1 min=17 patch=4948957 name=pvr date=20110701 desc=Imagination Technologies PVR DRM
> [ 3775.558901] drm_version: maj=1 min=17 patch=4948957 name=pvr date=20110701 desc=Imagination Technologies PVR DRM
> [ 3775.572138] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
> PVR:(Error): PVRSRVDetectPlaform: Unknown platform: OMAP5432
> . [0, ]
> PVR:(Error): PVRSRVDetectPlaform: Unknown platform: OMAP5432
> K[ 3775.589200] PVR_K: (FAIL) SGXInit: Mismatch in client-side and KM driver build options.
> . [0, ]
> PVR:(Error): SGXInitialisePart1: Could [ 3775.600571] PVR_K: Extra options present in KM: (0x8000). Please check sgx_options.h
> [ 3775.613209] PVR_K:(Error): PVRSRVFinaliseSystem: Failed PVRSRVDevInitCompatCheck call (device index: 0)
> 
> PVR:(Error): PVRSRVInitSrvDisconnect: KM returne[ 3775.627115] PVR_K:(Error): BridgedDispatchKM: Initialisation failed.  Driver unusable.
> d 26 [0, ]
> PVR:(Error): PVRSRVBridgeCall: Failed to access device.  Function ID:3223086862 (strerror returns no value.). [0, ]
> PVR:(Error): SrvInit: PVRSRVInitSrvDisconnect failed (26). See srvkm log for details. [0, ]
> pvrsrvctl: SrvInit failed (already initialized?) (err=PVRSRV_ERROR_BUILD_MISMATCH)
> root at letux:~#
> 
> So it looks as if we have to patch again some binary so
> that OMAP5432 isn't rejected.
> 
> The "Extra options present in KM" seems easier to fix.
> 0x8000 hints at SUPPORT_ACTIVE_POWER_MANAGEMENT.
> We define it in drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile

With attached patch I get

root at letux:~# pvrsrvctl --start --no-module
[   79.879999] drm_version: maj=1 min=17 patch=4948957 name=pvr date=20110701 desc=Imagination Technologies PVR DRM
[   79.890940] drm_version: maj=1 min=17 patch=4948957 name=pvr date=20110701 desc=Imagination Technologies PVR DRM
[   79.902494] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
PVR:(Error): PVRSRVDetectPlaform: Unknown platform: OMAP5432
. [0, ]
PVR:(Error): PVRSRVDetectPlaform: Unknown platform: OMAP5432
J. [0, ]
PVR:(Error): SGXInitialisePart1: Could not get core count from platform. Using 1 [0, ]
root at letux:~# 

I hope that it does not break something on other sgx544 based devices.

So we have to fix the platform detection.

BR,
Nikolaus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gpu-pvr-Fix-1.17.4948957-Makefile-for-OMAP5.patch
Type: application/octet-stream
Size: 15606 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20200229/9a03834e/attachment-0001.obj>


More information about the Letux-kernel mailing list