Re: WHL-ipc-i7 gpu display problem


Jianjie Lin
 

Hi Fuzhong,

 

Thank you very much for your reply,

The board is finally working now.

 

Some notifications:

 

I still follow the tutorial https://projectacrn.github.io/2.0/getting-started/rt_industry_ubuntu.html,

since the

https://projectacrn.github.io/2.0/tutorials/using_ubuntu_as_sos.html use the clear-linux as the kernel vm. I do not if it is necessary.

 

There still have some bugs by compiling the acrn- hypervisor.

Since there has no board inspector in the v2.0, we use the board.xml, which is generated by board inspector from the v2.5.

Some tricky steps are made for building.

 

Furthermore, there have additional modifications by in the acrn-kernel

Suggestions Adding following kernel cmdline in /etc/grub.d/40_custom; then sudo update-grub

 

i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x01010F i915.domain_plane_owners=0x011111110000 i915.enable_gvt=1 i915.enable_guc=0

 

Modifications: rm rootwait i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x010101 i915.domain_plane_owners=0x011100001111 i915.enable_gvt=1 i915.enable_guc=0, i915.enable_conformance_check=0

 

But still thanks a lot

 

Cheers,

Jianjie LIN

 

Von: acrn-users@... [mailto:acrn-users@...] Im Auftrag von Liu, Fuzhong
Gesendet: Mittwoch, 25. August 2021 09:51
An: acrn-users@...
Betreff: Re: [acrn-users] WHL-ipc-i7 gpu display problem

 

Hi Jianjie

ACRN v2.0 support GVT-g and GVT-d.

https://projectacrn.github.io/2.0/tutorials/using_ubuntu_as_sos.html base on GVt-g

and

https://projectacrn.github.io/2.0/getting-started/rt_industry_ubuntu.html base on GVT-d

 

That is why you found the big difference between them.

 

For GVt-g:

1) Connect two monitors to your board; and set Aperture Size to 512(Chipset--->Graphics Configuration--->Aperture Size) in the BIOS settings

2) Please refer https://projectacrn.github.io/2.0/tutorials/using_ubuntu_as_sos.html#install-the-service-vm-kernel

Adding following kernel cmdline in /etc/grub.d/40_custom; then sudo update-grub

 

i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x01010F i915.domain_plane_owners=0x011111110000 i915.enable_gvt=1 i915.enable_guc=0

 

3)Remove --windows \ in your launch script(gpu_launch_uos2) since you will launch ubuntu user VM, not Windows VM.

 

If GVT-g still doesn’t work on your side, please connect UART cable to COM1 of WHL, then input “vcpu_list“ after ACRN:\>  prompt; and share us the log.

 

BR.

Fuzhong

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, August 24, 2021 5:39 PM
To: acrn-users@...
Subject: Re: [acrn-users] WHL-ipc-i7 gpu display problem

 

Hi Terry 

Thank you for your reply.

SOS:  https://projectacrn.github.io/2.0/tutorials/using_ubuntu_as_sos.html

i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x01010F i915.domain_plane_owners=0x011111110000 i915.enable_gvt=1 i915.enable_guc=0

 

è  I put the kernel cmdline in the /etc/grud.d/40_custom

I found the https://projectacrn.github.io/2.0/tutorials/using_ubuntu_as_sos.html has a big difference compared to  https://projectacrn.github.io/2.0/getting-started/rt_industry_ubuntu.html,  which I follows to install the acrn hypervisor and acrn kernel.

 

Ubuntu as a Guest:  https://projectacrn.github.io/1.6/tutorials/running_ubun_as_user_vm.html

i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x010101 i915.domain_plane_owners=0x011100001111 i915.enable_gvt=1 i915.enable_conformance_check=0 i915.enable_guc=0

 

è  I put this cmdline with –B “  ”  à did not work out

è  I put this cmdline in the Ubuntu guest /etc/default/grud of linux command default line  à it did not work out

 

$sudo mount /dev/sda1 /mnt
$ sudo sed -i "s/0x01010F/0x010101/" /mnt/loader/entries/acrn.conf 
$ sudo sed -i "s/0x011111110000/0x011100001111/" /mnt/loader/entries/acrn.conf
$ sed -i 3"s/$/ i915.enable_conformance_check=0/" /mnt/loader/entries/acrn.conf
$ sudo sync && sudo umount /mnt && reboot
 

 à I can not find this file  mnt/loader/entries/acrn.conf, do you know why?

 

In a short summary, after I tried those cmdline, it did not really solve the problem. The terminal still stuck in the line of Unhandled ps2 mouse command 0x88.

Do you have any further suggestion?

 

Cheers

Jianjie Lin

 


发件人: acrn-users@... <acrn-users@...> 代表 Zou, Terry <terry.zou@...>
发送时间: 2021824日星期二 04:25
收件人: acrn-users@...
主题: Re: [acrn-users] WHL-ipc-i7 gpu display problem

 

Hi Jianjie, Yes for v2.5 release, the default config is gvt-d. If you really want to try gvt-g, switch back to v2.0 release branch please.

Remember switch GSG document to v:2.0 also, there are setting guide for gvt-g, especially kernel command line below:

 

SOS:  https://projectacrn.github.io/2.0/tutorials/using_ubuntu_as_sos.html

i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x01010F i915.domain_plane_owners=0x011111110000 i915.enable_gvt=1 i915.enable_guc=0

 

Ubuntu as a Guest:  https://projectacrn.github.io/1.6/tutorials/running_ubun_as_user_vm.html

i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x010101 i915.domain_plane_owners=0x011100001111 i915.enable_gvt=1 i915.enable_conformance_check=0 i915.enable_guc=0

$sudo mount /dev/sda1 /mnt
$ sudo sed -i "s/0x01010F/0x010101/" /mnt/loader/entries/acrn.conf
$ sudo sed -i "s/0x011111110000/0x011100001111/" /mnt/loader/entries/acrn.conf
$ sed -i 3"s/$/ i915.enable_conformance_check=0/" /mnt/loader/entries/acrn.conf
$ sudo sync && sudo umount /mnt && reboot

 

WaaG image creation: https://projectacrn.github.io/1.6/tutorials/using_windows_as_uos.html?highlight=gvt

i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x010101 i915.domain_plane_owners=0x011100001111 i915.enable_gvt=1 i915.enable_conformance_check=0 i915.enable_guc=0

 

Best & Regards

Terry

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Monday, August 23, 2021 10:58 PM
To:
acrn-users@...
Subject: [acrn-users] WHL-ipc-i7 gpu display problem

 

Hi ACRN-community,

 

Our team faces the problem of the GPU-d/g for a long time. We try all the possibilities according to the resource from the tutorial or GitHub; however, the issue remains.

According to the tutorial, we use a whiskey lake i7 board for the gpu sharing or pass-through, which is fully supported by the acrn hypervisor.

 

We have tried release v2.5 as the starting point. We can successfully launch the uos in the console version, but the GPU version is either automatically rebooted or stuck for an hour without further action.

Then we return back the v2.0 since, based on the issue report, the gvt-g is a known issue since the v2.1.

However, it still does not help after we install the release version 2.0.

 

I attach three files for your diagnose

  1. the board information
  2. launch gpu file
  3. the log information.

Thank you very much for your support. Looking forward for your reply.

 

 

Mit freundlichen Grüßen / Kind regards
--------------------------------------------------------

Jianjie Lin

 

 

Join acrn-users@lists.projectacrn.org to automatically receive all group messages.