Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2695178lqo; Mon, 20 May 2024 13:36:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLpdg1msZoM5EVWTHcpj53Qherkkwt7UGkWp/wlORWEBXA9z0Dj0NAM2XGYpUOH8wfVDFF76WPwlDRiebJkN/m7nziyw76GfbNYs/ADg== X-Google-Smtp-Source: AGHT+IEX3Ca/7CBjC0MKgqbStdNl3u3MK0AugnNsr3WIO3roZo/0Iu33tiFjxM+qFFl79qesjTPH X-Received: by 2002:a17:906:4899:b0:a5a:5634:a83a with SMTP id a640c23a62f3a-a5a5634a8abmr1579791166b.17.1716237399606; Mon, 20 May 2024 13:36:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716237399; cv=pass; d=google.com; s=arc-20160816; b=Uvsup1m0HkjtpFY9pehmeKpsgAWv8aIllLtUAef6eTSN1Lv/GdVQ0xlBFRO1d0Hf4V k6gS95AfP7lXRN6QwtDzKfOsMxE3qeNJQ4a0QgVGw6LkAAHi+j0W4VEetLwu2afDP22z SSv+fiaU1xQt2mRFp/GBkO8L/m5/ZqSA0XrEErThJcyCkW2iS00uf8ayjASK7XKHFzLe XihPpJgkdn8cTFMwATAwdSChulj2l/pCr6eddBK9ytq2aV/U8ztkpUMljqkb56hXNSNu zHJfgrPltCb3nPqilcATIOeyvux6JOlSRYviUxg5APwMGyUHOUsSxra7PMSg8RJOYLKt Fs/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-filter; bh=XdydB7zjUjYezj9ReQeRzLuYYU1bVLh5sU+DZTi2Y5g=; fh=Doi2ZhfbLtwRCmttT5M+d1yd4t+lwY9tbHKgidKsEmM=; b=AfETKKNV0l4kraljTu/enuGtHMIirx2Xn+awCMwtnjcNUJrE8wDsVpHzDXwz8oaEFa bXXJJbLOXAM9Ju+Nu3WiWfwAyflsyzEqhcSAhDXDXu3Y9ZOYcbaRLt82jtexoA2P6E1Q 7eIJOie9Y+U88iqe8O/UwtFyrxYtuYhZeh+d3Jmvz1Z0ONLg03esJLuOcpCFEVTX+33C 3kta8A4AL3mkgySv++w4iLwg2mqMDAD2t1Dun08KFh1HIhGKmmJ3MKZrtCkEx1xvSC5v tGYSRgXs9yuUukbmuYOKlX+7fOEBzEf/5bjtm7umNEZz25AJvtAQhb2Yyq2BqY8Du/Ok 8MFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=pexG1JSd; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-184160-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba3ae0si1327690366b.578.2024.05.20.13.36.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 13:36:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184160-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=pexG1JSd; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-184160-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4CD811F21C35 for ; Mon, 20 May 2024 20:36:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F5F613959A; Mon, 20 May 2024 20:36:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="pexG1JSd" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D719D139D0E; Mon, 20 May 2024 20:36:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716237378; cv=none; b=bEKAjX1oo3GkOC2eGWCv6uIiqoREuIlttCWQPqgiDmmfLoqU802RblnyjFT94DleG9gn1nHdVD2dRwKMwtHQnckqjp77IamYmr873LqdurMjO7/rMipdtnyu6f0RNzGbMIaa9eK1/4RzpS50ShQSLSdJjDfhf1fK68/frwUHC0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716237378; c=relaxed/simple; bh=berpTgxxSrfJLrHiDgBaFd7goEBykaCW9v/TCOW7O/E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=b+WumIMwVcjAQv094vK/Pzwh8QOft3nLtARebWVSXDdmHIqjlSFCrCqV/BPr3O96oSJbafOwp5qdJ7oZFHXOgt6yMLExCU8zG5CDR/9gWvS9fRkEdMA9pmY1Oqn8yV/nNjZbQqSL2Ekw7gPUJUsHsmhXaVLfw/noLv7jPAR1ncA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=pexG1JSd; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from [10.137.186.190] (unknown [131.107.159.62]) by linux.microsoft.com (Postfix) with ESMTPSA id EACFB205421D; Mon, 20 May 2024 13:36:15 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com EACFB205421D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1716237376; bh=XdydB7zjUjYezj9ReQeRzLuYYU1bVLh5sU+DZTi2Y5g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pexG1JSdUuURsSLjO/6WhipEb+tmTM4SWikJZFoOTk4zC9rXqU/I4I7r5xLcpxKC0 TV/VHCWd/hYWGI5TQrQo/hQc+JpKk4sFzc1oOTnfwSsU9/2mScLtgPGX9CcIxkuCmq PGe6Xm702lEEo4Klhcm0K/ncemEUcxHt34buPKtk= Message-ID: <587482fa-b747-42e8-b581-01132475211c@linux.microsoft.com> Date: Mon, 20 May 2024 13:36:15 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/6] arm64/hyperv: Support DeviceTree To: Krzysztof Kozlowski , arnd@arndb.de, bhelgaas@google.com, bp@alien8.de, catalin.marinas@arm.com, dave.hansen@linux.intel.com, decui@microsoft.com, haiyangz@microsoft.com, hpa@zytor.com, kw@linux.com, kys@microsoft.com, lenb@kernel.org, lpieralisi@kernel.org, mingo@redhat.com, mhklinux@outlook.com, rafael@kernel.org, robh@kernel.org, tglx@linutronix.de, wei.liu@kernel.org, will@kernel.org, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org Cc: ssengar@microsoft.com, sunilmut@microsoft.com, vdso@hexbites.dev References: <20240514224508.212318-1-romank@linux.microsoft.com> <20240514224508.212318-2-romank@linux.microsoft.com> <1766fc9a-1d10-4c93-a9db-a7e0db8b01e7@linaro.org> <267ef0e2-2384-44bd-81f9-f33dda7bb9d2@linux.microsoft.com> <6f7ae5e6-d20f-4980-9b6e-25ba6d7b5558@linaro.org> Content-Language: en-US From: Roman Kisel In-Reply-To: <6f7ae5e6-d20f-4980-9b6e-25ba6d7b5558@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/19/2024 11:45 PM, Krzysztof Kozlowski wrote: > On 15/05/2024 19:33, Roman Kisel wrote: >>>> static bool hyperv_initialized; >>>> @@ -27,6 +30,29 @@ int hv_get_hypervisor_version(union hv_hypervisor_version_info *info) >>>> return 0; >>>> } >>>> >>>> +static bool hyperv_detect_fdt(void) >>>> +{ >>>> +#ifdef CONFIG_OF >>>> + const unsigned long hyp_node = of_get_flat_dt_subnode_by_name( >>>> + of_get_flat_dt_root(), "hypervisor"); >>> >>> Why do you add an ABI for node name? Although name looks OK, but is it >>> really described in the spec that you depend on it? I really do not like >>> name dependencies... >> >> Followed the existing DeviceTree's of naming and approaches in the >> kernel to surprise less and "invent" even less. As for the spec, the > > I am sorry, but there is no approved existing approach of adding ABI for > node names. There are exceptions or specific cases, but that's not > "invent less" approach. ABI is defined by compatible. I should check on the compatible instead of adding a node that is not mentioned in the DeviceTree spec as I understand. Appreciate your help! > > Best regards, > Krzysztof > -- Thank you, Roman