Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80249C636D4 for ; Wed, 15 Feb 2023 08:34:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233945AbjBOIeV (ORCPT ); Wed, 15 Feb 2023 03:34:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232166AbjBOIeT (ORCPT ); Wed, 15 Feb 2023 03:34:19 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 179D01714 for ; Wed, 15 Feb 2023 00:34:17 -0800 (PST) Received: from canpemm100009.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PGrs931PWzRs49; Wed, 15 Feb 2023 16:31:41 +0800 (CST) Received: from canpemm500010.china.huawei.com (7.192.105.118) by canpemm100009.china.huawei.com (7.192.105.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 15 Feb 2023 16:34:14 +0800 Received: from canpemm500010.china.huawei.com ([7.192.105.118]) by canpemm500010.china.huawei.com ([7.192.105.118]) with mapi id 15.01.2507.017; Wed, 15 Feb 2023 16:34:14 +0800 From: "liujian (CE)" To: John Stultz CC: "tglx@linutronix.de" , "sboyd@kernel.org" , "linux-kernel@vger.kernel.org" , "peterz@infradead.org" , "Paul E. McKenney" Subject: RE: [Question] softlockup in run_timer_softirq Thread-Topic: [Question] softlockup in run_timer_softirq Thread-Index: AQHZP+XzD5YJ48ci7USTV771E31fma7PkEww Date: Wed, 15 Feb 2023 08:34:14 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.176.93] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogSm9obiBTdHVsdHogW21h aWx0bzpqc3R1bHR6QGdvb2dsZS5jb21dDQo+IFNlbnQ6IFR1ZXNkYXksIEZlYnJ1YXJ5IDE0LCAy MDIzIDQ6MDEgQU0NCj4gVG86IGxpdWppYW4gKENFKSA8bGl1amlhbjU2QGh1YXdlaS5jb20+DQo+ IENjOiB0Z2x4QGxpbnV0cm9uaXguZGU7IHNib3lkQGtlcm5lbC5vcmc7IGxpbnV4LWtlcm5lbEB2 Z2VyLmtlcm5lbC5vcmc7DQo+IHBldGVyekBpbmZyYWRlYWQub3JnOyBQYXVsIEUuIE1jS2VubmV5 IDxwYXVsbWNrQGtlcm5lbC5vcmc+DQo+IFN1YmplY3Q6IFJlOiBbUXVlc3Rpb25dIHNvZnRsb2Nr dXAgaW4gcnVuX3RpbWVyX3NvZnRpcnENCj4gDQo+IE9uIEZyaSwgRmViIDEwLCAyMDIzIGF0IDE6 NTEgQU0gbGl1amlhbiAoQ0UpIDxsaXVqaWFuNTZAaHVhd2VpLmNvbT4gd3JvdGU6DQo+ID4NCj4g PiBEdXJpbmcgdGhlIHN5eiB0ZXN0LCB3ZSBlbmNvdW50ZXJlZCBtYW55IHByb2JsZW1zIHdpdGgg dmFyaW91cyB0aW1lcg0KPiA+IGhhbmRsZXIgZnVuY3Rpb25zIHNvZnRsb2NrdXAuDQo+ID4NCj4g PiBXZSBhbmFseXplIF9fcnVuX3RpbWVycygpIGFuZCBmaW5kIHRoZSBmb2xsb3dpbmcgcHJvYmxl bS4NCj4gPg0KPiA+IEluIH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l9iYXNlICpiYXNlID0gdGhpc19jcHVf cHRyKCZ0aW1lcl9iYXNlc1tCQVNFX1NURF0pOw0KIA0KLSAgICAgICBfX3J1bl90aW1lcnMoYmFz ZSk7DQorICAgICAgIF9fcnVuX3RpbWVycyhiYXNlLCBoKTsNCiAgICAgICAgaWYgKElTX0VOQUJM RUQoQ09ORklHX05PX0haX0NPTU1PTikpDQotICAgICAgICAgICAgICAgX19ydW5fdGltZXJzKHRo aXNfY3B1X3B0cigmdGltZXJfYmFzZXNbQkFTRV9ERUZdKSk7DQorICAgICAgICAgICAgICAgX19y dW5fdGltZXJzKHRoaXNfY3B1X3B0cigmdGltZXJfYmFzZXNbQkFTRV9ERUZdKSwgaCk7DQogfQ0K IA0KIC8qDQo+IHRoYW5rcw0KPiAtam9obg0KDQo=