gpu: nvgpu: sim init for iGPU-PCIe

Implement the sim init for the iGPU-PCIe devices.

JIRA NVGPU-9348

Change-Id: I9088308b96c57bb1cea01959326446ccad0a8c24
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2851163
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Ramalingam C
2023-01-31 14:48:21 +00:00
committed by mobile promotions
parent d0ed86ab1e
commit b2c4cdb25b
4 changed files with 66 additions and 11 deletions

View File

@@ -358,6 +358,11 @@ struct gk20a_platform {
/* Check if igpu is available as pci device. */
bool is_pci_igpu;
#ifdef CONFIG_NVGPU_SIM
u32 fake_rpc_base;
u32 fake_rpc_size;
#endif
};
static inline struct gk20a_platform *gk20a_get_platform(