mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Hardcode nvlink speed to 20G
Xavier Chip Product POR was updated to 20G only. No more qual work happening for 16G. So we do not plan to support 16G. Now that we have a single speed left, remove the code added to support nvlink speed from VBIOS as it is redundant. JIRA NVGPU-2964 Change-Id: Icd71ebb8271240818e36d40bf73c60f0c5beb6bf Signed-off-by: tkudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2284175 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -77,23 +77,6 @@ fail:
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
static int nvgpu_nvlink_ops_speed_config(struct nvlink_device *ndev)
|
||||
{
|
||||
struct gk20a *g = (struct gk20a *) ndev->priv;
|
||||
int err;
|
||||
|
||||
err = nvgpu_nvlink_speed_config(g);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "Nvlink speed config failed.\n");
|
||||
} else {
|
||||
ndev->speed = g->nvlink.speed;
|
||||
nvgpu_log(g, gpu_dbg_nvlink, "Nvlink default speed set to %d\n",
|
||||
ndev->speed);
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
static int nvgpu_nvlink_ops_early_init(struct nvlink_device *ndev)
|
||||
{
|
||||
struct gk20a *g = (struct gk20a *) ndev->priv;
|
||||
@@ -413,7 +396,6 @@ int nvgpu_nvlink_init_ops(struct gk20a *g)
|
||||
ndev->dev_ops.dev_interface_disable =
|
||||
nvgpu_nvlink_ops_interface_disable;
|
||||
ndev->dev_ops.dev_shutdown = nvgpu_nvlink_ops_dev_shutdown;
|
||||
ndev->dev_ops.dev_speed_config = nvgpu_nvlink_ops_speed_config;
|
||||
|
||||
/* Fill in the link struct */
|
||||
ndev->link.device_id = ndev->device_id;
|
||||
|
||||
Reference in New Issue
Block a user