Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2580019lqp; Mon, 25 Mar 2024 03:23:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxJEJa5/2iMM+CB9uJCg16OXpf32+D0AdCcdvAjSMB0wUwXcSmH/Ls6jRuTFDStLPplztkarYeaMMT63Zjz33O+HVIQtUxRLqCsv1Y0g== X-Google-Smtp-Source: AGHT+IH14kVzevdkSouJ9bwckT7lVSrH9xR0ub4+pbdajLeSDwVdpw2vzg+zPN7SbBgAA1NX0p/z X-Received: by 2002:a05:6214:400d:b0:696:8505:194a with SMTP id kd13-20020a056214400d00b006968505194amr5207359qvb.16.1711362220444; Mon, 25 Mar 2024 03:23:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711362220; cv=pass; d=google.com; s=arc-20160816; b=pKVeRNusnMP9AIolQCSNgb42Pp+vMW9QZymp0jEr0t4WUdKlQH8i83IxzuMHDGDuf+ lLI+9qZpC9mub08o1QBAKdh0PIvE95JUevFKV3vmR06iZuedMRFjfvgiDc2+FYIQ14oj nQhTwOiptR2dOgMr6GPa9N9VffwPyVhC0hse7WGprKZgT49Atr8C2XVy2W7SP7+qZbGL gM/+OeLYKkh9k1Z4JofLWX6NUKbjUncF0qDExBTf6PNLKGW5VQVYykCRC47k4R1Z5F2N BnRElHa75pd7UZbk/L6qaTHKbhkgMHlYSFNF23RxHT0JZf1U+A+2glooHzur0gc7fXjA GE7w== 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=0FpqOWXo4x+hsP0Z+UOMGx4VqlJ7aEz7ac/bcU4+AqE=; fh=wlFpxNeQaQeq6aSLtHY+shDwCEWDAginMDP1QqavkPU=; b=mmQmBk1U+jSf4kQ6SC07b3rbJD2CrP7gxTUC+AjSK/BUtYAQsMacXmBQcL9ciC9TJI OF3Ymr70Nso8ngdNLaz3JQl2/IRwY89bN1evnaL8yKGPknQ76fKJRb88vsQsP/U/DeCA mggaBcn9RZtJk1s+AOkTK1XbnKKNpxxGykl6xjW5gt7mmdu82x5U5gZlUdb/aWZvjDCd eqkoZOZyubYTQy0mzfJ9+HGSiU/txs+JcB1hDcl2HxCjsMG4RtSeh/17ZFctt5iIE+e8 tC1pKZwO/2Eu+dt10rSdURLVVpIdHmhfVTrXPN8D4d38q51JiotRQ1W34Ga6lMATsSD6 ntVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ds4e/Ix4"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116181-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kd11-20020a056214400b00b006961d18107bsi7272897qvb.81.2024.03.25.03.23.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:23:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ds4e/Ix4"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116181-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 229FB1C32629 for ; Mon, 25 Mar 2024 10:23:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91D4717ADE0; Mon, 25 Mar 2024 03:33:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ds4e/Ix4" 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 9ECC917BB3E; Sun, 24 Mar 2024 23:42:49 +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=1711323769; cv=none; b=urAnbmAGkmI6Yp/+OmHJJdyF/mNNWxT7dB+IgMuZ+ZKJPP1WQAfuNDoavZLzNRtK62jUyfhyFMR2M9Q8di37vLN2IeX+y+9ft9Kz8C9gmTqZTNLno4KiWTRpoHoNjSD8ENNZxXFtIEUWqVvkRGguiiokXflyOXBxfDin0iVEsNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323769; c=relaxed/simple; bh=1oNMrC29GJrki16Dt7/08qwNYkt2iDuH7FPUMAoc8NQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TwE0JCClOZLUqJUn4g4o1WN3UHmKp9nyHkT3L9jZd4dvc2Z0EigLxCC9IRys7KNgv3G/8wQxMCz8V5G9+24FSqIgNF3OfUm3yh/BtrEvJ80DxdUi6yJJdoFfpNyNWfThdynicLTRgDg7TvaYcslG7Gk/KJaEnrn3iisDBBHnnZc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ds4e/Ix4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE301C43390; Sun, 24 Mar 2024 23:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323769; bh=1oNMrC29GJrki16Dt7/08qwNYkt2iDuH7FPUMAoc8NQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ds4e/Ix4jgLJN6AhCxP6xSnakEGH2YoYJnWq4iDndoUE9YZ2DY/56D8fQPrE0Nu70 VCkCVYvPHJzDc1Tfh/TuH/ZULUeYhvzH8x6p1/2EVdbMZbACy+hPGSSk2/R9Hf2do4 Bvo09gmW/I/sXMYGDLZ9BVvqlNB6D/xazjI1YTn5Fi4romIdbBtTEWpFaZdmkapZnB 30gr2y+pjmXIcrxkBxPibB20UBls5F5LygwCmp2yEIZ3+jaB4DJoR3AXKJ0PSkNoaO J6wpPYnyCcmiFo8Jg15QOcMlZjMbrPjlzHvJnLura7wTQENjGSn0EBUxVWsYg5C9x9 fp2YsrODOcuqQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nikita Zhandarovich , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 145/238] drm/radeon/ni: Fix wrong firmware size logging in ni_init_microcode() Date: Sun, 24 Mar 2024 19:38:53 -0400 Message-ID: <20240324234027.1354210-146-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-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 02feb0801fd30..50c7430f8cd33 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c @@ -826,7 +826,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