From 788776c9aa2028a0672c07271e9c06ed684f74a8 Mon Sep 17 00:00:00 2001 From: Aingara Paramakuru Date: Wed, 15 Apr 2015 16:10:30 -0400 Subject: gpu: nvgpu: vgpu: support additional notifications Client notification support is now added for the following: - stalling and non-stalling GR sema release - non-stalling FIFO channel intr - non-stalling CE2 nonblockpipe intr Bug 200097077 Change-Id: Icd3c076d7880e1c9ef1fcc0fc58eed9f23f39277 Signed-off-by: Aingara Paramakuru Reviewed-on: http://git-master/r/736064 (cherry picked from commit 0585d1f14d5a5ae1ccde8ccb7b7daa5593b3d1bc) Reviewed-on: http://git-master/r/759824 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/vgpu/ce2_vgpu.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 drivers/gpu/nvgpu/vgpu/ce2_vgpu.c (limited to 'drivers/gpu/nvgpu/vgpu/ce2_vgpu.c') diff --git a/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c b/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c new file mode 100644 index 00000000..631461f9 --- /dev/null +++ b/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c @@ -0,0 +1,33 @@ +/* + * Virtualized GPU CE2 + * + * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +#include "vgpu/vgpu.h" + +int vgpu_ce2_nonstall_isr(struct gk20a *g, + struct tegra_vgpu_ce2_nonstall_intr_info *info) +{ + gk20a_dbg_fn(""); + + switch (info->type) { + case TEGRA_VGPU_CE2_NONSTALL_INTR_NONBLOCKPIPE: + gk20a_channel_semaphore_wakeup(g); + break; + default: + WARN_ON(1); + break; + } + + return 0; +} -- cgit v1.2.2