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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,246件の閲覧回数
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.

ラベル(1)
0 件の賞賛
18 返答(返信)

1,524件の閲覧回数
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 件の賞賛

2,098件の閲覧回数
ravicalm
Contributor I

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

0 件の賞賛

2,011件の閲覧回数
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 件の賞賛

2,008件の閲覧回数
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 件の賞賛

1,978件の閲覧回数
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 件の賞賛

1,976件の閲覧回数
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 件の賞賛

1,926件の閲覧回数
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 件の賞賛

1,856件の閲覧回数
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 件の賞賛

1,847件の閲覧回数
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 件の賞賛

2,115件の閲覧回数
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 件の賞賛

2,108件の閲覧回数
ravicalm
Contributor I

Hi @Sanket_Parekh 

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

0 件の賞賛

2,091件の閲覧回数
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 件の賞賛

2,084件の閲覧回数
ravicalm
Contributor I
@ Sanket_Parekh is it possible to have a call ?
0 件の賞賛

2,072件の閲覧回数
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 件の賞賛

2,184件の閲覧回数
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 件の賞賛

2,148件の閲覧回数
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 件の賞賛

2,205件の閲覧回数
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 件の賞賛

2,041件の閲覧回数
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 件の賞賛