diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-10-02 19:13:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-13 18:20:07 -0400 |
commit | 3d343c9eeaa3415851d1c71b8815eb7dc2677b5a (patch) | |
tree | 4b127f2cb3b0e79a33876456f02e04f81ee51fe6 /drivers/gpu/nvgpu/include | |
parent | be3750bc9eb60f8696c20b7298cc282eea17ac1b (diff) |
gpu: nvgpu: enhance pbdma debug info
Enhanced pbdma error output to print pbdma interrupt
error.
Generated following hw definitions to dump relevant data:
pbdma_gp_shadow_0_r
pbdma_gp_shadow_1_r
Updated gk20a_dump_pbdma_status to dump this additional
info:
pbdma_gp_put_r
pbdma_gp_get_r
pbdma_gp_shadow_0_r
pbdma_gp_shadow_1_r
Bug 2003671
Change-Id: Iaa75d936e00470a2b8d1151f60dbeb741b3f9bce
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1572182
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
4 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_pbdma_gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_pbdma_gk20a.h index 8f30654f..338edef2 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_pbdma_gk20a.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_pbdma_gk20a.h | |||
@@ -204,6 +204,14 @@ static inline u32 pbdma_hdr_shadow_r(u32 i) | |||
204 | { | 204 | { |
205 | return 0x00040118U + i*8192U; | 205 | return 0x00040118U + i*8192U; |
206 | } | 206 | } |
207 | static inline u32 pbdma_gp_shadow_0_r(u32 i) | ||
208 | { | ||
209 | return 0x00040110U + i*8192U; | ||
210 | } | ||
211 | static inline u32 pbdma_gp_shadow_1_r(u32 i) | ||
212 | { | ||
213 | return 0x00040114U + i*8192U; | ||
214 | } | ||
207 | static inline u32 pbdma_subdevice_r(u32 i) | 215 | static inline u32 pbdma_subdevice_r(u32 i) |
208 | { | 216 | { |
209 | return 0x00040094U + i*8192U; | 217 | return 0x00040094U + i*8192U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_pbdma_gm20b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_pbdma_gm20b.h index 46edf7aa..b8d7bbe4 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_pbdma_gm20b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_pbdma_gm20b.h | |||
@@ -188,6 +188,14 @@ static inline u32 pbdma_hdr_shadow_r(u32 i) | |||
188 | { | 188 | { |
189 | return 0x00040118U + i*8192U; | 189 | return 0x00040118U + i*8192U; |
190 | } | 190 | } |
191 | static inline u32 pbdma_gp_shadow_0_r(u32 i) | ||
192 | { | ||
193 | return 0x00040110U + i*8192U; | ||
194 | } | ||
195 | static inline u32 pbdma_gp_shadow_1_r(u32 i) | ||
196 | { | ||
197 | return 0x00040114U + i*8192U; | ||
198 | } | ||
191 | static inline u32 pbdma_subdevice_r(u32 i) | 199 | static inline u32 pbdma_subdevice_r(u32 i) |
192 | { | 200 | { |
193 | return 0x00040094U + i*8192U; | 201 | return 0x00040094U + i*8192U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_pbdma_gp106.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_pbdma_gp106.h index 15531d53..dad6317d 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_pbdma_gp106.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_pbdma_gp106.h | |||
@@ -188,6 +188,14 @@ static inline u32 pbdma_hdr_shadow_r(u32 i) | |||
188 | { | 188 | { |
189 | return 0x00040118U + i*8192U; | 189 | return 0x00040118U + i*8192U; |
190 | } | 190 | } |
191 | static inline u32 pbdma_gp_shadow_0_r(u32 i) | ||
192 | { | ||
193 | return 0x00040110U + i*8192U; | ||
194 | } | ||
195 | static inline u32 pbdma_gp_shadow_1_r(u32 i) | ||
196 | { | ||
197 | return 0x00040114U + i*8192U; | ||
198 | } | ||
191 | static inline u32 pbdma_subdevice_r(u32 i) | 199 | static inline u32 pbdma_subdevice_r(u32 i) |
192 | { | 200 | { |
193 | return 0x00040094U + i*8192U; | 201 | return 0x00040094U + i*8192U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h index d49cc95f..4f45f824 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h | |||
@@ -188,6 +188,14 @@ static inline u32 pbdma_hdr_shadow_r(u32 i) | |||
188 | { | 188 | { |
189 | return 0x00040118U + i*8192U; | 189 | return 0x00040118U + i*8192U; |
190 | } | 190 | } |
191 | static inline u32 pbdma_gp_shadow_0_r(u32 i) | ||
192 | { | ||
193 | return 0x00040110U + i*8192U; | ||
194 | } | ||
195 | static inline u32 pbdma_gp_shadow_1_r(u32 i) | ||
196 | { | ||
197 | return 0x00040114U + i*8192U; | ||
198 | } | ||
191 | static inline u32 pbdma_subdevice_r(u32 i) | 199 | static inline u32 pbdma_subdevice_r(u32 i) |
192 | { | 200 | { |
193 | return 0x00040094U + i*8192U; | 201 | return 0x00040094U + i*8192U; |