aboutsummaryrefslogtreecommitdiffstats
path: root/nvdebug.h
diff options
context:
space:
mode:
authorBenjamin Hadad IV <bh4@unc.edu>2023-08-16 22:00:20 -0400
committerBenjamin Hadad IV <bh4@unc.edu>2023-08-16 22:00:20 -0400
commit9e6cc03cdf736fbd817ed53fa9a7f506bc91a244 (patch)
tree9a40dacb60282939a979377bfa605556ef64c04f /nvdebug.h
parent845960fc1b15995fdbd6d61c384567652a150bc4 (diff)
A variety of changes have been made as part of the code review.
- Functions have been consolidated. - Code was clarified and tidied up overall. - Unnecessary elements were removed.
Diffstat (limited to 'nvdebug.h')
-rw-r--r--nvdebug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/nvdebug.h b/nvdebug.h
index c45e460..471adf9 100644
--- a/nvdebug.h
+++ b/nvdebug.h
@@ -9,8 +9,6 @@
9#include <linux/version.h> // For KERNEL_VERSION and LINUX_VERSION_CODE 9#include <linux/version.h> // For KERNEL_VERSION and LINUX_VERSION_CODE
10#include <asm/io.h> 10#include <asm/io.h>
11 11
12#define NV_BUILD_FOR_AMPERE
13
14/* Runlist Channel 12/* Runlist Channel
15 A timeslice group (TSG) is composed of channels. Each channel is a FIFO queue 13 A timeslice group (TSG) is composed of channels. Each channel is a FIFO queue
16 of GPU commands. These commands are typically queued from userspace. 14 of GPU commands. These commands are typically queued from userspace.
@@ -382,6 +380,7 @@ typedef union {
382#define NV_CHIP_ID_GV11B 0x15B // Jetson Xavier embedded GPU 380#define NV_CHIP_ID_GV11B 0x15B // Jetson Xavier embedded GPU
383#define NV_CHIP_ID_KEPLER 0x0E0 381#define NV_CHIP_ID_KEPLER 0x0E0
384#define NV_CHIP_ID_VOLTA 0x140 382#define NV_CHIP_ID_VOLTA 0x140
383#define NV_CHIP_ID_AMPERE 0x170
385 384
386inline static const char* ARCH2NAME(uint32_t arch) { 385inline static const char* ARCH2NAME(uint32_t arch) {
387 switch (arch) { 386 switch (arch) {
@@ -565,6 +564,7 @@ static const char* const ENGINE_TYPES_NAMES[ENGINE_TYPES_LEN] = {
565#define NV_PTOP_DEVICE_INFO__SIZE_1_AMPERE(g) (nvdebug_readl(g, 0x0224fc) >> 20) 564#define NV_PTOP_DEVICE_INFO__SIZE_1_AMPERE(g) (nvdebug_readl(g, 0x0224fc) >> 20)
566#define NV_PTOP_DEVICE_INFO__SIZE_1_PREVIOUS 64 565#define NV_PTOP_DEVICE_INFO__SIZE_1_PREVIOUS 64
567#define NV_PTOP_DEVICE_INFO_TYPE_COUNT 3 566#define NV_PTOP_DEVICE_INFO_TYPE_COUNT 3
567#define NV_CHIP_ID_AMPERE 0x170
568typedef union { 568typedef union {
569 struct { 569 struct {
570 uint32_t fault_id:7; 570 uint32_t fault_id:7;