From 9e6cc03cdf736fbd817ed53fa9a7f506bc91a244 Mon Sep 17 00:00:00 2001 From: Benjamin Hadad IV Date: Wed, 16 Aug 2023 22:00:20 -0400 Subject: 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. --- nvdebug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nvdebug.h') diff --git a/nvdebug.h b/nvdebug.h index c45e460..471adf9 100644 --- a/nvdebug.h +++ b/nvdebug.h @@ -9,8 +9,6 @@ #include // For KERNEL_VERSION and LINUX_VERSION_CODE #include -#define NV_BUILD_FOR_AMPERE - /* Runlist Channel A timeslice group (TSG) is composed of channels. Each channel is a FIFO queue of GPU commands. These commands are typically queued from userspace. @@ -382,6 +380,7 @@ typedef union { #define NV_CHIP_ID_GV11B 0x15B // Jetson Xavier embedded GPU #define NV_CHIP_ID_KEPLER 0x0E0 #define NV_CHIP_ID_VOLTA 0x140 +#define NV_CHIP_ID_AMPERE 0x170 inline static const char* ARCH2NAME(uint32_t arch) { switch (arch) { @@ -565,6 +564,7 @@ static const char* const ENGINE_TYPES_NAMES[ENGINE_TYPES_LEN] = { #define NV_PTOP_DEVICE_INFO__SIZE_1_AMPERE(g) (nvdebug_readl(g, 0x0224fc) >> 20) #define NV_PTOP_DEVICE_INFO__SIZE_1_PREVIOUS 64 #define NV_PTOP_DEVICE_INFO_TYPE_COUNT 3 +#define NV_CHIP_ID_AMPERE 0x170 typedef union { struct { uint32_t fault_id:7; -- cgit v1.2.2