diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-03-20 18:30:07 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-29 21:54:58 -0400 |
commit | 0d97b549892be7b91d4497f055c62e681e12a075 (patch) | |
tree | 37a444ce4139950be7af5afbbd256c9ba87ac1a3 /drivers/gpu/nvgpu/include | |
parent | 8673813634ed3095cba228dd0ee5f1e49ac325ee (diff) |
gpu: nvgpu: vgpu: add TEGRA_VGPU_EVENT_SET_ERROR_NOTIFIER
RM server will notify clients with TEGRA_VGPU_EVENT_SET_ERROR_NOTIFIER
whenever .set_error_notifier is called. Clients will set error notifier
accordingly.
Jira VQRM-3058
Change-Id: I2f435335867cce5dfd7fddb718ac6a1ff7cd66ae
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1679711
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h index 43a6d079..ba7d2ba2 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | |||
@@ -714,6 +714,11 @@ struct tegra_vgpu_channel_cleanup { | |||
714 | u32 chid; | 714 | u32 chid; |
715 | }; | 715 | }; |
716 | 716 | ||
717 | struct tegra_vgpu_channel_set_error_notifier { | ||
718 | u32 chid; | ||
719 | u32 error; | ||
720 | }; | ||
721 | |||
717 | enum { | 722 | enum { |
718 | 723 | ||
719 | TEGRA_VGPU_INTR_GR = 0, | 724 | TEGRA_VGPU_INTR_GR = 0, |
@@ -732,6 +737,7 @@ enum { | |||
732 | TEGRA_VGPU_EVENT_SM_ESR = 4, | 737 | TEGRA_VGPU_EVENT_SM_ESR = 4, |
733 | TEGRA_VGPU_EVENT_SEMAPHORE_WAKEUP = 5, | 738 | TEGRA_VGPU_EVENT_SEMAPHORE_WAKEUP = 5, |
734 | TEGRA_VGPU_EVENT_CHANNEL_CLEANUP = 6, | 739 | TEGRA_VGPU_EVENT_CHANNEL_CLEANUP = 6, |
740 | TEGRA_VGPU_EVENT_SET_ERROR_NOTIFIER = 7, | ||
735 | }; | 741 | }; |
736 | 742 | ||
737 | struct tegra_vgpu_intr_msg { | 743 | struct tegra_vgpu_intr_msg { |
@@ -748,6 +754,7 @@ struct tegra_vgpu_intr_msg { | |||
748 | struct tegra_vgpu_sm_esr_info sm_esr; | 754 | struct tegra_vgpu_sm_esr_info sm_esr; |
749 | struct tegra_vgpu_semaphore_wakeup sem_wakeup; | 755 | struct tegra_vgpu_semaphore_wakeup sem_wakeup; |
750 | struct tegra_vgpu_channel_cleanup ch_cleanup; | 756 | struct tegra_vgpu_channel_cleanup ch_cleanup; |
757 | struct tegra_vgpu_channel_set_error_notifier set_error_notifier; | ||
751 | char padding[32]; | 758 | char padding[32]; |
752 | } info; | 759 | } info; |
753 | }; | 760 | }; |