Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp53139rdb; Thu, 5 Oct 2023 16:34:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmGOpq3/T0BEckT5/tBSxfwp+qkQWhZMidR2TAFeQ4dPtaipDI1om/CRuGsa922uUJ9pWj X-Received: by 2002:a9d:638f:0:b0:6c0:ef3c:5ab4 with SMTP id w15-20020a9d638f000000b006c0ef3c5ab4mr7072486otk.0.1696548861106; Thu, 05 Oct 2023 16:34:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696548861; cv=pass; d=google.com; s=arc-20160816; b=mLCAmQkHw0bakvmE02hqRDzwQMyT9671HJQC9qjfkTqPwqT7nygquSPcK8jSPaJNTC 73ugLMEtxDuH8rHuSXv/mYDUoe6DYzCly8JuMHV8b8/fbR1c4H5HabCAHiabKDZ4KsHW +9nvt2wDz7XfOdreDoXmrH2ayc1DImDPYXq1HqZP11xUVU24ml1YyovYWOGCrcvz0wvY CI4Ts1+ZOe0Lz+F+xgm9/nyF7ol+yt6XNNGdv8Z7Pqb80i/jV9Da5LrZykIEmtAKV367 Q0aEMOZt02mNDAD6raGxczOjn2phZqIWVfIzDTbHXYLWEYHJppTcLLORkKoYEweN5wlJ agzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=CTdscpmRC90xh6rkofX2WcaeUCscmlK4KCHrM0n5XJw=; fh=VtajrzuFNO3JSNsalB/Cza6JZL3DUJAjxcg3kLWipx4=; b=A08CAlljLoMAfaeDKERTljDQSHmd4LSZKlBPx+T9PJqg7e2WKGUcytkzmSe9+V52np a0OGBSZhIoL8MRvBPTZfm08ISUPHozWOofhrYHlLwnUgG8Rcl6Y05dRrA0Rj1KTTExlW 2hDBatrBoTafxnKYzp2qf8QOKS7maMVny1s9dizkBqlv8h6QlTJTYAkR94U6u7yKr37/ 8JKagHLzhba3Vr15981jpMuVmVlgR/SzmVWxmeJ6i70vLi5ttUeMymzLc7KUxJGRY3UI bOE+bKGybgMcPHoqS1A8ttph48fDAQSweyYtPwdY0xvOY030ZEn+1hhq7HUu3BQ7EBbB YdmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=TdrHasCR; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=UaphyvNO; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m9-20020a654389000000b0057763d820d7si2266763pgp.835.2023.10.05.16.34.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 16:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=TdrHasCR; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=UaphyvNO; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 280D3831923D; Thu, 5 Oct 2023 16:34:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229550AbjJEXeN (ORCPT + 99 others); Thu, 5 Oct 2023 19:34:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbjJEXdL (ORCPT ); Thu, 5 Oct 2023 19:33:11 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A273197 for ; Thu, 5 Oct 2023 16:32:31 -0700 (PDT) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 395IQCF0014524; Thu, 5 Oct 2023 23:32:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=CTdscpmRC90xh6rkofX2WcaeUCscmlK4KCHrM0n5XJw=; b=TdrHasCRIj7e093yGWJyNCGOKIhNT4Hy5nWNg8acup526R0cWaH4V09WVb7Q54b3w6X6 LTlLA3kutu3PwALAz6XkKu/MLP3MxqKsehmAQPvpFmCbL6Bapb4qgRdNgGQvu1lQSIIg olebcaR9THsxAELW/RLOkq1lt9TpQh0jzGhLQOAofX+wRZCLm3jFPKzomG45m0HBXKFr YANmIQ08RgLkUHMzcytSLCek1MOq6G5pijZROC0mDkOdFaLiMYvHXbHCrtNIpwcROXJ0 adWaQOgAUz4kxfqHBUS3nHkntO/qROO7e6vzX5KyX0O8zkgY0KSTR32adnF/zIRnQ3Vv Tw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tea92asnx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 05 Oct 2023 23:32:16 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 395N483p005786; Thu, 5 Oct 2023 23:32:16 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2049.outbound.protection.outlook.com [104.47.57.49]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tea49uhq8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 05 Oct 2023 23:32:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q3DllXdy4ib531iOGOD426oum0UeNd45EmGe71oaImJayy3vwxUPomKJfds+uMCTAeS5VOAgFFxb8PwwuDHq6BPgcWK4JpDmfBpFrQ0T7zRovcQcF9o2LVLRZuNlOUv7JRYC78T/JumbPETOdOEO3zPZ/nkMAarN423gS7BA38J254/s6eFE2GAD76nV5Wfp+H/DG6B7NQruNyX6FwWNAYHavucKwyeGk/54AUwxk/Z3bFtUECSFjdTLz1ESAHsHzaye5Sn/1VQo+GcGPPATvodzOiERH6Jwii4qoZQR0DCsfaYF675qgVBnPpnx/17MvKmgn4Z7Bb2OFwwoGa04fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CTdscpmRC90xh6rkofX2WcaeUCscmlK4KCHrM0n5XJw=; b=h0MzMl7ug7e7+F/P9x3WsMTz7nIAoYSDRSqaGXneteMgJtZpNH+kXiVFUYHAH9iQSi7Ea7RTqmxab1iajJJtl+/sgNJmGU6TZYPJ4u2t+ePBUsXOiuJ6edElG2o238mEMjkbLtJZx7tvnReBPU/J36+TIhLHAX7Tt2h6zimKHhJHRpExxQhsKajmeXOg4Udal7T0zmsPt4NUIDGHZNvOxKyB+7QgZepVwXaDGv4TJUIGe85S8ozSbUyv0lMjnljwD+fluNFfQsx74dbuhpZAOFrOlzodv0/uaXqAmy9f7HVQY0Ha0hxhROP1ZyrfiynCgTKNhh+aTUjXTA1gD/Ulnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CTdscpmRC90xh6rkofX2WcaeUCscmlK4KCHrM0n5XJw=; b=UaphyvNOf+WB1bEElWpNPVpDCGlgrZdEo8y3+v0LvPv6+cqIELUea3aAtEYHuX3vM8JNPhxRutnlSZ+oFuIXgdf9QicOtQpE1qdewARfsqnSDs62EnkFkA6Jb36Ae5m143BUeHtW5NGCRXY/Qrh+oiHCDG0lHm5gppgyDsUna9M= Received: from SJ0PR10MB4479.namprd10.prod.outlook.com (2603:10b6:a03:2af::22) by SJ0PR10MB4768.namprd10.prod.outlook.com (2603:10b6:a03:2d3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.42; Thu, 5 Oct 2023 23:32:14 +0000 Received: from SJ0PR10MB4479.namprd10.prod.outlook.com ([fe80::203b:a78e:dd34:6571]) by SJ0PR10MB4479.namprd10.prod.outlook.com ([fe80::203b:a78e:dd34:6571%3]) with mapi id 15.20.6838.028; Thu, 5 Oct 2023 23:32:13 +0000 Message-ID: Date: Fri, 6 Oct 2023 10:32:07 +1100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH smp,csd] Throw an error if a CSD lock is stuck for too long To: paulmck@kernel.org Cc: Peter Zijlstra , Valentin Schneider , Juergen Gross , Leonardo Bras , Kernel Mailing List References: Content-Language: en-US From: Imran Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY5PR16CA0009.namprd16.prod.outlook.com (2603:10b6:a03:1a0::22) To SJ0PR10MB4479.namprd10.prod.outlook.com (2603:10b6:a03:2af::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR10MB4479:EE_|SJ0PR10MB4768:EE_ X-MS-Office365-Filtering-Correlation-Id: fb9c5d1a-d3ea-47e8-4020-08dbc5fb4d70 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tdrI3ezG6ovu1l6gSbr0TLA9g3eRlzwxswTGHra38SHs2JZRyXIYkTAPdFs9rRkohq5mwPfqBdD5VYwKRpdSPhisq0t6bhjcZun4zidsFibp2OY5r+4ijCjj4xmoTr8EthLZPzMABqG4qGsnRYGP1Ls4EKb4+2K4gR23l/09zZv0faBmBC+NQRRUZU8ta+CWFTj0OJNaW8mP3HXSiQkaP9SKa8vUvNfeodzlnUVeHcYgPr2jHWEpomfWYVffaRIc7gKuLL75w0V/knwZ+S7BTx/kkM7dHLSLPLEPoe/MLK4VyrKTd+ksBi45cVP1oLgqUlipCApyc8w1/85x9vXSmz/aRt8o+UtiV17ADP8UC+aqYKsLr9CSxxszfRKMSg3uE8q/XRhjP9T7yp7TW6Fz6kkU2CnyrMKSaWsHiEXs8ejMmFWoYH5S0a2zUPYzO7W5M5q4Vz3ehpdCSPeury7tRiPyx2v+Y5+UIfmj114OUFkEVKxJqzGOdArH/8C6ZHclr+zlP7Ov1qmLowsdIZUuat4/LPPLr7MxQ7+Nrsuse/NsCc+XCpdgCq3SJSORRmvrNb+9Wyqqf/1gmkCyTakQvKcgeNw+ZogLKj8ZMPZHG53CVRen3uXg2v3eMvq8f0UgIz8PimsfC3mQ2u/sW6Onfg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB4479.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(136003)(396003)(376002)(346002)(39860400002)(230922051799003)(64100799003)(1800799009)(186009)(451199024)(5660300002)(8676002)(8936002)(4326008)(6512007)(31686004)(6486002)(2616005)(83380400001)(53546011)(26005)(6506007)(478600001)(66476007)(38100700002)(6666004)(86362001)(31696002)(41300700001)(66946007)(6916009)(316002)(66556008)(54906003)(36756003)(2906002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Ry9kbjdXbFZpVkhmaUFtaktnRmdEeUlQRzlhSFp5WEJ5cFlqM3JWSmxYZkJm?= =?utf-8?B?SDgxSXQ1c3BzcEI5M2NvQlpjZEdPY3pLNTRsK1c0QzJ5bDVjUmVHaUZscDlz?= =?utf-8?B?YkswMU1kT1UyT3ozN2R6ZXdDaFMzamd4ZDZlSEZON0pDRy8xWW8rZ01nVFFB?= =?utf-8?B?YnZhRGFya3RwN3ZreWIxZjIyMnd6TlV0ZjBVY24zNEU3ekhTRCtVUWVTKzNz?= =?utf-8?B?MS9taTYxMGxpeEJYQUpkbjRHR01XbXRPOHNYZmJlelM2TlpvamVKbGVVa3dv?= =?utf-8?B?QjhuR3g0dXBuTTJ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0?= =?utf-8?Q?qnTDGQHW1cXmjM5xsEshoQzRx?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: idjSE9b7ig+h3MSVPGw1+NC4iW7a+0m0p85lpQ7iyUnKnNJQMvo5tvm4WNwUYdOGO1TmmRMcDJcLu4D1EE2fA3AsG6aqiisp77GpolUeOtfE2KRGXbURU6S6P7hD3q/prG5ocabspCa0YoGxkICF8PtprCOfHvJ+835UBFwJ8Gl7J19HZ9K6ZBxhNECwzVW6iN6C5ibtO0jih3ymp53LDlJdSdKYTQfhrbRnfcNbYa5H/om4f1wsHQL8KIJQ7kgDHOUMS5w1rR/5zsOVqRJpBTGhpYgd87VUwwFwVr2lRBm4Pz+77EWy3lWc7OXP0jtNF1O57pk6TqzX7HEif4sydCdwyvKmMl64S8vBXoiHRbEGpRVzSuKkDrIMieHBAN4bdiRMs9B/BMa5wMTjS59crIeCvVL1Zm0eb8AOZBfRSrM0pRMLYc3GLzWS28/V+DMDJsnGKNI5wag1AHGIEk0ddAL57Fca2yCqsruxL1bOsXrCTqHrdXebLHNcHDxnZFj7Sm9gndivXuvOBQZBNMLQ1Vm41QTprfRmKwr5H5D6eszDEk7bIsyRWQu7VrihCAGFCzodoAeVmNgj9+h2TvRzFAU/ieOl9zH6x5SZT75f1C3D1CMPnyfLe1P5ynBiqd/UwfZnXN+oWxHnPOTTN1EZIm5we4ykQef6vQnZswNHrvLdbBITzo+PFiKTwCUzsrNxbnU3+ym/nsVCNiRYR+ZwsCLc4sYo/l5ZLk6SROBAdkHnK8wFG7Ih47yhZ2ruP9+/4nMdAAdOxxTeqHnpmUulCGQSZczdbFY2KeNcbuJheSJVYRwIG5DCOUHE5Shk9WLjevb9CT4SQQtG79l56lQGvQOmFiVG7Svm7P8gLORCDbO81CEAHYTlzDsbpghG2M3W X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb9c5d1a-d3ea-47e8-4020-08dbc5fb4d70 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4479.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2023 23:32:13.1124 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KSu+xedySEjZLHiOaLolDHHDFAAKF7++MbVJGaYyWl23p/HVL+s+pANao5RKpvdcW6ldRgZLE3hCJCKMtx/cSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4768 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-05_18,2023-10-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 bulkscore=0 adultscore=0 mlxlogscore=999 phishscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310050179 X-Proofpoint-GUID: bWfZIAJcB5WRje3KsoONo35GSm4U-1T5 X-Proofpoint-ORIG-GUID: bWfZIAJcB5WRje3KsoONo35GSm4U-1T5 X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 16:34:16 -0700 (PDT) Hello Paul, On 6/10/2023 3:48 am, Paul E. McKenney wrote: > The CSD lock seems to get stuck in 2 "modes". When it gets stuck > temporarily, it usually gets released in a few seconds, and sometimes > up to one or two minutes. > > If the CSD lock stays stuck for more than several minutes, it never > seems to get unstuck, and gradually more and more things in the system > end up also getting stuck. > > In the latter case, we should just give up, so the system can dump out > a little more information about what went wrong, and, with panic_on_oops > and a kdump kernel loaded, dump a whole bunch more information about > what might have gone wrong. > > Question: should this have its own panic_on_ipistall switch in > /proc/sys/kernel, or maybe piggyback on panic_on_oops in a different > way than via BUG_ON? > panic_on_ipistall (set to 1 by default) looks better option to me. For systems where such delay is acceptable and system can eventually get back to sane state, this option (set to 0 after boot) would prevent crashing the system for apparently benign CSD hangs of long duration. > Signed-off-by: Rik van Riel > Signed-off-by: Paul E. McKenney > > diff --git a/kernel/smp.c b/kernel/smp.c > index 8455a53465af..059f1f53fc6b 100644 > --- a/kernel/smp.c > +++ b/kernel/smp.c > @@ -230,6 +230,7 @@ static bool csd_lock_wait_toolong(struct __call_single_data *csd, u64 ts0, u64 * > } > > ts2 = sched_clock(); > + /* How long since we last checked for a stuck CSD lock.*/ > ts_delta = ts2 - *ts1; > if (likely(ts_delta <= csd_lock_timeout_ns || csd_lock_timeout_ns == 0)) > return false; > @@ -243,9 +244,17 @@ static bool csd_lock_wait_toolong(struct __call_single_data *csd, u64 ts0, u64 * > else > cpux = cpu; > cpu_cur_csd = smp_load_acquire(&per_cpu(cur_csd, cpux)); /* Before func and info. */ > + /* How long since this CSD lock was stuck. */ > + ts_delta = ts2 - ts0; > pr_alert("csd: %s non-responsive CSD lock (#%d) on CPU#%d, waiting %llu ns for CPU#%02d %pS(%ps).\n", > - firsttime ? "Detected" : "Continued", *bug_id, raw_smp_processor_id(), ts2 - ts0, > + firsttime ? "Detected" : "Continued", *bug_id, raw_smp_processor_id(), ts_delta, > cpu, csd->func, csd->info); > + /* > + * If the CSD lock is still stuck after 5 minutes, it is unlikely > + * to become unstuck. Use a signed comparison to avoid triggering > + * on underflows when the TSC is out of sync between sockets. > + */ > + BUG_ON((s64)ts_delta > 300000000000LL); Can we make this a module_param (default value 5 mins), so that if needed it can be tweaked to a bigger/smaller value? > if (cpu_cur_csd && csd != cpu_cur_csd) { > pr_alert("\tcsd: CSD lock (#%d) handling prior %pS(%ps) request.\n", > *bug_id, READ_ONCE(per_cpu(cur_csd_func, cpux)), Thanks, Imran