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 A3B6644210B; Mon, 17 Aug 2026 14:30:26 +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=1786977027; cv=none; b=by18a9rb2m/ZhijjVFh9TwUdi3qgz2toutHkqCmwZvyEO8pOZB5jv+FdgFmdb/qoRIz2l3P/+2BEna7FZ2mM39PaVTrkDYecDlWvbVBVhd9sRfWBqQ7wH/pGhuo9nhCpAlM1otQ1JhDcsu+6/No4yaSPvxGn6MgtT+CgOLiYp/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786977027; c=relaxed/simple; bh=KhexfGdTg5ZApefzVzvo9uMwwHc5B3MzMAxq+d+FC1g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AzB0lT6FxELv5F6cTBS6EhVUGXZNmTkJtAnNbDFKZ6u4ka6Tr8hjzLrr1WTxYzzsUVqLK1E8T2YgZjRB4cqmcsazyManVAkOzUZixIuRST1WavTL396kxcPK8Xoc0du2sAflNgxoInqcCgvgpfmN/vOJ5otiuLbOkUztLpxIFPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ocq9JClG; 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="ocq9JClG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05D271F00A3D; Mon, 17 Aug 2026 14:30:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786977026; bh=0VtWsv/ROvt8+rIEzXfoA8Yh5Hf0TnBU7GO3DHDIYdE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ocq9JClGOViPeGI2U4vo3hYuTVscNTib2lH7fmBKI8338BypvQt5GaIVxkqJmBykH klrw4CoNNU0NM6loayQkCFVrXeBBjJ0zdhKr3+i+RA7Fry9OADIEavOXJhqVgC9BnJ Kua1XnCQ+rRppjueWILARE+wa4c1+0f+DisnhyqQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vitaly Prosyak , Alex Deucher Subject: [PATCH 5.15 147/456] drm/amdgpu/sdma5.0: replace BUG_ON() with WARN_ON() Date: Mon, 17 Aug 2026 15:28:57 +0200 Message-ID: <20260817132545.826805410@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260817132539.792407575@linuxfoundation.org> References: <20260817132539.792407575@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 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alex Deucher commit 9e98ed3113943257ad6e5c1e6beddbdb482a70ad 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 8d144a0eb09537055841af48c9e7c2d4cd48e84d) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c @@ -552,7 +552,7 @@ static void sdma_v5_0_ring_emit_fence(st amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_FENCE) | SDMA_PKT_FENCE_HEADER_MTYPE(0x3)); /* Ucached(UC) */ /* zero in first two bits */ - 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)); @@ -563,7 +563,7 @@ static void sdma_v5_0_ring_emit_fence(st amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_FENCE) | SDMA_PKT_FENCE_HEADER_MTYPE(0x3)); /* zero in first two bits */ - 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, upper_32_bits(seq));