Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2385741lqp; Sun, 24 Mar 2024 17:06:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZiRG0EemOgVu0omDez9GwUz7mGaUwMpD3J94q2zb5gWttNMG1KrCzL5WlXp3GDU3cxKIGaaYlTOtM1kZKjjtOCK5IQFTOvRb/aWKalQ== X-Google-Smtp-Source: AGHT+IHEYaktCdBPNxe5FsfrYVC1sJ4sinbht3ihXUU1ZoGEG2TncYqxbL1khghHUmRKc9bv5tCu X-Received: by 2002:a05:6102:742:b0:476:ef2f:10b3 with SMTP id v2-20020a056102074200b00476ef2f10b3mr1777000vsg.24.1711325193999; Sun, 24 Mar 2024 17:06:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325193; cv=pass; d=google.com; s=arc-20160816; b=lEXcKuZXnLIVHmMl7rE0W5ZkMYosNVcyV9puocs8of11x0bB3li/+GByLenVmZh77P uUiG016hktdIyA19RaxiG9PFFQNQLc20i1+E8KXL0ll+bMlonTUytXXCjmHUnJP7SLbe KuniXC8VrYRvzcgZFSJTT98V44JjsNO/Bj8DrlcTbtAjOpCwNjD946vw3zHFICdnHEgE fnvVEeqnj9qa5DBp0H8VSlWdgqLmIJsHvjl/7LJ8j2ulZN1OProvTfPaTcDAWTpz/C2R Qa104v8u5as79n9tgTrAuJ2TPB3EG+bS4ZKG7WOlVqjMvmTUsjEgqPOdtNb4Se5CXV4X aUJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xogNV2RGiJ1/Zbt6b3ZNbd2rBmvx3TtBkaK3vAevORs=; fh=wlFpxNeQaQeq6aSLtHY+shDwCEWDAginMDP1QqavkPU=; b=h9RHH0mXiWLG8xj7v0msHDM5SYJsawxK4yMXVALaoLebmNlDzq4E/pDnCcjv6m23xy wjvLNvC9PqIf5UOQaAn/P3kQrRWinfpwJyoT+BcR6Ac6Z8+YxiEVGQwHDgzw2gNxC34G Tpytw9jLsX9wNKXQ+UtaXJ932u+MwLLEMZMV92VryuoTrBHdk1TzqoNYteg2D/2hYjsV zCpy5SvXRDZll9D0nOu9i7TpmCmEN586RIXjwqVv6TOuDXU67a4AwN5HmvXqVjLKxnr+ boIr49wPFA2N0kAsSFA28higRiNLQyMy0rBspUNaYP6J/euGRF8iqkFsfrWn9mAPQqIm 2Nxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tdgNSGa2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113309-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i21-20020a05620a0a1500b00789e3f48003si4367156qka.266.2024.03.24.17.06.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:06:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113309-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tdgNSGa2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113309-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AD1761C23638 for ; Mon, 25 Mar 2024 00:06:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C338192719; Sun, 24 Mar 2024 22:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tdgNSGa2" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CDC11926F8; Sun, 24 Mar 2024 22:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320110; cv=none; b=RlaxpLEvYU/PSxSyVE64XhSHP2MBi6vHXwMePLEWy9UXq5LaO20D+YvT3JqWifGu1gZpanXqfk7hCRzXYIhYbVOassSUeJNP+twbRrcFfFzTxmuTviuzjYYqhRgI2pmB4kNC075QF6mWzP/U0ciFI+/4fkVjDfRjc37bf4Rx6A0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320110; c=relaxed/simple; bh=CrBC/CpoMhZxoAj0Biazm+a1TGHdkEOePqPGa6jE8wc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=abSxZCAi+e0hwzfgXAB+6iASr8+pHrcn6veyscUzbj7gjLWmuVBgEwqzCwtGQcTkq5/8rJUzXjj9Toj6LNNYWAID4CLWUE29SrqNezGC/qOTyTl4XcxrhC6gn7pCvuer6AOhrvsRBjT2hiBzJkIo2e7ghGwsVbtyWbUsTfJ8MEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tdgNSGa2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A791BC433C7; Sun, 24 Mar 2024 22:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320110; bh=CrBC/CpoMhZxoAj0Biazm+a1TGHdkEOePqPGa6jE8wc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tdgNSGa2oPus+Ni5kgY/ZzUClCw3EsulzoAN+JxHUCy12HLmU8yl5kUlvsvN+wSyt GsR5hZY5AY6x8fyD1y1+EaIQonKvsTTsebTnoFYAc8/QPxvWXitJu/LzbmkVGa77kz 4z+/ZATX6cudFDvvaYRuxntuIhBfxDI5LCwK4DjIrFBDIGHx+i/pfx/XuaR64ZFrWp 6VEy3oTWJalApqRDxSObAvgGZL4g79dNNjARXERZG64aoM9ahs30LwT3krWVYPv40j Q7QHIU0ivT+BGXDRc7mzKaGUG1TfZxe0vGvXV7osmpgr0UXBxaEDGvLPV7k8ShXdc3 BV5tFx92Nm00Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nikita Zhandarovich , Alex Deucher , Sasha Levin Subject: [PATCH 6.8 418/715] drm/radeon/ni: Fix wrong firmware size logging in ni_init_microcode() Date: Sun, 24 Mar 2024 18:29:57 -0400 Message-ID: <20240324223455.1342824-419-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Nikita Zhandarovich [ Upstream commit c4891d979c7668b195a0a75787967ec95a24ecef ] Clean up a typo in pr_err() erroneously printing NI MC 'rdev->mc_fw->size' during SMC firmware load. Log 'rdev->smc_fw->size' instead. Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE. Fixes: 6596afd48af4 ("drm/radeon/kms: add dpm support for btc (v3)") Signed-off-by: Nikita Zhandarovich Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/radeon/ni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 927e5f42e97d0..3e48cbb522a1c 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c @@ -813,7 +813,7 @@ int ni_init_microcode(struct radeon_device *rdev) err = 0; } else if (rdev->smc_fw->size != smc_req_size) { pr_err("ni_mc: Bogus length %zu in firmware \"%s\"\n", - rdev->mc_fw->size, fw_name); + rdev->smc_fw->size, fw_name); err = -EINVAL; } } -- 2.43.0