Received: by 10.223.176.46 with SMTP id f43csp2582200wra; Thu, 25 Jan 2018 12:06:37 -0800 (PST) X-Google-Smtp-Source: AH8x225ECwM6iA0BTmjad9r/2R4wlQ3TCBoyh01Bn/edLUUKwIp6t1RV3bClaPlTSDMfvpo12XCu X-Received: by 2002:a17:902:123:: with SMTP id 32-v6mr12328114plb.278.1516910797563; Thu, 25 Jan 2018 12:06:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516910797; cv=none; d=google.com; s=arc-20160816; b=tZb7pUuH1BD8BzWWb7qoTTN5ijpNmbkPjxcFp/Mdn10cvSWOS/RH+sBCgWRLoKGO/M aWzbHl1GOo44T3q2vLxvGJJ8dRaV//hZVvNhbl4r+EdHDKa6KXpE56l+19/S3jZfE4Qr vOVgvGvoSrqM6HxAJM3tSqC03FXfzPVnHH+JRl5aZfkoRf1tx1yWy1hzH0ygF8PtTFhL P2RP8CT/iSU6eQ3Xxu7i1PX77afQfMeZpYQb79nle28AlCH1eAaZzhiHm9PGxwDLwkgH TAJcWW0URO6V4pDgC1Eun/PmLDaaeStg+dDXFPkFn0GiJiF7sHNwy12cRtQ+b6lZhTui eQdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=wkAEhD/Qf8m/5kPsKPcUXnrnnVG3T2BR/mxTGXiFgB0=; b=Ng1bvSvQE0h7x3WMm1gtUihG4GjfZOs4Ajjr/GaSwCGNZVAXWO7PhPmR1IGB2yQq7L s7dlPBgdj6mV6XW/z5Hh9wvdJ71siX9nXvHU++B//8mS636uwhFukwQPPGHhgh/u4U2r 8Dnouz8VU9ZcctbWy52UmUhhTe1MGNe0ve7aCZ7i061LkR6wWWWazvwVOrkTDyyJEXnL 4O8btZOj1Ev07Xph/EbOQnqGHMfMkv6T/9GqTkzdlHskOf49lMgKXkYxgcIzI18DZtDo +Acuia+3vY7xOr+iU3wOr6dwi8741UN74jcLn+j0J1EnivZkZHCegwKy1vmWSNwF7ats M+Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=RCRGwub0; dkim=pass header.i=@codeaurora.org header.s=default header.b=ESQINnLY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v203si1955974pgb.474.2018.01.25.12.06.21; Thu, 25 Jan 2018 12:06:37 -0800 (PST) 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=@codeaurora.org header.s=default header.b=RCRGwub0; dkim=pass header.i=@codeaurora.org header.s=default header.b=ESQINnLY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751254AbeAYUFP (ORCPT + 99 others); Thu, 25 Jan 2018 15:05:15 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:40920 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751108AbeAYUFO (ORCPT ); Thu, 25 Jan 2018 15:05:14 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 77A71600C1; Thu, 25 Jan 2018 20:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516910713; bh=wkAEhD/Qf8m/5kPsKPcUXnrnnVG3T2BR/mxTGXiFgB0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RCRGwub0VIVsqPXPbeMjHOCRkPiibFDzxjKPK686So7psTmahPXMOG+p+AkxgQ+ab 7dWzwO8uXHCyTH7G8AWLbgPyaY4aled4vPm6YuMsD70Pjb+bNdI04xeTdMgR9ZAXwC /r6jrKmbXLxpCCJX4vC/0IPfHKzqkkZZ4204zw8A= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B6C35600C1; Thu, 25 Jan 2018 20:05:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516910712; bh=wkAEhD/Qf8m/5kPsKPcUXnrnnVG3T2BR/mxTGXiFgB0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ESQINnLYNCPF2PmMPvLvzQ9kNkFsx7b3ZrxPu0g0xadJrnOVZQLB+P2iWIKAoHlSa +q7jtgfV449ZD1gBOa1H68dQRTMV8GMuvNfhZSENZlFugazxmcPzc36CIVrEpN1ssm 8VDg1HeP8H0u51kAOi/0WUUlA/SLNLOIwD3K2FRk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B6C35600C1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Thu, 25 Jan 2018 20:05:12 +0000 From: Lina Iyer To: Sudeep Holla Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , open list , linux-arm-msm@vger.kernel.org, Stephen Boyd , "Nayak, Rajendra" , asathyak@codeaurora.org Subject: Re: [PATCH RFC 0/4] irqchip: qcom: add support for PDC interrupt controller Message-ID: <20180125200512.GE12603@codeaurora.org> References: <20180123175656.11942-1-ilina@codeaurora.org> <20180123184442.GA12243@codeaurora.org> <494fa715-aff0-19f2-0ee9-78d8c0b33775@arm.com> <20180124174310.GA24587@codeaurora.org> <1ee07421-444d-adf7-bf6f-8a35c4884c14@arm.com> <20180125155428.GC24587@codeaurora.org> <403f9685-fd40-8948-d658-5acb63af04fb@arm.com> <20180125181309.GA12603@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 25 2018 at 18:43 +0000, Sudeep Holla wrote: > > >On 25/01/18 18:13, Lina Iyer wrote: >> On Thu, Jan 25 2018 at 16:39 +0000, Sudeep Holla wrote: >>> >>> >>> On 25/01/18 15:54, Lina Iyer wrote: >>>> On Wed, Jan 24 2018 at 17:54 +0000, Sudeep Holla wrote: >>>>> >>>>> >>>>> On 24/01/18 17:43, Lina Iyer wrote: >>>>>> On Wed, Jan 24 2018 at 10:10 +0000, Sudeep Holla wrote: >>>>>>> >>>>>>> >>>>>>> On 23/01/18 18:44, Lina Iyer wrote: >>>>>>>> On Tue, Jan 23 2018 at 18:15 +0000, Sudeep Holla wrote: >> >Ah OK, so PDC interrupts needs to be enabled all the time then. >I was missing that. > >>> 2. GIC CPU interface is disabled in firmware, so it's better to copy the >>>   wakeup source to PDC just before that in the firmware. >>> >>> 3. Remote f/w must just know the mapping to PDC(X) for all the enabled >>>   interrupts(Y) at the GIC and enable them accordingly at PDC. Is that >>>   not what you have in the array in patch 4 ? >>> >>> I find above approach simpler instead of getting those wakeup >>> interrupts defined per peripheral in DT. Further if there are any secure >>> wakeup interrupts the firmware can also deal with that. >>> >> You assume that the remote processor is capable of doing all that. It is >> better to de-centralize all this and have individual processors do the >> work of configuring their wake up sources. We used to do that in earlier >> SoCs but with SDM845, we moved to de-centralized model to reduce latency >> and take the load off from time-critical idle path at the remote >> processor. Dumping all this work into the firmware/PSCI is not desirable >> either. >> > >It may have some advantages to decentralize but will that not cause >issues in complex systems ? I assume even modem and other processors can >access and configure these wakeup interrupts. What happens if 2 such >processors try to access it at the same time ? > Every processor in the SoC has its own PDC and does exactly the same thing in SW. The hardware blocks are replicated for each of the 'subsystem' and they behave similarly. >Thanks for you patience and taking time to help me understand the design. > Sure. Thanks, Lina