mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: fix MISRA 10.3 violation in gr falcon
Fixed error associated with implicit conversion of un-signed to signed by making all variables involved to un-signed. JIRA NVGPU-3226 Change-Id: I8e2f2a77dd295d0ab56d2572506cb2392f21985f Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2107661 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User 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
310c77083b
commit
e5f95a9ca2
@@ -229,18 +229,18 @@ void gm20b_gr_falcon_start_fecs(struct gk20a *g)
|
||||
|
||||
static void gm20b_gr_falcon_wait_for_fecs_arb_idle(struct gk20a *g)
|
||||
{
|
||||
int retries = FECS_ARB_CMD_TIMEOUT_MAX_US /
|
||||
u32 retries = FECS_ARB_CMD_TIMEOUT_MAX_US /
|
||||
FECS_ARB_CMD_TIMEOUT_DEFAULT_US;
|
||||
u32 val;
|
||||
|
||||
val = nvgpu_readl(g, gr_fecs_arb_ctx_cmd_r());
|
||||
while ((gr_fecs_arb_ctx_cmd_cmd_v(val) != 0U) && (retries != 0)) {
|
||||
while ((gr_fecs_arb_ctx_cmd_cmd_v(val) != 0U) && (retries != 0U)) {
|
||||
nvgpu_udelay(FECS_ARB_CMD_TIMEOUT_DEFAULT_US);
|
||||
retries--;
|
||||
val = nvgpu_readl(g, gr_fecs_arb_ctx_cmd_r());
|
||||
}
|
||||
|
||||
if (retries == 0) {
|
||||
if (retries == 0U) {
|
||||
nvgpu_err(g, "arbiter cmd timeout, fecs arb ctx cmd: 0x%08x",
|
||||
nvgpu_readl(g, gr_fecs_arb_ctx_cmd_r()));
|
||||
}
|
||||
@@ -249,11 +249,11 @@ static void gm20b_gr_falcon_wait_for_fecs_arb_idle(struct gk20a *g)
|
||||
FECS_ARB_CMD_TIMEOUT_DEFAULT_US;
|
||||
while (((nvgpu_readl(g, gr_fecs_ctxsw_status_1_r()) &
|
||||
gr_fecs_ctxsw_status_1_arb_busy_m()) != 0U) &&
|
||||
(retries != 0)) {
|
||||
(retries != 0U)) {
|
||||
nvgpu_udelay(FECS_ARB_CMD_TIMEOUT_DEFAULT_US);
|
||||
retries--;
|
||||
}
|
||||
if (retries == 0) {
|
||||
if (retries == 0U) {
|
||||
nvgpu_err(g,
|
||||
"arbiter idle timeout, fecs ctxsw status: 0x%08x",
|
||||
nvgpu_readl(g, gr_fecs_ctxsw_status_1_r()));
|
||||
@@ -271,11 +271,11 @@ void gm20b_gr_falcon_bind_instblk(struct gk20a *g,
|
||||
|
||||
while (((nvgpu_readl(g, gr_fecs_ctxsw_status_1_r()) &
|
||||
gr_fecs_ctxsw_status_1_arb_busy_m()) != 0U) &&
|
||||
(retries != 0)) {
|
||||
(retries != 0U)) {
|
||||
nvgpu_udelay(FECS_ARB_CMD_TIMEOUT_DEFAULT_US);
|
||||
retries--;
|
||||
}
|
||||
if (retries == 0) {
|
||||
if (retries == 0U) {
|
||||
nvgpu_err(g,
|
||||
"arbiter idle timeout, status: %08x",
|
||||
nvgpu_readl(g, gr_fecs_ctxsw_status_1_r()));
|
||||
|
||||
Reference in New Issue
Block a user