drm/amdgpu: add sw_init to df_v1_7
Subsystems (2)
PATCH 1/1 drm/amdgpu: add sw_init to df_v1_7
add df sw init to df 1.7 function to prevent regression issues on pre-vega20 products.
--- drivers/gpu/drm/amd/amdgpu/df_v1_7.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/df_v1_7.c +5 -0
@@ -33,6 +33,10 @@ static void df_v1_7_init (struct amdgpu_device *adev) { } +static void df_v1_7_sw_init (struct amdgpu_device *adev) +{ +} +static void df_v1_7_enable_broadcast_mode (struct amdgpu_device *adev,bool enable) {
@@ -111,6 +115,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,
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
If both init and sw_init are empty, we don't need both. Just rename the init callback to sw_init.
Alex
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Kim, Jonathan <[email protected]>
Sent: Friday, June 21, 2019 5:45 AM
To: [email protected]
Cc: Kim, Jonathan
Subject: [PATCH] drm/amdgpu: add sw_init to df_v1_7
add df sw init to df 1.7 function to prevent regression issues on pre-vega20 products.
--- drivers/gpu/drm/amd/amdgpu/df_v1_7.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/df_v1_7.c +5 -0
@@ -33,6 +33,10 @@ static void df_v1_7_init (struct amdgpu_device *adev) { } +static void df_v1_7_sw_init (struct amdgpu_device *adev) +{ +} +static void df_v1_7_enable_broadcast_mode (struct amdgpu_device *adev,bool enable) {
@@ -111,6 +115,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,
--
2.17.1
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx