Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp517163ybe; Fri, 6 Sep 2019 03:07:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqw493Qa1rVlieNGA1h8G/u470aGI/FGf1zeEyyIZCKrBXzjTP44fbG2qb/CTF3P+Dd0yAYW X-Received: by 2002:a63:5a0a:: with SMTP id o10mr7390978pgb.282.1567764444606; Fri, 06 Sep 2019 03:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567764444; cv=none; d=google.com; s=arc-20160816; b=ysONDu7ADCPUA/lzReFIG9aUnW3Jmx+ulf4Waz5bRxrOjXeEWGXDLZ6kz255HZE3Od jIpHbgLu0TJaXfZ4hEMiJo9/wF4/N9jwOtoqkghN+HfxNomR6nc6a+MLfbQmiMWf2ZAt xCU/pOLQ9aLAeanUoQXS+FDVB/6YCpl7mSs8jS58Fks7LbA9Nl8VjI7naOaBEe4LkhQl ST56K0MxegsC6nJZRZytV3DryOsIP2GOuBPv4Q56e8jL3K5tpUnZY8mUKGtMiGpYhi9E MfSCJkkFZbqvNkADn/j0Zazpt87ULiFdxscXi8+g9pYh0WVmLdkLPJ5vnlwuMQ0Zd9Os 33ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:subject:cc:from:to :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=UgLwGOLd9Qaofpb/EMRahwjwW4TzGd9hkLOFeY5MZAY=; b=BNK5wCtXDqdMCJSFkoK/cUx+6Gy38+kdwpu/TFkVFGBh8PVjUdC1YaBKgZ1ut30He4 5v4RPvc9boIi3WBuH2E2V9ERszguiRUPOCZPPJk4EqddpGQ1N2dp5uiHZc1R23tbIO3p OO77er7Od0Tqm9VvafBMQneZ8MPRcTZbgMJuWGvFM8boCL6m5cadXHvUMXqEm8CLI3cq O3Gd6ba7U9P+E7/Hwo8FKIgfjDmcUw5XlwmZA6OBU1RZl8debSgJKV6uVGqRvTpnGj/s 2LaSUv8AVdQ1/m0KQPhd7ku/uW2zJ9KcBQ7g+0KXdw6IE3rylHrJ0HhgaqEDAWWouuQd PAZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VKalJm2E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k72si4104074pge.95.2019.09.06.03.07.07; Fri, 06 Sep 2019 03:07:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VKalJm2E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391593AbfIFAjy (ORCPT + 99 others); Thu, 5 Sep 2019 20:39:54 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38123 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391509AbfIFAjy (ORCPT ); Thu, 5 Sep 2019 20:39:54 -0400 Received: by mail-pf1-f194.google.com with SMTP id h195so3085379pfe.5 for ; Thu, 05 Sep 2019 17:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:to:from:cc:subject:user-agent:date; bh=UgLwGOLd9Qaofpb/EMRahwjwW4TzGd9hkLOFeY5MZAY=; b=VKalJm2EThnQ27lsNLgCNQVCIu2xu0aPd0QmMEODnmLKOaOclAraltTAFz5qlLmPsz OrIA51ux0pzJWcRc2yp/pmbwTzvDB4HOW92Frt21D4wp9mkgTWh2fR9CTKbeHFvVcS50 49B6sW1p1h3yjjezZwnpLETheL6yUorgutylc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:to:from:cc:subject :user-agent:date; bh=UgLwGOLd9Qaofpb/EMRahwjwW4TzGd9hkLOFeY5MZAY=; b=I/n08W1E238KQAX+1/KyNleaVwQX5N93UnwB4sYRNogEPNJ36vwkV1wzuPrHpymFy8 9Uuj6dmrgFQcCyvso6GeTC4Oyh2BCWPEm4yeQrt6EgGHBQUiAxX7TbV13Ph3GFMWkurj rtgr7PTobfIQ4dS+woZVMeI1wTGsgGP1yBra7vAQLra4/Kxe8R8VFznQv/PChVVwzXm5 rDLNzsKiVRVgXbIzeBvA2fM1dkPUzzG1J4RuarVede+pArjXNioIsMhSADC+8VE2jXSI ZgHaWvsnilQVe09wk6LtKc/THTPJsseeB2KtEWWtsO4qfvjbJGFigyq1szDKAoHcrsA3 18MA== X-Gm-Message-State: APjAAAXpGgal0guOYMxaipzAPP+x/UmGhgUWMWKbm6Ez4w24vC5teTlA H9PBK//qQuBn7yWMn8KdD7lD7w== X-Received: by 2002:a62:d45a:: with SMTP id u26mr4972214pfl.137.1567730393567; Thu, 05 Sep 2019 17:39:53 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id 127sm7907733pfy.56.2019.09.05.17.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 17:39:53 -0700 (PDT) Message-ID: <5d71aad9.1c69fb81.f469e.262f@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190829181203.2660-3-ilina@codeaurora.org> References: <20190829181203.2660-1-ilina@codeaurora.org> <20190829181203.2660-3-ilina@codeaurora.org> To: Lina Iyer , evgreen@chromium.org, linus.walleij@linaro.org, marc.zyngier@arm.com From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, mkshah@codeaurora.org, linux-gpio@vger.kernel.org, rnayak@codeaurora.org, Lina Iyer Subject: Re: [PATCH RFC 02/14] drivers: irqchip: pdc: Do not toggle IRQ_ENABLE during mask/unmask User-Agent: alot/0.8.1 Date: Thu, 05 Sep 2019 17:39:52 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Lina Iyer (2019-08-29 11:11:51) > When an interrupt is to be serviced, the convention is to mask the > interrupt at the chip and unmask after servicing the interrupt. Enabling > and disabling the interrupt at the PDC irqchip causes an interrupt storm > due to the way dual edge interrupts are handled in hardware. >=20 > Skip configuring the PDC when the IRQ is masked and unmasked, instead > use the irq_enable/irq_disable callbacks to toggle the IRQ_ENABLE > register at the PDC. The PDC's IRQ_ENABLE register is only used during > the monitoring mode when the system is asleep and is not needed for > active mode detection. I think this is saying that we want to always let the line be sent through the PDC to the parent irqchip, in this case GIC, so that we don't get an interrupt storm for dual edge interrupts? Why does dual edge interrupts cause a problem? >=20 > Signed-off-by: Lina Iyer