Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3151308lqo; Wed, 15 May 2024 00:47:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6ZHr9EgsgHpz3DnrGQUY5hgRzLSHptrMDCmEl+2/CwHlGzIpERvnxSDtnA9YuekykQiV71fLtZ1tcDAuZgJYVipU7vvJlMYy/pr3bbQ== X-Google-Smtp-Source: AGHT+IE3Kbc7bBwY6Ol9ox93BeRaoI74hPnLqtkwgyscB5CagVj8y9FHZ5WA7LG5JcMiLuweFrYD X-Received: by 2002:a05:690c:6006:b0:61b:1de0:4546 with SMTP id 00721157ae682-6255ede7c51mr33862207b3.49.1715759263023; Wed, 15 May 2024 00:47:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715759262; cv=pass; d=google.com; s=arc-20160816; b=0lPln4PHhr9iqJznNl1YEMwjhqSYvEKmDICiPn1IPgxSE0BLEP46/9JbRrgX9GW54j aT1uvNU01pcwZ1E8vmFqXiem6q+KV1uXE8+M8S6BfadzqajIoWhMHzEZezufhJW1bend MIHbo1gDHmuzpk/aDBEKLg8EgzsintnTrNT0I+KUzFeMgppkQWNfyT1JIzgftt+Vyzkp NN03gahcYWMQYS7qc2Pp7tahJqR5YfiSLqswOtWbrCSBTg1oZDtWsX/nzn/bAs5VRseD 1KPRWR+WtmiGp/d10fdqlkeOX4MWL0bCUtPyejLs/Us8GkfSurSfgMRJ/MNb630B2PfV GyUw== 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=fbW14bg0Wumeh9jCsijMHeGxFGLGKw9Y+IaaoUwt+VY=; fh=O9eAyba/76JWG5i3100ENGHWDDYTc+AuxzupmgmiX6s=; b=0oeeHL5oFxDpMPYo5SqKMZMaPIBiM2aIsMGmO1RDciD2L0BxIZiqlrJurDBDt0JPz5 SnlfWMKRl8AmR+8d5mvQchR6IqNmJRUZ7oKZeuOxKPuWmgoyAbuH0r0QmFBXVubyqz8h BGC8tyCw9u0YsCTF+dG/Ih8u5Fhq/LSOY/vWm2dR9XJ1yM0JZ7nPU/XHl2JMGKdIUDYi Fg7uSfAM1z0xzhDdTsIB46DdCgSxTFDUoVa9ne/IQ/com7aaqawXAe35TFvc2Bu0brHw POQEURhwYuYu3LCeM4EbO3ezriLyag81HTRLPTVnmMPWmzAb8KGZKAFk85NrvhvN3ZiH 6uVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YhS930mG; 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-179603-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df549ae5bsi137306411cf.7.2024.05.15.00.47.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 00:47:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179603-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YhS930mG; 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-179603-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179603-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A91DC1C20CC7 for ; Wed, 15 May 2024 07:47:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D74CB481D0; Wed, 15 May 2024 07:47:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YhS930mG" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 496D84CB5B for ; Wed, 15 May 2024 07:47:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715759253; cv=none; b=b3Vm6EZpGH2ouipys2a5w5i2/tznilGYCLyuV525RdI9m7/o0h4kFVjjEqLltCpAp7EuI9PnbKTVg0K9TAAw8YaCmdNjA6rEXijDlxPZPfV58qcnKM6xf189Myi2+0YBoApZn9GPLmTM15vHsVnkr+8b+VPnXXGP31y1gExJFS0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715759253; c=relaxed/simple; bh=oTyV7UDhXConmMQHKJKF2WY7SMvTHvxxDnYW5I4nAXw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lkCoj8JNIPSr+j0DO+oZX9DKyfYEq3Nx5VN21JxJqAuE1gAA00xvQuc5BKOBkT7KpW8cJhW9xc9HgWumKRfPrRhddK3Ge6HFHmwEKtDipncaLHxh4oW99PgvDsngU2rrZF+00pA3/0H7rhh+2MM90PMrjGHY67nyg8zB6AFUqs8= 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=YhS930mG; arc=none smtp.client-ip=209.85.221.45 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-wr1-f45.google.com with SMTP id ffacd0b85a97d-34da35cd01cso6041159f8f.2 for ; Wed, 15 May 2024 00:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715759251; x=1716364051; 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=fbW14bg0Wumeh9jCsijMHeGxFGLGKw9Y+IaaoUwt+VY=; b=YhS930mGPPsYF402D/mRTLnZQxzp3R2ZX78benJuCZj6jnGbTXDQObY0fwlb6KC2Fr qhcqwJEWeuymvRalYPJyGwO1OpwJX0c7P8pFCJjUpm+Y+5zkitYfSvSQ0t4kX4gvBMD1 1RS2ITAk69NkimsM3XQ+0KG+0M4WQQWq4YxE6X1KdDgI7FqJ5E32sFOD2LYEZ/Jk6JRx JUn6yeXCWh5vidsgZ0QAiNzWNTh6iwJ2WjdTYYJOY7h/SuUrBQniz1Gg21DZjMiS8YBD y/kdZZ0BQ6YCvAThXvaqyHOCYfA2SkmUrbJJ5ZTe6LWYnr4GY+bS2YH4WoFSCzNWD+B+ axng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715759251; x=1716364051; 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=fbW14bg0Wumeh9jCsijMHeGxFGLGKw9Y+IaaoUwt+VY=; b=LVD4e7AXcuVCQ2eFN3IEL3HnlGw6uSC6HRaZEr+uzdz4HBUcr0kgDpliTRSOLs08QE VB9HHagcDBaV5BWGd2Q/9rz/zmkSq7KGDrIMW9z/hIHMsD1fIhcFLyg+X3ztOLphsz+C cqDTwtYPuZUF54vR5dJKbdRu+lV9r4nfTSW+aRipK9FfXyfE9YcFhYlNe+j5PaVkSssr GxUUkeWiOnRMyYOYdIjAj6jydc7dlD7wr6FOSy8nNaPDzYyUTebS8iuxzuKRhN1ZnbGv n0R5xX+rMelY6SGMbZWiZpHh2VZVsnyjUUFP7ch6fXrC8igRdWJAXdAEP25fJu0Ogkw+ nVVA== X-Forwarded-Encrypted: i=1; AJvYcCVGSJFOzCaDY25Fm7PEPCRnYjKI92vVWE/U+ym3qiyOCqMaeOIbnkxwuJSd5OVksMLyAeuD9BTUt3FWfZJXDqlq/1TfH8Q0Bgf8mV0W X-Gm-Message-State: AOJu0YwjAnWf45JffS3Q935LDZgA4q3S2VD0n0b0OdM0GPsCi4diiGaJ qcRWbnI38rpde+ySGZWduzdTJAeUn+yTe+4y/SNjNcdrTjGEqBb/KTY+0LeLuAs= X-Received: by 2002:adf:eb49:0:b0:34c:f4c8:3af9 with SMTP id ffacd0b85a97d-3504aa63147mr12280225f8f.58.1715759250689; Wed, 15 May 2024 00:47:30 -0700 (PDT) Received: from [10.91.0.75] ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b79bd7asm15561313f8f.17.2024.05.15.00.47.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 May 2024 00:47:30 -0700 (PDT) Message-ID: Date: Wed, 15 May 2024 09:47:28 +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 5/6] drivers/hv/vmbus: Get the irq number from 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-6-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/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SS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ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240514224508.212318-6-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 vmbus driver uses ACPI for interrupt assignment on > arm64 hence it won't function in the VTL mode where only > DeviceTree can be used. > > Update the vmbus driver to discover interrupt configuration > via DeviceTree. > > Signed-off-by: Roman Kisel > --- > drivers/hv/vmbus_drv.c | 37 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c > index e25223cee3ab..52f01bd1c947 100644 > --- a/drivers/hv/vmbus_drv.c > +++ b/drivers/hv/vmbus_drv.c > @@ -36,6 +36,7 @@ > #include > #include > #include > +#include > #include > #include > #include "hyperv_vmbus.h" > @@ -2316,6 +2317,34 @@ static int vmbus_acpi_add(struct platform_device *pdev) > } > #endif > > +static int __maybe_unused vmbus_of_set_irq(struct device_node *np) > +{ > + struct irq_desc *desc; > + int irq; > + > + irq = of_irq_get(np, 0); Where is the binding for this? > + if (irq == 0) { > + pr_err("VMBus interrupt mapping failure\n"); > + return -EINVAL; > + } > + if (irq < 0) { > + pr_err("VMBus interrupt data can't be read from DeviceTree, error %d\n", irq); > + return irq; > + } > + > + desc = irq_to_desc(irq); > + if (!desc) { > + pr_err("VMBus interrupt description can't be found for virq %d\n", irq); > + return -ENODEV; > + } > + > + vmbus_irq = irq; > + vmbus_interrupt = desc->irq_data.hwirq; > + pr_debug("VMBus virq %d, hwirq %d\n", vmbus_irq, vmbus_interrupt); > + > + return 0; > +} > + > static int vmbus_device_add(struct platform_device *pdev) > { > struct resource **cur_res = &hyperv_mmio; > @@ -2324,12 +2353,20 @@ static int vmbus_device_add(struct platform_device *pdev) > struct device_node *np = pdev->dev.of_node; > int ret; > > + pr_debug("VMBus is present in DeviceTree\n"); Not related and not really helpful. Simple entry/exit tracking is provided already by tracing. Best regards, Krzysztof