Re: [PATCH v2 5/6] drivers/hv/vmbus: Get the irq number from DeviceTree

2024-05-15 Thread kernel test robot
Hi Roman, kernel test robot noticed the following build errors: [auto build test ERROR on f2580a907e5c0e8fc9354fd095b011301c64f949] url: https://github.com/intel-lab-lkp/linux/commits/Roman-Kisel/arm64-hyperv-Support-DeviceTree/20240515-064749 base

Re: [PATCH v2 1/6] arm64/hyperv: Support DeviceTree

2024-05-15 Thread Elliot Berman
On Tue, May 14, 2024 at 03:43:48PM -0700, 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. Could you use Call UID query from SMCCC? KVM [1] and Gunyah [2]

Re: [PATCH v2 6/6] drivers/pci/hyperv/arm64: vPCI MSI IRQ domain from DT

2024-05-15 Thread Roman Kisel
On 5/15/2024 11:12 AM, Bjorn Helgaas wrote: On Wed, May 15, 2024 at 09:34:09AM -0700, Roman Kisel wrote: On 5/15/2024 2:48 AM, Saurabh Singh Sengar wrote: On Tue, May 14, 2024 at 03:43:53PM -0700, Roman Kisel wrote: The hyperv-pci driver uses ACPI for MSI IRQ domain configuration on

Re: [PATCH v2 6/6] drivers/pci/hyperv/arm64: vPCI MSI IRQ domain from DT

2024-05-15 Thread Roman Kisel
On 5/15/2024 6:47 AM, Michael Kelley wrote: From: Roman Kisel Sent: Tuesday, May 14, 2024 3:44 PM The hyperv-pci driver uses ACPI for MSI IRQ domain configuration on arm64 thereby it won't be able to do that in the VTL mode where only DeviceTree can be used. That sentence seems a bit

Re: [PATCH v2 5/6] drivers/hv/vmbus: Get the irq number from DeviceTree

2024-05-15 Thread Roman Kisel
On 5/15/2024 6:44 AM, Michael Kelley wrote: From: Roman Kisel Sent: Tuesday, May 14, 2024 3:44 PM 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

Re: [PATCH v2 4/6] arm64/hyperv: Boot in a Virtual Trust Level

2024-05-15 Thread Roman Kisel
On 5/15/2024 6:39 AM, Michael Kelley wrote: From: Roman Kisel Sent: Tuesday, May 14, 2024 3:44 PM To run in the VTL mode, Hyper-V drivers have to know what VTL the system boots in, and the arm64/hyperv code does not update the variable that stores the value. Update the variable to enable

Re: [PATCH v2 6/6] drivers/pci/hyperv/arm64: vPCI MSI IRQ domain from DT

2024-05-15 Thread Bjorn Helgaas
On Wed, May 15, 2024 at 09:34:09AM -0700, Roman Kisel wrote: > > > On 5/15/2024 2:48 AM, Saurabh Singh Sengar wrote: > > On Tue, May 14, 2024 at 03:43:53PM -0700, Roman Kisel wrote: > > > The hyperv-pci driver uses ACPI for MSI IRQ domain configuration > > > on arm64 thereby it won't be able to

Re: [PATCH v2 3/6] drivers/hv: arch-neutral implementation of get_vtl()

2024-05-15 Thread Roman Kisel
On 5/15/2024 6:38 AM, Michael Kelley wrote: From: Roman Kisel Sent: Tuesday, May 14, 2024 3:44 PM To run in the VTL mode, Hyper-V drivers have to know what VTL the system boots in, and the arm64/hyperv code does not have the means to compute that. Refactor the code to hoist the function

Re: [PATCH v2 2/6] drivers/hv: Enable VTL mode for arm64

2024-05-15 Thread Roman Kisel
On 5/15/2024 6:37 AM, Michael Kelley wrote: From: Roman Kisel Sent: Tuesday, May 14, 2024 3:44 PM Kconfig dependencies for arm64 guests on Hyper-V require that be ACPI enabled, and limit VTL mode to x86/x64. To enable VTL mode on arm64 as well, update the dependencies. Since VTL mode

Re: [PATCH v2 1/6] arm64/hyperv: Support DeviceTree

2024-05-15 Thread Roman Kisel
On 5/15/2024 12:45 AM, Krzysztof Kozlowski wrote: 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 ---

Re: [PATCH v2 5/6] drivers/hv/vmbus: Get the irq number from DeviceTree

2024-05-15 Thread Roman Kisel
On 5/15/2024 12:47 AM, Krzysztof Kozlowski wrote: 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

Re: [PATCH v2 6/6] drivers/pci/hyperv/arm64: vPCI MSI IRQ domain from DT

2024-05-15 Thread Roman Kisel
On 5/15/2024 2:48 AM, Saurabh Singh Sengar wrote: On Tue, May 14, 2024 at 03:43:53PM -0700, Roman Kisel wrote: The hyperv-pci driver uses ACPI for MSI IRQ domain configuration on arm64 thereby it won't be able to do that in the VTL mode where only DeviceTree can be used. Update the

Re: [PATCH v2 5/6] drivers/hv/vmbus: Get the irq number from DeviceTree

2024-05-15 Thread Roman Kisel
On 5/15/2024 2:42 AM, Saurabh Singh Sengar wrote: On Tue, May 14, 2024 at 03:43:52PM -0700, Roman Kisel wrote: The vmbus driver uses ACPI for interrupt assignment on In subject use the prefix "Drivers: hv: vmbus:". It is preferred to us "VMbus/VMBus" instead of "vmbus" for all the commit

RE: [PATCH v2 6/6] drivers/pci/hyperv/arm64: vPCI MSI IRQ domain from DT

2024-05-15 Thread Michael Kelley
From: Roman Kisel Sent: Tuesday, May 14, 2024 3:44 PM > > The hyperv-pci driver uses ACPI for MSI IRQ domain configuration > on arm64 thereby it won't be able to do that in the VTL mode where > only DeviceTree can be used. That sentence seems a bit weird. How about: The hyperv-pci driver

RE: [PATCH v2 5/6] drivers/hv/vmbus: Get the irq number from DeviceTree

2024-05-15 Thread Michael Kelley
From: Roman Kisel Sent: Tuesday, May 14, 2024 3:44 PM > > 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. > >

RE: [PATCH v2 4/6] arm64/hyperv: Boot in a Virtual Trust Level

2024-05-15 Thread Michael Kelley
From: Roman Kisel Sent: Tuesday, May 14, 2024 3:44 PM > > To run in the VTL mode, Hyper-V drivers have to know what > VTL the system boots in, and the arm64/hyperv code does not > update the variable that stores the value. > > Update the variable to enable the Hyper-V drivers to boot > in the

RE: [PATCH v2 3/6] drivers/hv: arch-neutral implementation of get_vtl()

2024-05-15 Thread Michael Kelley
From: Roman Kisel Sent: Tuesday, May 14, 2024 3:44 PM > > To run in the VTL mode, Hyper-V drivers have to know what > VTL the system boots in, and the arm64/hyperv code does not > have the means to compute that. > > Refactor the code to hoist the function that detects VTL, > make it

RE: [PATCH v2 2/6] drivers/hv: Enable VTL mode for arm64

2024-05-15 Thread Michael Kelley
From: Roman Kisel Sent: Tuesday, May 14, 2024 3:44 PM > > Kconfig dependencies for arm64 guests on Hyper-V require that be ACPI enabled, > and limit VTL mode to x86/x64. To enable VTL mode on arm64 as well, update the > dependencies. Since VTL mode requires DeviceTree instead of ACPI, don't >

Re: [PATCH v2 6/6] drivers/pci/hyperv/arm64: vPCI MSI IRQ domain from DT

2024-05-15 Thread Saurabh Singh Sengar
On Tue, May 14, 2024 at 03:43:53PM -0700, Roman Kisel wrote: > The hyperv-pci driver uses ACPI for MSI IRQ domain configuration > on arm64 thereby it won't be able to do that in the VTL mode where > only DeviceTree can be used. > > Update the hyperv-pci driver to discover interrupt configuration

Re: [PATCH v2 5/6] drivers/hv/vmbus: Get the irq number from DeviceTree

2024-05-15 Thread Saurabh Singh Sengar
On Tue, May 14, 2024 at 03:43:52PM -0700, Roman Kisel wrote: > The vmbus driver uses ACPI for interrupt assignment on In subject use the prefix "Drivers: hv: vmbus:". It is preferred to us "VMbus/VMBus" instead of "vmbus" for all the commit message and comments. > arm64 hence it won't function

Re: [PATCH v2 5/6] drivers/hv/vmbus: Get the irq number from DeviceTree

2024-05-15 Thread Krzysztof Kozlowski
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

Re: [PATCH v2 1/6] arm64/hyperv: Support DeviceTree

2024-05-15 Thread Krzysztof Kozlowski
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

Re: [PATCH 2/6] drivers/hv: Enable VTL mode for arm64

2024-05-15 Thread Wei Liu
On Fri, May 10, 2024 at 09:05:01AM -0700, rom...@linux.microsoft.com wrote: > From: Roman Kisel > > This change removes dependency on ACPI when buidling the hv drivers to > allow Virtual Trust Level boot with DeviceTree. > > Signed-off-by: Roman Kisel > --- > drivers/hv/Kconfig | 6 +++--- >