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

Alex Deucher alexdeucher at gmail.com
Wed Apr 24 03:34:28 UTC 2024


On Tue, Apr 23, 2024 at 11:07 PM <jesse.zhang at amd.com> wrote:
>
> From: Jesse Zhang <jesse.zhang at amd.com>
>
> The parameter "last_jump_jiffies" should be initialized before being used in the function atom_op_jump.
>
> Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/atom.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd/amdgpu/atom.c
> index 72362df352f6..d552e013354c 100644
> --- a/drivers/gpu/drm/amd/amdgpu/atom.c
> +++ b/drivers/gpu/drm/amd/amdgpu/atom.c
> @@ -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
>


More information about the amd-gfx mailing list