mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-23 07:33:47 +00:00
DM:Check the device file of /dev/vbs_ipu to determine IPU mode
The /dev/vbs_ipu is used as the backend driver of IPU mediator on SOS kernel. If the file of /dev/vbs_ipu exists, it indicates that IPU works in mediator mode. Other it will fall back to the pass-through mode. Tracked-on: https://github.com/projectacrn/acrn-hypervisor/issues/1373 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com>
This commit is contained in:
parent
8efd9edb82
commit
969f7cf071
@ -5,8 +5,8 @@ kernel_version=$(uname -r | awk -F. '{ printf("%d.%d", $1,$2) }')
|
|||||||
|
|
||||||
ipu_passthrough=0
|
ipu_passthrough=0
|
||||||
|
|
||||||
# this is the temporal solution before IPU is ready on 4.19
|
# Check the device file of /dev/vbs_ipu to determine the IPU mode
|
||||||
if [ "$kernel_version" = "4.19" ]; then
|
if [ ! -f "/dev/vbs_ipu" ]; then
|
||||||
ipu_passthrough=1
|
ipu_passthrough=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user