Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1203362rwb; Sun, 18 Sep 2022 02:51:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6oeoW6AZMv7c6uHe//sW0TdvYPLi72ZA2FyMFjfom+mM5LJsS+O3mUzKwVJrfgbPYE+d0S X-Received: by 2002:a05:6a00:15c9:b0:541:1767:4ce2 with SMTP id o9-20020a056a0015c900b0054117674ce2mr12747502pfu.30.1663494677008; Sun, 18 Sep 2022 02:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663494677; cv=none; d=google.com; s=arc-20160816; b=aJSdeS9Elwz1ZzGh/+pMdqwAJX4FBkXTmduP6yVu+zI5xZ3dp1/f5uEyMc71i/0fZV aZrd56CoBEgBbAForXqdG+HrcNc6t4AfMtX3/+OZvc05O/TNOk4wtkKZQ9RGM9Ye6E0e Jvh8PRhfP9oVLy7JK0Fem4wb0OHDKNcksXjnvCOHW4I7qTyn/GhKJ+7G4ma/8phjMZml fc/awNl/wiSWIisbDoETptx/G0QQ+WdpggZydMzADvk+cXI5gupj4/vVlQMHEFUgC+tG muEcfAHVp5Ab+twR2lk9KeRWcJJJGW4t4eVw1GcbD9sXkybBI1sA2AfhkDl99/dtRTWO pS0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=QBC/BToTE+g3Us6TYoq92239Ut2icRlTtvS5VgCLKVs=; b=anpXcqzUDjgx/6D/S8ThU93DCxbg+ynqEUqo+tw4bNfOm1VquqU/uKmM6gqVAx9tto cjHidUF0C+owHKr4EUbZ2e2f4n4C79MWPpJakVcT5G4z0OElBXcZ20bAgJWmudZtT6o2 qmiNybSDxMh2HQBTAdKuQUSljYf5HTp4N6EiAXzHThBHCVthSXxG+4gYF+AofTHBYXny nEs71VbU5zPdXYr5NPUhnEK7y95FS9xckUGvEBU5XcEdfoLvyVK+fMB6MJnkGAIn64Tk HXj3Ibmsgtqa73/a1X+Nt4jMdl/cklulD1nTuPOCzcRl7NJpv7lYdpFmcAgKOeGRgXYt 6Ycg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DXDujb66; 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 d11-20020a170902cecb00b001768b6fc6cbsi16564914plg.269.2022.09.18.02.51.06; Sun, 18 Sep 2022 02:51:16 -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=DXDujb66; 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 S229541AbiIRJJN (ORCPT + 99 others); Sun, 18 Sep 2022 05:09:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbiIRJJL (ORCPT ); Sun, 18 Sep 2022 05:09:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B67525592; Sun, 18 Sep 2022 02:09:10 -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 ams.source.kernel.org (Postfix) with ESMTPS id 9ADBAB80E84; Sun, 18 Sep 2022 09:09:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FDECC433D6; Sun, 18 Sep 2022 09:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663492148; bh=B7fP5yqOD5w51+NcW1DLKEZMR0ScOvN08QLqwn27G28=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DXDujb66dU2W00XcxCBGfpuKOJNMHAbuaKIC2XcGEoiPhC351/tf5LJmFiC6rhOI6 4na9sbhafjDnez3rVWTHBxWWRWlRGca3RtU06uQksboqAjTg+z2+dLdiO6RaGLuZLR FipgWOHDhEv7IiCwtQUUqSaEOeaE6Cbwoq+znM8SmIaxEAhBf8yNjVZHcVdfiQ0QnM IlTKIxSLE0I0mfd2hxapIw1PqRUJBE0OT6DrIdWtWXl+vOlYag8NMowmWJUHG3Ri9F du1fIxe9eN2u0Sjw4a1jiTg/AQgMqdVMukgRQCL4k6duUvC7D+k6StsTc2d/z/tsMa JhyWPB4pKEsdw== Received: from 185-176-101-241.host.sccbroadband.ie ([185.176.101.241] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oZqIT-00AsAu-TB; Sun, 18 Sep 2022 10:09:06 +0100 Date: Sun, 18 Sep 2022 10:09:05 +0100 Message-ID: <87h715kq1a.wl-maz@kernel.org> From: Marc Zyngier To: Krzysztof Kozlowski Cc: Jean-Philippe Brucker , mark.rutland@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH] dt-bindings: timer: Add QEMU compatible strings In-Reply-To: References: <20220916132959.1910374-1-jean-philippe@linaro.org> <0acc2a21-27c2-ec85-0335-263d70c24469@linaro.org> <87mtaxltwm.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.176.101.241 X-SA-Exim-Rcpt-To: krzysztof.kozlowski@linaro.org, jean-philippe@linaro.org, mark.rutland@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS 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 Sun, 18 Sep 2022 09:50:58 +0100, Krzysztof Kozlowski wrote: > > On 17/09/2022 19:47, Marc Zyngier wrote: > > On Sat, 17 Sep 2022 17:51:20 +0100, > > Krzysztof Kozlowski wrote: > >> > >> On 16/09/2022 14:30, Jean-Philippe Brucker wrote: > >>> QEMU uses both "arm,armv8-timer" and "arm,armv7-timer" as compatible > >>> string. Although it is unlikely that any guest relies on this, we can't > >>> be certain of that. Therefore, add these to the schema. Clean up the > >>> compatible list a little while at it. > >>> > >>> Signed-off-by: Jean-Philippe Brucker > >> > >> I guess you wanted to say QEMU uses "arm,armv8-timer" followed by > >> "arm,armv7-timer", because otherwise I would understand it that either > >> that or that. Anyway, is it a valid (virtualized) hardware? Is ARMv8 > >> timer really, really compatible with ARMv7 one? > > > > Yes. There isn't a shred of difference between the two in the earlier > > revisions of the ARMv8 architecture, and none of the differences > > introduced in later revisions are exposed to DT anyway. > > > >> I don't think we should document invalid setups out-of-tree, just > >> because they are there, and something like this was also expressed by Rob: > >> https://lore.kernel.org/all/20220518163255.GE3302100-robh@kernel.org/ > > > > This is, on the contrary, something that is perfectly valid. For > > example, a system running a 32bit OS on a 64bit system is perfectly > > entitled to expose both (v8 because that's what the HW is, v7 because > > that's what the OS is the most likely to understand). > > > > You may find it odd, but that: > > > > - expresses something that is actually required > > > > - is what I, as the original author of this binding, have always > > considered valid > > > > - has been valid for a long time (10+ years) before you decided it > > suddenly wasn't > > > > I understand that the "DT police" has high standards, but this has > > been around for much longer, and it isn't because the conversion to > > schema is imperfect that you can rewrite history. > > > > As for the patch, I'd remove the QEMU reference and the deprecation. > > This format is perfectly allowed, and is in use in most VMMs out > > there. Yes, DT is an ABI. > > Thanks for the explanation, actually enough was to say that it is > perfectly valid combination describing hardware. :) Assuming that the original posting was wrong without understanding the context is what triggered it. It is absolutely fine not to know these things, but in this case *do ask questions* rather than dismiss the patch off the bat based of third hand conclusions. Now at least you have the full picture. M. -- Without deviation from the norm, progress is not possible.