Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1312874imu; Wed, 28 Nov 2018 07:47:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/WV4OEymStsl8LkC+ODmWh8349sO65ME8o7mekwpS9gso8aaFOhDJlMKZzVBKzi9H5+votD X-Received: by 2002:a17:902:4124:: with SMTP id e33mr37316035pld.236.1543420057057; Wed, 28 Nov 2018 07:47:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543420057; cv=none; d=google.com; s=arc-20160816; b=WSBHj3IgYpwhfHVhI18YQ0Er2gENx3nbrFEUF4bE1AJBsWyUF8TustrROWIohDlGuL 8S5+06bWAZbMB0E91e3u46LcA6mPdcghMmhh2iPzDKChspHfAhrr8tuHUgrWZwL3Fnvb Ba1aMObj/0eUTSfcyTXQS7rUmUBuXmKcDDdRhf5gx69TsZhHIXV7JaeCYHE8RorH+hiE bmey4c6ZaNJmaJFVLtq3sYXXi5/urk/LlJsU0ODOb84UE7qCATaHUeH/DynoeLssp4mI za/OrkYaXtmuj3WUpXqtUMQfUmCs+bXl/LjGVm/gbNuRzPIiFeFDtYOzuu6qIb2gNaUb 3Tyg== 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=v3BZ8eaPDm65dVhGJtsCUly7WdWzUe2LOR4BBYB8E+8=; b=sX20rDMLpiRtDwcpXbJ15CKObvIP+mGLMdg8OgDFSf54novLKtDjL8Cnyl6nHAbFzO CcJeXkp3aqstTfDc1iFtn4lIU+Mq2T1AObBJnTRRg78wPaD8cfNkq2f9mI4FG04hq5Lo Q/+uc7zlxJfmkbcZPRonAZtwG4BuW+MQS9AcM2xF7Txbyk0cLABECKSLX+8H2o7Kuxxn zgYLsWWUbMwH5SRZSqCx6pCZSbdIeymIuSmX1vs4W7aoM8AkLjBF9D8CeOXm08bNfTDJ CgsPh4iTGklM8KdigAgrRt3jhOwEuvU0gu7pW0R7lI1ZnkwG48A7QyZLHF8CSeKt9Y7N e51A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=h2qeV0o6; 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 8si7784106plc.88.2018.11.28.07.47.07; Wed, 28 Nov 2018 07:47: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=fail header.i=@lechnology.com header.s=default header.b=h2qeV0o6; 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 S1728807AbeK2Csg (ORCPT + 99 others); Wed, 28 Nov 2018 21:48:36 -0500 Received: from vern.gendns.com ([98.142.107.122]:57402 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728240AbeK2Csf (ORCPT ); Wed, 28 Nov 2018 21:48:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=v3BZ8eaPDm65dVhGJtsCUly7WdWzUe2LOR4BBYB8E+8=; b=h2qeV0o6fH5DhI4dGyH8YCWYq9 DyOSYANaTq+R1Ju4MvbzUyLgErzdDqmj/sNWxK9R1NG1Yx0q3/74OMcuaOZ8b7Gzyz8v7nsjmYCBe Sc2P5F/ANp6h17+AE3l7l7D51t75RIXZ90tmLe0nKWKMMbd8UzPj0iQmbe1sSCo6o+usQ2yYIGjPW 1J1neHsPAWk04xM1RuKhva2JQaTDOlQT4kxzZdNoXD5HdKPTGHQEdVo23jMZjmKLBLkmffCdMI3cr u7qfPk4dvKvmSmu9bzCeXrX4ySlVpm2me6jt0FG488wiOYP5qFG3PxEcH0kIqtY0zpeTgUGOtuu+K OEvDuXOA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:48980 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gS21r-0000y8-Ow; Wed, 28 Nov 2018 10:45:31 -0500 Subject: Re: [PATCH 08/17] soc: ti: pruss: Add a PRUSS irqchip driver for PRUSS interrupts To: Roger Quadros , tony@atomide.com Cc: robh+dt@kernel.org, bcousson@baylibre.com, ssantosh@kernel.org, ohad@wizery.com, bjorn.andersson@linaro.org, s-anna@ti.com, nsekhar@ti.com, t-kristo@ti.com, nsaulnier@ti.com, jreeder@ti.com, m-karicheri2@ti.com, woods.technical@gmail.com, linux-omap@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <1542886753-17625-1-git-send-email-rogerq@ti.com> <1542886753-17625-9-git-send-email-rogerq@ti.com> <5BFD651C.7020903@ti.com> From: David Lechner Message-ID: <421ca9ad-1816-021e-76af-b719f80a5531@lechnology.com> Date: Wed, 28 Nov 2018 09:46:24 -0600 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: <5BFD651C.7020903@ti.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/27/18 9:39 AM, Roger Quadros wrote: > > On 26/11/18 23:17, David Lechner wrote: >> On 11/22/18 5:39 AM, Roger Quadros wrote: >>> From: Suman Anna >>> >>> The Programmable Real-Time Unit Subsystem (PRUSS) contains an >>> interrupt controller (INTC) that can handle various system input >>> events and post interrupts back to the device-level initiators. >>> The INTC can support upto 64 input events with individual control >>> configuration and hardware prioritization. These events are mapped >>> onto 10 interrupt signals through two levels of many-to-one mapping >>> support. Different interrupt signals are routed to the individual >>> PRU cores or to the host CPU. >>> >>> The PRUSS INTC platform driver manages this PRUSS interrupt >>> controller and implements an irqchip driver to provide a Linux >>> standard way for the PRU client users to enable/disable/ack/ >>> re-trigger a PRUSS system event. The system events to interrupt >>> channels and host interrupts relies on the mapping configuration >>> provided through a firmware resource table for now. This will be >>> revisited and enhanced in the future for a better interface. The >>> mappings will currently be programmed during the boot/shutdown >>> of the PRU. >> >> Does this mapping table take up space in the PRU IRAM or DRAM? If >> so, that can be a problem on the AM18xx because it has such limited >> resources - every byte counts. > > Currently the entire resource table is being placed in DRAM. > But that is only because the current rpmsg vdev implementation depends on the > rpmsg channel information and vring buffers to be in DRAM. > > I think the right way is to split up the 2 things. > i.e. separate out rpmgs channel DRAM allocation from resource table > and don't copy the resource table to DRAM. > > This way if there is no rpmsg channel in the resource table we won't eat > any DRAM. > > I'm not sure if there are any bottlenecks. I will only know when I work on it. Sounds good to me.