imx8qm enable lsio_mu2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx8qm enable lsio_mu2

跳至解决方案
1,639 次查看
juanpabloruiz
Contributor I

i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus

I am trying to enable in a Linux host the lsio_mu2 (message unit 2) to passthrough it with KVM to a guest in the MCIMX8QM-CPU board. The Linux guest is booting with lsio_mu2 is status = "disabled" in DTB. Nevertheless, Linux does not boot up when lsio_mu2 is status = "okay". Also, I tried to replace the lsio_mu1 with the lsio_mu2 for the SCU as follows:

juanpabloruiz_0-1654586199542.png

 

But I have the same result, Linux is not booting:

juanpabloruiz_0-1654585686671.png

 

 

I am using this Yocto Linux kernel version:

Linux imx8qm-mek 5.10.74+gb0d74a58e223 #1 SMP PREEMPT Mon Oct 18 17:39:28 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

Do you know if I have to enable in somewhere else the lsio_mu2? 

 

I attach the generated DTS (preprocessed and decompiled) with lsio_mu2 instead of lsio_mu1 for reference.

 

Thanks

 

0 项奖励
1 解答
1,605 次查看
Peng_Fan
NXP Employee
NXP Employee

If you look at imx8qm-mek-dom0.dts, there is node named "domu", there are init_on_rsrcs, which is indicate what resources needs to power on for communicating with SCU. you use lsio_mu2 in a VM, so need make sure lsio_mu2 is powered on, otherwise the VM will panic. 

Kernel & Virtualization Engineer

在原帖中查看解决方案

2 回复数
1,513 次查看
juanpabloruiz
Contributor I

Thanks a lot Peng

By adding IMX_SC_R_MU_2A in the /domu/doma/init_on_rsrcs as you suggested it worked. 

Regards

0 项奖励
1,606 次查看
Peng_Fan
NXP Employee
NXP Employee

If you look at imx8qm-mek-dom0.dts, there is node named "domu", there are init_on_rsrcs, which is indicate what resources needs to power on for communicating with SCU. you use lsio_mu2 in a VM, so need make sure lsio_mu2 is powered on, otherwise the VM will panic. 

Kernel & Virtualization Engineer