From mboxrd@z Thu Jan 1 00:00:00 1970 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 AA39631158C; Tue, 2 Sep 2025 13:36:34 +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=1756820194; cv=none; b=YhL7cwaXqIG3MuZt79obkeMFwfgDYgcUGhbWryRxWRE3tZVUhK0cw+4zOblw2j2dPCvGCm9pbWsbpq/0gdIW7ggbZ5qhsVAG0z1bMbMsmK6cc511K5Itexru/+a2LPJyZC+BHedG2tAUxOk9BqlZGJAqh7sfMMtn1gN/LonVhvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756820194; c=relaxed/simple; bh=GY3OfH8bVB2fDUxmINFVXewG7pcITyIUpVHIyFgcdRY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pOFZ1glHSp2TN7e+xKouKmEShPmmhfxw1uI8b78YZ3YWXwDdmRWEJ0OFobPwWgqLgzHwOjORuTANv6oVNy/ZRqOggTwZD/KnXd7q/fW93Sxh1VPbZN7RsrhfSQkpfJERmbuadwsoeAR0ZRpwoGBjRIqwmIoNNYXZqsM0GqZk4bo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tuaJ8MwP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tuaJ8MwP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7441C4CEF4; Tue, 2 Sep 2025 13:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756820194; bh=GY3OfH8bVB2fDUxmINFVXewG7pcITyIUpVHIyFgcdRY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tuaJ8MwPwTnQAYzGI2zuKIC7beWfDlB48yEVb+u/37E0vFxRJPJ1GQxn3qhxISo17 JdjNWQ1jG0RdLmnJQzk2m8AaCf3ewXIDCG6XyauHXrdLeszNJYrOV608q6KJ8KFkh5 HLpBMmpfqz6xfF0WJg0jbfN+HCW4TrNCBNYZ9rJs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Philipp Stanner , Timur Tabi , Danilo Krummrich , Sasha Levin Subject: [PATCH 6.6 27/75] drm/nouveau: remove unused increment in gm200_flcn_pio_imem_wr Date: Tue, 2 Sep 2025 15:20:39 +0200 Message-ID: <20250902131936.183687414@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250902131935.107897242@linuxfoundation.org> References: <20250902131935.107897242@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Timur Tabi [ Upstream commit f529b8915543fb9ceb732cec5571f7fe12bc9530 ] The 'tag' parameter is passed by value and is not actually used after being incremented, so remove the increment. It's the function that calls gm200_flcn_pio_imem_wr that is supposed to (and does) increment 'tag'. Fixes: 0e44c2170876 ("drm/nouveau/flcn: new code to load+boot simple HS FWs (VPR scrubber)") Reviewed-by: Philipp Stanner Signed-off-by: Timur Tabi Link: https://lore.kernel.org/r/20250813001004.2986092-2-ttabi@nvidia.com Signed-off-by: Danilo Krummrich Signed-off-by: Sasha Levin --- drivers/gpu/drm/nouveau/nvkm/falcon/gm200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/falcon/gm200.c b/drivers/gpu/drm/nouveau/nvkm/falcon/gm200.c index b7da3ab44c277..6a004c6e67425 100644 --- a/drivers/gpu/drm/nouveau/nvkm/falcon/gm200.c +++ b/drivers/gpu/drm/nouveau/nvkm/falcon/gm200.c @@ -103,7 +103,7 @@ gm200_flcn_pio_imem_wr_init(struct nvkm_falcon *falcon, u8 port, bool sec, u32 i static void gm200_flcn_pio_imem_wr(struct nvkm_falcon *falcon, u8 port, const u8 *img, int len, u16 tag) { - nvkm_falcon_wr32(falcon, 0x188 + (port * 0x10), tag++); + nvkm_falcon_wr32(falcon, 0x188 + (port * 0x10), tag); while (len >= 4) { nvkm_falcon_wr32(falcon, 0x184 + (port * 0x10), *(u32 *)img); img += 4; -- 2.50.1