mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: add GPU_LIT_NUM_SM_PER_TPC litter value
Required for multiple SM support in t19x JIRA GPUT19X-75 Change-Id: I14e19700849faf5180813e82179707a78eb977a5 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master/r/1510358 GVS: Gerrit_Virtual_Submit Reviewed-by: David Martinez Nieto <dmartineznie@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
5ad02b2d01
commit
02d1e7ae97
@@ -89,6 +89,9 @@ static int gk20a_get_litter_value(struct gk20a *g, int value)
|
|||||||
case GPU_LIT_NUM_TPC_PER_GPC:
|
case GPU_LIT_NUM_TPC_PER_GPC:
|
||||||
ret = proj_scal_litter_num_tpc_per_gpc_v();
|
ret = proj_scal_litter_num_tpc_per_gpc_v();
|
||||||
break;
|
break;
|
||||||
|
case GPU_LIT_NUM_SM_PER_TPC:
|
||||||
|
ret = 1;
|
||||||
|
break;
|
||||||
case GPU_LIT_NUM_FBPS:
|
case GPU_LIT_NUM_FBPS:
|
||||||
ret = proj_scal_litter_num_fbps_v();
|
ret = proj_scal_litter_num_fbps_v();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -128,6 +128,9 @@ static int gm20b_get_litter_value(struct gk20a *g, int value)
|
|||||||
case GPU_LIT_NUM_TPC_PER_GPC:
|
case GPU_LIT_NUM_TPC_PER_GPC:
|
||||||
ret = proj_scal_litter_num_tpc_per_gpc_v();
|
ret = proj_scal_litter_num_tpc_per_gpc_v();
|
||||||
break;
|
break;
|
||||||
|
case GPU_LIT_NUM_SM_PER_TPC:
|
||||||
|
ret = proj_scal_litter_num_sm_per_tpc_v();
|
||||||
|
break;
|
||||||
case GPU_LIT_NUM_FBPS:
|
case GPU_LIT_NUM_FBPS:
|
||||||
ret = proj_scal_litter_num_fbps_v();
|
ret = proj_scal_litter_num_fbps_v();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -134,6 +134,9 @@ static int gp106_get_litter_value(struct gk20a *g, int value)
|
|||||||
case GPU_LIT_NUM_PES_PER_GPC:
|
case GPU_LIT_NUM_PES_PER_GPC:
|
||||||
ret = proj_scal_litter_num_pes_per_gpc_v();
|
ret = proj_scal_litter_num_pes_per_gpc_v();
|
||||||
break;
|
break;
|
||||||
|
case GPU_LIT_NUM_SM_PER_TPC:
|
||||||
|
ret = proj_scal_litter_num_sm_per_tpc_v();
|
||||||
|
break;
|
||||||
case GPU_LIT_NUM_ZCULL_BANKS:
|
case GPU_LIT_NUM_ZCULL_BANKS:
|
||||||
ret = proj_scal_litter_num_zcull_banks_v();
|
ret = proj_scal_litter_num_zcull_banks_v();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -136,6 +136,9 @@ static int gp10b_get_litter_value(struct gk20a *g, int value)
|
|||||||
case GPU_LIT_NUM_TPC_PER_GPC:
|
case GPU_LIT_NUM_TPC_PER_GPC:
|
||||||
ret = proj_scal_litter_num_tpc_per_gpc_v();
|
ret = proj_scal_litter_num_tpc_per_gpc_v();
|
||||||
break;
|
break;
|
||||||
|
case GPU_LIT_NUM_SM_PER_TPC:
|
||||||
|
ret = proj_scal_litter_num_sm_per_tpc_v();
|
||||||
|
break;
|
||||||
case GPU_LIT_NUM_FBPS:
|
case GPU_LIT_NUM_FBPS:
|
||||||
ret = proj_scal_litter_num_fbps_v();
|
ret = proj_scal_litter_num_fbps_v();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
@@ -122,6 +122,10 @@ static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void)
|
|||||||
{
|
{
|
||||||
return 0x00000002;
|
return 0x00000002;
|
||||||
}
|
}
|
||||||
|
static inline u32 proj_scal_litter_num_sm_per_tpc_v(void)
|
||||||
|
{
|
||||||
|
return 0x00000001;
|
||||||
|
}
|
||||||
static inline u32 proj_scal_litter_num_fbps_v(void)
|
static inline u32 proj_scal_litter_num_fbps_v(void)
|
||||||
{
|
{
|
||||||
return 0x00000001;
|
return 0x00000001;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
@@ -130,6 +130,10 @@ static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void)
|
|||||||
{
|
{
|
||||||
return 0x00000005;
|
return 0x00000005;
|
||||||
}
|
}
|
||||||
|
static inline u32 proj_scal_litter_num_sm_per_tpc_v(void)
|
||||||
|
{
|
||||||
|
return 0x00000001;
|
||||||
|
}
|
||||||
static inline u32 proj_scal_litter_num_fbps_v(void)
|
static inline u32 proj_scal_litter_num_fbps_v(void)
|
||||||
{
|
{
|
||||||
return 0x00000006;
|
return 0x00000006;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
@@ -130,6 +130,10 @@ static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void)
|
|||||||
{
|
{
|
||||||
return 0x00000002;
|
return 0x00000002;
|
||||||
}
|
}
|
||||||
|
static inline u32 proj_scal_litter_num_sm_per_tpc_v(void)
|
||||||
|
{
|
||||||
|
return 0x00000001;
|
||||||
|
}
|
||||||
static inline u32 proj_scal_litter_num_fbps_v(void)
|
static inline u32 proj_scal_litter_num_fbps_v(void)
|
||||||
{
|
{
|
||||||
return 0x00000001;
|
return 0x00000001;
|
||||||
|
|||||||
Reference in New Issue
Block a user