mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: gv11b: use fuse control read/write APIs for K4.4
Use fuse control read/write APIs when accessing fuse control registers for Kernel version 4.4 Bug 200243956 Change-Id: I3d78ec2733b5f56615fa0b588664570c85557e63 Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com> Reviewed-on: http://git-master/r/1245826 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
a42d3072fb
commit
68ff0c8f30
@@ -16,6 +16,7 @@
|
||||
#include "gk20a/gk20a.h" /* FERMI and MAXWELL classes defined here */
|
||||
#include <linux/delay.h>
|
||||
#include <linux/tegra-fuse.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#include "gk20a/gr_gk20a.h"
|
||||
#include "gk20a/semaphore_gk20a.h"
|
||||
@@ -1135,8 +1136,13 @@ static void gr_gv11b_init_cyclestats(struct gk20a *g)
|
||||
|
||||
static void gr_gv11b_set_gpc_tpc_mask(struct gk20a *g, u32 gpc_index)
|
||||
{
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
|
||||
tegra_fuse_writel(0x1, FUSE_FUSEBYPASS_0);
|
||||
tegra_fuse_writel(0x0, FUSE_WRITE_ACCESS_SW_0);
|
||||
#else
|
||||
tegra_fuse_control_write(0x1, FUSE_FUSEBYPASS_0);
|
||||
tegra_fuse_control_write(0x0, FUSE_WRITE_ACCESS_SW_0);
|
||||
#endif
|
||||
|
||||
if (g->gr.gpc_tpc_mask[gpc_index] == 0x1)
|
||||
tegra_fuse_writel(0x2, FUSE_OPT_GPU_TPC0_DISABLE_0);
|
||||
|
||||
Reference in New Issue
Block a user