mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Add flag gk20a->is_virtual
Instead of calling gk20a_gpu_is_virtual() which requires struct device pointer fill in flag gk20a->is_virtual and use that. JIRA NVGPU-16 Change-Id: I24382c041ee69940c703ca1ea7f5c667c5731cd1 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1473707 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c43c3f9c2f
commit
744e2d202e
@@ -1185,7 +1185,7 @@ static int nvgpu_ioctl_channel_reg_ops(struct dbg_session_gk20a *dbg_s,
|
||||
}
|
||||
|
||||
/* be sure that ctx info is in place */
|
||||
if (!gk20a_gpu_is_virtual(dbg_s->dev) &&
|
||||
if (!g->is_virtual &&
|
||||
!gr_context_info_available(dbg_s, &g->gr)) {
|
||||
nvgpu_err(g, "gr context data not available\n");
|
||||
return -ENODEV;
|
||||
@@ -1196,7 +1196,7 @@ static int nvgpu_ioctl_channel_reg_ops(struct dbg_session_gk20a *dbg_s,
|
||||
* on other channels */
|
||||
nvgpu_mutex_acquire(&g->dbg_sessions_lock);
|
||||
|
||||
if (!dbg_s->is_pg_disabled && !gk20a_gpu_is_virtual(dbg_s->dev)) {
|
||||
if (!dbg_s->is_pg_disabled && !g->is_virtual) {
|
||||
/* In the virtual case, the server will handle
|
||||
* disabling/enabling powergating when processing reg ops
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user