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 92AB32C11DF; Fri, 15 May 2026 16:22:24 +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=1778862144; cv=none; b=p5F7ZnBs4fNvpUz59z6x1NeVlOKS6uwh9oyVLOucKkMiUXwXhtVMtNzEaEbx5QDpKadFe710EZwTNOxelRS7ZXvuysk0tEVzLQ0r5QSBOY+UDWq4XuiHYe/xdIOwNChaWeJHfaRgXkVAY2rGNtPXHsfv7zQXRtreFKFO6gjKOHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778862144; c=relaxed/simple; bh=TJ1yLVys4AyWgQPYhGdaAQF0p78qXvt3gPzsZUgzfo0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cUVwpyAwm46gM+A4R9WJhxXcLMbcCqX3Akj7N+9u5iBw8r5NCb0MMm/iVQhgqq987ajzbrzXGIvEClAMxAM9W7xfaP8ACjlK7Mr5KwrN3Ia5MSW5cunMdUXK5o3uJRvFgP6TMzUopeVXxZNBEMKRhp8C8AN4fTEPpZ34LncxZ44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HevzPQvq; 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="HevzPQvq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 166C8C2BCB0; Fri, 15 May 2026 16:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778862144; bh=TJ1yLVys4AyWgQPYhGdaAQF0p78qXvt3gPzsZUgzfo0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HevzPQvqaZcJ4q2BA82ZuhMGyMXmHJCnD91eTt7qOnLE1m8wVYyBax8gzNc2BlNDp 926+9oxMvtSU7MHfjVlM2tiNNxEM0LZnAWDQZ6UgkOaDGMC/hRSH79IqYcXHmZh5XB BD2XzCpoK2B3u9vmeDJfBpzhSLjYkTZUoIveCd2M= 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 6.18 126/188] drm/amdgpu/gfx9: drop unnecessary 64-bit fence flag check in KIQ Date: Fri, 15 May 2026 17:49:03 +0200 Message-ID: <20260515154700.062204079@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515154657.309489048@linuxfoundation.org> References: <20260515154657.309489048@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 6.18-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 @@ -5640,9 +5640,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) |