Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3553652rdh; Mon, 27 Nov 2023 18:12:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEorBHvVsb4pXvuG2UN6tiX19S6UpxHv8tsqTshYjdbAuvXDtXjoQ8izmHEmsT9djAHpold X-Received: by 2002:a17:90b:4d8b:b0:27d:c36:e12c with SMTP id oj11-20020a17090b4d8b00b0027d0c36e12cmr13632618pjb.9.1701137526902; Mon, 27 Nov 2023 18:12:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701137526; cv=pass; d=google.com; s=arc-20160816; b=iyztBiesL4DnSa+wqDblPEgRTkFB0Dmd/tplOLF8gMaAMSYBXfmjeEY5e8MPmHYy5Q mXfBHos2KeVhSrivAhGAxCNGwc6isNs8AiME3uF36ofc+pLsY0+JO22r5hJNeM/Xuv1Z YMR79hbZMxFnTy+qRwrf2Ug+ojW8ng8EXeuF44u1wMKmNNd0FNRwGqkB8ZiVh/2BBdOJ ncW9H9oIBRmM5v345Y1q/7LdDmrVxBo5nZjfZkR5NbPLbvTEkCW19lmdKxTYj032uwKm Efyt4Dlsh6VeBpxsJB7wRacBcZ0fuEjxLVUHgXBfaQQHF3AOJOdNWW2mVgysxaZlYu90 J2iQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=vCBQ8W8KP2ESxU0P5o8t6hgVTVcuKmdNHBa+5tNwWgU=; fh=/gpfCnC+yxyTEAaNI1u9/YHrsTO3Egh4Ji1/7t11aHE=; b=0LxQq0dkHZKcSOG38Nc+/8R0udONmczlpuNBWZFlpKQaHSeAHbP3H8faQacmc6v5Ih Ul/E01DusTH6KY7eUQuL6meflRD+WfGfN4ScJ/tmFANuvNti6fHMSfYm9B6QcllPj2Rt 3zHMh20adE9fQ3APPdO1PPMQ+v2TYWRBZAzepSmTgGX7b0rjHXkI5GXJ3vDUApPwenVu vWEjW7DEAq7YrAnU0UwwEmOzMp65HKcLKSiuT2n/NUllDpJXTgjyCRnDBTABziHpg3l+ ZwwAapWo2Yo/oU+wkDhPzWp+HBniDW9/DfY0+maWsn7pc0pyxp/0/QMgTOBgK5Iq8d0w xBVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jaguarmicro.com header.s=selector2 header.b=GIk+ezKp; arc=pass (i=1 spf=pass spfdomain=jaguarmicro.com dkim=pass dkdomain=jaguarmicro.com dmarc=pass fromdomain=jaguarmicro.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jaguarmicro.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id t3-20020a17090ae50300b002802d12083fsi10730106pjy.54.2023.11.27.18.11.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 18:12:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@jaguarmicro.com header.s=selector2 header.b=GIk+ezKp; arc=pass (i=1 spf=pass spfdomain=jaguarmicro.com dkim=pass dkdomain=jaguarmicro.com dmarc=pass fromdomain=jaguarmicro.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jaguarmicro.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E0922806920D; Mon, 27 Nov 2023 18:11:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234385AbjK1CLD (ORCPT + 99 others); Mon, 27 Nov 2023 21:11:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjK1CLC (ORCPT ); Mon, 27 Nov 2023 21:11:02 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2074.outbound.protection.outlook.com [40.107.255.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AC1BC3 for ; Mon, 27 Nov 2023 18:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eCexnPgN0VJmmms3ObrZSVZgNKY2kBzX7W3ngxHdw3SABzx2gi+ZgAXzolBAM7V18EBDNCiaxNngA6GoI5WqzaA+69QJLe3mQsHfbdlyajATiLtHx0Dm31bNQa9IwFaUHGQaBW+IjEv6SojhR3lMbBxRYjB85HXYMbaZZh+8Yc9s4xizccHB4vFHkHVfVsffOeBb3T0wKBcH6BIFLRRmweZWc71PdYWUCDS6M0zhwGWWTve6zBV9oq6+PHnxfNeo52fYsUrGyoayjgNd9OloNdhJThQSnKVPoOIRFAt1p6ZgcgvxhH8ieSqIcyQCboqsI/jVIA5CAvE5UR6JLyeGOQ== 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=vCBQ8W8KP2ESxU0P5o8t6hgVTVcuKmdNHBa+5tNwWgU=; b=WoCHu22mBNir/ceUAmOjF2EtfBkefqqcO9Doc1qCBellEKqCscI5/sUQaEMoQ7S9XWFt3IQEwkNE7qK0UyW67vol0Z9ODGNJd+NkrkP3KaTtJ2gf5LPTXvn8XnytaThoi7hZFO7LccbOarrEthWwiFeUnwUG8Hk17a8crTX3bAeo6C+S/M5xYUo6nJY3bgdZ32x92QhEnUw7ZdwXqWo1NEfxkPj+sJ2b0kP3T9lx0vqHHmLCeX7LAp4bNWuFywEf8SJf1Og2CtAZXkvwP0c/gl1f1NM7P5igf3ui/axRQjIa89HyVTFv3XIj8OESYtyEGcL1jQ/Mni+PNjQEktAiag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jaguarmicro.com; dmarc=pass action=none header.from=jaguarmicro.com; dkim=pass header.d=jaguarmicro.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jaguarmicro.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vCBQ8W8KP2ESxU0P5o8t6hgVTVcuKmdNHBa+5tNwWgU=; b=GIk+ezKpydH94IwfMzLME3Uuuxjcc3ytWcbnT+g4Zy3zhtSlVpIkkLW4bLwgJxI5md0gSfVVLuSN8Mn+CM8bzvbXtDft9Bhg/Q4BuOZ/OcgKiQ+4aLOAZs0wQalRFOmtotrzlQGh2g9dO36cn4H6uM18u/r7D4eyDUog4LMjlNbezebk1FQgV2FSfiGCqfoiLzqcUBYVYcInY9d6on3+3m3WxvFMkWsrX2VMMaTplWfxZtBjduTzZm05SGIoLnoJTAdG8ezFuI9nbgAOMGdsq7chXbS1EMzQFmWzz+8RtQYXcB4qh0wOEi3T6EvA77W6NjqiX7jJbQB3RnSho2ToZQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jaguarmicro.com; Received: from TY2PR06MB3424.apcprd06.prod.outlook.com (2603:1096:404:104::19) by PUZPR06MB5954.apcprd06.prod.outlook.com (2603:1096:301:119::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.27; Tue, 28 Nov 2023 02:11:03 +0000 Received: from TY2PR06MB3424.apcprd06.prod.outlook.com ([fe80::e2bc:f679:f52d:9c8f]) by TY2PR06MB3424.apcprd06.prod.outlook.com ([fe80::e2bc:f679:f52d:9c8f%5]) with mapi id 15.20.7025.021; Tue, 28 Nov 2023 02:11:03 +0000 From: Angus Chen To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Angus Chen Subject: [PATCH] genirq: Fix irqs_unhandled in note_interrupt Date: Tue, 28 Nov 2023 10:10:43 +0800 Message-Id: <20231128021043.2099-1-angus.chen@jaguarmicro.com> X-Mailer: git-send-email 2.33.0.windows.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0023.apcprd02.prod.outlook.com (2603:1096:4:1f4::19) To TY2PR06MB3424.apcprd06.prod.outlook.com (2603:1096:404:104::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY2PR06MB3424:EE_|PUZPR06MB5954:EE_ X-MS-Office365-Filtering-Correlation-Id: a58b3d4f-b9ab-42fb-14cd-08dbefb745af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XY5zkjkjyxz/dw93DwjKcIYPUAdEZGuzJKOrK3WiHUAHiQnbdWoasezZFva7Qf3qnG8lulJWd6oVCO7T71nbbVyF0vBDvlviduyzRSfM3tbaXroifLvztObcrEJZhXPS+g63BtmA3jB/fdyBukcsO8ssM1mwn2SqmdqlytzHowMpMrZLxokw8qxPfAshfFsZOniawl1uQuhdWxdjwNhEWj1RDVn5lH/SPIRGZr0RglOLTHO8frsq+PaHLeqiTyurUZr5Ucb99WPwum7pZRN6LXi+aHIeWFekSiEB6Avrfh7yYkJ45Z0K5CZQJXsZQHJz7M4+p/zmLRNj0Wa3GlXKGjdUKPBSmVONF8nvUKtDngiE7DVWRYYjn0C3IXJy6txA7zNdnxgtwlAjque1ILc+FmKxvCwXMCI9BpNWRAq+5ctDWu7qS+oJt/o7z58QvZaFb3GXnuvZ0SrqZe3I33lmiJCkLgKplB72oB75FRzy7HZPdeATAAPU/76uoN92aECg4C2o4MUOCSOQz7XhwUpBPRhZ/MXxt1a0b3D2TDFJ5h259i7WKg+BDNVODTx8pL9tKRqcGOlNk4r83+Dvts+Syf2zX7md0J+bhksp6usONERznd6lkNZqTPG5ikuhDX6I X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY2PR06MB3424.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(376002)(136003)(396003)(346002)(230922051799003)(451199024)(64100799003)(186009)(1800799012)(107886003)(2616005)(26005)(1076003)(6666004)(6512007)(6506007)(52116002)(8676002)(8936002)(4326008)(6486002)(5660300002)(44832011)(478600001)(6916009)(316002)(66946007)(66556008)(66476007)(86362001)(38100700002)(83380400001)(38350700005)(41300700001)(36756003)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?LkbBUi7m0EpgCoiN9cZSKL0YAWiwdxEHmc4qROS0lmega7n0GTITP9SxDaGb?= =?us-ascii?Q?H7PBIBJV39ACdQkEPydwmAUJIwcPXt/0UtNKgAxVJbKYhky/ZgHR3+nBhWkb?= =?us-ascii?Q?5ht/3Wnm105H672QUSRAMSvEx2aXJVMknbce3PlhN7wxk6MJH+Vb6LWFkSVv?= =?us-ascii?Q?UFAxHUO10IqS0d7W/OrFYvtg+J88SplYGyU0k9SGXRYE5KmQU9RozPGbHoZI?= =?us-ascii?Q?4qjTzqe+mQ61qPSZuF7D01F+G68UiBBVlJzcDNdrpLHrBxOAvewfsZfCZNMO?= =?us-ascii?Q?ALVibJwSyqLH1i8uNbw2/iNh2OOeMaU9pwgHb5adXpixU6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/FGm6dUQIcqddZ+PeyayDA2bxV8hwqUJ2Xx+WAAX?= =?us-ascii?Q?m1R0dSKwnThAdxT+pnisAGWWrS9UlwKvF02amWRg320kP+VCGgRSvxl0A9lj?= =?us-ascii?Q?+IDGiHwwVQOzZ1KXWmLryMpt9tTcUeCQZN2IR1nfTu0ZxwNj1JQIkixYvX5H?= =?us-ascii?Q?+d4P3F3r3Z6TkDGH8ulVFVflwpTUwVE4nIu2Rqizim6RFaKBfMmBygkh03RT?= =?us-ascii?Q?EGPhbVLLsuoTlF0vVOW8d+rO7rUNWoDb5XjheuWcyJIVv3DCaUvE9H3l9Zz8?= =?us-ascii?Q?mY91Nag6yKUu4yM0LCLZiBPVW4XiMcnMWgdZtYwtSx6TYHKw2tIj10A2MgCj?= =?us-ascii?Q?WWTVzmp8rwqTH8SRsOGDXZwJkjwBm//SbaHTnowc8y+/cmSySCjX4Vh16NIo?= =?us-ascii?Q?Zg=3D=3D?= X-OriginatorOrg: jaguarmicro.com X-MS-Exchange-CrossTenant-Network-Message-Id: a58b3d4f-b9ab-42fb-14cd-08dbefb745af X-MS-Exchange-CrossTenant-AuthSource: TY2PR06MB3424.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2023 02:11:03.2363 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1e45a5c2-d3e1-46b3-a0e6-c5ebf6d8ba7b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5QzsZBZ1tNgj4pwYMKSdP0gap4x24711VLmv9ElUlS1pwUtAqUmsRXKpFy7eGWRuNfpZ+1RlOrUv8KYgjDjRWhCZUIrtWOURQEHoG495DTc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB5954 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 18:11:54 -0800 (PST) Commit 4f27c00bf80f ("Improve behaviour of spurious IRQ detect") introduced a age of last_unhandled,after irq_count reached 100000, we set irqs_unhandled = 0,but we didn't clear last_unhandled. So we can see the print of irq_spurious_proc_show is not consistent. Like below: root@jmkernel:~# cat /proc/irq/138/spurious count 99998 unhandled 1 last_unhandled 1543930240 ms root@jmkernel:~# cat /proc/irq/138/spurious count 0 unhandled 0 last_unhandled 1548915240 ms we can set last_unhandled=1 as a prompting message. Signed-off-by: Angus Chen --- kernel/irq/spurious.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c index 02b2daf07441..e883df04bdf1 100644 --- a/kernel/irq/spurious.c +++ b/kernel/irq/spurious.c @@ -428,7 +428,7 @@ void note_interrupt(struct irq_desc *desc, irqreturn_t action_ret) mod_timer(&poll_spurious_irq_timer, jiffies + POLL_SPURIOUS_IRQ_INTERVAL); } - desc->irqs_unhandled = 0; + desc->irqs_unhandled = 1; } bool noirqdebug __read_mostly; -- 2.34.1