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:
Shuang Zheng 2020-09-04 12:06:06 +08:00 committed by wenlingz
parent 0461ac209f
commit 84c4c43833
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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