Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2201256pxb; Mon, 11 Jan 2021 03:49:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQCz4w4QTU4AkwI49WBVz2ApP7FnG/QyhNsjsgeDEvDg7WMXjDR37WlKA758lzz7Rgw4OK X-Received: by 2002:a17:906:1288:: with SMTP id k8mr10303547ejb.206.1610365764752; Mon, 11 Jan 2021 03:49:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610365764; cv=none; d=google.com; s=arc-20160816; b=ZWxNf+NNXrPFeXvpi/8U6Gg0R+oz0DMVcgehlNZbDJV5oTEVzlmIOE0EM5f4R0dil6 IlJ2zcCQ+IGLCoAhguyFK4UQ0c6hoYbUn/ffc0GGXJjWa+IM7C1zSBAG8Wc3iUM1evmv pM8GKWJr0+6zsqWq9G69CGoT5q8HMLByew+w66AZtcfH+CZ3EhWPeQgCSy9/2I3efdFL a19hB38aKVWkrt+jgOJAv3ChFcnZ0gs91uRO6YdrYju/dzeJeyJ2jACeS3BpjbaSpCQi T7dtpMHZfh0aMnMmqWatp9OsggJgpCTV12Vei4ltf+zYXJf4aUj3HwNAmz3AnDTvDENT mfqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=xfwEl3k9KGc4jzQJSNBDiXOgf3lQf9V6xe2M/HEm1LY=; b=iTr5J/Q94cQBun5gn+oe4j7ngvwr9/YFgoxG0Nq6mOE4q2DrMbL9X7mi6icN79cNCm 5fcA0fsRA6c3z/bVoikOLMaKiHbHWh/cMg5Bf7SPEX9CtBymHFLKkJgbkxpR9gt1ui+t kR2hFtI6quY5OV8U9jlTvZow09hlZo1mRwPscoghviovwBn+3z2CYlNuUZliO7NAgBaw ykV5l/heJUkUKmznmOmEocwry0kboHehXaNTIIeaB6cXQO2VppymgF2lTDZdVl1yTFhY R2s/NXRL/UZ56evBtannaqOESXyTKwOdst9gV2cgUEAANFKE5hKrhnhTyMwli2elBSby Nodw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nw24si6640401ejb.647.2021.01.11.03.49.01; Mon, 11 Jan 2021 03:49:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730157AbhAKLrV (ORCPT + 99 others); Mon, 11 Jan 2021 06:47:21 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:40511 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729779AbhAKLrV (ORCPT ); Mon, 11 Jan 2021 06:47:21 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kyveg-0005Md-6w; Mon, 11 Jan 2021 11:46:38 +0000 From: Colin King To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Xiaojian Du , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] drm/amdgpu: Add missing BOOTUP_DEFAULT to profile_name[] Date: Mon, 11 Jan 2021 11:46:38 +0000 Message-Id: <20210111114638.16530-1-colin.king@canonical.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King 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 --- 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