From 0d97b549892be7b91d4497f055c62e681e12a075 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Tue, 20 Mar 2018 15:30:07 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1679711 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers/gpu/nvgpu/include') 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 { u32 chid; }; +struct tegra_vgpu_channel_set_error_notifier { + u32 chid; + u32 error; +}; + enum { TEGRA_VGPU_INTR_GR = 0, @@ -732,6 +737,7 @@ enum { TEGRA_VGPU_EVENT_SM_ESR = 4, TEGRA_VGPU_EVENT_SEMAPHORE_WAKEUP = 5, TEGRA_VGPU_EVENT_CHANNEL_CLEANUP = 6, + TEGRA_VGPU_EVENT_SET_ERROR_NOTIFIER = 7, }; struct tegra_vgpu_intr_msg { @@ -748,6 +754,7 @@ struct tegra_vgpu_intr_msg { struct tegra_vgpu_sm_esr_info sm_esr; struct tegra_vgpu_semaphore_wakeup sem_wakeup; struct tegra_vgpu_channel_cleanup ch_cleanup; + struct tegra_vgpu_channel_set_error_notifier set_error_notifier; char padding[32]; } info; }; -- cgit v1.2.2