diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-07-27 15:15:19 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-03 11:44:58 -0400 |
commit | e1df72771ba5e5331888f5bfc171f71bd8f4aed7 (patch) | |
tree | 26e367639be69587c2ba577a2b0a4ea8cb91efce /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 11e29991acd25baef5b786605e136b5e71737b8e (diff) |
gpu: nvgpu: Move isr related fields from gk20a
Move fields in struct gk20a related to interrupt handling into
Linux specific nvgpu_os_linux. At the same time move the counter
logic from function in HAL into Linux specific code, and two Linux
specific power management functions from generic gk20a.c to Linux
specific module.c.
JIRA NVGPU-123
Change-Id: I0a08fd2e81297c8dff7a85c263ded928496c4de0
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1528177
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sourab Gupta <sourabg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 90c35a7b..8d9318b2 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1042,10 +1042,6 @@ struct gk20a { | |||
1042 | 1042 | ||
1043 | atomic_t usage_count; | 1043 | atomic_t usage_count; |
1044 | 1044 | ||
1045 | atomic_t nonstall_ops; | ||
1046 | struct work_struct nonstall_fn_work; | ||
1047 | struct workqueue_struct *nonstall_work_queue; | ||
1048 | |||
1049 | struct kref refcount; | 1045 | struct kref refcount; |
1050 | 1046 | ||
1051 | struct resource *reg_mem; | 1047 | struct resource *reg_mem; |
@@ -1224,15 +1220,6 @@ struct gk20a { | |||
1224 | u32 max_ltc_count; | 1220 | u32 max_ltc_count; |
1225 | u32 ltc_count; | 1221 | u32 ltc_count; |
1226 | 1222 | ||
1227 | atomic_t hw_irq_stall_count; | ||
1228 | atomic_t hw_irq_nonstall_count; | ||
1229 | |||
1230 | atomic_t sw_irq_stall_last_handled; | ||
1231 | wait_queue_head_t sw_irq_stall_last_handled_wq; | ||
1232 | |||
1233 | atomic_t sw_irq_nonstall_last_handled; | ||
1234 | wait_queue_head_t sw_irq_nonstall_last_handled_wq; | ||
1235 | |||
1236 | struct gk20a_channel_worker { | 1223 | struct gk20a_channel_worker { |
1237 | struct nvgpu_thread poll_task; | 1224 | struct nvgpu_thread poll_task; |
1238 | atomic_t put; | 1225 | atomic_t put; |
@@ -1485,7 +1472,6 @@ int __gk20a_do_idle(struct gk20a *g, bool force_reset); | |||
1485 | int __gk20a_do_unidle(struct gk20a *g); | 1472 | int __gk20a_do_unidle(struct gk20a *g); |
1486 | 1473 | ||
1487 | int gk20a_can_busy(struct gk20a *g); | 1474 | int gk20a_can_busy(struct gk20a *g); |
1488 | void gk20a_driver_start_unload(struct gk20a *g); | ||
1489 | int gk20a_wait_for_idle(struct device *dev); | 1475 | int gk20a_wait_for_idle(struct device *dev); |
1490 | 1476 | ||
1491 | #define NVGPU_GPU_ARCHITECTURE_SHIFT 4 | 1477 | #define NVGPU_GPU_ARCHITECTURE_SHIFT 4 |