Skip to contentSkip to conversation

Initialize the last_jump_jiffies in atom_exec_context before it used

PATCH In review [email protected] 2 participants 2 messages Apr 24, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 Initialize the last_jump_jiffies in atom_exec_context before it used

From: Jesse Zhang <[email protected]>

The parameter "last_jump_jiffies" should be initialized before being used in the function atom_op_jump.

---
 drivers/gpu/drm/amd/amdgpu/atom.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/atom.c +1 -0
index 72362df352f6..d552e013354c 100644
@@ -1243,6 +1243,7 @@ static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index,
 	ectx.ps_size = params_size;
 	ectx.abort = false;
 	ectx.last_jump = 0;
+	ectx.last_jump_jiffies = 0;
 	if (ws) {
 		ectx.ws = kcalloc(4, ws, GFP_KERNEL);
 		ectx.ws_size = ws;
Signature · 1 line
2.25.1
Reviewed-by on v1 2/4
#1 lore raw
Quoted 6 lines · On Tue, Apr 23, 2024 at 11:07 PM <[email protected]> wrote:

From: Jesse Zhang <[email protected]>

The parameter "last_jump_jiffies" should be initialized before being used in the function atom_op_jump.

Quoted 19 lines
---
 drivers/gpu/drm/amd/amdgpu/atom.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/atom.c +1 -1
index 72362df352f6..d552e013354c 100644
@@ -1243,6 +1243,7 @@ static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index,
        ectx.ps_size = params_size;
        ectx.abort = false;
        ectx.last_jump = 0;
+       ectx.last_jump_jiffies = 0;
        if (ws) {
                ectx.ws = kcalloc(4, ws, GFP_KERNEL);
                ectx.ws_size = ws;
--

2.25.1