mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: resolve signed/unsigned mismatch
JIRA DNVGPU-143 Change-Id: I0536aff4f994efc3dbd2db949068f8e1345ece9c Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1268107 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Deepak Nibade
parent
849c5317e8
commit
136a9919e6
@@ -461,7 +461,7 @@ static int nvgpu_clk_arb_update_vf_table(struct nvgpu_clk_arb *arb)
|
||||
struct gk20a *g = arb->g;
|
||||
struct nvgpu_clk_vf_table *table;
|
||||
|
||||
int i, j;
|
||||
u32 i, j;
|
||||
int status = 0;
|
||||
u32 gpc2clk_voltuv = 0, mclk_voltuv = 0;
|
||||
u32 gpc2clk_voltuv_sram = 0, mclk_voltuv_sram = 0;
|
||||
@@ -484,14 +484,14 @@ static int nvgpu_clk_arb_update_vf_table(struct nvgpu_clk_arb *arb)
|
||||
&mclk_min, &mclk_max) < 0)
|
||||
goto exit_vf_table;
|
||||
|
||||
if (!clk_domain_get_f_points(arb->g, NVGPU_GPU_CLK_DOMAIN_GPC2CLK,
|
||||
&table->gpc2clk_num_points, arb->gpc2clk_f_points) < 0) {
|
||||
if (clk_domain_get_f_points(arb->g, NVGPU_GPU_CLK_DOMAIN_GPC2CLK,
|
||||
&table->gpc2clk_num_points, arb->gpc2clk_f_points)) {
|
||||
gk20a_err(dev_from_gk20a(g),
|
||||
"failed to fetch GPC2CLK frequency points");
|
||||
goto exit_vf_table;
|
||||
}
|
||||
if (clk_domain_get_f_points(arb->g, NVGPU_GPU_CLK_DOMAIN_MCLK,
|
||||
&table->mclk_num_points, arb->mclk_f_points) < 0) {
|
||||
&table->mclk_num_points, arb->mclk_f_points)) {
|
||||
gk20a_err(dev_from_gk20a(g),
|
||||
"failed to fetch MCLK frequency points");
|
||||
goto exit_vf_table;
|
||||
@@ -767,7 +767,7 @@ static void nvgpu_clk_arb_run_arbiter_cb(struct work_struct *work)
|
||||
debug->switch_std = 0;
|
||||
} else {
|
||||
s64 prev_avg;
|
||||
u64 curr = (t1-t0)/1000;
|
||||
s64 curr = (t1-t0)/1000;
|
||||
|
||||
debug->switch_max = curr > debug->switch_max ?
|
||||
curr : debug->switch_max;
|
||||
@@ -1014,7 +1014,7 @@ static void nvgpu_clk_arb_find_vf_point(struct nvgpu_clk_arb *arb,
|
||||
u32 gpc2clk_voltuv, gpc2clk_voltuv_sram;
|
||||
u32 mclk_voltuv, mclk_voltuv_sram;
|
||||
struct nvgpu_clk_vf_table *table;
|
||||
int index;
|
||||
u32 index;
|
||||
|
||||
gpc2clk_target = *gpc2clk;
|
||||
mclk_target = *mclk;
|
||||
|
||||
@@ -51,7 +51,7 @@ static u16 gp106_clk_get_rate(struct gk20a *g, u32 api_domain)
|
||||
{
|
||||
struct clk_gk20a *clk = &g->clk;
|
||||
u32 freq_khz;
|
||||
int i;
|
||||
u32 i;
|
||||
struct namemap_cfg *c = NULL;
|
||||
|
||||
for (i = 0; i < clk->namemap_num; i++) {
|
||||
|
||||
Reference in New Issue
Block a user