G2D on IMX 8MP

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

G2D on IMX 8MP

1,373 Views
vaidesai
Contributor I

Hi folks,

 

I'm trying to use g2d_buf_from_virt_addr() to convert a user space allocation to g2d_buf. But I get this error spit out on call:

 

g2d_buf_from_virt_addr: NOT SUPPORTED

 

I'm using an i.MX 8MP with a 6.1.22 kernel (mickledore). Why is this API not supported? What are the quirks here?

 

If not supported what are the recommendations to wrap user space allocations to g2d_buf and use them with G2D APIs?

0 Kudos
Reply
3 Replies

1,330 Views
vaidesai
Contributor I

Can you clarify what you mean by not having g2d_buf_from_virt_addr in gpu-viv kernel module? What does one need to do to build it in (say in an existing Yocto recipe)? 

You're also saying retry latest BSP - this is not easily done without a major upgrade to a release. And why do you think this will fix the problem? Can you point to the source code/changes/patches that address this that makes you think it'll be fixed?

And what's weston got to do with this? How does weston affect a module's support?

0 Kudos
Reply

1,312 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

seems g2d failed  to initialize, there are 2 suggestions here:

1. confirm the dpu driver and its g2d lib is ready to be used, like please check if the libg2d can be used sucessfully.

2. for hwc, try to swich 3D to do the comopistion to avoid the 2D issue.

regards

0 Kudos
Reply

1,339 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello, 

it seems we don't have g2d_buf_from_virt_addr function in kernel-module-imx-gpu-viv. You should try the latest BSP, but This shold be a problem with weston.

 

Regards

 

 

0 Kudos
Reply