From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380699; b=0SFn3B5/Jvi+S+9ZxtcpG5cHf5Q+VPKrUonF/iEPsCRYcEG5jhVBYtfAJocNURDzq+9d wqc8L5dAbPXXWrdca9paTzlB6h4phh1LHsFhIstF9g/ob631IzGSMYnseFDmDNcffmT77 baHg1javqBn97bl6Fg/pCZgfx9jnGUAmRNHDM30wG8LspSd2pB1KUF6+nD2lB7vq/O4qH qPaZFT3+WczZ7hiK0LsgRBfPtmizo8poSHaMTdtyqZCinrQWEa1m2GnRsXtFBGz4MRlH0 sEg13XuAAYOeDVESEH71apfFfH8ddLYJbUlIDu0GYLaqgIdwye+O5zgM0rG30q0y1ug== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380699; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=MLhlBjInn2T8cZl4pqryh2c/wG7xPQf6LP7zuqL4nBs=; b=HZ64pexi/lBt+GxUW2pdwEdmuuZJI5CoIkXS74/OxLNmAJ+NVfbXuKOuyY3eikMI01uU 5yNPPMyWIcAwws3VkMpK8qRXG2bojJbj18J2jpZPHeCZBmiebntvy/Y5rms2qKIf6x7cL LYhEPkW94cupKQP2tusin/uofBFkAJHec4ShoTxDkVnPol13OSZ0nrGg5IeJMDqefXR37 FrR2n0whUO7mcuPRxIqYa/OaTI5VVhqi6rkNWsndNclOvCfE8OJ2OH4D59nTlr+Ir9Ty+ GrYU5xRgGLdRosrCoCu/MVezM7eu4T1HyTyP//yrqD87Xr/ZzeMUywG6dXP5LgRl7bA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=0pBfsqaP; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CCB6606A322; Fri, 4 Dec 2026 10:38:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=0pBfsqaP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 799931F000C2; Fri, 4 Dec 2026 10:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380698; bh=MLhlBjInn2T8cZl4pqryh2c/wG7xPQf6LP7zuqL4nBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=0pBfsqaP7e/pPAdvw/dwYtn1qiidrvuCWHo3yAWJNpLgUTAYjM9zkaofQqLX3K9Us CeovueMzMs+05mEPRNEufS/iIGy7TKPvnVz6bZyHeKBr98kd1oRgnQ6Qaht1t/rYvR R/nY1IFRVFKAvjY8KssDyoXbXU+oA7/U8clPCOiM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alex Deucher , Erhan Bilgili Subject: [PATCH 7.3 385/742] drm/amdgpu: Fix UserQ slot availability checks Date: Fri, 4 Dec 2026 19:04:09 +0900 Message-ID: <20261204100645.313736232@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Erhan Bilgili commit cfb11282e0fbf5bd06e3f329f56dddc93e749679 upstream. The compute and DMA queries check each other's disable_uq flags. When the flags differ, this can hide available slots or report slots for disabled UserQs. Check gfx.disable_uq for compute and sdma.disable_uq for DMA. Fixes: 78d0a27ae0e2 ("drm/amdgpu: Add user queue instance count in HW IP info") Reviewed-by: Alex Deucher Signed-off-by: Erhan Bilgili Signed-off-by: Alex Deucher (cherry picked from commit ed4f6b1f8848ad8890fd188da6b2ddfdd538a036) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c @@ -469,7 +469,7 @@ static int amdgpu_hw_ip_info(struct amdg !adev->gfx.compute_ring[i].no_user_submission) ++num_rings; - if (!adev->sdma.disable_uq) { + if (!adev->gfx.disable_uq) { for (i = 0; i < AMDGPU_MES_MAX_COMPUTE_PIPES; i++) num_slots += hweight32(adev->mes.compute_hqd_mask[i]); } @@ -484,7 +484,7 @@ static int amdgpu_hw_ip_info(struct amdg !adev->sdma.instance[i].ring.no_user_submission) ++num_rings; - if (!adev->gfx.disable_uq) { + if (!adev->sdma.disable_uq) { for (i = 0; i < AMDGPU_MES_MAX_SDMA_PIPES; i++) num_slots += hweight32(adev->mes.sdma_hqd_mask[i]); }