Skip to content

Commit a6ed6a3

Browse files
Sujana-Mchetan-rathore
authored andcommitted
fix(gpu): initialize PCIe and IOVIRT tables for BM GPU
- Include GPU in the baremetal SBSA init checks that create the PCIe and IOVIRT info tables. - Ensure GPU rules that depend on PCIe RC or SMMU discovery have the required platform tables when the GPU module is run directly. Signed-off-by: Sujana M <sujana.murali@arm.com> Change-Id: I12cdaa3320acfd67e26a11de0284c079364da890
1 parent cb112a2 commit a6ed6a3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/baremetal/sbsa_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ freeAcsMeM(void)
6565

6666
if (acs_is_module_enabled(PCIE) ||
6767
acs_is_module_enabled(GIC) ||
68+
acs_is_module_enabled(GPU) ||
6869
acs_is_module_enabled(SMMU))
6970
val_pcie_free_info_table();
7071

7172
if (acs_is_module_enabled(SMMU) ||
7273
acs_is_module_enabled(GIC) ||
7374
acs_is_module_enabled(MEM_MAP) ||
75+
acs_is_module_enabled(GPU) ||
7476
acs_is_module_enabled(PCIE))
7577
val_iovirt_free_info_table();
7678

@@ -254,12 +256,14 @@ ShellAppMainsbsa()
254256

255257
if (acs_is_module_enabled(PCIE) ||
256258
acs_is_module_enabled(GIC) ||
259+
acs_is_module_enabled(GPU) ||
257260
acs_is_module_enabled(SMMU))
258261
createPcieInfoTable();
259262

260263
if (acs_is_module_enabled(GIC) ||
261264
acs_is_module_enabled(PCIE) ||
262265
acs_is_module_enabled(MEM_MAP) ||
266+
acs_is_module_enabled(GPU) ||
263267
acs_is_module_enabled(SMMU))
264268
createIoVirtInfoTable();
265269

0 commit comments

Comments
 (0)