Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2484311pxj; Mon, 10 May 2021 04:12:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkb/AhHLnZYxcWyBK25aDMxAAm0jKBMycZEcdJvuzjqOt8ZfHYmK+cb0zkKDZiowMTWo5B X-Received: by 2002:a6b:8fcc:: with SMTP id r195mr17419735iod.17.1620645061880; Mon, 10 May 2021 04:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645061; cv=none; d=google.com; s=arc-20160816; b=OIWS4t/gT+PwrYDv5UCI0ZBi/J4e73YSdknj/W2Kyay5BCa0NTvJCsjmWGvOB9sqLe uztTdySeoZNgjR1vHc5pZeBpI18cZ4OJ1yJCvS+mJXyF+oxvXzXZDx7DH13QqGzskV8M zXVUzJtrl6p30QSlPx7Yjt+udIIeP9ku/Qwvv9M7i6karqOScVTjf41neFtQK6Cvjzw2 jn6mLDsuEbrWrLg83jq1YhYWup/np/RZ3re3zN6v8HmZM9GsGcL3Z8XyWXzkz5vC4JPZ cEh/UmeARX0686fnEi495wGDFSFPXQXxwXimm27dVZXdIzkqG8UGY1E+EWGC9WTuFAFz 7Nsg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AGi8/TD30R4ax3SNsgIoDjTVXqfx/iCf0XYcPJjAVd8=; b=uS37YKjYN/wIzgDtcEcF5K/QZw/4cW5CWgKf6lbnYyaPZg/U8vKOr30g9GeSMarEP5 rbagmidjjoHZG2t1E0IUy1ot8WfUtX2k58xMuIsB9g0FDQRI5hCOH1JrJktws5pKBpWV T5DJ8+zIuIXp1ZWR72QdsgRb+ZvJ3hp/CnHMOwjMrIHdSRXcaGzQ2FTsLou3niv6zjxo cE9fCrCk+6JKG5Z4vcavzwfb3tAHKcurllSuG/Z1in9YBm1HVTruvPM/xB8Eg1iNU2/e MLnUNu2IQJPwUWviqTB+ziFJbSTy8Q+LpNGOf8umc6CIPcQ+wozhUnoMCvtOhaiDL44Z /T5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wjuJh3lw; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si12146520ill.156.2021.05.10.04.10.49; Mon, 10 May 2021 04:11:01 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=wjuJh3lw; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235678AbhEJLFv (ORCPT + 99 others); Mon, 10 May 2021 07:05:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:59672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232511AbhEJKp5 (ORCPT ); Mon, 10 May 2021 06:45:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C705F61937; Mon, 10 May 2021 10:36:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643018; bh=Qz5Vk2Lrm8UtrZT+Y8M+F8gOAo823C+dZKCArcdc4Rg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wjuJh3lwpsePuwOS/g2KKChYVd4hGBclSWd4lwOSIgSl3dS6mj7rkcbn4flbYKChc POHqlgv4CJjQ2Q91wcE0tf4kBSNMnf0MUvzssgPX3w/Pg1U7KVssWArxl+KxJqR7Fm 9M5QplKEbhLAinBCUGSaFEcwDoVL3sB/ZbXTACsQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kenneth Feng , Kevin Wang , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 144/299] drm/amd/pm: fix workload mismatch on vega10 Date: Mon, 10 May 2021 12:19:01 +0200 Message-Id: <20210510102009.719724157@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 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: Kenneth Feng [ Upstream commit 0979d43259e13846d86ba17e451e17fec185d240 ] Workload number mapped to the correct one. This issue is only on vega10. Signed-off-by: Kenneth Feng Reviewed-by: Kevin Wang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c index ed4eafc744d3..132c269c7c89 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c @@ -5159,7 +5159,7 @@ static int vega10_set_power_profile_mode(struct pp_hwmgr *hwmgr, long *input, ui out: smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_SetWorkloadMask, - 1 << power_profile_mode, + (!power_profile_mode) ? 0 : 1 << (power_profile_mode - 1), NULL); hwmgr->power_profile_mode = power_profile_mode; -- 2.30.2