Bug#1007023: Please can you enable HyperV kconfig options for arm64 kernel?

2022-03-15 Thread Steve Capper



On 15/03/2022 10:22, Bastian Blank wrote:

Hi Steve

On Tue, Mar 15, 2022 at 10:15:22AM +, Steve Capper wrote:

Can you please show the ACPI tables provided to the virtual machine?
Especially I'm interested in the SPCR table.

Of course.
I couldn't see an SPCR, but I did see a DBG2:


Thanks.


Are you debugging an issue?


No.  I was just trying to find out if Linux is supported on this target.
The Linux implementation for ARM64 requires the SPCR table.[1][2]  So it
missing makes the platform kind of unsupported.



A, okay, yeah I see. Thanks!
(I was excited with it running and I didn't notice.)

I'll follow up on this.

Cheers,
--
Steve



Regards,
Bastian

[1]: https://www.kernel.org/doc/html/latest/arm64/acpi_object_usage.html
[2]: 
https://docs.microsoft.com/en-us/windows-hardware/drivers/serports/serial-port-console-redirection-table




Bug#1007023: Please can you enable HyperV kconfig options for arm64 kernel?

2022-03-15 Thread Bastian Blank
Hi Steve

On Tue, Mar 15, 2022 at 10:15:22AM +, Steve Capper wrote:
> > Can you please show the ACPI tables provided to the virtual machine?
> > Especially I'm interested in the SPCR table.
> Of course.
> I couldn't see an SPCR, but I did see a DBG2:

Thanks.

> Are you debugging an issue?

No.  I was just trying to find out if Linux is supported on this target.
The Linux implementation for ARM64 requires the SPCR table.[1][2]  So it
missing makes the platform kind of unsupported.

Regards,
Bastian

[1]: https://www.kernel.org/doc/html/latest/arm64/acpi_object_usage.html
[2]: 
https://docs.microsoft.com/en-us/windows-hardware/drivers/serports/serial-port-console-redirection-table
-- 
Earth -- mother of the most beautiful women in the universe.
-- Apollo, "Who Mourns for Adonais?" stardate 3468.1



Bug#1007023: Please can you enable HyperV kconfig options for arm64 kernel?

2022-03-15 Thread Steve Capper




On 15/03/2022 07:45, Bastian Blank wrote:

Control: tags -1 pending

Hi Steve

On Thu, Mar 10, 2022 at 07:07:39PM +, Steve Capper wrote:

HyperV guest support has recently landed in the arm64 kernel. Could you
please enable this in Debian Kernels (5.16+) via the following Kconfig
options?


I enabled those options, and more, for 5.17.


Thanks Bastian!




For testing purposes, one should run a recent "Windows Insider" build on
their device for this functionality to work properly. I've created a Debian
test kernel with the above options and was able to install/use Debian under
HyperV.


Can you please show the ACPI tables provided to the virtual machine?
Especially I'm interested in the SPCR table.



Of course.

I couldn't see an SPCR, but I did see a DBG2:
[000h    4]Signature : "DBG2"[Debug Port 
table type 2]

[004h 0004   4] Table Length : 0072
[008h 0008   1] Revision : 00
[009h 0009   1] Checksum : CF
[00Ah 0010   6]   Oem ID : "VRTUAL"
[010h 0016   8] Oem Table ID : "MICROSFT"
[018h 0024   4] Oem Revision : 0001
[01Ch 0028   4]  Asl Compiler ID : "MSFT"
[020h 0032   4]Asl Compiler Revision : 0001

[024h 0036   4]  Info Offset : 002C
[028h 0040   4]   Info Count : 0001

[02Ch 0044   1] Revision : 00
[02Dh 0045   2]   Length : 0046
[02Fh 0047   1]   Register Count : 01
[030h 0048   2]  Namepath Length : 000F
[032h 0050   2]  Namepath Offset : 0026
[034h 0052   2]  OEM Data Length :  [Optional field not 
present]
[036h 0054   2]  OEM Data Offset :  [Optional field not 
present]

[038h 0056   2]Port Type : 8000
[03Ah 0058   2] Port Subtype : 0003
[03Ch 0060   2] Reserved : 
[03Eh 0062   2]  Base Address Offset : 0016
[040h 0064   2]  Address Size Offset : 0022

[042h 0066  12]Base Address Register : [Generic Address Structure]
[042h 0066   1] Space ID : 00 [SystemMemory]
[043h 0067   1]Bit Width : 20
[044h 0068   1]   Bit Offset : 00
[045h 0069   1] Encoded Access Width : 03 [DWord Access:32]
[046h 0070   8]  Address : EFFEC000

[04Eh 0078   4] Address Size : 1000
[052h 0082  15] Namepath : "\_SB.VMOD.UAR1"

This was from an off-the-shelf Surface Pro X running Windows Insider 
build 22572.


If you're interested in attaching consoles, the following worked for me 
(via HyperV named pipe):

console=ttyAMA0

For earlycon, the following did the trick for me:
earlycon=pl011,0xeffec000,115200

(there's also earlycon=efifb)

Are you debugging an issue?

Cheers,
--
Steve



Bug#1007023: Please can you enable HyperV kconfig options for arm64 kernel?

2022-03-15 Thread Bastian Blank
Control: tags -1 pending

Hi Steve

On Thu, Mar 10, 2022 at 07:07:39PM +, Steve Capper wrote:
> HyperV guest support has recently landed in the arm64 kernel. Could you
> please enable this in Debian Kernels (5.16+) via the following Kconfig
> options?

I enabled those options, and more, for 5.17.

> For testing purposes, one should run a recent "Windows Insider" build on
> their device for this functionality to work properly. I've created a Debian
> test kernel with the above options and was able to install/use Debian under
> HyperV.

Can you please show the ACPI tables provided to the virtual machine?
Especially I'm interested in the SPCR table.

Regards,
Bastian

-- 
In the strict scientific sense we all feed on death -- even vegetarians.
-- Spock, "Wolf in the Fold", stardate 3615.4



Processed: Re: Bug#1007023: Please can you enable HyperV kconfig options for arm64 kernel?

2022-03-15 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 pending
Bug #1007023 [src:linux] Please can you enable HyperV kconfig options for arm64 
kernel?
Added tag(s) pending.

-- 
1007023: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1007023
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1007023: Please can you enable HyperV kconfig options for arm64 kernel?

2022-03-10 Thread Steve Capper

Package: src:linux
Version: 5.16.11-1

Hello,
HyperV guest support has recently landed in the arm64 kernel. Could you 
please enable this in Debian Kernels (5.16+) via the following Kconfig 
options?


CONFIG_FB_HYPERV=m
CONFIG_HID_HYPERV_MOUSE=m
CONFIG_HYPERV_BALLOON=m
CONFIG_HYPERV_KEYBOARD=m
CONFIG_HYPERV=m
CONFIG_HYPERV_NET=m
CONFIG_HYPERV_STORAGE=m
CONFIG_HYPERV_UTILS=m
CONFIG_HYPERV_VSOCKETS=m

For testing purposes, one should run a recent "Windows Insider" build on 
their device for this functionality to work properly. I've created a 
Debian test kernel with the above options and was able to install/use 
Debian under HyperV.


Cheers!
--
Steve