Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp244595rdh; Tue, 13 Feb 2024 16:01:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUVN40urS8tiGxxwJL6g+qdNvtTIILp/tXCTrl711pp690zCjw1dof60tTRCvOjCqWuvgaWWf+nlqRmT8ScpS3BB9tZ9NS26wt3otvCqw== X-Google-Smtp-Source: AGHT+IGeGaDm3Tgw0xeROl7NGlei9/hm73yS2UvPWgWtZfCNGjp7oVoNZIAzhURZnhTMqeOAt7E4 X-Received: by 2002:a17:906:35c6:b0:a3c:843c:6d6e with SMTP id p6-20020a17090635c600b00a3c843c6d6emr642266ejb.15.1707868895314; Tue, 13 Feb 2024 16:01:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707868895; cv=pass; d=google.com; s=arc-20160816; b=aRGsVFGOGMJHlPAd0gjLvxuklMFCQ0j/bpLMBxdAI5rI3iN24Ybo71w3+4ZgQ3jtXO Vp6UvAT8EPhDRoE/CVa+5LjlbxnIg7ve/PWIGYTQz9N+diVGgDjFG5L1JebffQJXM1it veq4l09qcH2UIOsdWYsFc+5XQSp/8nZrJwON3gwpFi0KByqaDoWDrJmSz3yyox4TOWaX zlE0OpUPMnRXfUpF67otOtZel7KoKFtaLFEmMIDEAb8Teya69Kx/mzqefFuhS7CW2KnP EgHYR/Z9BLffOKydMzRTuSkmbnGdlzUBzjTDGClaHZr+jFwAySyZsnPp+nHx4VaFehfK g0oQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:date:from :dkim-signature; bh=YMBETSS65YtqnXuGPPIuISSAqLQJ5kfAKukBNt/idE8=; fh=kumk9I5jBQEw+6EIXjqF/93/zm6BfzJ58O4qmMyTxQQ=; b=vVu0ivZuLnBh2xSTWISnLdvPJ4wQvQF0zQVl1IuByBLXguk2Pu8pl+KbWl8MOql++F 0WihCZi8VjguJpxa7qwkDHxJ3XkEuQWHcpTrQxA2p5+N/ewUeL5VXMr8biN2lgC/rFjW S6r0qr4CkxcyyRQEccTM5hiF+37yOqF5zkO6VQrVHsZvS2aG2FDFOx+bceUseSUD567E +GeIU3kA3/kmFbQPblnhdmvNqnd+El8etlFgKaY26mcymb+xhk3zkGriOtQJ8cRtDtk3 5wB1bw0p11bduttON9ntgAWNbB/8fXuP00LJ4Rr9p8/sBLDiAzAx7X5bCQT2RsfhXOEX KQHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="g/IdfDh3"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-64588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=2; AJvYcCVlyOncLyR8FKoXOr6YB23viOV/17pzezspbqM6yVgwb1cY+KHYVucRh982FFmz4iHojjiblUJliDnyQRXpn5xy+kuPX/Peswf53A9kPw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qa31-20020a170907869f00b00a3c91aabb5fsi1775058ejc.634.2024.02.13.16.01.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 16:01:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="g/IdfDh3"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-64588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 197C91F28461 for ; Wed, 14 Feb 2024 00:01:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 948F22C84C; Wed, 14 Feb 2024 00:00:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="g/IdfDh3" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37F7311CB1 for ; Wed, 14 Feb 2024 00:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707868826; cv=none; b=prCXe9cv1KijXB4x000iORUFoAyG0i6myQmKlXhrcBRxo4kEKT76rxe9jWv8ClgHYIjCeA7wDG6rnidu2aOk7RQUP4MU7lB6z1nrUq+sDeD+kWuuZVj7GMAr7ehrJslZ3m8VRKEhqjRiJx5SGfbkLxqhfL1z0xOXSfF35Rqy12k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707868826; c=relaxed/simple; bh=tYu0rqPvKTdx4pnVuOKPIvquYhOnQYYcWPZ47Q6TdhE=; h=From:Date:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=aETok6wumSH9yPtWBoYHiEq2B0EyI0CVx5TdWAFktejGpQ0rNizDP1OiZILE1aOFiWCRDhdOO1XqgxdrFvIYTe6JFPsg/lFg2gIewQxXJJskcCG5Ml456I5Po9k4bSXenvhQZhvsLo2Lf9sDPS5AWJPx3Agwy0IzSCTWbbfMJyM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=g/IdfDh3; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1d8ef977f1eso35997245ad.0 for ; Tue, 13 Feb 2024 16:00:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707868824; x=1708473624; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:date:from :from:to:cc:subject:date:message-id:reply-to; bh=YMBETSS65YtqnXuGPPIuISSAqLQJ5kfAKukBNt/idE8=; b=g/IdfDh3nFeXG8CsElKPItCVf4m1wtyQYgNh9QQpbtTYjTCm37wJBTCjYIkFTRK661 +5ce6zWvG3EhqweBFILo8w6EIW4/PIvWfvM1ymJ1+bCDr6SKfXwYBSXooXAFesCrMYBV alG4EBsTTnF1DiSrbwB2mi77u5jDgIR3cVmLg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707868824; x=1708473624; h=content-disposition:mime-version:message-id:subject:cc:to:date:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YMBETSS65YtqnXuGPPIuISSAqLQJ5kfAKukBNt/idE8=; b=VEKtitpwZ96ILp1G9xtJEy/zgqu276budB4rfGqavUqVb0G4oxO3wv3uSXG27iZkee aVmI/9TJev8eRzErcCSmxrAPocwYvpZ6OqA5Bg5OHFfK4SE/kMMC9VFgykG89r51KJUQ 12WpgOhvXmNVq6YHliRX/dGwdvsFOUhAK1cMV1VnPZSTXNJQIpFek1v0X49OolcEogso Blvf0nqUKRsxz4dcmjuhaQ0FosM9JVIrURt5YUcpoEMIG2hzUb+KRnQMNUHCa4H2jOo4 ezAkOOT69NI5z5/YFsyfJBYWHg3uUIHZlI1bgg7oLYe/LFkb2yjeiDrMIi+jBYL2Qy2Z pdjg== X-Forwarded-Encrypted: i=1; AJvYcCUrGFd/Vh5BYb6xkrdScaKV9VbUWqykCzfw7+0UYh4ZC1+lqEooEyym+TLblPR4+Bb2uq8bem7hSFyhx/fTKztfE6Ptoo1AUP/4VydH X-Gm-Message-State: AOJu0Yx/pTWqZRnPeHFuUfPxkZ9+GNiNxivRs4KxpFhwM33eSptKNS1m eOiZlI14ZpmyPlSbG6Vo8/RlrpzWsrufMH6B26ErB85Pc19VkE2U9js4XfVaRg== X-Received: by 2002:a17:90a:f40c:b0:296:15ed:b220 with SMTP id ch12-20020a17090af40c00b0029615edb220mr832051pjb.45.1707868824140; Tue, 13 Feb 2024 16:00:24 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXvqigQwCxsR1eRkChMkloewkaYy2M5PIy5Ni/XnHBQDAoKHR/aIWNhHUmSslt8uKRHk2RvI4FXgV3UeO0qZK5hqOibVcIauBOnaVV6bWqTt+6c8dkIprXNrI5L5VfYBFUHS69JyCg+nHpwWH2NA7USk6ZGA7BJYmKeBVNaUv6t7nbX6rD1Z408EwIrtCw4leiFoAOQQxPSKq96raZChBqacZ3+4FYorcIV+LyapGi48IgtKsvYmWtHxOooH1tU+9GuPo7DWxRObhQs2h/a8NPsVDG+8Ii56LWj61JxEfWg8Jpnp22Q5QXdxTZePUUSTJkUCjhZzswaHYKdG9wthJUgMDbiBypE28viY4HtoFLOasVUO9pQGnzZlTiocOiJc/j2G5FPsjyRYU/m/U+tLeylJhN8RRMOG1mblR4pXyrkPq8U4+QBJzK2xCgs4paq+UjHOlY6f8nCDaPTIYca6QGUU4oDY6Wxvl/ffuvXbNTLjgytPTUvb0LZI8DpX3qZ9VXoyFO2DA98Nd/FyAdnCsh9Wx4mk4ILJR0vc+h2OOqUOjdFTYgx1CTlgPMBCwL2wn02OHDgfzIBa4fgsHNuZ2cYDjFG1baEF2loFgOxwfI7AqA2M0tBhkyn56ZLLulIRLW9y2Yhe/oRExou8cAUYnr3X3fcva1E523zl+gb8uJN9PUnSoaBABRO4nU5Zub2E2rHh6pibQJRTd5zMWMDH/6Ng64ln4aFlKDp3UrwcNFtF+9YSPO3aiogzLGUboEk6CYsA2Qc6BtsMMWfB3lxYqpKqJTGb1frpJIrwJTMGNoHZ330172lV9akQVjbSxkHoEY9vEhupNRlyX1PhADYagw9Eug9eM1rAObW7gqFTdA9KWXKUA0JFFdMhd46aF3gGGOFbVnANrA1fRYLe3cigO4CcuNuISMz8MiDonjdbYtNfdfO9UmzV/30vOkiws/N/gTW7P 9ZxedQ9fPgpdcMoM9aUXZcpQijJVqwyZiu0ME7ezdhRn4k0vJV3sxJfd8YsRR/fEySJmzTASB18YtNpPAPC//yt7IQiwiKqBOckpWmQ0j4IQj5XbaBcWuhawwVFuZ4eLJmroLfpIackC8FxNUKY62wd6T0mgw4m9+N2ZG22Gfz Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id mv21-20020a17090b199500b00298c373a820sm100292pjb.23.2024.02.13.16.00.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 16:00:23 -0800 (PST) From: coverity-bot X-Google-Original-From: coverity-bot Date: Tue, 13 Feb 2024 16:00:23 -0800 To: Saleemkhan Jamadar Cc: Sun peng Li , Mario Limonciello , amd-gfx@lists.freedesktop.org, "Pan, Xinhui" , Daniel Vetter , Roman Li , Veerabadhran Gopalakrishnan , Horatio Zhang , James Zhu , Harry Wentland , Yifan Zhang , David Airlie , Aurabindo Pillai , Leo Liu , Bhawanpreet Lakha , Sonny Jiang , Lang Yu , Alex Deucher , Li Ma , Lijo Lazar , Morris Zhang , Tao Zhou , dri-devel@lists.freedesktop.org, Shane Xiao , Christian =?iso-8859-1?Q?K=F6nig?= , Ran Sun , Jane Jian , Hawking Zhang , Ivan Lipski , linux-kernel@vger.kernel.org, Tom Chung , "Gustavo A. R. Silva" , linux-next@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Coverity: jpeg_v4_0_5_start(): Code maintainability issues Message-ID: <202402131600.FF35A56D27@keescook> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello! This is an experimental semi-automated report about issues detected by Coverity from a scan of next-20240213 as part of the linux-next scan project: https://scan.coverity.com/projects/linux-next-weekly-scan You're getting this email because you were associated with the identified lines of code (noted below) that were touched by commits: Mon Feb 12 16:09:32 2024 -0500 0a119d53f74a ("drm/amdgpu/jpeg: add support for jpeg DPG mode") Coverity reported the following: *** CID 1583635: Code maintainability issues (UNUSED_VALUE) drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c:461 in jpeg_v4_0_5_start() 455 456 WREG32_SOC15(VCN, i, regVCN_JPEG_DB_CTRL, 457 ring->doorbell_index << VCN_JPEG_DB_CTRL__OFFSET__SHIFT | 458 VCN_JPEG_DB_CTRL__EN_MASK); 459 460 if (adev->pg_flags & AMD_PG_SUPPORT_JPEG_DPG) { vvv CID 1583635: Code maintainability issues (UNUSED_VALUE) vvv Assigning value from "jpeg_v4_0_5_start_dpg_mode(adev, i, adev->jpeg.indirect_sram)" to "r" here, but that stored value is overwritten before it can be used. 461 r = jpeg_v4_0_5_start_dpg_mode(adev, i, adev->jpeg.indirect_sram); 462 continue; 463 } 464 465 /* disable power gating */ 466 r = jpeg_v4_0_5_disable_static_power_gating(adev, i); If this is a false positive, please let us know so we can mark it as such, or teach the Coverity rules to be smarter. If not, please make sure fixes get into linux-next. :) For patches fixing this, please include these lines (but double-check the "Fixes" first): Reported-by: coverity-bot Addresses-Coverity-ID: 1583635 ("Code maintainability issues") Fixes: 0a119d53f74a ("drm/amdgpu/jpeg: add support for jpeg DPG mode") Thanks for your attention! -- Coverity-bot