From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 1CFAC40DFC6; Thu, 30 Jul 2026 15:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785424961; cv=none; b=Ptb+vZWbOFeCiweYkLI9VXarrl1MVq6NdkFRNDv9wmTPPq1sjCQxJIkGWDDnhR0ZtKYi0KEqhrcq8SxVh5zAZfJGluDBjQRcpRU7hSqx+SJflhw4Lbl92BMGpbXybnfFaA7B8GGdnVba4P8gHeidDKoN509IlLJO3QlvmL2y+mA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785424961; c=relaxed/simple; bh=Y2NCuwX/Y+z+dVBygiedrcUjmm434faGPKjK4SDLp6c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LDZPjQrzfXWkihybD4TxReQa4K6I7bXXdSrfoM44RHX8+sNPyUWOp48XhNYi1KgaSSmkp0iwueby3DuCOJHc6YobR3Idvz7wRwzM5kJ88vvRDUZg6g4qHndHfs/pKbhnr2nxHJCEV/AFYzweMJMhargLnXVWjnXTxYBmqTv94m4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uquWA6wl; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="uquWA6wl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 782B31F000E9; Thu, 30 Jul 2026 15:22:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785424960; bh=hPMCmig+d9F2N106A1Hl4gBXPssVi+LuFdeSGWtE1iY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=uquWA6wlYdeYkbjOY1a82p3eBd1un+Hf1OjWXkNTmp3Dt1RZqWJL3/ZwH2fehsEc1 EcnpyaQdR0fzLfw+f8vquVL1v5BTPDySquF0UaoYFx7a5IzXjTb3LQQpMC3NH9CB3H 1mRbojsUrWOG2+DIEL06I2qd7yDTjEpBIQm2UbYU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vitaly Prosyak , Alex Deucher Subject: [PATCH 6.18 577/675] drm/amdgpu/gfx9: replace BUG_ON() with WARN_ON() Date: Thu, 30 Jul 2026 16:15:07 +0200 Message-ID: <20260730141457.392368717@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141445.110192266@linuxfoundation.org> References: <20260730141445.110192266@linuxfoundation.org> User-Agent: quilt/0.69 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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alex Deucher commit 6302be10b521f5106ce01eb5a724b9e7945a5061 upstream. There's no need to crash the kernel for these cases. Reviewed-by: Vitaly Prosyak Signed-off-by: Alex Deucher (cherry picked from commit b71604f8685b0eba07866f4e8dc30f93e1931054) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -1183,7 +1183,7 @@ static void gfx_v9_0_wait_reg_mem(struct WAIT_REG_MEM_ENGINE(eng_sel))); if (mem_space) - BUG_ON(addr0 & 0x3); /* Dword align */ + WARN_ON(addr0 & 0x3); /* Dword align */ amdgpu_ring_write(ring, addr0); amdgpu_ring_write(ring, addr1); amdgpu_ring_write(ring, ref); @@ -5473,7 +5473,7 @@ static void gfx_v9_0_ring_emit_ib_gfx(st } amdgpu_ring_write(ring, header); - BUG_ON(ib->gpu_addr & 0x3); /* Dword align */ + WARN_ON(ib->gpu_addr & 0x3); /* Dword align */ amdgpu_ring_write(ring, #ifdef __BIG_ENDIAN (2 << 0) | @@ -5569,7 +5569,7 @@ static void gfx_v9_0_ring_emit_ib_comput } amdgpu_ring_write(ring, PACKET3(PACKET3_INDIRECT_BUFFER, 2)); - BUG_ON(ib->gpu_addr & 0x3); /* Dword align */ + WARN_ON(ib->gpu_addr & 0x3); /* Dword align */ amdgpu_ring_write(ring, #ifdef __BIG_ENDIAN (2 << 0) | @@ -5610,9 +5610,9 @@ static void gfx_v9_0_ring_emit_fence(str * aligned if only send 32bit data low (discard data high) */ if (write64bit) - BUG_ON(addr & 0x7); + WARN_ON(addr & 0x7); else - BUG_ON(addr & 0x3); + WARN_ON(addr & 0x3); amdgpu_ring_write(ring, lower_32_bits(addr)); amdgpu_ring_write(ring, upper_32_bits(addr)); amdgpu_ring_write(ring, lower_32_bits(seq));