From 5a64af2066d116ffdd983261d3d7beb2616ed9b9 Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Sat, 29 Sep 2018 14:11:32 +0800 Subject: [PATCH] DM: Use the pass-through mode for IPU on 4.19 kernel Now the IPU mediator driver is not ready on 4.19-rcX kernel. So the IPU will fallback to pass-trhough mode temporally and be assigned to guest directly. After the IPU mediator driver is ready, the ipu_passthrough flag will be changed to zero. V1-V2: Describe the issue clearly in commit log. Tracked-on: https://github.com/projectacrn/acrn-hypervisor/issues/1373 Signed-off-by: Zhao Yakui Reviewed-by: Wu, Binbin --- devicemodel/samples/apl-mrb/launch_uos.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devicemodel/samples/apl-mrb/launch_uos.sh b/devicemodel/samples/apl-mrb/launch_uos.sh index 468f07155..51c88e4d3 100755 --- a/devicemodel/samples/apl-mrb/launch_uos.sh +++ b/devicemodel/samples/apl-mrb/launch_uos.sh @@ -1,7 +1,15 @@ #!/bin/bash + +kernel_version=$(uname -r | awk -F. '{ printf("%d.%d", $1,$2) }') + ipu_passthrough=0 +# this is the temporal solution before IPU is ready on 4.19 +if [ "$kernel_version" = "4.19" ]; then +ipu_passthrough=1 +fi + function launch_clearlinux() { if [ ! -f "/data/$5/$5.img" ]; then