acrn-config: fix csme passthrough issue for launch setting
minor_ver should be le 2 when major_ver == 2. Tracked-On: #5276 Signed-off-by: Shuang Zheng <shuang.zheng@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
parent
0461ac209f
commit
84c4c43833
|
@ -26,7 +26,7 @@ hbm_ver=`cat /sys/class/mei/mei0/hbm_ver`
|
||||||
major_ver=`echo $hbm_ver | cut -d '.' -f1`
|
major_ver=`echo $hbm_ver | cut -d '.' -f1`
|
||||||
minor_ver=`echo $hbm_ver | cut -d '.' -f2`
|
minor_ver=`echo $hbm_ver | cut -d '.' -f2`
|
||||||
if [[ "$major_ver" -lt "2" ]] || \
|
if [[ "$major_ver" -lt "2" ]] || \
|
||||||
[[ "$major_ver" == "2" && "$minor_ver" -lt "2" ]]; then
|
[[ "$major_ver" == "2" && "$minor_ver" -le "2" ]]; then
|
||||||
cse_passthrough=1
|
cse_passthrough=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ def cse_pt(sel, vmid, config):
|
||||||
print("major_ver=`echo $hbm_ver | cut -d '.' -f1`", file=config)
|
print("major_ver=`echo $hbm_ver | cut -d '.' -f1`", file=config)
|
||||||
print("minor_ver=`echo $hbm_ver | cut -d '.' -f2`", file=config)
|
print("minor_ver=`echo $hbm_ver | cut -d '.' -f2`", file=config)
|
||||||
print('if [[ "$major_ver" -lt "2" ]] || \\', file=config)
|
print('if [[ "$major_ver" -lt "2" ]] || \\', file=config)
|
||||||
print(' [[ "$major_ver" == "2" && "$minor_ver" -lt "2" ]]; then', file=config)
|
print(' [[ "$major_ver" == "2" && "$minor_ver" -le "2" ]]; then', file=config)
|
||||||
print(" cse_passthrough=1", file=config)
|
print(" cse_passthrough=1", file=config)
|
||||||
print("fi", file=config)
|
print("fi", file=config)
|
||||||
print('boot_cse_option=""', file=config)
|
print('boot_cse_option=""', file=config)
|
||||||
|
|
|
@ -41,7 +41,7 @@ hbm_ver=`cat /sys/class/mei/mei0/hbm_ver`
|
||||||
major_ver=`echo $hbm_ver | cut -d '.' -f1`
|
major_ver=`echo $hbm_ver | cut -d '.' -f1`
|
||||||
minor_ver=`echo $hbm_ver | cut -d '.' -f2`
|
minor_ver=`echo $hbm_ver | cut -d '.' -f2`
|
||||||
if [[ "$major_ver" -lt "2" ]] || \
|
if [[ "$major_ver" -lt "2" ]] || \
|
||||||
[[ "$major_ver" == "2" && "$minor_ver" -lt "2" ]]; then
|
[[ "$major_ver" == "2" && "$minor_ver" -le "2" ]]; then
|
||||||
cse_passthrough=1
|
cse_passthrough=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ hbm_ver=`cat /sys/class/mei/mei0/hbm_ver`
|
||||||
major_ver=`echo $hbm_ver | cut -d '.' -f1`
|
major_ver=`echo $hbm_ver | cut -d '.' -f1`
|
||||||
minor_ver=`echo $hbm_ver | cut -d '.' -f2`
|
minor_ver=`echo $hbm_ver | cut -d '.' -f2`
|
||||||
if [[ "$major_ver" -lt "2" ]] || \
|
if [[ "$major_ver" -lt "2" ]] || \
|
||||||
[[ "$major_ver" == "2" && "$minor_ver" -lt "2" ]]; then
|
[[ "$major_ver" == "2" && "$minor_ver" -le "2" ]]; then
|
||||||
cse_passthrough=1
|
cse_passthrough=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue