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 A073FC678D4 for ; Fri, 3 Mar 2023 10:55:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230124AbjCCKzX (ORCPT ); Fri, 3 Mar 2023 05:55:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjCCKzU (ORCPT ); Fri, 3 Mar 2023 05:55:20 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 797FB1CAEF for ; Fri, 3 Mar 2023 02:55:19 -0800 (PST) Received: from canpemm100010.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PSlD40qtdzRs5T; Fri, 3 Mar 2023 18:52:20 +0800 (CST) Received: from canpemm500010.china.huawei.com (7.192.105.118) by canpemm100010.china.huawei.com (7.192.104.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 3 Mar 2023 18:55:17 +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.021; Fri, 3 Mar 2023 18:55:17 +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+XzD5YJ48ci7USTV771E31fma7PkEwwgBls1lA= Date: Fri, 3 Mar 2023 10:55:17 +0000 Message-ID: <760bbd9618154505b5f17640d1437afb@huawei.com> References: 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 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogbGl1amlhbiAoQ0UpDQo+ IFNlbnQ6IFdlZG5lc2RheSwgRmVicnVhcnkgMTUsIDIwMjMgNDozNCBQTQ0KPiBUbzogJ0pvaG4g U3R1bHR6JyA8anN0dWx0ekBnb29nbGUuY29tPg0KPiBDYzogdGdseEBsaW51dHJvbml4LmRlOyBz Ym95ZEBrZXJuZWwub3JnOyBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnOw0KPiBwZXRlcnpA aW5mcmFkZWFkLm9yZzsgUGF1bCBFLiBNY0tlbm5leSA8cGF1bG1ja0BrZXJuZWwub3JnPg0KPiBT dWJqZWN0OiBSRTogW1F1ZXN0aW9uXSBzb2Z0bG9ja3VwIGluIHJ1bl90aW1lcl9zb2Z0aXJxDQo+ IA0KPiANCj4gDQo+ID4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gPiBGcm9tOiBKb2hu IFN0dWx0eiBbbWFpbHRvOmpzdHVsdHpAZ29vZ2xlLmNvbV0NCj4gPiBTZW50OiBUdWVzZGF5LCBG ZWJydWFyeSAxNCwgMjAyMyA0OjAxIEFNDQo+ID4gVG86IGxpdWppYW4gKENFKSA8bGl1amlhbjU2 QGh1YXdlaS5jb20+DQo+ID4gQ2M6IHRnbHhAbGludXRyb25peC5kZTsgc2JveWRAa2VybmVsLm9y ZzsNCj4gPiBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnOyBwZXRlcnpAaW5mcmFkZWFkLm9y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iAgICAgICAgIHN0cnVjdCB0aW1l cl9iYXNlICpiYXNlID0gdGhpc19jcHVfcHRyKCZ0aW1lcl9iYXNlc1tCQVNFX1NURF0pOw0KPiAN Cj4gLSAgICAgICBfX3J1bl90aW1lcnMoYmFzZSk7DQo+ICsgICAgICAgX19ydW5fdGltZXJzKGJh c2UsIGgpOw0KPiAgICAgICAgIGlmIChJU19FTkFCTEVEKENPTkZJR19OT19IWl9DT01NT04pKQ0K PiAtICAgICAgICAgICAgICAgX19ydW5fdGltZXJzKHRoaXNfY3B1X3B0cigmdGltZXJfYmFzZXNb QkFTRV9ERUZdKSk7DQo+ICsgICAgICAgICAgICAgICBfX3J1bl90aW1lcnModGhpc19jcHVfcHRy KCZ0aW1lcl9iYXNlc1tCQVNFX0RFRl0pLCBoKTsNCj4gIH0NCj4gDQo+ICAvKg0KPiA+IHRoYW5r cw0KPiA+IC1qb2huDQoNCg==