Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp128733imj; Thu, 14 Feb 2019 16:56:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IYsYO+OUaHhAa214A+suWfij8W4+uaEIosezf05JjsMDD4/VDYtDUtP7uJ/PhbjjAqcsl+7 X-Received: by 2002:a62:20d1:: with SMTP id m78mr6943077pfj.250.1550192211831; Thu, 14 Feb 2019 16:56:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550192211; cv=none; d=google.com; s=arc-20160816; b=Ov8wuSa72MXghnB6Q/lR+Xgme92Wc8jY3x9a4FclInZGRf3qxlwS8ufeyaEUiZlimP kuvx641PHR/myV8fSNpmFh0pLLrxwmXBvnwdQV1oo84nTWjleDilah0VmtLBaHfwnSU0 FnIKzcldUfYwx8ybiavbFe1ACPvu+4xVzebmPHsYqw10DLyrLCmjglvrZBcFYBdtvn60 krtlFA2VYWnmnAczkVqKfYZvOfq5fMSiLEwLj4vrxCtiHQ213xlTaN+XOKmPAjRPd3XR aC3wmYgBYpMxqc3SqtzQreCcRrxyRdNKtXi+Tnc7kBhHziQNxthB+5vqmkpTzQ9MTzOE w98g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=6u2Evk0OxMKPMaO2lLHgaUIUAifnir+OQhpYJLL/kGc=; b=WZBwzTAXL6PrEMJuSaCCetSpQ234rmOoeJqfcq8T9+yhvo8TEqP3wZ8xL/6Hnn+rgL UrU3dDw9tV91/tRST18/Wy8Gys1X7mOcDXGm1l3OGGAPbVPqS0icv1J+PVJ68meKZ9VG ymZ1hItlonx/Srh0bJA1KQp2tg37TNniN/vh8jtmKCZN6WRntwbntzIrTVAIXKIdpjvm 3AtPrJ4ep7N7m91OEsizV9aLKLOih6Fa0HdIBHIvm8lCatS97hDE9x88Vgh/Q3ZV3RF8 l48dTPisEkrB0P6qzULDzpoT/gAdbRl3Vdkznpxf7hqHOaN/xJLpSXYrDHvTAe0oDz3Z ifyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fVcgc4iX; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay1si4181511plb.165.2019.02.14.16.56.36; Thu, 14 Feb 2019 16:56:51 -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=@ti.com header.s=ti-com-17Q1 header.b=fVcgc4iX; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405051AbfBNQv6 (ORCPT + 99 others); Thu, 14 Feb 2019 11:51:58 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:57446 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731118AbfBNQv6 (ORCPT ); Thu, 14 Feb 2019 11:51:58 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1EGp4Cc030276; Thu, 14 Feb 2019 10:51:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1550163064; bh=6u2Evk0OxMKPMaO2lLHgaUIUAifnir+OQhpYJLL/kGc=; h=Subject:To:References:CC:From:Date:In-Reply-To; b=fVcgc4iXzZun7bqndNR4BfMjTgkBOEClR3J9kyVJ7DNh100QEAu7ooF0gsWOZEIbV tz7J/RkvFJkhrySYY68sRCeIpx2+Yq/EC6OULajfkm/8BpbFBxtXG7varVjzA1524g ez0AuUp9Qd4sewZlaXxjIxxylR78l9xVs71VIEO8= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1EGp4Wc005571 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Feb 2019 10:51:04 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 14 Feb 2019 10:51:01 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 14 Feb 2019 10:51:02 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x1EGotZA004529; Thu, 14 Feb 2019 10:50:56 -0600 Subject: Re: [PATCH v2 01/14] dt-bindings: remoteproc: Add TI PRUSS bindings To: Marc Zyngier , Suman Anna , "Davis, Andrew" , Lokesh Vutla References: <1549290167-876-1-git-send-email-rogerq@ti.com> <1549290167-876-2-git-send-email-rogerq@ti.com> <9c58bc48-90bf-8ac5-7fbd-0f6443e3fc5e@ti.com> <5C65490E.6000800@ti.com> <86ef8asfap.wl-marc.zyngier@arm.com> <5C658CE4.5030307@ti.com> CC: Linus Walleij , ext Tony Lindgren , Ohad Ben-Cohen , Bjorn Andersson , David Lechner , "Nori, Sekhar" , Tero Kristo , , , Murali Karicheri , , Linux-OMAP , , "linux-kernel@vger.kernel.org" , DTML From: Roger Quadros Message-ID: <5C659C6F.5010000@ti.com> Date: Thu, 14 Feb 2019 18:50:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/02/19 17:51, Marc Zyngier wrote: > On 14/02/2019 15:44, Roger Quadros wrote: >> On 14/02/19 14:52, Marc Zyngier wrote: >>> On Thu, 14 Feb 2019 10:55:10 +0000, >>> Roger Quadros wrote: >>>> >>>> >>>> On 14/02/19 10:37, Linus Walleij wrote: >>>>> On Thu, Feb 14, 2019 at 4:13 AM Suman Anna wrote: >>>>>> [Me] >>>>> >>>>>>> To be able to use hierarchical interrupt domain in the kernel, the top >>>>>>> interrupt controller must use the hierarchical (v2) irqdomain, so >>>>>>> if this is anything else than the ARM GIC it will be an interesting >>>>>>> undertaking to handle this. >>>>>> >>>>>> These are interrupt lines coming towards the host processor running >>>>>> Linux and are directly connected to the ARM GIC. This INTC module is >>>>>> actually an PRUSS internal interrupt controller that can take in 64 (on >>>>>> most SoCs) external events/interrupt sources and multiplexing them >>>>>> through two layers of many-to-one events-to-intr channels & >>>>>> intr-channels-to-host interrupts. Couple of the host interrupts go to >>>>>> the PRU cores themselves while the remaining ones come out of the IP to >>>>>> connect to other GICs in the SoC. >>>>> >>>>> If the muxing is static (like set up once at probe) so that while >>>>> the system is running, there is one and one only event mapped to >>>>> the GIC from the component below it, then it is hierarchical. >>>> >>>> This is how it looks. >>>> >>>> [GIC]<---8---[INTC]<---64---[events from peripherals] >>>> >>>> The 8 interrupt lines from INTC to the GIC are 1:1 mapped and fixed >>>> per SoC. The muxing between 64 inputs to INTC and its 8 outputs are >>>> programmable and might not necessarily be static per boot/probe as >>>> it depends on what firmware is loaded on the PRU. >>> >>> But the point is that at any given time, there are at most 8 out of 64 >>> inputs that are used, right? You *never* end-up with two (or more) of >>> these "events" being multiplexed on a single output line. >>> >> >> Since the INTC's internal logic allows assigning more than one event each outputs, >> at most all 64 events can be assigned to one output or distributed among the 8 outputs. > > OK. Do you get individual masking and status bits for each input? Yes, we have individual enable/disable and status bits for each of the 64 events. In addition to that it is possible to determine priority if multiple events come to the same output by reading a register specific to that output. -- cheers, -roger Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki