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 E3D5D3B4EA3; Fri, 15 May 2026 16:32:11 +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=1778862732; cv=none; b=LuCQVjPEssdZHAUAA59CPb4Oqy7jOvWlNlIR5ICbrU4lJ2vs174zfyC7cjgke1xWSZUvvU+w1TFF+wDsZ+jnDrNWqmtU3WMx9khb86UijL75QpGl3cJxlp6fbL7dgzl0VvldnJCraTGjAb+WiGDeKC/Xjzoy+Ah6cCbLsTOKIPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778862732; c=relaxed/simple; bh=JUw+HgZ7X09NaV7FWfuNyzJBaVGKc09DdzT5zam478k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mKmXEu9pdQqFB05sa0VYV7upPzdee3fswKZsqYPrtnJRBiBQTQIL7NC2aURRckyXiGZt9k3CSSdFNtuHFewsGidyj8DgWpHkdvNFUzrJwr+lGX8weS/iijiu3XwuB4GcrTcfDbz0GejefRozMRu5CjNMuk8/YsifKYDhb0kqki8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KPklJYHd; 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="KPklJYHd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2117CC2BCFB; Fri, 15 May 2026 16:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778862731; bh=JUw+HgZ7X09NaV7FWfuNyzJBaVGKc09DdzT5zam478k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KPklJYHdRXBqUSBDApMvf/b8OljwXe7CTtq5l9rDyQqNyd33HOGUo/aVz57O9aoGn y4+G1sD9iVazK2ZV4PgqrRJ33axhQ0NFdFaYfpCN+F3FUgsXEV9bqBOuT4UEsedK5a oEoUN4+3T3y2BEWLQml82+cSt/y7ArKRnNODDXEE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Christian=20K=C3=B6nig?= , "John B. Moore" , Alex Deucher Subject: [PATCH 7.0 160/201] drm/amdgpu/gfx9: drop unnecessary 64-bit fence flag check in KIQ Date: Fri, 15 May 2026 17:49:38 +0200 Message-ID: <20260515154702.041364541@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515154658.538039039@linuxfoundation.org> References: <20260515154658.538039039@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: John B. Moore commit 7bbfb2559bcec39d1a4e1182d931a2046112c352 upstream. Remove the BUG_ON(flags & AMDGPU_FENCE_FLAG_64BIT) assertion from gfx_v9_0_ring_emit_fence_kiq(). The KIQ hardware supports 64-bit fence writes; the 32-bit writeback address constraint is an upper-layer convention, not a hardware limitation. The check serves no purpose and should not be present. Found by code inspection while investigating related BUG_ON assertions in the GFX and compute ring emission paths. Reviewed-by: Christian König Signed-off-by: John B. Moore Signed-off-by: Alex Deucher (cherry picked from commit 1b1101a46a426bb4328116bb5273c326a2780389) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -5660,9 +5660,6 @@ static void gfx_v9_0_ring_emit_fence_kiq { struct amdgpu_device *adev = ring->adev; - /* we only allocate 32bit for each seq wb address */ - BUG_ON(flags & AMDGPU_FENCE_FLAG_64BIT); - /* write fence seq to the "addr" */ amdgpu_ring_write(ring, PACKET3(PACKET3_WRITE_DATA, 3)); amdgpu_ring_write(ring, (WRITE_DATA_ENGINE_SEL(0) |