gpu: nvgpu: Disable illegal compstat access intr
Terje Bergstrom [Mon, 8 Sep 2014 05:16:18 +0000 (08:16 +0300)]
Disable illegal compstat access interrupt. We access compstat backing
store to handle CDE swizzling.

Also change the magic number for evicted_cb to use a generated value.

Change-Id: I79b299abbffcb90497690ba4fc55d8517a3dbd87
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/496444
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Jussi Rasanen <jrasanen@nvidia.com>
Tested-by: Jussi Rasanen <jrasanen@nvidia.com>

drivers/gpu/nvgpu/gm20b/hw_ltc_gm20b.h
drivers/gpu/nvgpu/gm20b/ltc_gm20b.c

index 8cef53d..467bd66 100644 (file)
@@ -278,6 +278,10 @@ static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void)
 {
        return 0x1 << 20;
 }
+static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void)
+{
+       return 0x1 << 30;
+}
 static inline u32 ltc_ltc0_lts0_intr_r(void)
 {
        return 0x0014040c;
index 788cff6..6e9d6ff 100644 (file)
@@ -192,7 +192,8 @@ static void gm20b_ltc_init_fs_state(struct gk20a *g)
 
        /* Disable LTC interrupts */
        reg = gk20a_readl(g, ltc_ltcs_ltss_intr_r());
-       reg &= ~(1<<20);
+       reg &= ~ltc_ltcs_ltss_intr_en_evicted_cb_m();
+       reg &= ~ltc_ltcs_ltss_intr_en_illegal_compstat_access_m();
        gk20a_writel(g, ltc_ltcs_ltss_intr_r(), reg);
 }