mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: cleanup gr_priv header include
Add new common gr functions nvgpu_gr_remove_support nvgpu_gr_sw_ready nvgpu_gr_override_ecc_val These functions help to avoid gr_priv.h include outside some gr files. Jira NVGPU-3218 Change-Id: I5d59a61b8b8c63c29a0b2407b961fb57f8e400bd Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2107700 GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> 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
e22c4cbbec
commit
7e396a7e9f
@@ -52,7 +52,6 @@
|
||||
#include <nvgpu/pmu/pmu_pstate.h>
|
||||
#include <nvgpu/cyclestats_snapshot.h>
|
||||
|
||||
#include "common/gr/gr_priv.h"
|
||||
#include "platform_gk20a.h"
|
||||
#include "sysfs.h"
|
||||
#include "vgpu/vgpu_linux.h"
|
||||
@@ -760,8 +759,7 @@ void gk20a_remove_support(struct gk20a *g)
|
||||
g->sec2.remove_support(&g->sec2);
|
||||
}
|
||||
|
||||
if (g->gr->remove_support)
|
||||
g->gr->remove_support(g);
|
||||
nvgpu_gr_remove_support(g);
|
||||
|
||||
if (g->mm.remove_ce_support)
|
||||
g->mm.remove_ce_support(&g->mm);
|
||||
@@ -1236,7 +1234,7 @@ void gk20a_driver_start_unload(struct gk20a *g)
|
||||
nvgpu_set_enabled(g, NVGPU_DRIVER_IS_DYING, true);
|
||||
/* GR SW ready needs to be invalidated at this time with the busy lock
|
||||
* held to prevent a racing condition on the gr/mm code */
|
||||
g->gr->sw_ready = false;
|
||||
nvgpu_gr_sw_ready(g, false);
|
||||
g->sw_ready = false;
|
||||
up_write(&l->busy_lock);
|
||||
|
||||
@@ -1286,7 +1284,7 @@ static int nvgpu_read_fuse_overrides(struct gk20a *g)
|
||||
g->tpc_fs_mask_user = ~value;
|
||||
break;
|
||||
case GP10B_FUSE_OPT_ECC_EN:
|
||||
g->gr->fecs_feature_override_ecc_val = value;
|
||||
nvgpu_gr_override_ecc_val(g, value);
|
||||
break;
|
||||
default:
|
||||
nvgpu_err(g, "ignore unknown fuse override %08x", fuse);
|
||||
|
||||
Reference in New Issue
Block a user