diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2018-07-09 19:25:40 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-24 19:10:58 -0400 |
commit | 69be500c0b6fab324a34fc0b0f6b80f21a128c7e (patch) | |
tree | 2edc7920defdaface49b538f5a1abbd78aa03bcf /drivers/gpu/nvgpu/gk20a | |
parent | 2c2d9e66710e264d251c0019258eed1dc5bb38f2 (diff) |
gpu: nvgpu: debugfs node to enable/disable ltc_illegal_compstat intr
Added debugfs node under ltc directory with name:
intr_illegal_compstat_enable
Enabling/disabling of ltc_illegal_compstat intr is
possible through debugfs node.
Since ltc state is lost with rail gate, this setting is
cached and will be populated during ltc initialization.
Bug 2099406
Change-Id: I4bf62228dfd2bbb94f87f923f9f4f6e5ad0b07f0
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1774683
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 4934958c..afd18658 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -189,6 +189,7 @@ struct gpu_ops { | |||
189 | void (*isr)(struct gk20a *g); | 189 | void (*isr)(struct gk20a *g); |
190 | u32 (*cbc_fix_config)(struct gk20a *g, int base); | 190 | u32 (*cbc_fix_config)(struct gk20a *g, int base); |
191 | void (*flush)(struct gk20a *g); | 191 | void (*flush)(struct gk20a *g); |
192 | void (*intr_en_illegal_compstat)(struct gk20a *g, bool enable); | ||
192 | } ltc; | 193 | } ltc; |
193 | struct { | 194 | struct { |
194 | void (*isr_stall)(struct gk20a *g, u32 inst_id, u32 pri_base); | 195 | void (*isr_stall)(struct gk20a *g, u32 inst_id, u32 pri_base); |
@@ -1547,6 +1548,8 @@ struct gk20a { | |||
1547 | 1548 | ||
1548 | struct gk20a_ce_app ce_app; | 1549 | struct gk20a_ce_app ce_app; |
1549 | 1550 | ||
1551 | bool ltc_intr_en_illegal_compstat; | ||
1552 | |||
1550 | /* PCI device identifier */ | 1553 | /* PCI device identifier */ |
1551 | u16 pci_vendor_id, pci_device_id; | 1554 | u16 pci_vendor_id, pci_device_id; |
1552 | u16 pci_subsystem_vendor_id, pci_subsystem_device_id; | 1555 | u16 pci_subsystem_vendor_id, pci_subsystem_device_id; |