config-tools: refine get_pt_intx_table and check_pt_intx

Refine get_pt_intx_table. The method parse the <pt_inx> of scenario and
append the pair of phys_gsi and virt_gsi if there is any.

Refine check_pt_intx. Add a condition that the method returns if the
phys_gsi and virt_gsi are empty dictionary.

Tracked-On: #6178
Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
Yang,Yu-chu
2021-06-08 14:05:36 -07:00
committed by wenlingz
parent d965f6e6a1
commit e4ebdfe880
2 changed files with 6 additions and 3 deletions

View File

@@ -1215,6 +1215,9 @@ def check_pt_intx(phys_gsi, virt_gsi):
if not phys_gsi and not virt_gsi:
return
if len(phys_gsi) == 0 and len(virt_gsi) == 0:
return
if not board_cfg_lib.is_matched_board(('ehl-crb-b','generic_board')):
ERR_LIST["pt_intx"] = "only board ehl-crb-b/generic_board is supported"
return