Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2387275pxb; Mon, 11 Jan 2021 08:24:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7sUrPbXM78HoIhkte8JIJGtxMMHC7FonMExiJ+79aaOs5DQjbkvZtzAM2icFoC78WEuU+ X-Received: by 2002:a17:906:16da:: with SMTP id t26mr177164ejd.478.1610382240626; Mon, 11 Jan 2021 08:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610382240; cv=none; d=google.com; s=arc-20160816; b=j1Bd25xEu1uAc7ACKyvfDfDKJSY/A+KL8+mMJWQneG+jwWybaREaZZO4GaJYll8RmK pyFkeUYFhyY9KIZEjYXYrhVcT8tM4S0k7s+KfcJUebSAF52rGmzYe41EiRO1iooMQzS1 tOJaGFICe2VCA9+1FAYLvVffYYG2aN47+yTu8o9XazKnlY2uUMbGROdicVHJdNUpM8jS Jz240SqIMlxQNOP6sfs+wPxcAQ+RxxVKzMSHzgQkg1Oltkk5WcN8Gu4JqzV8euyafW8J nt8uJPK+BW15WPt8HyQIBnxARicavLjUNod+rthC3idL8Ovh/ed3MjWaSVjMYkI5u/K6 X6vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kQk/AQM450K6HsYuxG7JpSAzrWu0ODwrljUZHEZN97M=; b=dcz3wSGZ6HOXbpjuJNsNUxIxShyNbVf9W6hIB2hUNvlbfN1e3uK4n9P2oMu7ucdrgK J4QD+wilm1/sVI20R04Q/MZWOnroItCGkzUe0ksUrOd3yZMirpT77hUarGztdzUMGHC1 0Ie0AKYiDbd9F3k4QxHvLbPiR32NmHEKJfLu5O1N1vUpbAEHrDnfmrORCq2wjJv+UPxb l9B14bs5AEFmLFrXatfbuBlZ6KmrRjKHkVWVSsGDN43CFhhsu3dOjv+k4smmiaei/Pbo sf3s7/d46Vp5sn9ktKJq15eliMv08zc7LjKjGtX3Dg4LoB+HumlI78AcYQTbzimuthII ljaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dib3q2aY; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si6592488ejc.599.2021.01.11.08.23.36; Mon, 11 Jan 2021 08:24:00 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dib3q2aY; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387840AbhAKQUh (ORCPT + 99 others); Mon, 11 Jan 2021 11:20:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727917AbhAKQUg (ORCPT ); Mon, 11 Jan 2021 11:20:36 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69617C061786; Mon, 11 Jan 2021 08:19:56 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id a109so226226otc.1; Mon, 11 Jan 2021 08:19:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kQk/AQM450K6HsYuxG7JpSAzrWu0ODwrljUZHEZN97M=; b=dib3q2aYgXhFR9Mf7C8qJfqLetr7N5C9iZNxz+f92ooZvmeeYlb3kE2bmHv4nRrPxE t0/Cd/9TWcFLTAfL2uT7zM9d9dbk0YIH0rAPHIIOvyRCaruyj/tCr2k3GNMmbtcmZNxc 454czti9ohIoixYtZ0PjaPbiwgwkOJXeFHq/iA6PGdinWBxxK4FbdWhBV3fnBqKAflQ5 t2u4gzdijpxx8XiFKIbTJgwS6hIXUOU4fCUZoEP8a/Pzi7ALxA4Ml3FsLWconULeyeFc MCenWkYxvsphNjwz336GKmx1fYOvaIR4dHL1ll35Xbc58KJcfVWGb/GmDfoxY3LpvdiK 446w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kQk/AQM450K6HsYuxG7JpSAzrWu0ODwrljUZHEZN97M=; b=te33UedrSKjpADPQvjNxjRC4XRK9a/POjZS5hAlFbi8nPDtMFJQxaojI+mSl7Byqzk 6NQ9Q0B0RaTL2Z9JI4Bczwd0cD5ZrkhPKV7gvVsmk76aeRpy4TVuKIIXgyrm1aMB6g0c giKyg9z8aoln94fDh4iMBb/lO5ioA4p/R1v74aczMFk7OrsE7hzi3Ah1X2pfh4P+AbET NjF2cT6ydEJPAm3V5Oy22zXZJWQ0/M3dolqM8wJAuv9wx6G5ak4YQA0iq73bmxy43yjA +G2xggfsmIzWwCuIg67bZwbzDFL2bHecjYsIPIwh0YEKRQ/8vrJa/yhdYd7aikgo3fmk 4QDg== X-Gm-Message-State: AOAM531RByzKRW+9ZNjLG/7H4VNn2dFPITbOHxZoSs7OYzhd81RNFnlf 7PLZ4eA96Ht0FUMim9PLFGHyd8/PJANEfSC+uFs7/5cC X-Received: by 2002:a05:6830:1d66:: with SMTP id l6mr11413214oti.23.1610381995915; Mon, 11 Jan 2021 08:19:55 -0800 (PST) MIME-Version: 1.0 References: <20210111114638.16530-1-colin.king@canonical.com> In-Reply-To: <20210111114638.16530-1-colin.king@canonical.com> From: Alex Deucher Date: Mon, 11 Jan 2021 11:19:45 -0500 Message-ID: Subject: Re: [PATCH][next] drm/amdgpu: Add missing BOOTUP_DEFAULT to profile_name[] To: Colin King Cc: Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Airlie , Daniel Vetter , Xiaojian Du , amd-gfx list , Maling list - DRI developers , kernel-janitors@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 6:46 AM Colin King wrote: > > 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 Applied. Thanks! Alex > --- > 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 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel