Received: by 10.223.185.116 with SMTP id b49csp6048797wrg; Wed, 28 Feb 2018 03:09:14 -0800 (PST) X-Google-Smtp-Source: AH8x227gZKxZrxWySiDX23+tDaHWR1O2TWkOlZFg2uDR0f5iwzkhkvmkSBRpm/MFtNQXXUx8BZof X-Received: by 2002:a17:902:a5c5:: with SMTP id t5-v6mr18061332plq.160.1519816154523; Wed, 28 Feb 2018 03:09:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519816154; cv=none; d=google.com; s=arc-20160816; b=SFzO481zKlveuX8b/BfJ1+gwQBYVNbZfczkkU2UiuNhnbgVyjFlkq6DF9JMYvU2BwX i8NErmV9Q0wX0lZ45qsVwio8Wpy3PLXT5hamahqgsnWSvtyrWVl+potoqUP83/OTNHeH tStZZXK60Zy6HRs/8SyrxCyUOoClT0it/XgJarsq2dOpsn7qq4c5OJ7X3au0q6R5ux8d XS1KUfXLRPilyykf/ufnlzqrZQlGTq2OmjNpRJx1uQttLk/g3cvMth1evesheuxvFTiK bSgICgl+qsKfS1FSJR+TC+Ckmu01sEDQMV4/hs22SHrlPNCeqNh59Un6mKUhuJai0+4y hyhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=1uKjefTc7+BOCVvZMyIlXNy7Sw3+uLzy/zOIsQnzY+s=; b=aBitlUAfoK5kqYG90kFNmmtSVy3fo7JdkUBK9vIsg6j/zFmv2dTKpnk1RB78i2tls7 5DUK+NrHFJ2Y+6bBXQYRFuqnGFHoEMiI6QFAJX1oF/OyDTXT2Ttjw9P6GjtQSFPQ/zMF Uyefv39Wvh0WnDDvogiEYcitXdd2qKYgEDO0UIhYYbU3UIV3bh3hYpRglS930+Lx3owp dIcNVOKSQgH2iKuqX/9OGR5F+ZvPJU50iSShuvOMDUDWiZx5zJBQFw0hbO32FxSJEzqS pq5wSOLaDrgxqf3RFSw5TH4YAyKGSuUwkC14+Q0oQWmY1wjan3JwNGL560OTAYiQLLP1 EKzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si907128pgc.18.2018.02.28.03.08.58; Wed, 28 Feb 2018 03:09:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752257AbeB1LIT (ORCPT + 99 others); Wed, 28 Feb 2018 06:08:19 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47842 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752120AbeB1LIR (ORCPT ); Wed, 28 Feb 2018 06:08:17 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 322C21435; Wed, 28 Feb 2018 03:08:16 -0800 (PST) Received: from [192.168.67.35] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5BC7B3F318; Wed, 28 Feb 2018 03:08:14 -0800 (PST) Subject: Re: [linux-sunxi] Re: [PATCH v3 6/7] arm64: allwinner: h6: add the basical Allwinner H6 DTSI file To: samuel@sholland.org, Maxime Ripard , Icenowy Zheng Cc: Chen-Yu Tsai , Linus Walleij , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com References: <20180223123555.64009-6-icenowy@aosc.io> <20180223123555.64009-7-icenowy@aosc.io> <20180223152038.2bflylwa6vj4gzfj@flea.lan> <81D53DC5-7622-430E-A530-ED0DE5397DC3@aosc.io> <20180226092645.xghkmfowenzlbm42@flea.lan> From: Andre Przywara Message-ID: <4c9cb1c9-922b-655e-cf31-c09b5b20d829@arm.com> Date: Wed, 28 Feb 2018 11:08:07 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 26/02/18 15:54, Samuel Holland wrote: > On 02/26/18 03:26, Maxime Ripard wrote: >> On Fri, Feb 23, 2018 at 11:22:06PM +0800, Icenowy Zheng wrote: >>>>> + psci { >>>>> + compatible = "arm,psci-0.2"; >>>>> + method = "smc"; >>>>> + }; >>>> >>>> Is it needed? The bootloader should fill it with whatever version it >>>> has, shouldn't it? >>> >>> But we now use ATF rather than U-Boot PSCI. U-Boot will not fill ATF >>> info. >>> >>> See A64/H5 device trees. >> >> So if the PSCI version implemented in ATF ever changes, we would have >> to update all the DT everywhere, but only if you're running the new >> version? > > Yes but no. PSCI 1.0 is generally backward compatible with PSCI 0.2. In fact, > the Linux driver treats them exactly the same: > > { .compatible = "arm,psci-0.2", .data = psci_0_2_init}, > { .compatible = "arm,psci-1.0", .data = psci_0_2_init}, Yeah, it's actually unclear why we have that new compatible name in the first place, since starting with PSCI v0.2 the version can be perfectly read using the mandatory PSCI_VERSION call. And DT aims to only cover things that are not discoverable. > For the H6, however, the oldest ATF source available (which I believe was the > one in use during bringup) is based on mainline 1.4, and is already at PSCI > version 1.1: > > [ 0.000000] psci: probing for conduit method from DT. > [ 0.000000] psci: PSCIv1.1 detected in firmware. > [ 0.000000] psci: Using standard PSCI v0.2 function IDs > [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. > > So we could go ahead and bump the compatible to "arm,psci-1.0". I'd rather leave it at "arm,psci-0.2", since this improves compatibility to other OSes or DT users. Cheers, Andre.