drm/amdkfd: fix a missing break in a switch statement
Subsystems (4)
PATCH 1/1 drm/amdkfd: fix a missing break in a switch statement
From: Colin Ian King <[email protected]>
Currently for the CHIP_RAVEN case there is a missing break causing the code to fall through to the new CHIP_NAVI10 case. Fix this by adding in the missing break statement.
--- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +1 -0
@@ -668,6 +668,7 @@ static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev,case CHIP_RAVEN : pcache_info = raven_cache_info; num_of_cache_types =ARRAY_SIZE (raven_cache_info); +break ;case CHIP_NAVI10 : pcache_info = navi10_cache_info; num_of_cache_types =ARRAY_SIZE (navi10_cache_info);
Signature · 1 line
2.20.1
A message that is not in the archive (sent off-list or not yet received): 20190628145443.9754-1-colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org
Abramov, Slava
Acked-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Colin King <[email protected]>
Sent: Friday, June 28, 2019 10:54:43 AM
To: Cox, Philip; Oded Gabbay; Deucher, Alexander; Koenig, Christian; Zhou, David(ChunMing); David Airlie; Daniel Vetter; [email protected]; [email protected]
Cc: [email protected]; [email protected]
Subject: [PATCH][next] drm/amdkfd: fix a missing break in a switch statement
From: Colin Ian King <[email protected]>
Currently for the CHIP_RAVEN case there is a missing break causing the code to fall through to the new CHIP_NAVI10 case. Fix this by adding in the missing break statement.
--- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +1 -0
@@ -668,6 +668,7 @@ static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev,case CHIP_RAVEN : pcache_info = raven_cache_info; num_of_cache_types =ARRAY_SIZE (raven_cache_info); +break ;case CHIP_NAVI10 : pcache_info = navi10_cache_info; num_of_cache_types =ARRAY_SIZE (navi10_cache_info);
--
2.20.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