Rendering image uses the ethnaviv driver but I want to use the galcore driver for rendering

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rendering image uses the ethnaviv driver but I want to use the galcore driver for rendering

2,104 Views
ravicalm
Contributor I

Rendering image uses the ethnaviv driver but I want to use the galcore driver for rendering . could you please tell me how to disable the ethnaviv and enable the galcore driver for the imx7ulp board.

 

Note: please don't tell follow this document / that document please give the exact info and file information where we need to modify.

Labels (1)
0 Kudos
18 Replies

1,382 Views
ravicalm
Contributor I

@Sanket_Parekh  In imx7ulp cef(chromium embed framework launching process is taking so much 100% cpu) do u know how to shift the load from cpu to gpu?

0 Kudos

1,956 Views
ravicalm
Contributor I

Hi @Sanket_Parekh ,
is it possible to have microsoft teams call with you?

0 Kudos

1,869 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @ravicalm 

I hope you are doing well.

i.MX gpu tests only support galcore driver.
 
However , one can look for below tools for etnaviv gpu driver.
 
 
Thanks & Regards,
Sanket Parekh
0 Kudos

1,866 Views
ravicalm
Contributor I
Hi @Sanket_Parekh,
with the above ethnaviv gpu tests I am not able to see how much gpu is using while rendering the images that is why I asked you to how to disable ethnaviv and enable galcore but If I try to use the galcore device tree node the device is not booting up could you please share the kernel source code where there is an enable of galcore?
one doubt: is imx7ulp supports galcore?? because in my code they have given support to ethnaviv
0 Kudos

1,836 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @ravicalm 

I hope you are doing well.
 
does imx7ulp supports galcore?? because in my code they have given support to ethnaviv.
[Ans] : Yes , i.MX7ULP supports galcore.
           In older kernel versions it uses etanviv.
 
the kernel source for the galcore driver is at /drivers/mxc/gpu-viv.
 
It can be enabled using the below option and gpu device tree node.
CONFIG_MXC_GPU_VIV=y
 
Thanks & Regards,
Sanket Parekh

0 Kudos

1,834 Views
ravicalm
Contributor I
Hi @Sanket_Parekh, If I introduce this tree node and the configuration in my code the device is not booting up
0 Kudos

1,784 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @ravicalm 

I hope you are doing well.
 
Please share the device boot failing logs and changes made to the linux kernel config and dts for further debugging.
 
Thanks & Regards,

Sanket Parekh

0 Kudos

1,714 Views
ravicalm
Contributor I
Hi @Sanket,
I need a call with you sharing logs and sharing configuration and boot logs against company policy we will have call tell me the process which I can follow to have a call with you
0 Kudos

1,705 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @ravicalm,

 
I hope you are doing well.
 

It is not possible for me to have a call with you.
 
Please connect with NXP Professional Services for on-call debugging.
 
However, You can send configuration and boot logs over e-mail.
 
Thanks & Regards,
Sanket Parekh
0 Kudos

1,973 Views
ravicalm
Contributor I

I have the following info

Operating System: Poky (Yocto Project Reference Distro) 2.7.1 (warrior)

Kernel: Linux 4.14.98

uname -a

Linux fly 4.14.98 #1 SMP PREEMPT Mon Jul 10 16:01:38 UTC 2023 armv7l GNU/Linux

build/yocto/poky/meta-yocto-bsp/conf : file content

# We have a conf and classes directory, add to BBPATH

BBPATH .= ":${LAYERDIR}"

# We have recipes-* directories, add to BBFILES

BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \

${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "yoctobsp"

BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/"

BBFILE_PRIORITY_yoctobsp = "5"

LAYERVERSION_yoctobsp = "4"

LAYERSERIES_COMPAT_yoctobsp = "warrior"

I will share the by deivce tree file info.

0 Kudos

1,966 Views
ravicalm
Contributor I

Hi @Sanket_Parekh 

I hope I have given enough info could you please and update with your findings

0 Kudos

1,949 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @ravicalm ,

 
I hope you are doing well.
 
The device tree node for gpu doesn't seem correct in your attached .dtsi file.
 
Please refer to and change the gpu: gpu@41800000 node under imx7ulp.dtsi file.
 
Please add the below option in the kernel configuration.
CONFIG_MXC_GPU_VIV=y
 
Please also mention which document you followed to set up yocto.
As it seems you are not using the yocto provided by NXP.
 
I hope it helps!

 

 
Thanks & Regards,

Sanket Parekh

0 Kudos

1,942 Views
ravicalm
Contributor I
@ Sanket_Parekh is it possible to have a call ?
0 Kudos

1,930 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @ravicalm 

I hope you are doing well.
 
Please accept my apology as It is not possible for us to have a call.
 
Please connect with NXP Professional Services for on-call debugging.
 
Thanks & Regards,

Sanket Parekh

0 Kudos

2,042 Views
ravicalm
Contributor I

Hi @Sanket_Parekh  I have posted my question clearly based on the dmesg logs rendering images uses ethnaviv driver not galcore . so I need to check the performance of gpu we have gpu tool and gpuinfo.sh scrpit based on galcore . So I want to enable galcore driver instead of ethnaiv driver.

could you help me share the device tree and configuration wrt the galcore 

0 Kudos

2,006 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @ravicalm 

I hope you are doing well.

i.MX BSP by default uses a galcore driver.

Please look at https://github.com/nxp-imx/linux-imx/tree/lf-6.1.y/drivers/mxc/gpu-viv

 
It seems that you are not using i.MX BSP.
 
For the device tree, Please look at gpu node in /arch/arm/boot/dts/imx7ulp.dtsi
 
Please provide me with your source link of the BSP used & also the BSP version.
 
Thanks & Regards,
Sanket Parekh
0 Kudos

2,063 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @ravicalm 

I hope you are doing well.

I.MX BSP uses galcore GPU driver by default available at /drivers/mxc/gpu-viv.

Additionally one can add the below line in local.conf

IMAGE_INSTALL += " kernel-module-imx-gpu-viv "

Thanks & Regards,

Sanket Parekh

0 Kudos

1,899 Views
ravicalm
Contributor I
@Sanket_Parekh my final agenda is to check the gpu performance (how much percentage of gpu was used while rendering the images) if the rendering uses the ethnaviv driver may I know is there any tool which can check the gpu performance if gpu uses the ethanviv driver?
0 Kudos