acrn-config: Fix board_c.py to backport ACRN changes to 1.4

VT-d code and DMAR/board.c related acrn-config tool changed
in upstream. This fix adds as a bridge for backporting VT-d
related changes from upstream to v1.4

Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
Sainath Grandhi 2019-12-09 10:33:41 -08:00 committed by wenlingz
parent f3688c7e45
commit 265fb56e22
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,9 @@ def gen_cat(config):
print("\n#include <board.h>", file=config)
print("#include <acrn_common.h>", file=config)
print("#include <msr.h>", file=config)
print("#include <vtd.h>", file=config)
print("\nstruct dmar_info plat_dmar_info;", file=config)
if cache_support == "False" or clos_max == 0:
print("\nstruct platform_clos_info platform_clos_array[0];", file=config)
print("uint16_t platform_clos_num = 0;", file=config)

View File

@ -330,8 +330,8 @@ def write_dmar_data(sysnode, config):
dmar_tbl, dmar_hw_list, dmar_dev_list, sysnode)
# num drhd and scope are hard coded
drhd_num = 4
scope_num = 4
drhd_num = 8
scope_num = 16
# padding dev_scope_cnt_list
j = 0
if len(dmar_dev_list.dev_scope_cnt_list) < scope_num: