From 2c5337a24f7f2d02989dfb733c55d6d8c7e90493 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Sun, 29 Oct 2023 13:07:40 -0400 Subject: Update includes to L4T r32.7.4 and drop nvgpu/gk20a.h dependency Also add instructions for updating `include/`. These files are now only needed to build on Linux 4.9-based Tegra platforms. --- include/nvgpu/hw/gk20a/hw_gr_gk20a.h | 61 ++++++++++++++++++++++++++++++++++++ include/nvgpu/hw/gm20b/hw_gr_gm20b.h | 14 ++++++++- include/nvgpu/hw/gp106/hw_gr_gp106.h | 4 +++ include/nvgpu/hw/gp10b/hw_gr_gp10b.h | 4 +++ include/nvgpu/hw/gv100/hw_gr_gv100.h | 4 +++ include/nvgpu/hw/gv11b/hw_gr_gv11b.h | 4 +++ 6 files changed, 90 insertions(+), 1 deletion(-) (limited to 'include/nvgpu/hw') diff --git a/include/nvgpu/hw/gk20a/hw_gr_gk20a.h b/include/nvgpu/hw/gk20a/hw_gr_gk20a.h index 826108f..376cc8f 100644 --- a/include/nvgpu/hw/gk20a/hw_gr_gk20a.h +++ b/include/nvgpu/hw/gk20a/hw_gr_gk20a.h @@ -1380,6 +1380,10 @@ static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void) { return 0x00502400U; } +static inline u32 gr_gpc0_gpccs_ctxsw_mailbox__size_1_v(void) +{ + return 0x00000010U; +} static inline u32 gr_fecs_ctxsw_idlestate_r(void) { return 0x00409420U; @@ -3804,4 +3808,61 @@ static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_task_f(void) { return 0x40000000U; } + +static inline u32 gr_gpc0_gpccs_falcon_irqstat_r(void) +{ + return 0x00502008U; +} +static inline u32 gr_gpc0_gpccs_falcon_irqmode_r(void) +{ + return 0x0050200cU; +} +static inline u32 gr_gpc0_gpccs_falcon_irqmask_r(void) +{ + return 0x00502018U; +} +static inline u32 gr_gpc0_gpccs_falcon_irqdest_r(void) +{ + return 0x0050201cU; +} +static inline u32 gr_gpc0_gpccs_falcon_debug1_r(void) +{ + return 0x00502090U; +} +static inline u32 gr_gpc0_gpccs_falcon_debuginfo_r(void) +{ + return 0x00502094U; +} +static inline u32 gr_gpc0_gpccs_falcon_engctl_r(void) +{ + return 0x005020a4U; +} +static inline u32 gr_gpc0_gpccs_falcon_curctx_r(void) +{ + return 0x00502050U; +} +static inline u32 gr_gpc0_gpccs_falcon_nxtctx_r(void) +{ + return 0x00502054U; +} +static inline u32 gr_gpc0_gpccs_ctxsw_mailbox_r(u32 i) +{ + return 0x00502800U + i*4U; +} +static inline u32 gr_gpc0_gpccs_falcon_icd_cmd_r(void) +{ + return 0x00502200U; +} +static inline u32 gr_gpc0_gpccs_falcon_icd_cmd_opc_rreg_f(void) +{ + return 0x8U; +} +static inline u32 gr_gpc0_gpccs_falcon_icd_cmd_idx_f(u32 v) +{ + return (v & 0x1fU) << 8U; +} +static inline u32 gr_gpc_gpccs_falcon_icd_rdata_r(void) +{ + return 0x0050220cU; +} #endif diff --git a/include/nvgpu/hw/gm20b/hw_gr_gm20b.h b/include/nvgpu/hw/gm20b/hw_gr_gm20b.h index 5bbb3b9..79ad326 100644 --- a/include/nvgpu/hw/gm20b/hw_gr_gm20b.h +++ b/include/nvgpu/hw/gm20b/hw_gr_gm20b.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2023, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -1396,6 +1396,10 @@ static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void) { return 0x00502400U; } +static inline u32 gr_gpc0_gpccs_ctxsw_mailbox__size_1_v(void) +{ + return 0x00000010U; +} static inline u32 gr_fecs_ctxsw_idlestate_r(void) { return 0x00409420U; @@ -2344,6 +2348,14 @@ static inline u32 gr_gpcs_tpcs_tex_m_dbg2_su_rd_coalesce_en_m(void) { return 0x1U << 4U; } +static inline u32 gr_gpcs_tpcs_tex_m_dbg2_tex_rd_coalesce_en_f(u32 v) +{ + return (v & 0x1U) << 5U; +} +static inline u32 gr_gpcs_tpcs_tex_m_dbg2_tex_rd_coalesce_en_m(void) +{ + return 0x1U << 5U; +} static inline u32 gr_gpccs_falcon_addr_r(void) { return 0x0041a0acU; diff --git a/include/nvgpu/hw/gp106/hw_gr_gp106.h b/include/nvgpu/hw/gp106/hw_gr_gp106.h index 3ebed7e..ac82901 100644 --- a/include/nvgpu/hw/gp106/hw_gr_gp106.h +++ b/include/nvgpu/hw/gp106/hw_gr_gp106.h @@ -1508,6 +1508,10 @@ static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void) { return 0x00502400U; } +static inline u32 gr_gpc0_gpccs_ctxsw_mailbox__size_1_v(void) +{ + return 0x00000010U; +} static inline u32 gr_fecs_ctxsw_idlestate_r(void) { return 0x00409420U; diff --git a/include/nvgpu/hw/gp10b/hw_gr_gp10b.h b/include/nvgpu/hw/gp10b/hw_gr_gp10b.h index f7bc4c2..89c6bba 100644 --- a/include/nvgpu/hw/gp10b/hw_gr_gp10b.h +++ b/include/nvgpu/hw/gp10b/hw_gr_gp10b.h @@ -1584,6 +1584,10 @@ static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void) { return 0x00502400U; } +static inline u32 gr_gpc0_gpccs_ctxsw_mailbox__size_1_v(void) +{ + return 0x00000010U; +} static inline u32 gr_fecs_ctxsw_idlestate_r(void) { return 0x00409420U; diff --git a/include/nvgpu/hw/gv100/hw_gr_gv100.h b/include/nvgpu/hw/gv100/hw_gr_gv100.h index 0f83d6b..3955a63 100644 --- a/include/nvgpu/hw/gv100/hw_gr_gv100.h +++ b/include/nvgpu/hw/gv100/hw_gr_gv100.h @@ -1816,6 +1816,10 @@ static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void) { return 0x00502400U; } +static inline u32 gr_gpc0_gpccs_ctxsw_mailbox__size_1_v(void) +{ + return 0x00000010U; +} static inline u32 gr_fecs_ctxsw_idlestate_r(void) { return 0x00409420U; diff --git a/include/nvgpu/hw/gv11b/hw_gr_gv11b.h b/include/nvgpu/hw/gv11b/hw_gr_gv11b.h index f7d8089..4a3da79 100644 --- a/include/nvgpu/hw/gv11b/hw_gr_gv11b.h +++ b/include/nvgpu/hw/gv11b/hw_gr_gv11b.h @@ -2420,6 +2420,10 @@ static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void) { return 0x00502400U; } +static inline u32 gr_gpc0_gpccs_ctxsw_mailbox__size_1_v(void) +{ + return 0x00000010U; +} static inline u32 gr_fecs_ctxsw_idlestate_r(void) { return 0x00409420U; -- cgit v1.2.2