Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp309234imu; Wed, 2 Jan 2019 07:07:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN5l8kOn99QphcurFuEuD+U/hsXcteATT8oD+XAk8Za6V8B9wlqjYMbLTmV4MPe7+cxMsaeH X-Received: by 2002:a63:1d1d:: with SMTP id d29mr42249721pgd.49.1546441679584; Wed, 02 Jan 2019 07:07:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546441679; cv=none; d=google.com; s=arc-20160816; b=E1p3jcvB5gE/Z0lELS3gpP0m1c/dbhYloMgvWTk2l0oI4uH6XyWOOUMPjK7lMq1Kjv 8xG/w3ImM/7+a7ntQqbOXxZ3XFYCVBKk9b5/vHolLPvCu7elbNhwvrvrtDFSJnNpDmMP YRqbJtl1q3dJPUNUje/WtegBjPpqUImpjRwf2NCirbp64g4y1go3Vs9yZZmML4rQQoAW 2z7fqYh9w+2YjwiOK4rINjU5sclphJ4lK7GAqsRLo4MqvlPUbxM2Fy5/jw+j2F29lFUF QdrmNvyXlLSS73UX+uycYGw/smOSE47fTgFptpW8EzCwNN/VGJeoNYKK7lhPE2rwgwgp M/sw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=lOs1pYtZZ4BDSEjaj8NL32uFIdC+voVOPDxUtK3XZqQ=; b=fbBIP8jQ4rQYHlsyX3BfZzg3dPzVYAN5IYr4sarLBgipSgLPqbdIgzs09di52NJFdL Hler+3ykhh3w6R+EHv4oiP0Q0+kH4E89GiMv0s+tSzEXDWik46o29aJ2byXPH8+3tBpq oUvoSoNumo7cZuoquZop0s5mbY4g6HQu/UKl64kh+WnwhYP4VMPJURuLZyAOCd/ekSYC 1K4n9UMykKRv88MZyUiSmghdIIqCW/yaGY0bdfflqP6/uYgg8xq0MqgB3IymJQrE+Bes EDcaMrfLwYCGgrJFk7Q67dTu96wsLt/RxJAF9Ggjz5CWZ0yB9pyCJiYqJKbpE2c9jq4i LYuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KUFtcbKg; 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 e2si47193272pgs.94.2019.01.02.07.07.44; Wed, 02 Jan 2019 07:07:59 -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=KUFtcbKg; 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 S1729389AbfABM1Z (ORCPT + 99 others); Wed, 2 Jan 2019 07:27:25 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:51818 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728120AbfABM1Z (ORCPT ); Wed, 2 Jan 2019 07:27:25 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x02CR3H2023476; Wed, 2 Jan 2019 06:27:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1546432023; bh=lOs1pYtZZ4BDSEjaj8NL32uFIdC+voVOPDxUtK3XZqQ=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=KUFtcbKgX64YuIFQN/gkVghOgmt2bIcYbClq5J+EMbkunB6vvvuI8XJ3/8qk8uXwN hXCumOAtKLYIJGY1sE2jrArF4MWBx7k5mrc/wUpUDQ6ijRnjHWMAOMfzcTZwayaIbC ZKcSWfNwmgLyVrCVi6ovaOW5+jn9fXvc/bfjsK1I= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x02CR29h028417 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Jan 2019 06:27:03 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 2 Jan 2019 06:27:02 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Wed, 2 Jan 2019 06:27:02 -0600 Received: from [172.24.190.117] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x02CQwwT017314; Wed, 2 Jan 2019 06:26:59 -0600 Subject: Re: [RFC PATCH v4 12/13] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver To: Peter Ujfalusi , , Nishanth Menon , Santosh Shilimkar , Rob Herring , , CC: Linux ARM Mailing List , , Tero Kristo , Sekhar Nori , Device Tree Mailing List References: <20181227060829.5080-1-lokeshvutla@ti.com> <20181227061313.5451-1-lokeshvutla@ti.com> <20181227061313.5451-12-lokeshvutla@ti.com> <9efbb01b-2ef9-13e7-f871-8db2c92844ee@ti.com> From: Lokesh Vutla Message-ID: <50da7038-9b1c-6910-2cf1-78fa98ddc3bd@ti.com> Date: Wed, 2 Jan 2019 17:56:47 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <9efbb01b-2ef9-13e7-f871-8db2c92844ee@ti.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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 Hi Peter, On 02/01/19 5:19 PM, Peter Ujfalusi wrote: > > > > On 27/12/2018 8.13, Lokesh Vutla wrote: >> Texas Instruments' K3 generation SoCs has an IP Interrupt Aggregator >> which is an interrupt controller that does the following: >> - Converts events to interrupts that can be understood by >> an interrupt router. >> - Allows for multiplexing of events to interrupts. >> >> Configuration of the interrupt aggregator registers can only be done by >> a system co-processor and the driver needs to send a message to this >> co processor over TISCI protocol. >> >> Add support for Interrupt Aggregator driver over TISCI protocol. >> >> Signed-off-by: Lokesh Vutla >> Signed-off-by: Peter Ujfalusi >> --- >> MAINTAINERS | 1 + >> drivers/irqchip/Kconfig | 12 + >> drivers/irqchip/Makefile | 1 + >> drivers/irqchip/irq-ti-sci-inta.c | 561 ++++++++++++++++++++++++++++++ >> 4 files changed, 575 insertions(+) >> create mode 100644 drivers/irqchip/irq-ti-sci-inta.c >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index aebce615151e..7d12788c844a 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -15026,6 +15026,7 @@ F: drivers/reset/reset-ti-sci.c >> F: Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.txt >> F: Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.txt >> F: drivers/irqchip/irq-ti-sci-intr.c >> +F: drivers/irqchip/irq-ti-sci-inta.c >> >> Texas Instruments ASoC drivers >> M: Peter Ujfalusi >> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig >> index a8d9bed0254b..d16fd39408ad 100644 >> --- a/drivers/irqchip/Kconfig >> +++ b/drivers/irqchip/Kconfig >> @@ -417,6 +417,18 @@ config TI_SCI_INTR_IRQCHIP >> If you wish to use interrupt router irq resources managed by the >> TI System Controller, say Y here. Otherwise, say N. >> >> +config TI_SCI_INTA_IRQCHIP >> + bool >> + depends on TI_SCI_PROTOCOL && ARCH_K3 >> + select IRQ_DOMAIN >> + select IRQ_DOMAIN_HIERARCHY >> + select K3_INTA_MSI_DOMAIN >> + help >> + This enables the irqchip driver support for K3 Interrupt aggregator >> + over TI System Control Interface available on some new TI's SoCs. >> + If you wish to use interrupt aggregator irq resources managed by the >> + TI System Controller, say Y here. Otherwise, say N. >> + >> endmenu >> >> config SIFIVE_PLIC >> diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile >> index b4ff376a08ef..a679490a7059 100644 >> --- a/drivers/irqchip/Makefile >> +++ b/drivers/irqchip/Makefile >> @@ -95,3 +95,4 @@ obj-$(CONFIG_SIFIVE_PLIC) += irq-sifive-plic.o >> obj-$(CONFIG_IMX_IRQSTEER) += irq-imx-irqsteer.o >> obj-$(CONFIG_MADERA_IRQ) += irq-madera.o >> obj-$(CONFIG_TI_SCI_INTR_IRQCHIP) += irq-ti-sci-intr.o >> +obj-$(CONFIG_TI_SCI_INTA_IRQCHIP) += irq-ti-sci-inta.o >> diff --git a/drivers/irqchip/irq-ti-sci-inta.c b/drivers/irqchip/irq-ti-sci-inta.c >> new file mode 100644 >> index 000000000000..78bfc83a079a >> --- /dev/null >> +++ b/drivers/irqchip/irq-ti-sci-inta.c >> @@ -0,0 +1,561 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +/* >> + * Texas Instruments' K3 Interrupt Aggregator irqchip driver >> + * >> + * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ >> + * Lokesh Vutla >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include > > To fix this: > > drivers/irqchip/irq-ti-sci-inta.c: In function ‘inta_msi_irq_handler’: > drivers/irqchip/irq-ti-sci-inta.c:308:8: error: ‘IRQF_TRIGGER_HIGH’ undeclared (first use in this function); did you mean ‘IRQD_TRIGGER_MASK’? > IRQF_TRIGGER_HIGH) > ^~~~~~~~~~~~~~~~~ > IRQD_TRIGGER_MASK > drivers/irqchip/irq-ti-sci-inta.c:308:8: note: each undeclared identifier is reported only once for each function it appears in > drivers/irqchip/irq-ti-sci-inta.c: In function ‘ti_sci_inta_alloc_parent_irq’: > drivers/irqchip/irq-ti-sci-inta.c:360:27: error: ‘IRQF_TRIGGER_HIGH’ undeclared (first use in this function); did you mean ‘IRQD_TRIGGER_MASK’? > parent_fwspec.param[2] = IRQF_TRIGGER_HIGH; > ^~~~~~~~~~~~~~~~~ > IRQD_TRIGGER_MASK > make[3]: *** [scripts/Makefile.build:276: drivers/irqchip/irq-ti-sci-inta.o] Error 1 > > Add this: > #include I did not see any such build error during my testing as shown below. But agree about the report. Will fix it in next version ➜ linux git:(nex-master) v8make defconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/preprocess.o LEX scripts/kconfig/zconf.lex.c YACC scripts/kconfig/zconf.tab.h HOSTCC scripts/kconfig/zconf.lex.o YACC scripts/kconfig/zconf.tab.c HOSTCC scripts/kconfig/zconf.tab.o v8 HOSTLD scripts/kconfig/conf *** Default configuration is based on 'defconfig' make # # configuration written to .config # I% ➜ linux git:(nex-master) v8make Image dtbs -j4 -s arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts:25.9-29.5: Warning (graph_port): /edp-panel/ports: graph port node name should be 'port' arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts:46.9-50.5: Warning (graph_port): /edp-panel/ports: graph port node name should be 'port' arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts:94.9-98.5: Warning (graph_port): /edp-panel/ports: graph port node name should be 'port' :1339:2: warning: #warning syscall open_tree not implemented [-Wcpp] :1342:2: warning: #warning syscall move_mount not implemented [-Wcpp] :1345:2: warning: #warning syscall fsopen not implemented [-Wcpp] :1348:2: warning: #warning syscall fsconfig not implemented [-Wcpp] :1351:2: warning: #warning syscall fsmount not implemented [-Wcpp] :1354:2: warning: #warning syscall fspick not implemented [-Wcpp] ➜ linux git:(nex-master) Thanks and regards, Lokesh