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 BA20A231842; Wed, 20 May 2026 17:05:27 +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=1779296728; cv=none; b=eibPm2+pIr7ogJHx75mbAegdpFxVXQA5t+HPJXY1BJl3uOt7yGPe/URcU4k9+KI21uvqwbWIQ9Zx/SbZTGbN1e5GkgOCt4vwI5znb78XVPOZU5+PNaPVTcoHW2mUM8fnzPv3hs8t3fzwrCltqTdVBbdcCE+60oWXAmKg9r94E6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779296728; c=relaxed/simple; bh=/wysthc/L5s9AbUtPoCj/UzEDdpXIueNT0UsycbB9YA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GdD9HCaW6r/QUudiWlqQ/+MY4nt8RCdUUHWof9AZoMtI4Fr9pRdiOJGDoGG5bj1KRedQORGPykZASqD+/b9NHXXxeInQiViK0vNXFMVnCWPat283tSmwhY/fITLPemMy565OPt4XAffh6tyawzRFb+W+G7aqna42+mx2RsJrEoQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mrUdHnwO; 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="mrUdHnwO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C9611F000E9; Wed, 20 May 2026 17:05:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779296727; bh=41vfFKGhz3Yunj5V16+bDZRcBrXnvX3MQn6KpbOkK+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mrUdHnwOX2l54YLFLtTbvhafH3Lq+HSPjvMLNHYDeLtJ9XE54eWM+V/JdoUTnJmsV RK7LMaFCez42rze26QaKaG8cJNp+g8SAa7/hNFGr6eCF2bmkTWbAkbYAq1/XWDerCO 4vy49tO5Kr1CLumHgzbg4+zn7zF2cfd/cVdJh1Gg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kent Russell , Tao Zhou , Alex Deucher , Sasha Levin Subject: [PATCH 7.0 0907/1146] drm/amdgpu: Only send RMA CPER when threshold is exceeded Date: Wed, 20 May 2026 18:19:17 +0200 Message-ID: <20260520162208.766179082@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162148.390695140@linuxfoundation.org> References: <20260520162148.390695140@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 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kent Russell [ Upstream commit b56922fc37454633b831a2a04a1537616742977d ] According to our documentation, the RMA should only occur when the threshold has been exceeded, not met. Fixes: 5028a24aa89a ("drm/amdgpu: Send applicable RMA CPERs at end of RAS init") Signed-off-by: Kent Russell Reviewed-by: Tao Zhou Signed-off-by: Alex Deucher (cherry picked from commit 8bc09a7d0e90ec45a0b4865661cf45cbbce1c3d7) Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c index 6fba9d5b29ea6..ee271f43d5ad0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c @@ -1939,7 +1939,7 @@ void amdgpu_ras_check_bad_page_status(struct amdgpu_device *adev) if (!control || amdgpu_bad_page_threshold == 0) return; - if (control->ras_num_bad_pages >= ras->bad_page_cnt_threshold) { + if (control->ras_num_bad_pages > ras->bad_page_cnt_threshold) { if (amdgpu_dpm_send_rma_reason(adev)) dev_warn(adev->dev, "Unable to send out-of-band RMA CPER"); else -- 2.53.0