From c918c42a4a3651f757c6966aead4b07eb4b56697 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 6 Apr 2018 09:46:55 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1694963 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/pci.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/gpu/nvgpu/common/linux/pci.c') 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 @@ #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; -- cgit v1.2.2