All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][next] drm/amdgpu: Add missing BOOTUP_DEFAULT to profile_name[]
@ 2021-01-11 11:46 ` Colin King
  0 siblings, 0 replies; 27+ messages in thread
From: Colin King @ 2021-01-11 11:46 UTC (permalink / raw)
  To: Alex Deucher, Christian König, David Airlie, Daniel Vetter,
	Xiaojian Du, amd-gfx, dri-devel
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

A recent change added a new BOOTUP_DEFAULT power profile mode
to the PP_SMC_POWER_PROFILE enum but omitted updating the
corresponding profile_name array.  Fix this by adding in the
missing BOOTUP_DEFAULT to profile_name[].

Addresses-Coverity: ("Out-of-bounds read")
Fixes: c27c9778a19e ("drm/amd/powerplay: support BOOTUP_DEFAULT power profile mode")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
index 75ddcadf3802..4763cb095820 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
@@ -774,6 +774,7 @@ static int vangogh_get_power_profile_mode(struct smu_context *smu,
 					   char *buf)
 {
 	static const char *profile_name[] = {
+					"BOOTUP_DEFAULT",
 					"FULL_SCREEN_3D",
 					"VIDEO",
 					"VR",
-- 
2.29.2

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2021-01-16 10:45 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-11 11:46 [PATCH][next] drm/amdgpu: Add missing BOOTUP_DEFAULT to profile_name[] Colin King
2021-01-11 11:46 ` Colin King
2021-01-11 11:46 ` Colin King
2021-01-11 16:19 ` Alex Deucher
2021-01-11 16:19   ` Alex Deucher
2021-01-11 16:19   ` Alex Deucher
2021-01-11 16:19   ` Alex Deucher
2021-01-12 10:07 ` Dan Carpenter
2021-01-12 10:07   ` Dan Carpenter
2021-01-12 10:07   ` Dan Carpenter
2021-01-12 10:07   ` Dan Carpenter
2021-01-15  9:37   ` Colin Ian King
2021-01-15  9:37     ` Colin Ian King
2021-01-15  9:37     ` Colin Ian King
2021-01-15  9:37     ` Colin Ian King
2021-01-15 10:07     ` Christophe JAILLET
2021-01-15 10:07       ` Christophe JAILLET
2021-01-15 10:07       ` Christophe JAILLET
2021-01-15 10:07       ` Christophe JAILLET
2021-01-15 10:10       ` Colin Ian King
2021-01-15 10:10         ` Colin Ian King
2021-01-15 10:10         ` Colin Ian King
2021-01-15 10:10         ` Colin Ian King
2021-01-15 10:16         ` Christophe JAILLET
2021-01-15 10:16           ` Christophe JAILLET
2021-01-15 10:16           ` Christophe JAILLET
2021-01-15 10:16           ` Christophe JAILLET

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.