On 08:08-20210811, Michael wrote:
The kernel 5.10 and ti-sgx-ddk-km build know and I can create an image.
Now I still have two problems and need some advice what I'm doing wrong or how to fix these issues.
1.) The sgx section of my dts file is not recognized
&sgx {
status = "okay";
};
I got the error "Label or path sgx not found". In older version it was recognized.
That is because there is a sgx node in device tree, I dont think it has
been introduced so far.
2.) When booting with a dts without sgx section the created image SGX Kernel module is started and produced some errors
[ 12.480473] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
[ 13.484084] PVR_K:(Error): PollForValueKM: Timeout. Expected 0x1 but found 0x0 (mask 0x1).
I remember seeing this before.. I remember there was a bug of SGX
support with the driver, essentially it is not detecting the hardware.
Not sure if that has been fixed in the DDK.
[ 13.492411] PVR_K:(Error): SGXInitialise: Wait for uKernel initialisation failed
[ 13.499873] PVR_K: SGX debug (SGX_DDK sgxddk 1.17@4948957)
[ 13.505396] PVR_K: Host Ctl flags= 00000006
[ 13.509683] PVR_K: SGX Host control:
[ 13.513274] PVR_K: (HC-0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.519858] PVR_K: (HC-10) 0x00000000 0x00000000 0x00000014 0x00030D40
[ 13.526514] PVR_K: (HC-20) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.533159] PVR_K: (HC-30) 0x00000000 0x00000000 0xEEDCCB00 0x00000000
[ 13.539825] PVR_K: (HC-40) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.546483] PVR_K: SGX TA/3D control:
[ 13.550164] PVR_K: (T3C-0) 0x0F003000 0x0F003140 0x0F002000 0x00000000
[ 13.556818] PVR_K: (T3C-10) 0x00000000 0x00000000 0x00000002 0x00000000
[ 13.563549] PVR_K: (T3C-20) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.570303] PVR_K: (T3C-30) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.577046] PVR_K: (T3C-40) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.583778] PVR_K: (T3C-50) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.590532] PVR_K: (T3C-60) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.597276] PVR_K: (T3C-70) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.604032] PVR_K: (T3C-80) 0x00000000 0x00000000 0x00000000 0x0F000000
[ 13.610764] PVR_K: (T3C-90) 0x828CF000 0x00000000 0x00000000 0x00000000
[ 13.617506] PVR_K: (T3C-A0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.624260] PVR_K: (T3C-B0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.630993] PVR_K: (T3C-C0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.637736] PVR_K: (T3C-D0) 0x0F000000 0x8000B000 0x8004B000 0x0F004000
[ 13.644490] PVR_K: (T3C-E0) 0x0F00A420 0x0F00A740 0x00000000 0x00000000
[ 13.651222] PVR_K: (T3C-F0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.657965] PVR_K: (T3C-100) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.672226] PVR_K: (T3C-110) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.679215] PVR_K: (T3C-120) 0x00000000 0x00000000 0x00000000 0x00000000
[ 13.686113] PVR_K: SGX Kernel CCB WO:0x0 RO:0x0
[ 13.690667] PVR_K: Active syncs
[ 13.693825] PVR_K:(Error): SGXPostPowerState: SGXInitialise failed
[ 13.700303] PVR_K:(Error): PVRSRVSetDevicePowerStateKM : Transition to 0 FAILED 0x18
[ 13.708147] PVR_K:(Error): SGXScheduleCCBCommandKM failed to power up device - ui32CallerID:-1 eError:24
[ 13.717696] PVR_K:(Error): SGXGetMiscInfoUkernel: SGXScheduleCCBCommandKM failed.
[ 13.725223] PVR_K: (FAIL) SGXInit: Unable to validate hardware core revision
[ 13.732306] PVR_K:(Error): PVRSRVFinaliseSystem: Failed PVRSRVDevInitCompatCheck call (device index: 0)
PVR:(Error): PVRSRVInitSrvDisconnect: KM returned 24 [0, ][ 13.742023] PVR_K:(Error): BridgedDispatchKM: Initialisation failed. Driver unusable.
PVR:(Error): PVRSRVBridgeCall: Failed to access device. Function ID:3223086862 (strerror returns no value.). [0, ]
I think you could wait for TI to fix it, or report it over e2e.ti.com
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D