From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 AD35E368D4A for ; Tue, 12 May 2026 06:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778568705; cv=none; b=i1fvX+dfAnzFnp/wNirtKi3SXZieMG4fnJAZoxnAMdVxP9Sn7vJSfUF0goPJHGKy3x7O4+843+OClvR/t+MlrZxGv/EUr47GXiEXY7EH8rw0WlDQTEpUA8Q5WA/hjSr/nhSvRlcQq3/H9lhSXsXwmwe/06HziD2whWvbeV/WsAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778568705; c=relaxed/simple; bh=l2q/o3YLzqVvVBD9xt5YoGvrCny7mNfjFIlkwFKF4pI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fOo0nIXWjmv+VK1Mi+NT8Xg+WY3rou3AAfcz+OmJ9SEASl5hlG2SYxfhudeLAZI/jO5/DGCJ4OgTNVor8I6gNcRFkm10bT6kgPK2UugfPmBEk6KPNgNToYdWs6J8e2aRirM/S0gcm9x2qhA86CQlbnmg+00kbpM46S/gV22HLIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=jalJ0c4C; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=R9K/xqrT; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="jalJ0c4C"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="R9K/xqrT" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64C5BbcL3384770 for ; Tue, 12 May 2026 06:51:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= rps4+MRn8b+/NfK3qw8jn7TXbGFAbhWtr90VLiZIiHk=; b=jalJ0c4CDRMSfezs Dl1dgmNW9TD7oJ3eDj4RI0y0TKbotUzWHDqQAkQt/ETWFTT9E8HcQA7QBsein95h q8zAb3Dnyk0bYKEoq4LPZ1rQg1dqmQrlZbEfIwFJA2ZK8gf9p1stuiErrKt+VHkr LK6W0ELpbqUMMlTBPivsWakT7E6bOnhNVkgkEqsT0ITJTyo2lKgHFZ+x0gbiz/dc Q1IqiwG2vWxE7pULWT7QiEjCG32ULR/pRiYQ0k807dfoXn0rR2D+/MIJYorZ/CPJ dvZJSKY6X94gN7hJhNteIdfG7dIzE577ZGtN85AK1GytKWAV3+cnJs+kjH8Huro0 Cymw0A== Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e3nv4hug5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 12 May 2026 06:51:31 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-c6e2a6ba6b6so668703a12.1 for ; Mon, 11 May 2026 23:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778568691; x=1779173491; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rps4+MRn8b+/NfK3qw8jn7TXbGFAbhWtr90VLiZIiHk=; b=R9K/xqrTMUvi6syJAJF/ggyYfhvHflW+xPissLiPF/1mRRrTv+53I50YO/CHu/MrH0 uAkwYRZCUQkaLAg0X8XgxRJmqMApFwy+sDYexu9dAs+NCH5kSgL5mwJz1v9D8LMab7zr jAiNSOa5Rt37uqqnR8wj0fVc8eh91C1q5MtjY1Qm69r9OxdVb/Z1IXrm8247G1FTCqbl sxrN/6xYKj5Jd3odQ4xzwUFBN9+RQiHM0R58IQOL6AUsEgL614lM1giaKOcDRqdxcwWy h0RZeqLsQeBRgRcWELndox30sYPZshhNtFeySp6BmJiD/95hLOa+2ehvsANldXdITDta CEOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778568691; x=1779173491; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rps4+MRn8b+/NfK3qw8jn7TXbGFAbhWtr90VLiZIiHk=; b=oitUHf0nQANizv2ZoY0WolTh19u4zl7ZpfUkPKCDZ/Qz/vJG+ljLjDhicKnWsPKLsA kHFKvWZPKZV6fleNNy+K5zU+zKLV8E6y8vhT9JnoxgzFFHOpYbv0vJXCJfpuC5CQJM+V wHLCqSUhgR8xE8yoiHIerS7KqFajSgthQMimz8mBvUWzO0+BER0LLb9DAuUck1Y/6rJt ICJ4+joNTiqr/IGu0SeFS3rFzP3+IvpsG3IYuWgDwHBYzyL1l6hquWBAXndA+XLVvYKg U3ywlKG7YqsdP/pbncZMzvy+dX7P1vVIu2p4VfcmjscOXccvTeKdGaf/bhRhznEctRBG 0TjA== X-Forwarded-Encrypted: i=1; AFNElJ8IEnRlfFTrTeASmUQj4zCwGLDpMIP0vDz70L0Xm3yljqYAuY5vorBCWXO52guhHYmWu3jEbq8Z2+bV@vger.kernel.org X-Gm-Message-State: AOJu0YxQDlefg+P5/2+D9OEyjV7+qRPhrvzrqHiTRl9YId45y52i1t/n YqKkVtD9TMMXvZWdaENwdIXIq1CFcCuSKq5tkIAuJcyRoLMe/zdCU8LKy4BX1++wN6UrwJ/5X1/ UOelc/g7nivLsLxFnH5QgackOnEBW72sNZOKDmITtSVy73tcEGHg2qq74lj1jfqYx X-Gm-Gg: Acq92OFgOEkOVbND37C8G/H1J2z3W0Ap4/4nnJdBurCTkHKrQt2e0B7SDD5/CXJoeWz nFzxW1RsuAIfIDodHvQs4Ja+M+HPcwprEzFUvrfCA8UUMFF1FxaBhviSTHRKrxVunmLgHmXt71F ueAd6fCQA8rhik1lrKeEZYlaYMQnFJ2ZsLv5dDrWsadn0gRMGKEzxEGVdaVPTFpbtzZWGC/udZH uhvBDu1MwRhN+vHwA+4iXbKSnI9H0f6re5ASBxs+84jnfGPQfESP9uRDjNs5vhV/YZz8InElhNn QPqbJlrXmbgAavovLyyweV4UdOdlaG8i8MKgxgS7zJ0p3eXfqwNGVLN9W+uBAqQyxRtmKaMtF7d f8Bwd5Mz53c7Qp97RSI0KKyy/57Gh/yRQH3EqIrBycYOxlzrhjYk= X-Received: by 2002:a05:6a00:a804:b0:82f:21ee:270d with SMTP id d2e1a72fcca58-83a5aaf7794mr13651036b3a.1.1778568691151; Mon, 11 May 2026 23:51:31 -0700 (PDT) X-Received: by 2002:a05:6a00:a804:b0:82f:21ee:270d with SMTP id d2e1a72fcca58-83a5aaf7794mr13651009b3a.1.1778568690660; Mon, 11 May 2026 23:51:30 -0700 (PDT) Received: from [10.92.198.185] ([202.46.23.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-839683a6252sm22579715b3a.59.2026.05.11.23.51.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 May 2026 23:51:29 -0700 (PDT) Message-ID: Date: Tue, 12 May 2026 12:21:22 +0530 Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/8] ras: aest: Add panic_on_ue module parameter To: Ruidong Tian , Ruidong Tian , Tony Luck , Borislav Petkov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , catalin.marinas@arm.com, will@kernel.org, lpieralisi@kernel.org, rafael@kernel.org, mark.rutland@arm.com, Sudeep Holla Cc: linux-arm-msm@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20260505-aest-devicetree-support-v1-0-d5d6ffacf0a5@oss.qualcomm.com> <20260505-aest-devicetree-support-v1-4-d5d6ffacf0a5@oss.qualcomm.com> <24e7a997-9479-447e-a1e2-cfab9a904668@linux.alibaba.com> Content-Language: en-US From: Umang Chheda In-Reply-To: <24e7a997-9479-447e-a1e2-cfab9a904668@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=ZrTd7d7G c=1 sm=1 tr=0 ts=6a02cdf3 cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==:117 a=j4ogTh8yFefVWWEFDRgCtg==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=XXTmVIMiA0tzt-EScKkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=_Vgx9l1VpLgwpw_dHYaR:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTEyMDA2NSBTYWx0ZWRfX1i6ZotLMtfh5 CungLBsXawYYWIWZI56n220UDjV9y3EZCoiKRAfduhoX95sVXGeh1Sx4pzvmaG4MxNmp3asPDbd EZdMmK7Gkcygh0KGu1hhsvQHzcD8lsDNwBqH3CZi+aB7dIz2BE3C0mpg/nxBSr1Z/yNY9irlAbq b52KfG+XI2SnPFXCAaEPAH8Tt8SAgWsjZ1Yo7r4iuyBididCCamFlH7oiOAO4STu8f7U/KMe5ok GAXFJblaF0VsfBZBPkHn8cR0DoaTQyjn6prYTCPWATXnQoF9XSvsXr4UBiqVZRbrOHI/PFZV7OU ZBwCIfmZmZ3/2S4ZYKETfafqjpx+tqMhEVDs3qOx+9U8v8Se+kuES6vC98+JtAzZ/YxVScf0oso kTINZB3l3lOxIsSuHnWM2n0lTCKb8GRsfm4Q9z2tSyWljLh9mSSvA7GSXZZyU+QIupvbGl0UKxX O7+HA7+BDEkNh7+yfJQ== X-Proofpoint-ORIG-GUID: PEEICUV_uU-1w7vkW7a5M3_Cnb33zr_C X-Proofpoint-GUID: PEEICUV_uU-1w7vkW7a5M3_Cnb33zr_C X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-11_05,2026-05-08_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 spamscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 bulkscore=0 adultscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605050000 definitions=main-2605120065 Hi Ruidong, On 5/6/2026 1:36 PM, Ruidong Tian wrote: > > > 在 2026/5/5 20:23, Umang Chheda 写道: >> The driver unconditionally calls panic() whenever an unrecoverable, >> uncontainable UE (UET_UC or UET_UEU) is detected. There is no way >> for the user to suppress this behaviour, which makes it difficult to >> test UE injection or to run in environments where a kernel panic on >> every UE is undesirable. >> >> Add a module parameter `aest_panic_on_ue` When set to 0 the driver >> logs the UE and continues instead of panicking. >> >> Usage: >>    # Boot time (kernel cmdline) >>    aest.aest_panic_on_ue=0 >> >>    # Runtime >>    echo 0 > /sys/module/aest/parameters/aest_panic_on_ue >> >> Signed-off-by: Umang Chheda > > Hi Umang, > > Thanks for the patch. > > I understand that this parameter is intended to facilitate UE injection > testing and to avoid kernel panics in certain environments. However, we > need to carefully consider the potential risks. > > When a UC (Uncontainable Error) or UEU (Unrecoverable Error) occurs, the > hardware state may be unpredictable, and data integrity cannot be > guaranteed. Allowing the system to continue running instead of panicking > in these scenarios could lead to silent data corruption or other > unforeseen side effects, which poses a significant risk to system > stability. > > For the sake of robustness and data safety, I do not believe we should > expose an interface that allows users to suppress panic on such critical > errors. > > If the goal is primarily to ease testing, I suggest handling this via > local driver modifications in your test environment rather than > upstreaming it as a configurable runtime option. IMO, it would be useful to have a module parameter for this. In some cases—outside of test scenarios—it’s necessary to avoid triggering a kernel panic on UE errors. Would it make sense to keep the default behavior as panic on UE, while also providing a module parameter to disable it when needed? This way, we can preserve the default safety behavior while avoiding the need for local rebuilds just to change this setting. Thanks, Umang > > Best regards, > Ruidong > >> --- >>   drivers/ras/aest/aest-core.c | 9 ++++++++- >>   1 file changed, 8 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/ras/aest/aest-core.c b/drivers/ras/aest/aest-core.c >> index b4f4c975da1d..9ce782a66edf 100644 >> --- a/drivers/ras/aest/aest-core.c >> +++ b/drivers/ras/aest/aest-core.c >> @@ -22,6 +22,11 @@ DEFINE_PER_CPU(struct aest_device, percpu_adev); >>   #undef pr_fmt >>   #define pr_fmt(fmt) "AEST: " fmt >>   +static bool aest_panic_on_ue; >> +module_param(aest_panic_on_ue, bool, 0644); >> +MODULE_PARM_DESC(aest_panic_on_ue, >> +         "Panic on unrecoverable error: 0=off 1=on (default: 1)"); >> + >>   #ifdef CONFIG_DEBUG_FS >>   struct dentry *aest_debugfs; >>   #endif >> @@ -342,9 +347,11 @@ void aest_proc_record(struct aest_record *record, >> void *data, bool fake) >>               aest_record_info( >>                   record, >>                   "Simulated error! Skip panic due to fault >> injection\n"); >> -        else >> +        else if (aest_panic_on_ue) >>               aest_panic(record, ®s, >>                      "AEST: unrecoverable error encountered"); >> +        else >> +            aest_record_err(record, "UE detected, panic suppressed\n"); >>       } >>         aest_log(record, ®s); >> >