diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2018-07-09 15:30:50 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-24 19:10:37 -0400 |
commit | 2c2d9e66710e264d251c0019258eed1dc5bb38f2 (patch) | |
tree | 202740c630da7adea73890a889d9fedb302c0237 /drivers/gpu/nvgpu | |
parent | d3b8415948de8c9ffe2f2fa66340dd7e71a894e6 (diff) |
gpu: nvgpu: gv1xx: disable ltc_illegal_compstat interrupt
Illegal compstat interrupt indicates an unexpected compression status
given the kind. Since dirty tile mappings expected to have discrepancies
in compbit state, so disabling illegal compstat interrupt.
Bug 2099406
Change-Id: I90207c6bc8a8cfa656ea9a0b4f5605106751c12e
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1774572
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_ltc_gv100.h | 14 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h | 14 |
3 files changed, 27 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c index db797bde..3cea4cd4 100644 --- a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | |||
@@ -70,6 +70,7 @@ void gv11b_ltc_init_fs_state(struct gk20a *g) | |||
70 | /* Disable LTC interrupts */ | 70 | /* Disable LTC interrupts */ |
71 | reg = gk20a_readl(g, ltc_ltcs_ltss_intr_r()); | 71 | reg = gk20a_readl(g, ltc_ltcs_ltss_intr_r()); |
72 | reg &= ~ltc_ltcs_ltss_intr_en_evicted_cb_m(); | 72 | reg &= ~ltc_ltcs_ltss_intr_en_evicted_cb_m(); |
73 | reg &= ~ltc_ltcs_ltss_intr_en_illegal_compstat_m(); | ||
73 | reg &= ~ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(); | 74 | reg &= ~ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(); |
74 | nvgpu_writel_check(g, ltc_ltcs_ltss_intr_r(), reg); | 75 | nvgpu_writel_check(g, ltc_ltcs_ltss_intr_r(), reg); |
75 | 76 | ||
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_ltc_gv100.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_ltc_gv100.h index 3543f0b7..042cb7d1 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_ltc_gv100.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_ltc_gv100.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-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"), |
@@ -364,6 +364,18 @@ static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void) | |||
364 | { | 364 | { |
365 | return 0x1U << 20U; | 365 | return 0x1U << 20U; |
366 | } | 366 | } |
367 | static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_m(void) | ||
368 | { | ||
369 | return 0x1U << 21U; | ||
370 | } | ||
371 | static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_enabled_f(void) | ||
372 | { | ||
373 | return 0x200000U; | ||
374 | } | ||
375 | static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_disabled_f(void) | ||
376 | { | ||
377 | return 0x0U; | ||
378 | } | ||
367 | static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void) | 379 | static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void) |
368 | { | 380 | { |
369 | return 0x1U << 30U; | 381 | return 0x1U << 30U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h index 769bcf0c..342f90da 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.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"), |
@@ -364,6 +364,18 @@ static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void) | |||
364 | { | 364 | { |
365 | return 0x1U << 20U; | 365 | return 0x1U << 20U; |
366 | } | 366 | } |
367 | static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_m(void) | ||
368 | { | ||
369 | return 0x1U << 21U; | ||
370 | } | ||
371 | static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_enabled_f(void) | ||
372 | { | ||
373 | return 0x200000U; | ||
374 | } | ||
375 | static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_disabled_f(void) | ||
376 | { | ||
377 | return 0x0U; | ||
378 | } | ||
367 | static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void) | 379 | static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void) |
368 | { | 380 | { |
369 | return 0x1U << 30U; | 381 | return 0x1U << 30U; |