Using GPU passthrough in apollo lake


shibi590268@...
 

Fuzhong/ Geoffrey,
              I am trying to passthrough the GPU to a guest vm in Intel apollo lake family hardware with atom processor. I built acrn hypervisor with yocto. The GPU (VGA controller) is successfully passthrough to the guest vm. lspci command shows the passthrough VGA controller in the guest VM. But still the guest vm could not display anything on the screen. I see some errors in i915 driver. Is it required to patch the ovmf bootloader with VBT and GOP for this particular hardware to make the display work as mentioned in the below link? Am i missing anything?
https://projectacrn.github.io/latest/tutorials/gpu-passthru.html

ACRN: 2.7
Poky and meta-acrn branch: kirkstone


Liu, Fuzhong
 

Hi shibi

Thanks for try ACRN on APL platform!

APL isn’t the verified platform for GVT-d; please try GVT-g with the codebase v2.0 since GVT-g isn’t supported after v2.0.

Or please try GVT-d with Kaby Lake/ Whiskey Lake/ Tiger Lake.

 

Thanks!

 

BR.

Fuzhong

From: acrn-users@... <acrn-users@...> On Behalf Of shibi590268@...
Sent: Wednesday, July 6, 2022 5:25 PM
To: acrn-users@...
Subject: [acrn-users] Using GPU passthrough in apollo lake

 

Fuzhong/ Geoffrey,
              I am trying to passthrough the GPU to a guest vm in Intel apollo lake family hardware with atom processor. I built acrn hypervisor with yocto. The GPU (VGA controller) is successfully passthrough to the guest vm. lspci command shows the passthrough VGA controller in the guest VM. But still the guest vm could not display anything on the screen. I see some errors in i915 driver. Is it required to patch the ovmf bootloader with VBT and GOP for this particular hardware to make the display work as mentioned in the below link? Am i missing anything?
https://projectacrn.github.io/latest/tutorials/gpu-passthru.html

ACRN: 2.7
Poky and meta-acrn branch: kirkstone


shibi590268@...
 

Hi Fuzhong,
    Thanks for the reply. For the latest platforms, still do we need to patch GOP and VBT for using GPU passthrough?


Liu, Fuzhong
 

Hi shibi

The GOP is MUST needed when you create WaaG image.

If your User VM is non-WaaG or you already have the WaaG image, you don’t need to patch GOP and VBT for using GPU passthrough.

 

Thanks!

 

BR.

Fuzhong

From: acrn-users@... <acrn-users@...> On Behalf Of shibi590268@...
Sent: Thursday, July 7, 2022 8:46 PM
To: acrn-users@...
Subject: Re: [acrn-users] Using GPU passthrough in apollo lake

 

Hi Fuzhong,
    Thanks for the reply. For the latest platforms, still do we need to patch GOP and VBT for using GPU passthrough?


shibi590268@...
 

Fuzhong,
            I see that the v2.7 device model still have the gvt-g option. But, you have mentioned that it is supported until v2.0. Should it work if i use v2.7? Could you please confirm.


Liu, Fuzhong
 

Hi

GVT-g isn’t supported after v2.0, maybe  GVT-g related code isn’t cleaned in device model.

 

Thanks!

 

BR.

Fuzhong

 

From: acrn-users@... <acrn-users@...> On Behalf Of shibi590268@...
Sent: Monday, August 1, 2022 3:42 PM
To: acrn-users@...
Subject: Re: [acrn-users] Using GPU passthrough in apollo lake

 

Fuzhong,
            I see that the v2.7 device model still have the gvt-g option. But, you have mentioned that it is supported until v2.0. Should it work if i use v2.7? Could you please confirm.


shibi590268@...
 
Edited

Hi Fuzhong,
           The board_inspector.py is not available in the v2.0. Is there any other tool available in v2.0 to generate the board config file for a custom board.
It have board_cfg_gen.py which asks for board and scenario as input. Does it function like board_inspector.
Thanks.


Liu, Fuzhong
 

Hi Shibi

Do you have any  GPU performance requirement for User VM?

If it is just display for User VM, you can try virtio-gpu which is the new feature of v3.0.

 

Note:

We don’t verify this feature on APL platform; any question please raise github issue.

 

Thanks!

 

BR.

Fuzhong

 

From: acrn-users@... <acrn-users@...> On Behalf Of shibi590268@...
Sent: Tuesday, August 2, 2022 1:14 PM
To: acrn-users@...
Subject: Re: [acrn-users] Using GPU passthrough in apollo lake

 

[Edited Message Follows]

Hi Fuzhong,
           The board_inspector.py is not available in the v2.0. Is there any other tool available in v2.0 to generate the board config file for a custom board.
It have board_cfg_gen.py which asks for board and scenario as input. Does it function like board_inspector.
Thanks.


shibi590268@...
 

Fuzhong,
       We need it just to use user VM for display. We don't need great display performance. I will try the v3.0. 
Thanks,
Shibi


shibi590268@...
 

Hi Fuzhong,
     Now, the virtual gpu model is working in my apollo lake hardware. But, there is some lag in displaying the QT applications. Is there any parameter to tweak for improving the GPU performance? 


Liu, Fuzhong
 

Hi Shibi

Thanks for try virtio-gpu on apollo lake hardware!
@Zhao, Yakui Any comments about some lag in displaying the QT applications?

 

Thanks!

 

BR.

Fuzhong

 

From: acrn-users@... <acrn-users@...> On Behalf Of shibi590268@...
Sent: Tuesday, September 13, 2022 12:39 PM
To: acrn-users@...
Subject: Re: [acrn-users] Using GPU passthrough in apollo lake

 

Hi Fuzhong,
     Now, the virtual gpu model is working in my apollo lake hardware. But, there is some lag in displaying the QT applications. Is there any parameter to tweak for improving the GPU performance? 


shibi590268@...
 

Hello,
     Any suggestions on the improvement would be highly appreciable.


Geoffroy Van Cutsem
 

@Zhao, Yakui Any comments about some lag in displaying the QT applications?

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of shibi590268@...
Sent: Monday, September 26, 2022 2:49 pm
To: acrn-users@...
Subject: Re: [acrn-users] Using GPU passthrough in apollo lake

 

Hello,
     Any suggestions on the improvement would be highly appreciable.