Revert "Revert "gpu: nvgpu: add turing support""

This reverts commit 278842d6ff4e15467e0b8761c6e1b2a05f926f91.

Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Change-Id: I37f47c137c048ddc3a728e143b6f30be525de120
Reviewed-on: https://git-master.nvidia.com/r/1918622
This commit is contained in:
Terje Bergstrom
2018-10-03 15:15:24 -07:00
committed by Abdul Salam
parent b74a4dbd26
commit 3bda3a0678
84 changed files with 29863 additions and 17 deletions

View File

@@ -0,0 +1,35 @@
/*
* Copyright (c) 2018, 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,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "os/linux/os_linux.h"
#include "os/linux/debug_therm_gp106.h"
#include "os/linux/debug_clk_gv100.h"
static struct nvgpu_os_linux_ops tu104_os_linux_ops = {
.therm = {
.init_debugfs = gp106_therm_init_debugfs,
},
.clk = {
.init_debugfs = gv100_clk_init_debugfs,
},
};
void nvgpu_tu104_init_os_ops(struct nvgpu_os_linux *l)
{
l->ops.therm = tu104_os_linux_ops.therm;
l->ops.clk = tu104_os_linux_ops.clk;
}