* dunfell kernel 5.10 ti-sgx-ddk-km kernel errors at boot
@ 2021-08-11 15:08 Michael
2021-08-11 16:13 ` [meta-ti] " Nishanth Menon
0 siblings, 1 reply; 2+ messages in thread
From: Michael @ 2021-08-11 15:08 UTC (permalink / raw)
To: meta-ti
[-- Attachment #1: Type: text/plain, Size: 6115 bytes --]
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.
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).
[ 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, ]
My current config I'm using for this is
defconfig:
#
# Graphics support
#
# CONFIG_VGA_ARB is not set
# CONFIG_IMX_IPUV3_CORE is not set
CONFIG_DRM=m
# CONFIG_DRM_DP_AUX_CHARDEV is not set
# CONFIG_DRM_DEBUG_SELFTEST is not set
CONFIG_DRM_KMS_HELPER=m
CONFIG_DRM_KMS_FB_HELPER=y
# CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS is not set
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
# CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM is not set
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
# CONFIG_DRM_DP_CEC is not set
CONFIG_DRM_GEM_CMA_HELPER=y
CONFIG_DRM_KMS_CMA_HELPER=y
CONFIG_DRM_VM=y
#
# I2C encoder or helper chips
#
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
CONFIG_DRM_I2C_NXP_TDA998X=m
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
# end of I2C encoder or helper chips
# ARM devices
#
# CONFIG_DRM_HDLCD is not set
# CONFIG_DRM_MALI_DISPLAY is not set
# CONFIG_DRM_KOMEDA is not set
# end of ARM devices
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not set
# CONFIG_DRM_VGEM is not set
# CONFIG_DRM_VKMS is not set
# CONFIG_DRM_EXYNOS is not set
# CONFIG_DRM_UDL is not set
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_ARMADA is not set
# CONFIG_DRM_RCAR_DW_HDMI is not set
# CONFIG_DRM_RCAR_LVDS is not set
CONFIG_DRM_OMAP=m
CONFIG_OMAP2_DSS_INIT=y
CONFIG_OMAP_DSS_BASE=m
CONFIG_OMAP2_DSS=m
CONFIG_OMAP2_DSS_DEBUG=y
CONFIG_OMAP2_DSS_DEBUGFS=y
CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS=y
CONFIG_OMAP2_DSS_DPI=y
CONFIG_OMAP2_DSS_VENC=y
CONFIG_OMAP2_DSS_HDMI_COMMON=y
CONFIG_OMAP4_DSS_HDMI=y
CONFIG_OMAP4_DSS_HDMI_CEC=y
CONFIG_OMAP5_DSS_HDMI=y
# CONFIG_OMAP2_DSS_SDI is not set
# CONFIG_OMAP2_DSS_DSI is not set
CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=0
CONFIG_OMAP2_DSS_SLEEP_AFTER_VENC_RESET=y
local.conf:
MACHINE_EXTRA_RDEPENDS += "ti-sgx-ddk-km"
IMAGE_INSTALL_append = " ti-sgx-ddk-km ti-sgx-ddk-um libdrm libdrm-tests"
DEPENDS_remove = "virtual/libgl"
PREFERRED_PROVIDER_virtual/egl = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles1 = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles2 = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgbm = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/gpudriver = "ti-sgx-ddk-km"
[-- Attachment #2: Type: text/html, Size: 7255 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [meta-ti] dunfell kernel 5.10 ti-sgx-ddk-km kernel errors at boot
2021-08-11 15:08 dunfell kernel 5.10 ti-sgx-ddk-km kernel errors at boot Michael
@ 2021-08-11 16:13 ` Nishanth Menon
0 siblings, 0 replies; 2+ messages in thread
From: Nishanth Menon @ 2021-08-11 16:13 UTC (permalink / raw)
To: Michael; +Cc: meta-ti
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-11 16:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 15:08 dunfell kernel 5.10 ti-sgx-ddk-km kernel errors at boot Michael
2021-08-11 16:13 ` [meta-ti] " Nishanth Menon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.