Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41897C433EF for ; Mon, 29 Nov 2021 13:35:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377232AbhK2Nie (ORCPT ); Mon, 29 Nov 2021 08:38:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbhK2Ng3 (ORCPT ); Mon, 29 Nov 2021 08:36:29 -0500 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCDA9C09B115; Mon, 29 Nov 2021 04:13:48 -0800 (PST) Received: by mail-yb1-xb34.google.com with SMTP id e136so41552316ybc.4; Mon, 29 Nov 2021 04:13:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zvWgEEmp4P0Dmru5AcXSwTmy3R2DbgQle1dL6KFUV5Q=; b=mheknQwzJETTESRyXle/GMJBlalpNtrfwg/kBAz+TsIO3u8AFuxRSgMSCzSZCOiB+X 8ItucEPwG6AFQvyz6kswJVpMghQUGnPY39IkeD6YQTiFRp67gU4fkRo2fSTpESnyv8Sl +HQ54IBVWLctIAdpc1QazKO5mCTixeHcvvOsw2qYP8xwyxt+8y9u7xPwFFPv5dh1/MVp hucadXNx3/eXiMomO3xbEGc+icVZcdXemfSsb7fbmIZPYj4AxNxXztjV7srW0jJqyTGd ZFlXK6fLpljlrGkRqMM1CroQvu7t1kV93H0hk+JkPAbX+R44b3u0dzwBKo7W7yH6w+oy ivAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zvWgEEmp4P0Dmru5AcXSwTmy3R2DbgQle1dL6KFUV5Q=; b=CJxYKKjNRNW3Ej3UUD0S6C2ebUxG5iz42Nq0kmHwRN8HxDmWoqDqjif5uvuPmdMSi1 8UwC9psqqkBgceLU8cEUZVrqwfcfQuhqqb9KBrVJlLobJoqku7jdcQGC+2ljWIfEJ+ky tv1EnRnCUdDt3U7rwEUNFGjXoq36biclrbKHcPou3/vF0uz8YB7/7nZhL3IXwAg8EiFA iTn2zmwxnOuwPrynzBY5eeknX0YtCRG8FPe+2quPTGTXokoQi0A0MV7PPi9npa0IPGsG /S0411bwzgc723RLX8rORQdXoChYEfeTvZaSJfz1gecu69210MSGYfUmoXMWiD/0dC4e cJCQ== X-Gm-Message-State: AOAM533a8xDLiC29jwUZYwPNFJdHNXWEUkwHXoQ8Ucy11lZz+Nzma+G2 0wWcVo3TLgGL8/3kVb78tE9ZObOFZAcwSYfVIVE= X-Google-Smtp-Source: ABdhPJyW8I0OsQuEsS+iKk63xokUZyRnOL5btP3ZmO51jdgo/krQaQVmuV2borBUdhceQ8WtnHuzSADL2Orr0bxc/YA= X-Received: by 2002:a25:abe3:: with SMTP id v90mr34471368ybi.315.1638188027913; Mon, 29 Nov 2021 04:13:47 -0800 (PST) MIME-Version: 1.0 References: <20211122103032.517923-1-maz@kernel.org> <8735no70tt.wl-maz@kernel.org> <87tug3clvc.wl-maz@kernel.org> <87r1b7ck40.wl-maz@kernel.org> <87tufvmes9.wl-maz@kernel.org> In-Reply-To: <87tufvmes9.wl-maz@kernel.org> From: "Lad, Prabhakar" Date: Mon, 29 Nov 2021 12:13:22 +0000 Message-ID: Subject: Re: [PATCH] of/irq: Add a quirk for controllers with their own definition of interrupt-map To: Marc Zyngier , Rob Herring Cc: Prabhakar Mahadev Lad , Geert Uytterhoeven , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "kernel-team@android.com" , John Crispin , Biwen Li , Chris Brandt , "linux-renesas-soc@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 29, 2021 at 10:34 AM Marc Zyngier wrote: > > On Sat, 27 Nov 2021 00:42:49 +0000, > Prabhakar Mahadev Lad wrote: > > > > Hi Marc, > > > > > -----Original Message----- > > > From: Marc Zyngier > > > Sent: 23 November 2021 09:11 > > > To: Geert Uytterhoeven > > > Cc: linux-kernel@vger.kernel.org; devicetree@vger.kernel.org; kernel-team@android.com; Rob Herring > > > ; John Crispin ; Biwen Li ; Chris Brandt > > > ; linux-renesas-soc@vger.kernel.org; Prabhakar Mahadev Lad > > > > > > Subject: Re: [PATCH] of/irq: Add a quirk for controllers with their own definition of interrupt-map > > > > > > On Tue, 23 Nov 2021 08:44:19 +0000, > > > Geert Uytterhoeven wrote: > > > > > > > > Hi Marc, > > > > > > > > On Tue, Nov 23, 2021 at 9:33 AM Marc Zyngier wrote: > > > > > On Tue, 23 Nov 2021 07:57:48 +0000, > > > > > Geert Uytterhoeven wrote: > > > > > > Summarized: > > > > > > - Before the bad commit, and after your fix, irqc-rza1 is invoked, > > > > > > and the number of interrupts seen is correct, but input events > > > > > > are doubled. > > > > > > - After the bad commit, irqc-rza1 is not invoked, and there is an > > > > > > interrupt storm, but input events are OK. > > > > > > > > > > OK, that's reassuring, even if the "twice the events" stuff isn't > > > > > what you'd expect. We at least know this is a separate issue, and > > > > > that this patch on top of -rc1 brings you back to the 5.15 behaviour. > > > > > > > > > > I'd expect it to be the case for the other platforms as well. > > > > > > > > OK. > > > > > > > > BTW, what would have been the correct way to do this for irqc-rza1? > > > > I think we're about to make the same mistake with RZ/G2L IRQC > > > > support[1]? > > > > > > Indeed, and I was about to look into it. > > > > > > There are multiple ways to skin this cat, including renaming 'interrupt-map' to 'my-own-private- > > > interrupt-map'. Or use something akin the new 'msi-range' (which we could call interrupt-range), and > > > replace: > > > > > > interrupt-map = <0 0 &gic GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, > > > <1 0 &gic GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>, > > > <2 0 &gic GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, > > > <3 0 &gic GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>, > > > <4 0 &gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, > > > <5 0 &gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, > > > <6 0 &gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>, > > > <7 0 &gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; > > > > > > with: > > > > > > interrupt-range = <&gic GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH 0 8>; > > > > > Just to clarify, do you suggest to add interrupt-range as a generic > > DT property or SoC/company specific property? > > As a generic one. I have no interest in SoC-specific stuff (though you > are free to invent your own and run it by Rob). > OK will go with a generic one. > > If you meant to add generic property where would you suggest to > > document this property? > > Ideally collocated with the rest of the interrupt properties. > OK, I will go with interrupts.txt for now. Is that OK with you Rob? (the reason I ask because interrupt-map/mask haven't been documented). Cheers, Prabhakar > Thanks, > > M. > > -- > Without deviation from the norm, progress is not possible.