All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael" <kakuschky@elbe-net.de>
To: meta-ti@lists.yoctoproject.org
Subject: dunfell kernel 5.10 ti-sgx-ddk-km kernel errors at boot
Date: Wed, 11 Aug 2021 08:08:51 -0700	[thread overview]
Message-ID: <EiRi.1628694531238614074.IC29@lists.yoctoproject.org> (raw)

[-- 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 --]

             reply	other threads:[~2021-08-11 15:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-11 15:08 Michael [this message]
2021-08-11 16:13 ` [meta-ti] dunfell kernel 5.10 ti-sgx-ddk-km kernel errors at boot Nishanth Menon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EiRi.1628694531238614074.IC29@lists.yoctoproject.org \
    --to=kakuschky@elbe-net.de \
    --cc=meta-ti@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.