summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/pci.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-04-06 12:46:55 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-04-22 12:24:44 -0400
commitc918c42a4a3651f757c6966aead4b07eb4b56697 (patch)
tree09a13f857e14f58aed1e18d0dc9c7d61722936b9 /drivers/gpu/nvgpu/common/linux/pci.c
parent32f6ffee1379f1458d35c8d74e8516f96a3e390e (diff)
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>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/pci.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/pci.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/pci.c b/drivers/gpu/nvgpu/common/linux/pci.c
index c19ced7c..bb44efbc 100644
--- a/drivers/gpu/nvgpu/common/linux/pci.c
+++ b/drivers/gpu/nvgpu/common/linux/pci.c
@@ -34,6 +34,8 @@
34#include "sysfs.h" 34#include "sysfs.h"
35#include "os_linux.h" 35#include "os_linux.h"
36#include "platform_gk20a.h" 36#include "platform_gk20a.h"
37#include "sim.h"
38#include "sim_pci.h"
37 39
38#include "pci.h" 40#include "pci.h"
39#include "pci_usermode.h" 41#include "pci_usermode.h"
@@ -493,6 +495,10 @@ static int nvgpu_pci_init_support(struct pci_dev *pdev)
493 goto fail; 495 goto fail;
494 } 496 }
495 497
498 err = nvgpu_pci_init_sim_support(g);
499 if (err)
500 goto fail;
501
496 nvgpu_pci_init_usermode_support(l); 502 nvgpu_pci_init_usermode_support(l);
497 503
498 return 0; 504 return 0;