gpu: nvgpu: Implement dGPU simulation support

Implement support for dGPU fmodel. The message protocol is slightly
different and accessed via BAR0 aperture.

JIRA NVGPUT-41

Change-Id: Ide3c52a751530f520854965c1eba19fa8339a315
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1694963
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2018-04-06 09:46:55 -07:00
committed by mobile promotions
parent 32f6ffee13
commit c918c42a4a
5 changed files with 2582 additions and 0 deletions

View File

@@ -34,6 +34,8 @@
#include "sysfs.h"
#include "os_linux.h"
#include "platform_gk20a.h"
#include "sim.h"
#include "sim_pci.h"
#include "pci.h"
#include "pci_usermode.h"
@@ -493,6 +495,10 @@ static int nvgpu_pci_init_support(struct pci_dev *pdev)
goto fail;
}
err = nvgpu_pci_init_sim_support(g);
if (err)
goto fail;
nvgpu_pci_init_usermode_support(l);
return 0;