Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1176904rwb; Sun, 18 Sep 2022 02:07:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7u2SHekqkL8mDhO/P4tWymInoELiL1qlkq04G58p9lsxPx1QTGz9fRczmhy5kN198Wyt/H X-Received: by 2002:a17:90b:3b8e:b0:202:6f3d:539e with SMTP id pc14-20020a17090b3b8e00b002026f3d539emr24187066pjb.205.1663492036109; Sun, 18 Sep 2022 02:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663492036; cv=none; d=google.com; s=arc-20160816; b=ewNgpCqwhvyZ0K2F0jD612/T2ZpID9h0cEmQx7cb1myUJ07QYtC01fdrIi0GqUIj1o xx0MoravFPILl1ISv6hc7YIPXAGVs8HJWKKoVNT4XoymdcgsHsMX4Ln0Vl9Wnzy4s3yn +eu6p17l+7j9LsiaymGqhHHf7ejHRpnsGr0Aa8IRxZ6mKfoz9RSCarZlktB6A85qWpAv brwWgmfgEpivtE9c5w7wIO6Y6f3mKQ5uxeKtpqfGbIYgd6zV6Prgw7AGMltkin6BCBbZ GQUK3MMWHb2AQU8q7L8iP+SaKORbZB+fTBaQPhhVwZNbLEkGW+eaPCUcZFDgE8minpXk x+Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=P4PnGxERGRhEZRIAngKEa+BFGt/GdNcv1e3EYyeDGB8=; b=FjYq2KryZM/JHRBW1dGYaR9lD5fagVs9/cWL9ScTGQS2eLgjzaq6ady42ZLCBEdTTG CI6tW/GfYEsYUd1kvo4mCKHs9BSE7gH6ZXq3X1PAC3K2txuUTMuC8A6vIx13MU7nKys8 GAbBSxoDeWeqAJTCxtBba3oM/UdhlWz08MfbqNyc5fnxLlFTJXckn/ZwmR7/65LnVzK9 FOQ/2oL+QTTHCdYc2DAEv7wg/mlNsPrU+5TZ98boDWfDFn3Sxc+l9sKckgi0KIXjqAzi HPVg6YqoolHvE1UDTwqwfcfDCYqEf3cfBCxsOpsUnpKqkb3P3ZQ+hryV2Oucr7BdfXUT gB6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xlD0f96Q; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a17090abc0700b001fde265fec2si7592600pjr.78.2022.09.18.02.07.05; Sun, 18 Sep 2022 02:07: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=@linaro.org header.s=google header.b=xlD0f96Q; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbiIRIvS (ORCPT + 99 others); Sun, 18 Sep 2022 04:51:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbiIRIvP (ORCPT ); Sun, 18 Sep 2022 04:51:15 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0D9515FDB for ; Sun, 18 Sep 2022 01:51:13 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id a3so30172008lfk.9 for ; Sun, 18 Sep 2022 01:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=P4PnGxERGRhEZRIAngKEa+BFGt/GdNcv1e3EYyeDGB8=; b=xlD0f96Qrm53Ol1dT6kQZ5QxqrCRhL3Lx+Y0GJIZFr1TQIRVjNDqYm8rhTavxuUDDW XejtJXmOrEs3IaBMz/HyK665wIJ21i+RTmdNvp7nObt/k2pzrmQJejIHM9VOmDCrYMhu Sd2rsGbw9na3L3T9iuNbS9e01C6eKc591NNYdZhmK5Q85Cqrs7HXcQZrRsEHKGVvqAyu gKSBubjzKgbTaUlYWTARKSnAoElvT8dBwMOJOJsIWtO7xGBe07RHany3njkej/jFnvti 3OkhDvQXpf1ZpX0N5Q5gMCS/ossIYhnTuUA2ga2AYtpYd2gMfgKESdYve8Ef+CUfjeZ1 cQ0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=P4PnGxERGRhEZRIAngKEa+BFGt/GdNcv1e3EYyeDGB8=; b=HID2H0mldS5+zSurv/z4oLqJK2qilNENxMGk9UKh0yNOXphrOToaRdLj6NXhRrJaIQ 197OiTZxGL8mQz2ZAftzVgPjNQRu0JWI+5hEKiqmdEeSXU/Q+UaqU+nVg8M9D0iYhOmI B+fDPC7iKIKvIdLhb+AEHN6BpCOhkep+kJUYvuu53FKm5APQAKkyx0bDJfZDocSNhBjJ dUBjEp5MtsdGmKRyi+/XRg6582yDXgBeJ4frdJgLvBKESldmOuihrCW74Po5hfA9fs9s jm6LCc2cvfq2NLXlvY3Ei+pgUwD7fHEderzf6K3Aj84gdy4fruWtWPcFoZuLtaxu6pvN KCrQ== X-Gm-Message-State: ACrzQf1HlUWfeOFySbqpM0Py/0LuIvCmKi0HLJ/kb6b4NUvcgDyliK/k I4xJFuhe2TMjalXRujVrp+g8/g== X-Received: by 2002:a19:f80d:0:b0:49b:29a8:db54 with SMTP id a13-20020a19f80d000000b0049b29a8db54mr4115853lff.178.1663491072019; Sun, 18 Sep 2022 01:51:12 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id dt6-20020a0565122a8600b004976809d6a7sm4553134lfb.283.2022.09.18.01.50.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Sep 2022 01:51:11 -0700 (PDT) Message-ID: Date: Sun, 18 Sep 2022 09:50:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH] dt-bindings: timer: Add QEMU compatible strings Content-Language: en-US To: Marc Zyngier 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 References: <20220916132959.1910374-1-jean-philippe@linaro.org> <0acc2a21-27c2-ec85-0335-263d70c24469@linaro.org> <87mtaxltwm.wl-maz@kernel.org> From: Krzysztof Kozlowski In-Reply-To: <87mtaxltwm.wl-maz@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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. :) Acked-by: Krzysztof Kozlowski Best regards, Krzysztof