Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3150804lqo; Wed, 15 May 2024 00:46:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhDhNbZhkwiWMwvMcOFz0tGa+v2rZW9s9yOgai6cyCUupK2kUC6qTprg3wxxFBzlBL2s6V93vvLLsP3ZTZn8TppKuwmIA9Fz7crq+hyg== X-Google-Smtp-Source: AGHT+IEZAPvdhN3GQvbdI4us2htoAxH7SWZhG5OIPdYgMUSH+fGsZXOs7FWaGLHSR+dWxaK83cTG X-Received: by 2002:a17:90a:62cc:b0:2b4:3659:83f6 with SMTP id 98e67ed59e1d1-2b6cc03f39emr12154651a91.2.1715759165971; Wed, 15 May 2024 00:46:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715759165; cv=pass; d=google.com; s=arc-20160816; b=mfgG6TqXT6o1eNQlFlwSA3sh7/W69fqR6bLp7ZqVVoyiYdWx0siGe+kg5aESFK4KjD tJuXb2CcPfgS3GFDXp/BlinlqqwZnXP+2lSegh7bZlY67rhkFUFzZdBKQpTzNa7a3U73 6k/4fcGD0ZtRwDJW2QgkSA4YI7fI89PosiY9Ze7yrZuERtPXdnyv/n8T0Yl0wP6vzSO+ 2g8oFm4+ymrIhmEs/84yXSCeiD5tIKPTls5wk008viCmFlEoPeElZ3nvvpYceduRZnKt 20cppEL1qL9b7m96yh1aN6o2Ue33Ee0164zRlWnQ3ELaLh10WtwzG3ZbSs1+hoqTZebZ iNYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=gJc1oIlpeSOnv91+spz2NNBOOiNI4JHd9FLN4xXD2l8=; fh=7N4mpwmmKcDb0hwwrCwKSi3hh6D1xy6OUoKiQsnuT7U=; b=Vbm5qFA539YqR98LXB4X0695874//noU8/Vx8F3OU9V8oTyxCeo0jLZodhfb8zLkWn ewbcXMXsXy3va7D5MrcVNNngVKpt1KNx/fDARcH6mNhqSK/EzXpSEzxK9+n6UuwN0lt3 W58edoe7SxHN4F6nsrRrRfGKgF5kfzOw4OLJ9YMGxTZd8kIhEqxfpbnVryAb9gD6fW/G L56z7BNS26g3QYcK/chiPo2iyw1Ux+lsmgW5CTbaz8uUNj/DXzAoOJTu6uiJtVkGAevd stGr5DxKSpbuxnO5R01U7Z+m10eXHa6USeuc0o3RE7b0JucZkHANEysiGFtM6ebBlVRt 4nBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H3rjvHly; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-179602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b9967228besi2611086a91.15.2024.05.15.00.46.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 00:46:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H3rjvHly; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-179602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9052C28226E for ; Wed, 15 May 2024 07:46:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DB6F482E2; Wed, 15 May 2024 07:45:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="H3rjvHly" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4A1C46430 for ; Wed, 15 May 2024 07:45:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715759156; cv=none; b=iViP7dNFQfVTk5hlzuA0BabJQdrwnlUSfM99/bqBV/buvvNDD5RVPfzPFUxPiMvsuhMiGRvk8wE3NU/T7gwiUZ5dqmHz7BkexOLoNlvS1XBPnroYTuDVLMLMCIVMKPVBaBop5KSa+N+yfOJWEtVcfW8v5GetmWpdZ+sB1o2CP0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715759156; c=relaxed/simple; bh=0YrnAwgsUMb4k9BI0AKc8V+PhChBiSKTgm7sM05EbDY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QDPj6Twie6+nxp4XwdRM48mHNCHUKfcle8BdB0DTZbBB+APip7QI60PkhKZmyWc+x8xyeyLjQRtKcuuf8+TZ8k1aG5tNeay4/fCIlfXvLM1sDo9b6c8mlhhj4wN7BApfxz1L+q+G6ELrN4X1vRD65Nhp79TzGEZrgSjnDEGVVjc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=H3rjvHly; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-41fd5dc03easo40135335e9.1 for ; Wed, 15 May 2024 00:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715759152; x=1716363952; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=gJc1oIlpeSOnv91+spz2NNBOOiNI4JHd9FLN4xXD2l8=; b=H3rjvHlyOILHA+RYp2nugKKR0HimOYsOAhUMbbMRU7ftvjAszCDsFw9H7Jd/bIrTaL fvtEZXrXBDo3Kj5PHHH1nw4jMPrOrHnFyhLYT8qpOWk5IsXDm2QdDT/UtDXtwFqW78Pn lMnFvzEw3xtonQGOWscz2ckd7Su7ZqlTjHfhk4vKKN9kATcfIWT5mVYwdVcqMyjTdh7e J4vrXt8PsSM+R9/NXIdJeot5iy3J6Opy/OMTtrJ/DuHAfryPCWVVxQ4Hg952aEDdyUjU pBxTrMa4VGmJegmQp+ipDdcXzngSoPhGtFmVMCcEsWIhySXVoYISplsXLrkbsEC74Y10 Z97g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715759152; x=1716363952; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gJc1oIlpeSOnv91+spz2NNBOOiNI4JHd9FLN4xXD2l8=; b=l47L8oTk2YEOkEXIIgijujQfhz4wp15f2qslfKZHNBfOJnzMt0UjcU/PYf2Y1omA7U OZ7m6pNKLLicBHIjvWTB42/gvaBGvrfZnA3mY2V7Oz03kDAG81x9g5DbC02CWfX7oNdE PpYmrJYGfw7wdziHLn7bUhWVjgbX/QyKFrzTqcXmoYrIQr+X1SY+jYxPINYjXUL1IePv BJ3LBEP2EgTTTLyqVmwfAW5ae+nLE4WEEwM9AQKIgaas25Suhmt7QIyncaUXCs6Yvx1H Ycy3X6NM3lcELhgbGLLcj/xLbhisI3ftNT9GLjTJ2tajZjYB1lPfDJfqQclV17CxaMgg rcJw== X-Forwarded-Encrypted: i=1; AJvYcCXMtUF21ZsmI2AFPFcJ94dBfAqqk9/8vRRe9DLBFNVWY2Pi2eXufn23gB3ZROnKdnlMQHesWFDgSF2W7o5bgyLfGre7EjFVIM6/ZwvW X-Gm-Message-State: AOJu0YzA1qGe3bnFQRlk3yUm6HpPnKlSW6l7ZPfqmJ1hYUlcs0gyqHBs PJFu8b5mfw4ioq6E964LPWqpSU3LxVIzJAJeUvADCITsr7+dFjRHe0dSmjL/KP0= X-Received: by 2002:a05:600c:1f93:b0:420:1fd2:e611 with SMTP id 5b1f17b1804b1-4201fd2e636mr29111825e9.27.1715759151983; Wed, 15 May 2024 00:45:51 -0700 (PDT) Received: from [10.91.0.75] ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502bbbc334sm15620151f8f.103.2024.05.15.00.45.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 May 2024 00:45:51 -0700 (PDT) Message-ID: <1766fc9a-1d10-4c93-a9db-a7e0db8b01e7@linaro.org> Date: Wed, 15 May 2024 09:45:49 +0200 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: Roman Kisel , 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> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIR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6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240514224508.212318-2-romank@linux.microsoft.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 15/05/2024 00:43, Roman Kisel wrote: > The Virtual Trust Level platforms rely on DeviceTree, and the > arm64/hyperv code supports ACPI only. Update the logic to > support DeviceTree on boot as well as ACPI. > > Signed-off-by: Roman Kisel > --- > arch/arm64/hyperv/mshyperv.c | 34 +++++++++++++++++++++++++++++----- > 1 file changed, 29 insertions(+), 5 deletions(-) > > diff --git a/arch/arm64/hyperv/mshyperv.c b/arch/arm64/hyperv/mshyperv.c > index b1a4de4eee29..208a3bcb9686 100644 > --- a/arch/arm64/hyperv/mshyperv.c > +++ b/arch/arm64/hyperv/mshyperv.c > @@ -15,6 +15,9 @@ > #include > #include > #include > +#include > +#include > +#include > #include > > 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... Where is the binding for this? Best regards, Krzysztof