Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3129852pxm; Mon, 28 Feb 2022 12:40:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/hkm9Qtc2mv1CM9/9v3VswgzojuGtA0t3tQqWeg10IslUOYr5ZOSBg8wKR23aJ2pccgZ2 X-Received: by 2002:a05:6a00:1d8b:b0:4f1:bd8:811 with SMTP id z11-20020a056a001d8b00b004f10bd80811mr23691392pfw.25.1646080844587; Mon, 28 Feb 2022 12:40:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646080844; cv=none; d=google.com; s=arc-20160816; b=0dW1iuFk5RlyLX3aVP5AH1sxUg2Jzf3tEdhLV9jBEHhe8ZvduTIeGv8M5XwwFVjk88 /yopDsfwQvX9T+Uz2lNl2FZvRbhRIkhaBU2GLWMOhajUmtY3dNHa/ZgU1hVdG1S5SEgx N897flmYd6N6u+CZmYE40eIIitUfQ7+KTBGn8PgayoSAkVpHeX+Ng8oakHeDSqf1N8V6 MCssiYQBjrnnyIxBqNVXp5ROZq6Q3QWwG/hBME8QmV9ZEUA5YrfmT2EewslOh59/ko7n Wy0voeA4h94HtgsGLgnMpxYOzZTcHF/t8j16ebBXgZcOE5ixXP/fvjb0yetSTr++AiGh 2r9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=KBqxaq8sWh37SxILElVM67A8r7ry3HPg9sy9v92OwRI=; b=uXtYNypO5Ho11BLltLGM3SvzlL+muaBlmI103JtXUv4SVGGkoIJTmKg3of6Do8bujN u5WwRE0M5aIPDStiSFgANhSAn0aKRc/fRMtEfHrHoiFA5iM9YOiLPXFkvjcFdGy7hCEM Y1frs1O4iMNX/Go5phS5XU74Iacqmux1NhU4yqzUFqMAlkuW5jWId1FhXBFS57zufJE8 MPIDDUmUuvV8EZLdC0jLevDWbsKOZndhvTDGcg0DxQcvomkY0iizse57Xi/3weMN7OXa gZxkLMP6HKV37HjvSb7pcajM+DqDpHdgrs7GsjIdLxJfTXNflj1qxzm5CeQNbwMQOAiM pQ8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d2TVZTt2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e10-20020a63744a000000b00378d782bc0csi1228174pgn.532.2022.02.28.12.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:40:44 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d2TVZTt2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C6B93A70D; Mon, 28 Feb 2022 12:01:07 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229788AbiB1UBm (ORCPT + 99 others); Mon, 28 Feb 2022 15:01:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbiB1UBl (ORCPT ); Mon, 28 Feb 2022 15:01:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B69210FCF; Mon, 28 Feb 2022 12:01:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 06A00B81643; Mon, 28 Feb 2022 20:01:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E46EC340F1; Mon, 28 Feb 2022 20:00:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646078458; bh=WX2GSxXiBauKudb0mEfuYngTCREWlWxYllb0lfJstnw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=d2TVZTt2KkPq5p75E5jhIPc7tDj4A0MICF9a+hpYB+7RDSM32/j/yrisSBzLt+Qdd ozC9qQ/ph78ht13NvqGPiiZCM69mBC5FwY10tiWhtecj8x/B2IGUpdOnzaPumuFWA7 0Xf8OTnEJAzVPjqyGUfKypoTeWbhD786eKc/MfpVyyzulhDuA5zOAr4UBTqZduwLRV 6G3O4BdSmakWemA9zpbQoKJR5hQO9YxeFB95GZ2zJ2rqvaQnfmjAe0DiRLoZ8V2nnz aILsjZTXLbcUFi5odjscBHVMqfl6b5OycOPe4f2dQcPDIaOcPPmoA+HNFJ8mIVFvmw DoHs3PwkeGUaA== Received: from sofa.misterjones.org ([185.219.108.64] helo=billy-the-mountain.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nOmCW-00BDhb-4H; Mon, 28 Feb 2022 20:00:56 +0000 Date: Mon, 28 Feb 2022 20:00:55 +0000 Message-ID: <87y21u69s8.wl-maz@kernel.org> From: Marc Zyngier To: "Maulik Shah (mkshah)" Cc: , Andy Gross , Bjorn Andersson , Thomas Gleixner , Subject: Re: [PATCH 2/5] irqchip/qcom-pdc: Kill non-wakeup irqdomain In-Reply-To: <22ac147c-fb47-fc8c-8e10-8e67db94fbf8@quicinc.com> References: <20220224101226.88373-1-maz@kernel.org> <20220224101226.88373-3-maz@kernel.org> <22ac147c-fb47-fc8c-8e10-8e67db94fbf8@quicinc.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: quic_mkshah@quicinc.com, linux-kernel@vger.kernel.org, agross@kernel.org, bjorn.andersson@linaro.org, tglx@linutronix.de, linux-arm-msm@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Feb 2022 19:29:41 +0000, "Maulik Shah (mkshah)" wrote: > > Hi, > > On 2/24/2022 3:42 PM, Marc Zyngier wrote: > > A careful look at the way the PDC driver works shows that: > > > > - all interrupts are in the same space > > - all interrupts are treated the same > > > > And yet the driver creates two domains based on whether > > the interrupt gets mapped directly or from the pinctrl code, > > which is obviously a waste of resources. > The GPIO is kept under separate domain to handle extra configuration > for wake GPIO handling. Which extra configuration? The irq_chip structure is the same, the translation is the same, the GIC mapping is the same, and the select method only serves to select between two irq domains that do the same thing. So please point me to what the difference is. > > On targets like SM8150/SM8250 each wake up capable GPIO (if totan n) > line has dedicated parent PDC irq (if total m, n = m) associated with > it. > However on targets like sdx55 PDC has muxes where each wake GPIO (if > total n) line goes through each PDC muxes (if total m, n > m) and > any of these muxes can be used to route any one GPIO to PDC (and > parent GIC) but unlike other targets it doesn't have one to one > mapping for GPIO to GIC interrupt. > So this will need to be kept as is to support sdx55 target. As far as I can tell, the current code doesn't have any support for this. And if there is a mux involved in the interrupt routing, this should be something entierly separate, as the current code is strictly hierarchical. What am I missing? M. -- Without deviation from the norm, progress is not possible.