Skip to content

Commit

Permalink
drm/amdgpu: add sw_init to df_v1_7
Browse files Browse the repository at this point in the history
change df_init to df_sw_init df 1.7 to prevent regression issues on pre-vega20
products when callback is called in sw_common_sw_init.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Jonathan Kim authored and Alex Deucher committed Jun 22, 2019
1 parent d9848e1 commit 8f78f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/amdgpu/df_v1_7.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

static u32 df_v1_7_channel_number[] = {1, 2, 0, 4, 0, 8, 0, 16, 2};

static void df_v1_7_init (struct amdgpu_device *adev)
static void df_v1_7_sw_init(struct amdgpu_device *adev)
{
}

Expand Down Expand Up @@ -110,7 +110,7 @@ static void df_v1_7_enable_ecc_force_par_wr_rmw(struct amdgpu_device *adev,
}

const struct amdgpu_df_funcs df_v1_7_funcs = {
.init = df_v1_7_init,
.sw_init = df_v1_7_sw_init,
.enable_broadcast_mode = df_v1_7_enable_broadcast_mode,
.get_fb_channel_number = df_v1_7_get_fb_channel_number,
.get_hbm_channel_number = df_v1_7_get_hbm_channel_number,
Expand Down

0 comments on commit 8f78f1b

Please sign in to comment.