Received: by 10.213.65.68 with SMTP id h4csp4232206imn; Tue, 10 Apr 2018 11:21:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+S1R+tYHNFzp43Kmyc6qJspuv8htF7Xrn/I/8R2Yt9Mf0tXL/XzQStsq86R3LTZzvqCTGZ X-Received: by 2002:a17:902:bf08:: with SMTP id bi8-v6mr1540799plb.392.1523384475925; Tue, 10 Apr 2018 11:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523384475; cv=none; d=google.com; s=arc-20160816; b=lL27xfqFYJZ0GzJ9Ne71KaYWYtyC8wIXbQkk5cpbJNaCzIhI46iYz1ucGPHeNlE4BA D5bmqLVAMmTkKj4lDYbakshp7jm1ERV7/z4yLt7ePtDiz7KZJdFo03+JsHT4WPXqWVNB pvIXo+sRDWjX7XXF9SzlyuO0L4zbyPgbxWJOTQZA0uKDvFcwwDJBwh5AljyH7295Xe0w 6mSiHn2b7Aliz/1r7fuiF8T3O5WnqdWwEEDaAh8G+z6URQrROY5WulQKHiASnNEinwoc DYLK9DqGHw89ew4n1xaJ/SRPhulB3vxdSmyT+KiRWSsYnNHgIhBGr0/8tYOWrqqdE9oa 7DpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dmarc-filter:arc-authentication-results; bh=q3Ql7GIR5spbhZBcJKGCoT9LkO/G7pWWnwWgUQWmQGo=; b=xoJzo4R/dTN1/8Kj+sdXSPkBTNeQnr0UZVbDpxpOkGzylIu5jKuZUC8emzJ5sR5UYV EJ2gj88KnNV72aivVQ6FuDaiB9hPq6/nxxcQXOz8UddMauswYv4V7RNFilGtdIzVFn4B 00EYgDsMsJ3GOTtxzuAu2oYNRGYNsXbRmPMA8ZIkb1ismWZnJcc2c8suVCrqkVK5dK3e 7Wl64gOQFSo/ohcj/qA9zR//H8i8AGw1eOKQSFsKzl4teX7xRAwp65imRavXC8f4osu+ /X9MNjsYxGfmzjEWvDC5w5IQMgEc7DMU4Wv05vBZ8+dO5e1JnwcsLDMpQZHqapp83z0d Wzvw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si2533268pfh.379.2018.04.10.11.20.38; Tue, 10 Apr 2018 11:21:15 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752078AbeDJSRo convert rfc822-to-8bit (ORCPT + 99 others); Tue, 10 Apr 2018 14:17:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:58190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751490AbeDJSRn (ORCPT ); Tue, 10 Apr 2018 14:17:43 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 880E221738; Tue, 10 Apr 2018 18:17:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 880E221738 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=sboyd@kernel.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Marc Zyngier , Thomas Petazzoni From: Stephen Boyd In-Reply-To: Cc: Jason Cooper , linux-arm-msm@vger.kernel.org, Hanna Hawa , Stephen Boyd , linux-kernel@vger.kernel.org, Srinivas Kandagatla , =?utf-8?q?Miqu=C3=A8l_Raynal?= , Thomas Gleixner , linux-arm-kernel@lists.infradead.org References: <20170320223614.1351-1-sboyd@codeaurora.org> <20180410170155.6e07113d@windsurf> Message-ID: <152338426182.180276.1835672071236851795@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH] irqchip/gic-v3: Support v2m frame backwards compatibility mode Date: Tue, 10 Apr 2018 11:17:41 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Marc Zyngier (2018-04-10 08:23:00) > On 10/04/18 16:01, Thomas Petazzoni wrote: > > > In the upcoming Armada 8KP, we have a GICv3, which has built-in support > > for memory-triggered SPIs, thanks to the GICD_SETSPI_NSR and > > GICD_CLRSPI_NSR, and the ICU will directly use this GICv3 > > functionality. We would therefore very much like to have this GICv3 > > feature provided as a MSI controller, which as Marc said would require > > supporting level-triggered MSIs. > > > > Marc, let me know how we can collaborate on this topic. I'm able to > > either test some preliminary patches, or work on such patches if > > necessary (preferably with some initial directions). > > I have a vague idea how to support this. Given that level-triggered MSIs > have to be platform MSIs (because it is just madness otherwise), we can > probably store an extra message in the struct platform_msi_desc for the > "lower the line" write. On activation, you'd get two callbacks, probably > with a flag of some sort to indicate whether this is for the rising or > falling edge. The thing I'm unclear about so far is how to let the > generic MSI layer know that we're dealing with such an interrupt without > make a total mess of everything. It is probably done by marking the > interrupt level triggered, but there are some corner cases. > > And if that works, the PCI stuff will come for free (it is just a matter > of implementing a new irqdomain on top of the base GICv3 one). > > I'll try to spend some time on it in the coming couple of weeks, but > will have to rely on you for the testing (as I don't have much in the > way of HW). I resent these patches late last year[1]. On the HW I had at the time we were trying to support PCIe devices and we didn't need level interrupts. I thought Marc had agreed to accept the patches without the level interrupt support as long as we described the range of interrupts that were supported but that doesn't seem to be the case anymore. Anyway, this is mostly an FYI that I don't have the hardware to test with anymore and I'm not going to keep sending patches on this topic. Srini should have some hardware to test whatever solution you come up with. [1] http://lkml.kernel.org/r/20171127102408.6631-1-sboyd@codeaurora.org