Skip to contentSkip to conversation

SGX driver enablement

PATCH In review Anand Balagopalakrishnan 2 participants 4 messages Sep 21, 2023 – Sep 22, 2023

lore
Share & tools
lore
#0 lore raw

cover SGX driver enablement

This series enables the SGX driver for TI SoCs that contain Imagination PowerVR SGX GPU. On Kirkstone, there are a series of assumptions between Mesa layers and SGX user modules.

This series enables GPU driver. The recipe for SGX user mode libraries will be posted separately.

This patch series depends on two other patches:
1. Enable gpudrive in conf -
https://lists.yoctoproject.org/g/meta-ti/message/16893
2. Enable CONFIG_PREEMPT in kernel configuration. This patch is needed on all ARMv7 platforms - AM3/AM4/AM5. The kernel patch has been merged onto ti-linux-6.1.y-cicd. The kernel recipe should pull in the source commit that has CONFIG_PREEMPT. Otherwise, GPU driver build for ARMv7 platforms will fail.

Anand Balagopalakrishnan (2):
ti-sgx-ddk-km: move to 6.1 kernel
mesa-pvr: remove auto configurations for sgx driver

 .../powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb           | 6 +++---
 meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_22.3.5.bb        | 3 ---
 2 files changed, 3 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 ti-sgx-ddk-km: move to 6.1 kernel

Update SGX kernel module for 6.1 Linux kernel.

---
 .../powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb           | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb +3 -3
index bf4fa98a..82650888 100644
@@ -9,20 +9,20 @@ PROVIDES = "virtual/gpudriver"
 
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|am65xx"
 
-MACHINE_KERNEL_PR:append = "x"
+MACHINE_KERNEL_PR:append = "y"
 PR = "${MACHINE_KERNEL_PR}"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 DEPENDS = "virtual/kernel"
 
-BRANCH = "ti-img-sgx/${PV}/k5.10"
+BRANCH = "ti-img-sgx/${PV}/k6.1"
 
 SRC_URI = "git://git.ti.com/git/graphics/omap5-sgx-ddk-linux.git;protocol=https;branch=${BRANCH}"
 
 S = "${WORKDIR}/git"
 
-SRCREV = "eda7780bfd5277e16913c9bc0b0e6892b4e79063"
+SRCREV = "bfd9edef3f976906fb7fececbfa29d16801154f5"
 
 TARGET_PRODUCT:omap-a15 = "jacinto6evm"
 TARGET_PRODUCT:ti33x = "ti335x"
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 mesa-pvr: remove auto configurations for sgx driver

In reply to Anand Balagopalakrishnan

mesa-pvr should be dependent on user mode libraries and not the kernel mode driver. Remove auto configurations in mesa-pvr when gpudriver is set to sgx kernel mode driver.

---
 meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_22.3.5.bb | 3 ---
 1 file changed, 3 deletions(-)
meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_22.3.5.bb +0 -3
index 0de3cb94..d8c438ff 100644
@@ -25,12 +25,10 @@ SRCREV = "54fd9d7dea098b6f11c2a244b0c6763dc8c5690c"
 
 PACKAGECONFIG:append = " \
     ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-img-rogue-driver', 'pvr', '', d)} \
-    ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-sgx-ddk-km', 'sgx', '', d)} \
 "
 
 PVR_DISPLAY_CONTROLLER_ALIAS ??= "tidss"
 PACKAGECONFIG[pvr] = "-Dgallium-pvr-alias=${PVR_DISPLAY_CONTROLLER_ALIAS},"
-PACKAGECONFIG[sgx] = "-Dgallium-sgx-alias=${PVR_DISPLAY_CONTROLLER_ALIAS},"
 
 PACKAGECONFIG:remove = "video-codecs"
 PACKAGECONFIG[video-codecs] = ""
@@ -42,7 +40,6 @@ PACKAGECONFIG[xvmc] = ""
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}"
-GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'sgx', ',sgx', '', d)}"
 
 VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}"
 
Signature · 1 line
2.34.1
#3 lore raw

Re: [meta-ti] [master|kirkstone][PATCH 2/2] mesa-pvr: remove auto configurations for sgx driver

Quoted 2 lines · Anand Balagopalakrishnan via lists.yoctoproject.org

mesa-pvr should be dependent on user mode libraries and not the kernel mode driver.

While true, this patch doesn't do this. Currently the mesa-pvr is not dependent on either the user nor kernel mode driver. And you didn't add the user mode dependency here.

Quoted 3 lines

Remove auto configurations in mesa-pvr when gpudriver is set to sgx kernel mode driver.

Why? You will need this later.

Andrew

Quoted 41 lines
---
  meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_22.3.5.bb | 3 ---
  1 file changed, 3 deletions(-)
meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_22.3.5.bb +0 -4
index 0de3cb94..d8c438ff 100644
@@ -25,12 +25,10 @@ SRCREV = "54fd9d7dea098b6f11c2a244b0c6763dc8c5690c"
 
  PACKAGECONFIG:append = " \
      ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-img-rogue-driver', 'pvr', '', d)} \
-    ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-sgx-ddk-km', 'sgx', '', d)} \
  "
 
  PVR_DISPLAY_CONTROLLER_ALIAS ??= "tidss"
  PACKAGECONFIG[pvr] = "-Dgallium-pvr-alias=${PVR_DISPLAY_CONTROLLER_ALIAS},"
-PACKAGECONFIG[sgx] = "-Dgallium-sgx-alias=${PVR_DISPLAY_CONTROLLER_ALIAS},"
 
  PACKAGECONFIG:remove = "video-codecs"
  PACKAGECONFIG[video-codecs] = ""
@@ -42,7 +40,6 @@ PACKAGECONFIG[xvmc] = ""
  PACKAGE_ARCH = "${MACHINE_ARCH}"
 
  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}"
-GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'sgx', ',sgx', '', d)}"
 
  VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}"
 
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#17002): https://lists.yoctoproject.org/g/meta-ti/message/17002
Mute This Topic: https://lists.yoctoproject.org/mt/101499136/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-