mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Initial Nvlink driver skeleton
Adds the skeleton and integration of the GV100 endpoint driver to NVGPU (1) Adds a OS abstraction layer for the internal nvlink structure. (2) Adds linux specific integration with Nvlink core driver. (3) Adds function pointers for nvlink api, initialization and isr process. (4) Adds initial support for minion. (5) Adds new GPU enable properties to handle NVLINK presence (6) Adds new GPU enable properties for SG_PHY bypass (required for NVLINK over PCI) (7) Adds parsing of nvlink vbios structures. (8) Adds logging defines for NVGPU JIRA: EVLR-2328 Change-Id: I0720a165a15c7187892c8c1a0662ec598354ac06 Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1644708 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
37b8298a48
commit
fbdcc8a2d4
@@ -21,6 +21,7 @@
|
||||
#include <nvgpu/nvgpu_common.h>
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/enabled.h>
|
||||
#include <nvgpu/nvlink.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/of_address.h>
|
||||
|
||||
@@ -629,6 +630,18 @@ static int nvgpu_pci_probe(struct pci_dev *pdev,
|
||||
return err;
|
||||
}
|
||||
|
||||
err = nvgpu_nvlink_probe(g);
|
||||
/*
|
||||
* ENODEV is a legal error which means there is no NVLINK
|
||||
* any other error is fatal
|
||||
*/
|
||||
if (err) {
|
||||
if (err != -ENODEV) {
|
||||
nvgpu_err(g, "fatal error probing nvlink, bailing out");
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
||||
g->mm.has_physical_mode = false;
|
||||
|
||||
np = nvgpu_get_node(g);
|
||||
|
||||
Reference in New Issue
Block a user