diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/as.c | 5 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/fb/fb_gv11b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/pmu/pmu.c | 5 |
3 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/as.c b/drivers/gpu/nvgpu/common/as.c index 5458614e..75537ecc 100644 --- a/drivers/gpu/nvgpu/common/as.c +++ b/drivers/gpu/nvgpu/common/as.c | |||
@@ -168,3 +168,8 @@ release_fail: | |||
168 | 168 | ||
169 | return err; | 169 | return err; |
170 | } | 170 | } |
171 | |||
172 | struct gk20a *gk20a_from_as(struct gk20a_as *as) | ||
173 | { | ||
174 | return container_of(as, struct gk20a, as); | ||
175 | } | ||
diff --git a/drivers/gpu/nvgpu/common/fb/fb_gv11b.c b/drivers/gpu/nvgpu/common/fb/fb_gv11b.c index 53f04188..a7e5de68 100644 --- a/drivers/gpu/nvgpu/common/fb/fb_gv11b.c +++ b/drivers/gpu/nvgpu/common/fb/fb_gv11b.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <nvgpu/barrier.h> | 29 | #include <nvgpu/barrier.h> |
30 | #include <nvgpu/bug.h> | 30 | #include <nvgpu/bug.h> |
31 | #include <nvgpu/soc.h> | 31 | #include <nvgpu/soc.h> |
32 | #include <nvgpu/ptimer.h> | ||
32 | 33 | ||
33 | #include "gk20a/gk20a.h" | 34 | #include "gk20a/gk20a.h" |
34 | #include "gk20a/mm_gk20a.h" | 35 | #include "gk20a/mm_gk20a.h" |
diff --git a/drivers/gpu/nvgpu/common/pmu/pmu.c b/drivers/gpu/nvgpu/common/pmu/pmu.c index c642a7bc..b9ac50be 100644 --- a/drivers/gpu/nvgpu/common/pmu/pmu.c +++ b/drivers/gpu/nvgpu/common/pmu/pmu.c | |||
@@ -594,3 +594,8 @@ void nvgpu_pmu_surface_free(struct gk20a *g, struct nvgpu_mem *mem) | |||
594 | nvgpu_dma_free(g, mem); | 594 | nvgpu_dma_free(g, mem); |
595 | memset(mem, 0, sizeof(struct nvgpu_mem)); | 595 | memset(mem, 0, sizeof(struct nvgpu_mem)); |
596 | } | 596 | } |
597 | |||
598 | struct gk20a *gk20a_from_pmu(struct nvgpu_pmu *pmu) | ||
599 | { | ||
600 | return container_of(pmu, struct gk20a, pmu); | ||
601 | } | ||