summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_perf_gm20b.h10
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_perf_gp106.h10
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_perf_gp10b.h10
3 files changed, 27 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_perf_gm20b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_perf_gm20b.h
index ae34cabd..a94ba307 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_perf_gm20b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_perf_gm20b.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -56,6 +56,14 @@
56#ifndef _hw_perf_gm20b_h_ 56#ifndef _hw_perf_gm20b_h_
57#define _hw_perf_gm20b_h_ 57#define _hw_perf_gm20b_h_
58 58
59static inline u32 perf_pmmsys_base_v(void)
60{
61 return 0x001b0000U;
62}
63static inline u32 perf_pmmsys_extent_v(void)
64{
65 return 0x001b0fffU;
66}
59static inline u32 perf_pmasys_control_r(void) 67static inline u32 perf_pmasys_control_r(void)
60{ 68{
61 return 0x001b4000U; 69 return 0x001b4000U;
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_perf_gp106.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_perf_gp106.h
index b0182789..334cd200 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_perf_gp106.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_perf_gp106.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -56,6 +56,14 @@
56#ifndef _hw_perf_gp106_h_ 56#ifndef _hw_perf_gp106_h_
57#define _hw_perf_gp106_h_ 57#define _hw_perf_gp106_h_
58 58
59static inline u32 perf_pmmsys_base_v(void)
60{
61 return 0x001b0000U;
62}
63static inline u32 perf_pmmsys_extent_v(void)
64{
65 return 0x001b0fffU;
66}
59static inline u32 perf_pmasys_control_r(void) 67static inline u32 perf_pmasys_control_r(void)
60{ 68{
61 return 0x001b4000U; 69 return 0x001b4000U;
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_perf_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_perf_gp10b.h
index aa0fafe7..43424e13 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_perf_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_perf_gp10b.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -56,6 +56,14 @@
56#ifndef _hw_perf_gp10b_h_ 56#ifndef _hw_perf_gp10b_h_
57#define _hw_perf_gp10b_h_ 57#define _hw_perf_gp10b_h_
58 58
59static inline u32 perf_pmmsys_base_v(void)
60{
61 return 0x001b0000U;
62}
63static inline u32 perf_pmmsys_extent_v(void)
64{
65 return 0x001b0fffU;
66}
59static inline u32 perf_pmasys_control_r(void) 67static inline u32 perf_pmasys_control_r(void)
60{ 68{
61 return 0x001b4000U; 69 return 0x001b4000U;