Skip to content

Commit e3174bb

Browse files
Min Helijinxia
authored andcommitted
script: add plane restriction parameters for NUC
This patch added GVT-g feature and support of plane restriction for APL NUC platforms. Signed-off-by: Min He <min.he@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
1 parent 20b50ad commit e3174bb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

devicemodel/samples/nuc/launch_uos.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ mem_size=1000M
2020
echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
2121

2222
acrn-dm -T -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
23+
-s 2,pci-gvt -G "$3" \
2324
-s 5,virtio-console,@pty:pty_port \
2425
-s 6,virtio-hyper_dmabuf \
2526
-s 3,virtio-blk,/root/clear-21260-kvm.img \
@@ -28,7 +29,7 @@ acrn-dm -T -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
2829
-B "root=/dev/vda3 rw rootwait maxcpus=$2 nohpet console=tty0 console=hvc0 \
2930
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
3031
consoleblank=0 tsc=reliable i915.avail_planes_per_pipe=$4 \
31-
i915.enable_hangcheck=0 i915.nuclear_pageflip=1" $vm_name
32+
i915.enable_hangcheck=0 i915.nuclear_pageflip=1 i915.enable_initial_modeset=1" $vm_name
3233
}
3334

34-
launch_clear 2 1 "64 448 8" 0x00000C clear
35+
launch_clear 2 1 "64 448 8" 0x070F00 clear
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
title The ACRN Service OS
22
linux /EFI/org.clearlinux/kernel-org.clearlinux.pk414-sos.4.14.23-19
3-
options pci_devices_ignore=(0:18:2) maxcpus=1 console=tty0 console=ttyS0 i915.nuclear_pageflip=1 root=PARTUUID=<UUID of rootfs partition> rw rootwait ignore_loglevel no_timer_check consoleblank=0 i915.tsd_init=7 i915.tsd_delay=2000 i915.avail_planes_per_pipe=0x00000F i915.domain_plane_owners=0x011111110000 i915.enable_guc_loading=0 i915.enable_guc_submission=0 i915.enable_preemption=1 i915.context_priority_mode=2 i915.enable_gvt=1 hvlog=2M@0x1FE00000
3+
options pci_devices_ignore=(0:18:2) maxcpus=1 console=tty0 console=ttyS0 i915.nuclear_pageflip=1 root=PARTUUID=<UUID of rootfs partition> rw rootwait ignore_loglevel no_timer_check consoleblank=0 i915.tsd_init=7 i915.tsd_delay=2000 i915.avail_planes_per_pipe=0x01010F i915.domain_plane_owners=0x011111110000 i915.enable_guc_loading=0 i915.enable_guc_submission=0 i915.enable_preemption=1 i915.context_priority_mode=2 i915.enable_gvt=1 i915.enable_initial_modeset=1 hvlog=2M@0x1FE00000

0 commit comments

Comments
 (0)