Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp709315rwb; Sat, 17 Sep 2022 13:19:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5MfwFL76gfrYVcGb52u2i/09wPlxgm5cDSOJomH96zwBaqPwOlbtX7TONbZk8SMgDmV5Py X-Received: by 2002:a17:906:8a6f:b0:780:96b4:d19e with SMTP id hy15-20020a1709068a6f00b0078096b4d19emr6810158ejc.624.1663445953217; Sat, 17 Sep 2022 13:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663445953; cv=none; d=google.com; s=arc-20160816; b=F3ZAYIKfiJa3EURGL9xLsvGINjMZqCq8FUqmVj3AftSJ+vY93EFDKTq7zf6ndzKKmM ZTgFDfAqkKoaSb1DE4zeIW/QfWb592qK8UuuKeKgaAKwY5Od+5M97+aOYwHvY3xEzK36 ufklCeuxjAxIa3SCdpEtP5JJB20KY0R09CkquWTKMGAeDJNgbCeFwenAkZgTUxLn5khA 3ysVJzCoD/l2ReATM/MXM0u5iZH/ucxq86X+WaMrq0L3fiDvvBxsG6HD1QCkCuetlQmH K5lUNJGadPn3KvNH1wWVrQn6XZPZ9aSo78CV9kav1l0aG5dKvrltT8QdcmAaSrajkTUD netw== 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=RIPkzhl7N5t6t8NNc9Xmtl3l5B5xEoob1Bg2APQDZKM=; b=H7eio+aqwfXEF+0iU3IBBrCxVCjNa8ejeDvbMHwcW0BUEN6ZRZmt48auih7KoI0iYm ozBGFclf4GiMlLs1QmkxYDUdqOlgeRD77mJh3UksZJ2WZ4lHSD0is1JOqVBEKTZwPSg4 c0YqZQh8LB+hLaZo9QS/I/LVcYtHzdZa6kXt1x91P1xvPOHuuaItjvrrGUTKiueKpFZq smZmrVORMSPEr2uHY/w5OE9TG+Z1FZgOfToRUQuxoJ/NKg/AwRcLxYaoo37FvPHbyYb3 ZfoiPDU5CsWI7z5Mmg8dRlXIjKJjZMP4W8XBJWDMya/i9eH4e79Iopn8e8wylLBXZ+Up xWbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BNFWkpgm; 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 f19-20020a17090660d300b0073d78bbd49csi16834351ejk.666.2022.09.17.13.18.45; Sat, 17 Sep 2022 13:19:13 -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=BNFWkpgm; 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 S229645AbiIQSsC (ORCPT + 99 others); Sat, 17 Sep 2022 14:48:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbiIQSsB (ORCPT ); Sat, 17 Sep 2022 14:48:01 -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 68D3C2B1B9; Sat, 17 Sep 2022 11:48:00 -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 18914B80C94; Sat, 17 Sep 2022 18:47:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B161DC433D6; Sat, 17 Sep 2022 18:47:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663440476; bh=he5mmwC82r4pXuqJjWuYbjHr1LVIrfZ/VIoQhX53oEU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BNFWkpgmN/WUKXEz6GzHXIU7igDURvYF5yxqlZbUNCTPOHhtoqYRJZ+PGuEJTCpg9 QnKg/jkcBzU7TlA0urvWk+QbNtpJ5calUkxACWLydAlYUO1ZTEweQzVuzoO6iCZvxb VB5hlxuT1PbKHiHPnA6fFDfSMyyvtQLgDSp8dj6Bjid9vWYwo57oJMrpwTGsXnJ7Te YLxcLmWZo8P4rvje9bLPLxpWfpxIeJixDoHHO8Wx55svg2oVw5vJIoGex53T3Pj0KA Yax7Du07sj3wP/cRO5xF46aXl+aXDnYQgnYzKQ/yE/EgCIZVlk1busHSR54+JeDURJ ATb/C2gwpxyYA== 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 1oZcr4-00AodO-Do; Sat, 17 Sep 2022 19:47:54 +0100 Date: Sat, 17 Sep 2022 19:47:53 +0100 Message-ID: <87mtaxltwm.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: <0acc2a21-27c2-ec85-0335-263d70c24469@linaro.org> References: <20220916132959.1910374-1-jean-philippe@linaro.org> <0acc2a21-27c2-ec85-0335-263d70c24469@linaro.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 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, M. -- Without deviation from the norm, progress is not possible.