Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2055759pxb; Fri, 25 Mar 2022 10:18:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjtSYTS2jJrocOis1xVljDmcFYDTnIps77iStk+HaW8L3IjyxnglIxB3U9gCjQQM3dkZro X-Received: by 2002:a05:622a:84:b0:2e1:c584:d34c with SMTP id o4-20020a05622a008400b002e1c584d34cmr10479841qtw.164.1648228683715; Fri, 25 Mar 2022 10:18:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648228683; cv=pass; d=google.com; s=arc-20160816; b=k3zOLCVWztn2C6jxwRkVZHnGOciY1j7RkscOHwt2bwKeG3xYllsRucVpfRddhWF/Wt H4oxhJYSYUnPnrFNjWcymmHu6Eo2xpuR5NOpZmdT68jeGvfF3H4+J+XUrmcTBSW9tXg3 4PsTvhvXYWL9bqrEsqDSVuWPxDhyfZCZm/TZOg3jGF6fqzkYLpT3iw5nEkOshKnthF37 EPoCz3PaPtXlUb0+mohJnrA0mhRsItUQZNG8ZlYoq6OOem9K/C081h2YeHwgYSHobZyG KZCx9xheObb3yjU8GhHdMtva6L/kg3EcJhHa1CvcCAS7HjKlfVK4ZqG9kntBYIGjEqZj aq8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=WsoT3HSJPoRsVwC1bBp1HaTco/IZrUMAp8z/OQYoq6E=; b=KjkP7R+epzQmn+ycKWxHvpoTE+OhBJf2kzQBW7fd8pXcmu0Q0nuR2CjYHuoQpLpV9O giaMbJxm0iqk23+EyErT2GHVzz7u4PhukK6bRwd9Xb4lmzICcBdXAzGgXFpS9N9BnFYv wELfQ7N29JTvP9+LgTZQlmgYMb1owi4jaFN0Cd+EFNPFFMrG6pXhvLRAr138XfhZVu/G pCTCElrtJqpshwgN9XK4vreioyiebOxOWM9/CeFMzM2hzTm8dW/b/bRMe5ihfQ/w1+Gv fxvfbMVD/rxJHmtdayC4UqC2DAOOj3fj5pexKcadU6UZlwPWStXIJ4NZDTRiCBgMN6xT wcLg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=m1dV58i5; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t17-20020a0ce2d1000000b00440f96b7d05si1725003qvl.175.2022.03.25.10.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 10:18:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=m1dV58i5; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 21F9DE885B; Fri, 25 Mar 2022 10:17:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352131AbiCXRMT (ORCPT + 99 others); Thu, 24 Mar 2022 13:12:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236380AbiCXRMR (ORCPT ); Thu, 24 Mar 2022 13:12:17 -0400 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50058.outbound.protection.outlook.com [40.107.5.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27439B0D3F; Thu, 24 Mar 2022 10:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=knzpXPBDQfM+TsdyHrOyOtAMYzIptM+GYLRgiXTDQHnbdwlSevU6Ol09K1DeWqHCMC2Arfsx5CsiT+8HHa1qDPc4eZQyj0sFqiZc632TBm+dF9TbHQc5IybYccpATUACHRcc1tI4FDS1fUU5MXZRJEe4Mzjy1R3540xdrQ1u1BRV7xPozpDIV/GFm7sM+jPShYEmYPQGZjD+rnFUOVgR1xXfxy4JEN3vQgwyXkQ21KP8OnGzQ4nBRv26m8m1LdCofs8dsEvRQBo9WGG5lpXmlLQu0u+/NYqZAxXeF5qrt1gQVJJFJuVOj4kYhrH+ZgjEl2pLVHf2cPdUpGCUdh66pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WsoT3HSJPoRsVwC1bBp1HaTco/IZrUMAp8z/OQYoq6E=; b=JmFE4fTAE2JJVtPLubt3Gx37z3+oHeP20xAEvIVmrxcOKlbvsZbhWMi1vdEJ0yu9qmC4w5CXoOXg4Vjlb0TYUwOJ41P15qn2Akdpg6PJAeYs71+zRkpmWok/qHYEHyPpoB7i5qLo4AAONUDDNMPuBlJ5E6cHptrJEhZKD15nGSNfq7wSICPG0Z0HoHIH1G6g7ODch6senfVg/dCOejDps2XyiY+mlDrVYBIQQ25euYXz2OhKcrDv6QpS8HOQAZH3CXtbwf8PIKDw/Mi5V8D+d6+CCN0UKJjhtFWMkbdi3rrYh6dFUGv/eGY/MEA3Z62cCaRMMSfTRx1UQEQz7RE7jg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WsoT3HSJPoRsVwC1bBp1HaTco/IZrUMAp8z/OQYoq6E=; b=m1dV58i5uOw8IM9dmPfd4CRY7iPN0/dnWEqhxfUiaBQOiWR6UGiAa6Ti9/gIQWMjX6KPMH8HcQicRRe1pKOit4PsmFo/B+VJaqYZeDv3b4Erp7fjNrJ67J9y8d2TdZrMiK3CyOjGhXOo30Ddm0PlRv3irCGm3uKKK5goyUe/Qhk= Received: from AM0PR04MB5121.eurprd04.prod.outlook.com (2603:10a6:208:c1::16) by PAXPR04MB8943.eurprd04.prod.outlook.com (2603:10a6:102:20e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.18; Thu, 24 Mar 2022 17:10:42 +0000 Received: from AM0PR04MB5121.eurprd04.prod.outlook.com ([fe80::4502:5fbf:8bf2:b7bd]) by AM0PR04MB5121.eurprd04.prod.outlook.com ([fe80::4502:5fbf:8bf2:b7bd%7]) with mapi id 15.20.5102.018; Thu, 24 Mar 2022 17:10:42 +0000 From: Vladimir Oltean To: Marc Zyngier CC: "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Rob Herring , Shawn Guo , Leo Li , Biwen Li , "Z.Q. Hou" , Kurt Kanzenbach , Rasmus Villemoes Subject: Re: [RFC PATCH devicetree 00/10] Do something about ls-extirq interrupt-map breakage Thread-Topic: [RFC PATCH devicetree 00/10] Do something about ls-extirq interrupt-map breakage Thread-Index: AQHX8ItO3xtQxxPJV0yONti9mp5846wxrpCAgAASv4CAAAYSAICdm7aA Date: Thu, 24 Mar 2022 17:10:42 +0000 Message-ID: <20220324171041.t5yoocinj6gizcc7@skbuf> References: <20211214013800.2703568-1-vladimir.oltean@nxp.com> <87ilvrk1r0.wl-maz@kernel.org> <20211214095853.4emzycaxkuqr4tun@skbuf> <87czlzjxmz.wl-maz@kernel.org> In-Reply-To: <87czlzjxmz.wl-maz@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 70e93d56-a54c-4be9-5847-08da0db93a5c x-ms-traffictypediagnostic: PAXPR04MB8943:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TiWUBkxrujNdf8QJkA2WTRgT7YuefEOQYV9LuzWZHBbC1XErfoktNFhPvAXXpdjFZbYvxD3Ma7bvKd7RjfFdksaiAnIziK/DRjw9OKKcoMd4PfpRGXg9rPFuMnkzrMoetjGm1UaF6K6tW/HwDBmu78E7ZZNIemtcMXP5OY28PDEf0i/uXgSZUsyd26rsmQNOy5UMwcXBJQc4afECTHmil6djRLQ8uJoQquQbWi0CQBpSSuJsl4iGPJJWNf6kSzQUC5S+hZzgLScftQqQQAHpYx7me4pQfp1Kkq8y4Jm+etSBb4bQRbza9ApW2Iz9mC9xljR1Hnn080FmEWTl2Yxz6j/9OBBFVM8CERywX3/+kYda8AIcZTyiSoeA10gIxSDnM9Y6KZv+cZWT+qrjOE+Re+RzDOfJlIRyeEztx3hj9n99UZt9YzglHj5F3kbTOiNJbXCNc4wsR/495XLQm11XLvL/fTt8aIru8slWYgazr9HaSa70YC/+ZoxRGCOfb03vhtsA/mbSBOq4dB9vhYfbTesiNXsvJcfElMw/VMXyPHGUplo2Ym+B1MHAa9n217iBXqZzVcdEQmmi4hdCYNWWLtgdeAufxAAQIm/eyDRMKYYDXAjEvntf9jjCVshLxHpmf1g5+jr+gMUem71RBEU+jWDHxqrYKZZGLIzwxsXtgTSwLEsJeg3xi+4hiZDhPpcoRZY4LMdFFmHLOHFUYQ1jAz/Zjzgn39XRZnVBmKrG14SP8rFUUFfeW95vS8QnBpN8GT+vZaGHFC5W9iz3h5LgR3yWOoe66tuF3v3PvnQzZyQ= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB5121.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(4636009)(366004)(54906003)(83380400001)(71200400001)(38100700002)(6916009)(122000001)(33716001)(6506007)(8936002)(91956017)(4326008)(1076003)(76116006)(44832011)(9686003)(6512007)(8676002)(66556008)(64756008)(66446008)(66946007)(66476007)(86362001)(2906002)(5660300002)(38070700005)(508600001)(186003)(26005)(316002)(966005)(6486002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?m2ENI57NJVNnVxGVY72BqCITUSc+uzZ73PF2DVKGVu+1vq61uvBG9uZ+Y32b?= =?us-ascii?Q?T0NZM1kM/LucsRu1QvA5INu/BOkYV/jw4HmdfGPsClOBgzxeDmG1hTSLCGJH?= =?us-ascii?Q?IisDDq5bAunOqOBMsqbQnHdzHx2yv1s5tNRCaW/Y4fnVryQ0dCtESQ/LtXrn?= =?us-ascii?Q?I+UPDoeW8AnbM7GRNaQ0d1zhqeLQ+lxJ8xtPg/pgVm61LloAi6fu0ZkoG0pj?= =?us-ascii?Q?8HKSa879TXGxB12dROj3Iwv0qSEp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Q?PrRzTWXnl8ejGv5w5/LPLSft25vLgqv+bl+FnI+1/BbKVCMiP2tBHp2cCfzt?= =?us-ascii?Q?qvKO0sR7vV9+8JYLZltL2QPdlnPr4pjNxcdr3Jc4XkW9QSxGuYoIue7xTXPK?= =?us-ascii?Q?BpjYhMDa8ulupKjiEuisy39b++r8B8C/CET7Q7o8kDjm/qzrSTLGHWqAHD9x?= =?us-ascii?Q?IFK73WUS/AOXkWJYWjvACtUuFCFok/pCfsXNixIyfjmST7v8nikG84TQ8S70?= =?us-ascii?Q?QT4d1medeo6pLqDOvNKsV+JN5Cml2AvygjRib2yQv20rjhlR6f79TatOzPfB?= =?us-ascii?Q?6OQWD+uk6dBfK4GTG8X/aGW/WGGqIkWDxETlQ3zDHpBRgX6pZ7IAbS1ZBfg6?= =?us-ascii?Q?kQPUV4ZsOsr2KC1hz79WFGtnm6KhdXCtX/Dgp8osnT4q5jIQG56e2qwTXef6?= =?us-ascii?Q?Ost90ZTCEJQyJmy87p7S6BEF/JyoToAs+QQRs0VJrVh5k600cdkJrZxECWle?= =?us-ascii?Q?iBGJ8W7uuMrfeNiT7Ud9xkL6s5YVJE7CoGUlQOeDLkma80Ny4OmjRHVfTDwk?= =?us-ascii?Q?MmMvJLdA5qRB0TL8KqoFSs4OV7OgCvvxNVacFIIdkB/JM1UphOk94T0P15dX?= =?us-ascii?Q?5H31KCDtCP1VAGxWFUjUB3wwsOOnh58=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <6DBB7331E2362343BAA66A3CE2CCC873@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5121.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70e93d56-a54c-4be9-5847-08da0db93a5c X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Mar 2022 17:10:42.4806 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: M6Lcui9FPuRH2KCENrejI/RdKp3lfY6FFaA5/R2/lwPSbPa94LbcZ0nvrEBwftM5X9l7NoGHm0w+ua4zplOWBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8943 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hello Marc, On Tue, Dec 14, 2021 at 10:20:36AM +0000, Marc Zyngier wrote: > On Tue, 14 Dec 2021 09:58:54 +0000, > Vladimir Oltean wrote: > >=20 > > Hi Marc (with a c), > >=20 > > I wish the firmware for these SoCs was smart enough to be compatible > > with the bindings that are in the kernel and provide a blob that the > > kernel could actually use. Some work has been started there and this is > > work in progress. True, I don't know what other OF-based firmware some > > other customers may use, but I trust it isn't a lot more advanced than > > what U-Boot currently has :) > >=20 > > Also, the machines may have been in the wild for years, but the > > ls-extirq driver was added in November 2019. So not with the > > introduction of the SoC device trees themselves. That isn't so long ago= . > >=20 > > As for compatibility between old kernel and new DT: I guess you'll hear > > various opinions on this one. > > https://www.spinics.net/lists/linux-mips/msg07778.html > >=20 > > | > Are we okay with the new device tree blobs breaking the old kernel? > > | > > | From my point of view, newer device trees are not required to work on > > | older kernel, this would impose an unreasonable limitation and the us= e > > | case is very limited. >=20 > My views are on the opposite side. DT is an ABI, full stop. If you > change something, you *must* guarantee forward *and* backward > compatibility. That's because: >=20 > - you don't control how updatable the firmware is >=20 > - people may need to revert to other versions of the kernel because > the new one is broken >=20 > - there are plenty of DT users beyond Linux, and we are not creating > bindings for Linux only. >=20 > You may disagree with this, but for the subsystems I maintain, this is > the rule I intent to stick to. >=20 > M. >=20 > --=20 > Without deviation from the norm, progress is not possible. I was just debugging an interesting issue with an old kernel not working with a new DT blob, and after figuring out what the problem was (is), I remembered this message and I'm curious what you have to say about it. I have this DT layout: ethernet-phy@1 { reg =3D <0x1>; interrupts-extended =3D <&extirq 2 IRQ_TYPE_LEVEL_LOW>; }; extirq: interrupt-controller@1ac { compatible =3D "fsl,ls1021a-extirq"; }; I booted the new DT blob (which has "interrupts-extended") on a kernel where the ls-extirq driver did not exist. This had the result of of_mdiobus_phy_device_register() -> of_irq_get() returning -EPROBE_DEFER forever and ever. So the PHY driver in turn never probed, and Ethernet was broken. So I had to delete the interrupts OF property to let the PHY at least work in poll mode. What went wrong here in your opinion?=