Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp586441imd; Thu, 1 Nov 2018 02:11:43 -0700 (PDT) X-Google-Smtp-Source: AJdET5czDcVKEO4Aa1WO8nreMpQvh+4mRAjIWwzCGJG81d2VVmZpzumIp/tx4I190OpVqp3JB+Jg X-Received: by 2002:a62:1745:: with SMTP id 66-v6mr6938480pfx.236.1541063503175; Thu, 01 Nov 2018 02:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541063503; cv=none; d=google.com; s=arc-20160816; b=Z4D1HTmGlENGH43J46tskU4cEDLbeBw+BqZ+6LKDFp/G+hLiAd5sKUbLQPi9QFpJHP tig9AKIc6Vuy7iBZyok+ohCIzrEJxnNqgzor5yE/aavQU0zBiQT3JimigO0rIohi26/Q C0G5RIrsozlzExJB5E9eOhrWgrVWATQKZjArMGnV4wLEnaqHWLGLggbj5Unm9w4kkmS1 YNRg59M4efDSaamTNNVZ98lqlLadx23jYmDgZCEh/GInN9B8zxKqFd3x9FR5QK6tAt71 jQr/RETcrydZsMMa8cLbQXNugWbGWRslOlAHQq1Pcbj7rIj2rszvZpIJ+FOuPNyqfsCx VD5A== 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; bh=pH6PS3UQSCw+wpgIKAHbRXkMRMw3ZJbJDjHZmUowUpc=; b=gVH91esl34NYdnYtQtvTldWQbC1mAK+CJM8c7wAU15V0qAqnuewkqcRkbcnR/BGMNj N+hKzgvI/mbYmnytq2lqKPlCsPYiFbvDkEoJ2YUWiuo85KsfJJAXGnr5Fwhp1+aHT29b wYwdEkTW7DSCBEhYPdAVWM+aWxMc41GUKQgRw3RqWx2L8vu2zatWFb1WONYdYs8DD9hI CUDM31iZLrid4n3PYeuMF+ugrRWG8UEWlR+266WAC3eGEiX2U0txo9XWJyGARTzX/inH 8kUezz35AMpr2KUOMgNX9MdiQM/mZDvatiuhSsUzz/Mbj+bvnqbILLB1oonaObsY5LoT CyLA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 x10-v6si28483780plo.100.2018.11.01.02.11.27; Thu, 01 Nov 2018 02:11:43 -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; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727775AbeKASLn (ORCPT + 99 others); Thu, 1 Nov 2018 14:11:43 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:38472 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbeKASLm (ORCPT ); Thu, 1 Nov 2018 14:11:42 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wA1996iU095185; Thu, 1 Nov 2018 04:09:06 -0500 Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wA19961v015869 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 1 Nov 2018 04:09:06 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 1 Nov 2018 04:09:05 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 1 Nov 2018 04:09:05 -0500 Received: from [192.168.2.10] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wA1992cF008782; Thu, 1 Nov 2018 04:09:02 -0500 Subject: Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver To: Marc Zyngier , Grygorii Strashko , Lokesh Vutla CC: Nishanth Menon , Santosh Shilimkar , Rob Herring , , , Linux ARM Mailing List , , Tero Kristo , Sekhar Nori , Device Tree Mailing List References: <20181018154017.7112-1-lokeshvutla@ti.com> <20181018154017.7112-10-lokeshvutla@ti.com> <9969f24c-cdb0-1f5c-d0f4-b1c1f587325c@ti.com> <86va5ssrfm.wl-marc.zyngier@arm.com> <2369ea50-55db-c97b-5b43-99d572c97dc9@ti.com> From: Peter Ujfalusi Message-ID: <2a869e38-47c1-0f11-8f4e-176d0d895a45@ti.com> Date: Thu, 1 Nov 2018 11:09:24 +0200 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: Content-Type: text/plain; charset="utf-8" Content-Language: en-US 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 Hi Marc, On 10/31/18 8:21 PM, Marc Zyngier wrote: > Well, I'm convinced that we do not want a networking driver to be tied > to an interrupt architecture, and that the two should be completely > independent. But that's my own opinion. I can only see two solutions > moving forward: > > 1) You make the IA a real interrupt controller that exposes real > interrupts (one per event), and write your networking driver > independently of the underlying interrupt architecture. > > 2) you make the IA an integral part of your network driver, not exposing > anything outside of it, and limiting the interactions with the IR > *through the standard IRQ API*. You duplicate this knowledge throughout > the other client drivers. > > I believe that (2) would be a massive design mistake as it locks the > driver to a single of the HW (and potentially a single revision of the > firmware) while (1) gives you the required level of flexibility by > hiding the whole event "concept" at a single location. > > Yes, (1) makes you rewrite your existing, out of tree drivers. Oh well... We need to have generic support for INTA within the NAVSS for Linux. The UDMA (also part of the NAVSS) is used as system DMA and for the DMAengine driver we need to have ability to handle the events from Rings and from the UDMA itself. Option 2 is not really an option as other components need to configure INTA to get interrupts from the Events flying within NAVSS. In the past with Keystone II we did have similar PacketDMA engine but it was dedicated to service networking and crypto. For all other peripherals we had EDMA as generic system DMA. With AM654 this is no longer the case as we no longer have EDMA and the NAVSS is tasked to service all peripherals, like networking and the ones we used to use EDMA. > > Thanks, > > M. > - Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki