diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c index 40529471..114386a2 100644 --- a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c | |||
@@ -31,13 +31,13 @@ | |||
31 | #include <nvgpu/dma.h> | 31 | #include <nvgpu/dma.h> |
32 | #include <nvgpu/mm.h> | 32 | #include <nvgpu/mm.h> |
33 | #include <nvgpu/sizes.h> | 33 | #include <nvgpu/sizes.h> |
34 | #include <nvgpu/barrier.h> | ||
35 | #include <nvgpu/log.h> | ||
36 | #include <nvgpu/bug.h> | ||
34 | 37 | ||
35 | #include "gk20a.h" | 38 | #include "gk20a.h" |
36 | #include "css_gr_gk20a.h" | 39 | #include "css_gr_gk20a.h" |
37 | 40 | ||
38 | #include <nvgpu/log.h> | ||
39 | #include <nvgpu/bug.h> | ||
40 | |||
41 | #include <nvgpu/hw/gk20a/hw_perf_gk20a.h> | 41 | #include <nvgpu/hw/gk20a/hw_perf_gk20a.h> |
42 | #include <nvgpu/hw/gk20a/hw_mc_gk20a.h> | 42 | #include <nvgpu/hw/gk20a/hw_mc_gk20a.h> |
43 | 43 | ||
@@ -501,6 +501,8 @@ int gr_gk20a_css_attach(struct channel_gk20a *ch, | |||
501 | perfmon_count > CSS_MAX_PERFMON_IDS - CSS_FIRST_PERFMON_ID) | 501 | perfmon_count > CSS_MAX_PERFMON_IDS - CSS_FIRST_PERFMON_ID) |
502 | return -EINVAL; | 502 | return -EINVAL; |
503 | 503 | ||
504 | nvgpu_speculation_barrier(); | ||
505 | |||
504 | gr = &g->gr; | 506 | gr = &g->gr; |
505 | 507 | ||
506 | nvgpu_mutex_acquire(&gr->cs_lock); | 508 | nvgpu_mutex_acquire(&gr->cs_lock); |