Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3707630pxp; Tue, 15 Mar 2022 04:50:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG5HS0gp1RqQVH4kbOwoD+S60X8ochkQ6J/UsBecb8OdynoQJ5M0Ul+F85kxL4vl6K5KL+ X-Received: by 2002:a17:907:2d11:b0:6db:8eab:94dd with SMTP id gs17-20020a1709072d1100b006db8eab94ddmr19090941ejc.502.1647345052267; Tue, 15 Mar 2022 04:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647345052; cv=none; d=google.com; s=arc-20160816; b=WurRttrnHrBtPg+ANNN2qLL+qceMC3quGZpNiw+Oyo7R/HlFJ++BxDIuAQwObQQclT ls/CEMmmzClmwa+ds1DgZuwXPhdjA0Rve8ICF7wTLvz9kVp5L98RMdkX40tniMtUQxnJ iFINbtXzWzGsl8BrtjO3aQTvBMt47UsKBUzX98IFHhyrxJ5Kv+T6OP4TBnM3XK2UeOCH Nl7ttWqXm/BL3cwLFeZ1yvy9wj7o6USEYI9Zp+/MmQHvRQ1TGZ8KUhyHqFW46xchxP0d 7L/OA8DA9WbkwDQpogFiNoTiyk6AaB5a1T2HSTI07pBqXpGdb/185j/q25LPjKPtOVY2 OUGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Y8651YBRwynSN56jLpR8pasMc911wM8yq4yQYkdSyWs=; b=cYJqq06CP81A3CJHKaWi8uHv/uPqYpn5qLHRmc1JXdCSSVdmWBxZbizgVJqUzKfud3 aO4DstOYqNHHPsUAjZw/6wSc1V/nkPbQDzVRtium+hSMHi+AMNMwsyGBkaQUyrwElDxd aYfRRc/y+Y5RvdaPs14Dfcdv1u/B4tKFsDKIN5xghzCPTkd5rbnzFzmekm2aHaGwMLs5 JUmFIspKEU5pjN85475PNZo4dpiBxtV3c2ut3a+lGpEoWqf+iBZLOgHUCdNqqV5PVTRN ieVUlFpMHXA2xJD7O93xNdRadGXfMxe1SQlngmJT0euo/1SXCQNl35LV9RbS6FtbtBNJ LAgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uVU7g7tb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a170906340300b006db57241b90si10505690ejb.338.2022.03.15.04.50.25; Tue, 15 Mar 2022 04:50:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uVU7g7tb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242477AbiCNPQm (ORCPT + 99 others); Mon, 14 Mar 2022 11:16:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234434AbiCNPQj (ORCPT ); Mon, 14 Mar 2022 11:16:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2156C633B; Mon, 14 Mar 2022 08:15:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A569561243; Mon, 14 Mar 2022 15:15:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09DE4C340EC; Mon, 14 Mar 2022 15:15:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647270929; bh=yH2HvHYugFk66gpwEdhxTtTfC9BU2HzyxT8MBDl663U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uVU7g7tbD/TCzGnq2oVO2I+7QGPpO2RwLudvj7plBnXI7rtVNbQz2ItMuJBkPSrAv Ved9yYzAhJ3W2KnuLz76UEX1viTbg8yEFUN3mDk3fjwGkC8PkDPkZZyCV2h0KpQY3d SVsbKTmGHncCbpmOORANXABmZHLjuhLlyKj5J2uYwLhLr53p6+7cxuSjF6yRVOMQ63 x6Ohn4opQRpqA7XemmKxt+nh5cK/J+MFumIFdygnVtn4IM308vthpJHFuSPsT7DOma O5fmqgUgfc/DEoR/8gMzvJi8SwzGw0G8bucdLPGkwSBfcPvMdWholet0rkjJiKEM40 f3zjFinnsmQMw== Received: by mail-ed1-f49.google.com with SMTP id y22so20421440eds.2; Mon, 14 Mar 2022 08:15:28 -0700 (PDT) X-Gm-Message-State: AOAM532S9CrTqv9vYhZy5E//vrPaw96Qdjul1V1E1kW78lD2Pi0QmJrj uWOxDhRvyxwo91HNJe1XrxXZHEVASvqWaNTS2A== X-Received: by 2002:a05:6402:292c:b0:416:8eb:3fc4 with SMTP id ee44-20020a056402292c00b0041608eb3fc4mr20732986edb.2.1647270927197; Mon, 14 Mar 2022 08:15:27 -0700 (PDT) MIME-Version: 1.0 References: <20211214135852.2934670-1-vladimir.oltean@nxp.com> In-Reply-To: <20211214135852.2934670-1-vladimir.oltean@nxp.com> From: Rob Herring Date: Mon, 14 Mar 2022 09:15:15 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 devicetree] Revert "arm64: dts: freescale: Fix 'interrupt-map' parent address cells" To: Vladimir Oltean Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-arm-kernel , Marc Zyngier , Shawn Guo , Li Yang , Biwen Li , Zhiqiang Hou , Kurt Kanzenbach , Rasmus Villemoes , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 14, 2021 at 6:59 AM Vladimir Oltean wrote: > > This reverts commit 869f0ec048dc8fd88c0b2003373bd985795179fb. That > updated the expected device tree binding format for the ls-extirq > driver, without also updating the parsing code (ls_extirq_parse_map) > to the new format. Sorry, I missed this until mentioned on IRC. > > The context is that the ls-extirq driver uses the standard > "interrupt-map" OF property in a non-standard way, as suggested by > Rob Herring during review: > https://lore.kernel.org/lkml/20190927161118.GA19333@bogus/ > > This has turned out to be problematic, as Marc Zyngier discovered > through commit 041284181226 ("of/irq: Allow matching of an interrupt-map > local to an interrupt controller"), later fixed through commit > de4adddcbcc2 ("of/irq: Add a quirk for controllers with their own > definition of interrupt-map"). Marc's position, expressed on multiple > opportunities, is that: > > (a) [ making private use of the reserved "interrupt-map" name in a > driver ] "is wrong, by the very letter of what an interrupt-map > means. If the interrupt map points to an interrupt controller, > that's the target for the interrupt." > https://lore.kernel.org/lkml/87k0g8jlmg.wl-maz@kernel.org/ > > (b) [ updating the driver's bindings to accept a non-reserved name for > this property, as an alternative, is ] "is totally pointless. These > machines have been in the wild for years, and existing DTs will be > there *forever*." > https://lore.kernel.org/lkml/87ilvrk1r0.wl-maz@kernel.org/ > > Considering the above, the Linux kernel has quirks in place to deal with > the ls-extirq's non-standard use of the "interrupt-map". These quirks > may be needed in other operating systems that consume this device tree, > yet this is seen as the only viable solution. > > Therefore, the premise of the patch being reverted here is invalid. > It doesn't matter whether the driver, in its non-standard use of the > property, complies to the standard format or not, since this property > isn't expected to be used for interrupt translation by the core. I disagree. The non-standard part is that 'interrupt-map' translation is not transparent. 'interrupt-map' that can't be parsed in the standard way is just wrong, and I imagine was never the intention here. We simply cannot have platforms defining their own format for standard properties. Reverting this will cause dtc warnings now (IIRC) and just kicks the can down the road. Reverting is fine for now (I gave Arnd the okay on IRC), but I think the parsing will need to be updated to honor #address-cells and detect an old DT (probably by looking at the total size of 'interrupt-map') and mark that change for stable. That would only leave a new dt with an old kernel without stable updates broken. Seems unlikely a device is getting firmware updates, but not OS updates. Rob