Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6137675rdb; Mon, 18 Sep 2023 05:29:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgS2xNv18582V2ilvHuAEgVq7I10KP1+LXwrfgN7OVnitSVEJoRPFRnvKAY3Dwvgb8C9A3 X-Received: by 2002:a17:902:f812:b0:1c5:74d5:36f4 with SMTP id ix18-20020a170902f81200b001c574d536f4mr1644341plb.23.1695040155885; Mon, 18 Sep 2023 05:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695040155; cv=none; d=google.com; s=arc-20160816; b=UL6+j3FXAsx2QYnZffSxfREH5ULfOhqF3C0ZPltg67/IHDv1dcaQaDkDZHUhr0xV/H MXrM0pElDwpvidjH13wOK4SuZ5lmfDksjcpmnGv87ASDiE82taS6mBWBRX7yviolfrC+ 4HKgQOlP5bkGX9qdrKE7HVB8rn9d+Lp3BXYHH51ICb5Lw3pLsuIDU5m35nZzQyiUagDF aEfAY7cL47OmAmNLTzrlnnIOn20xHW3PBsiWiJzbG9LvOhRqwWXI3+EZieehNbxbJhCo 3QCkhpT1Zi9Ab/4V0EqcVjwb5ZBO2/v+bVqeCwObxdxM2lrpZ3/YdQA3yw4x5Di2jMz+ c49A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=E8ZKL08/UU5dN1DyKh5y9snzBEVeJxQ9cZYH2t43+Mo=; fh=sWH11FnHMfCkHSU9kXlYjtdyZVAjuuR7mMUGHavtm3Q=; b=LTUO0u5S4MohNQJNSOBQAR8/2pHRzzuOSzkA5IGWc4LMl6373nol3FYAIfRwX+84J1 Dls+fNY68tW3OU/rlCh9PSWk2b15iojXuHEPCJiyVB/2bh4YOjctQThPPwAjVFOQ8R+/ mdgwCYAF4x92B+2U1pRiUYShdevRWxy4s67JdZJONn8sLHHLI035qMioGxTNeFyd1uFP aX0ixtdHhK2Jcmt5CXSF0djnZ+gWQoGTy7ykcBPaC+MEKa+pO2F8eJmThD7ygMo5CnJi Rvgqn6VGZ9Y97paygSMOsZatUWqqd/WhG7OXQikKgEWHiTyQQyidu+VHM2B/Ud76XUkZ 2Dlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id n7-20020a170902d2c700b001c584013550si646143plc.605.2023.09.18.05.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 05:29:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9890B806229B; Mon, 18 Sep 2023 05:25:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241933AbjIRMYr (ORCPT + 99 others); Mon, 18 Sep 2023 08:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241982AbjIRMYb (ORCPT ); Mon, 18 Sep 2023 08:24:31 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 970DA102; Mon, 18 Sep 2023 05:24:18 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,156,1688396400"; d="scan'208";a="176397769" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 18 Sep 2023 21:24:18 +0900 Received: from localhost.localdomain (unknown [10.226.92.107]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 3159C41F6AEF; Mon, 18 Sep 2023 21:24:14 +0900 (JST) From: Biju Das To: Thomas Gleixner , Marc Zyngier Cc: Biju Das , Lad Prabhakar , Claudiu Beznea , Geert Uytterhoeven , Biju Das , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH 0/3] Fix IRQ storm with GPIO interrupts Date: Mon, 18 Sep 2023 13:24:08 +0100 Message-Id: <20230918122411.237635-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 05:25:16 -0700 (PDT) The following issues observed while adding IRQ support for RTC. * The irq_disable is not clearing interrupt source properly. * The driver is not following as per hardware manual for changing interrupt settings. * IRQ storm due to phantum interrupt, when we select the TINT source. Here IRQ handler disables the interrupts using disable_irq_nosync() and scheduling a work queue and in the work queue, re-enabling the interrupt with enable_irq(). Biju Das (3): irqchip: renesas-rzg2l: Fix logic to clear TINT interrupt source irqchip: renesas-rzg2l: Mask interrupts for changing interrupt settings irqchip: renesas-rzg2l: Fix irq storm with edge trigger detection for TINT drivers/irqchip/irq-renesas-rzg2l.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) -- 2.25.1