mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Remove code to save hshub config regs
We do not use the stored hshub_config* register values. Remove these redundant fields from nvlink data structure too. This also allows us to not #include a FB hardware header in nvlink. JIRA NVGPU-966 Change-Id: I3be169a958ec17370b55889d1e1fbabb887a79fd Signed-off-by: Tejal Kudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1794955 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
70c20bb75b
commit
9feeae658a
@@ -45,7 +45,6 @@
|
||||
#include <nvgpu/hw/gv100/hw_trim_gv100.h>
|
||||
#include <nvgpu/hw/gv100/hw_nvtlc_gv100.h>
|
||||
|
||||
#include <nvgpu/hw/gv100/hw_fb_gv100.h>
|
||||
#include <nvgpu/hw/gv100/hw_mc_gv100.h>
|
||||
|
||||
#define NVLINK_PLL_ON_TIMEOUT_MS 30
|
||||
@@ -1367,12 +1366,6 @@ static void gv100_nvlink_common_intr_enable(struct gk20a *g,
|
||||
{
|
||||
u32 reg, i;
|
||||
|
||||
/* Init HS HUB SW state */
|
||||
g->nvlink.hshub_config0 = gk20a_readl(g, fb_hshub_config0_r());
|
||||
g->nvlink.hshub_config1 = gk20a_readl(g, fb_hshub_config1_r());
|
||||
g->nvlink.hshub_config2 = gk20a_readl(g, fb_hshub_config2_r());
|
||||
g->nvlink.hshub_config6 = gk20a_readl(g, fb_hshub_config6_r());
|
||||
|
||||
/* Init IOCTRL */
|
||||
for_each_set_bit(i, &mask, 32) {
|
||||
reg = IOCTRL_REG_RD32(g, ioctrl_link_intr_0_mask_r(i));
|
||||
|
||||
@@ -216,12 +216,6 @@ struct nvgpu_nvlink_dev {
|
||||
|
||||
enum nvgpu_nvlink_speed speed;
|
||||
|
||||
/* hshub settings */
|
||||
u32 hshub_config0;
|
||||
u32 hshub_config1;
|
||||
u32 hshub_config2;
|
||||
u32 hshub_config6;
|
||||
|
||||
/* tlc cached errors */
|
||||
u32 tlc_rx_err_status_0[NVLINK_MAX_LINKS_SW];
|
||||
u32 tlc_rx_err_status_1[NVLINK_MAX_LINKS_SW];
|
||||
|
||||
Reference in New Issue
Block a user