clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
521 stars 29 forks source link

CPU does not support MWAIT? #2672

Open Marietto2008 opened 2 years ago

Marietto2008 commented 2 years ago

Hello to everyone.

I've installed CL physically on one of my disks and it seems that everything works correctly (except the audio for the moment) and then I tried to boot ClearLinux with bhyve on FreeBSD 13.1-RELEASE. Below you can see the parameters that I've used :

bhyve -S -c 2 -m 4G -w -H \
-s 0,hostbridge \
-s 1,passthru,1/0/0,bootindex=1 \
-s 8:,virtio-net,tap20 \
-s 9,hda,play=/dev/dsp,rec=/dev/dsp \
-s 29,fbuf,tcp=0.0.0.0:5920,w=1600,h=950 \
-s 30,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
vm20 < /dev/null & sleep 2 && vncviewer 0:20

Unfortunately CL didn't boot because an error that seems freezes the booting of the OS on the screen :

Screenshot_2022-07-12_11-02-28

CPU does not support MWAIT?

Is there a method to disable the parameter MWAIT from the kernel parameters loaded during the boot ? Below you can see what are the hardware specs of PC :

# pciconf -vl

hostb0@pci0:0:0:0:      class=0x060000 rev=0x0d hdr=0x00 vendor=0x8086 device=0x3e30 subvendor=0x1458 subdevice=0x5000
    vendor     = 'Intel Corporation'
    device     = '8th/9th Gen Core 8-core Desktop Processor Host Bridge/DRAM Registers [Coffee Lake S]'
    class      = bridge
    subclass   = HOST-PCI

pcib1@pci0:0:1:0:       class=0x060400 rev=0x0d hdr=0x01 vendor=0x8086 device=0x1901 subvendor=0x1458 subdevice=0x5000
    vendor     = 'Intel Corporation'
    device     = '6th-10th Gen Core Processor PCIe Controller (x16)'
    class      = bridge
    subclass   = PCI-PCI

pcib2@pci0:0:1:1:       class=0x060400 rev=0x0d hdr=0x01 vendor=0x8086 device=0x1905 subvendor=0x1458 subdevice=0x5000
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x8)'
    class      = bridge
    subclass   = PCI-PCI

vgapci0@pci0:0:2:0:     class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x3e98 subvendor=0x1458 subdevice=0xd000
    vendor     = 'Intel Corporation'
    device     = 'CoffeeLake-S GT2 [UHD Graphics 630]'
    class      = display
    subclass   = VGA

pchtherm0@pci0:0:18:0:  class=0x118000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa379 subvendor=0x1458 subdevice=0x8888
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH Thermal Controller'
    class      = dasp

xhci0@pci0:0:20:0:      class=0x0c0330 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa36d subvendor=0x1458 subdevice=0x5007
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH USB 3.1 xHCI Host Controller'
    class      = serial bus
    subclass   = USB

none0@pci0:0:20:2:      class=0x050000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa36f subvendor=0x8086 subdevice=0x7270
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH Shared SRAM'
    class      = memory
    subclass   = RAM

none1@pci0:0:22:0:      class=0x078000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa360 subvendor=0x1458 subdevice=0x1c3a
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH HECI Controller'
    class      = simple comms

ahci0@pci0:0:23:0:      class=0x010601 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa352 subvendor=0x1458 subdevice=0xb005
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH SATA AHCI Controller'
    class      = mass storage
    subclass   = SATA

pcib3@pci0:0:27:0:      class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa340 subvendor=0x1458 subdevice=0x5001
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI

pcib4@pci0:0:28:0:      class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa338 subvendor=0x1458 subdevice=0x5001
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI

pcib5@pci0:0:28:6:      class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa33e subvendor=0x1458 subdevice=0x5001
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI

pcib6@pci0:0:29:0:      class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa330 subvendor=0x1458 subdevice=0x5001
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI

isab0@pci0:0:31:0:      class=0x060100 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa305 subvendor=0x1458 subdevice=0x5001
    vendor     = 'Intel Corporation'
    device     = 'Z390 Chipset LPC/eSPI Controller'
    class      = bridge
    subclass   = PCI-ISA

hdac0@pci0:0:31:3:      class=0x040300 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa348 subvendor=0x1458 subdevice=0xa0c3
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH cAVS'
    class      = multimedia
    subclass   = HDA

ichsmb0@pci0:0:31:4:    class=0x0c0500 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa323 subvendor=0x1458 subdevice=0x5001
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH SMBus Controller'
    class      = serial bus
    subclass   = SMBus

none2@pci0:0:31:5:      class=0x0c8000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa324 subvendor=0x8086 subdevice=0x7270
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH SPI Controller'
    class      = serial bus

em0@pci0:0:31:6:        class=0x020000 rev=0x10 hdr=0x00 vendor=0x8086 device=0x15bc subvendor=0x1458 subdevice=0xe000
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection (7) I219-V'
    class      = network
    subclass   = ethernet

ppt0@pci0:1:0:0:        class=0x0c0330 rev=0x03 hdr=0x00 vendor=0x1912 device=0x0014 subvendor=0x1912 subdevice=0x0015
    vendor     = 'Renesas Technology Corp.'
    device     = 'uPD720201 USB 3.0 Host Controller'
    class      = serial bus
    subclass   = USB

ppt1@pci0:2:0:0:        class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1e04 subvendor=0x19da subdevice=0x2503
    vendor     = 'NVIDIA Corporation'
    device     = 'TU102 [GeForce RTX 2080 Ti]'
    class      = display
    subclass   = VGA

ppt2@pci0:2:0:1:        class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de device=0x10f7 subvendor=0x19da subdevice=0x2503
    vendor     = 'NVIDIA Corporation'
    device     = 'TU102 High Definition Audio Controller'
    class      = multimedia
    subclass   = HDA

ppt3@pci0:2:0:2:        class=0x0c0330 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1ad6 subvendor=0x19da subdevice=0x2503
    vendor     = 'NVIDIA Corporation'
    device     = 'TU102 USB 3.1 Host Controller'
    class      = serial bus
    subclass   = USB

ppt4@pci0:2:0:3:        class=0x0c8000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1ad7 subvendor=0x19da subdevice=0x2503
    vendor     = 'NVIDIA Corporation'
    device     = 'TU102 USB Type-C UCSI Controller'
    class      = serial bus

nvme0@pci0:3:0:0:       class=0x010802 rev=0x03 hdr=0x00 vendor=0xc0a9 device=0x5403 subvendor=0xc0a9 subdevice=0x2100
    vendor     = 'Micron/Crucial Technology'
    class      = mass storage
    subclass   = NVM

ppt5@pci0:5:0:0:        class=0x0c0330 rev=0x10 hdr=0x00 vendor=0x1b73 device=0x1100 subvendor=0x1b73 subdevice=0x1100
    vendor     = 'Fresco Logic'
    device     = 'FL1100 USB 3.0 Host Controller'
    class      = serial bus
    subclass   = USB
thiagomacieira commented 2 years ago

That might be a red herring. The powerclamp driver does fail to load, but that shouldn't be fatal. The error happened after the driver.

Can you boot without "quiet" in the kernel command-line and capture the logs? Preferably as text, not as a screenshot. The kernel will log to the first serial port, so configure your hypervisor to provide a serial port that logs to a file and that should be the best.

Marietto2008 commented 2 years ago

Hello.

I've just emulated the same clear linux physical installation on Linux with qemu + kvm and it worked. It was able to boot. I remember that the same installation is frozen if I emulate it on FreeBSD using bhyve. So,at this point it seems that bhyve misses some component that qemu + kvm has. Or ? Do you have an alternative reason ? Please give a look at the pictures below :

[image: Istantanea_2022-07-12_20-36-57.png] [image: Istantanea_2022-07-12_20-36-14.png]

Il giorno mar 12 lug 2022 alle ore 20:52 Thiago Macieira < @.***> ha scritto:

That might be a red herring. The powerclamp driver does fail to load, but that shouldn't be fatal. The error happened after the driver.

Can you boot without "quiet" in the kernel command-line and capture the logs? Preferably as text, not as a screenshot. The kernel will log to the first serial port, so configure your hypervisor to provide a serial port that logs to a file and that should be the best.

— Reply to this email directly, view it on GitHub https://github.com/clearlinux/distribution/issues/2672#issuecomment-1182264046, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFYNC7ZMTDRZVGU65OGBLTVTW5HRANCNFSM53KJOPAQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Mario.

thiagomacieira commented 2 years ago

Doesn't look like you included any images.

Marietto2008 commented 2 years ago

I'd attached the images via email,but I see that in that way it can't add them here :

Istantanea_2022-07-12_20-36-57

Istantanea_2022-07-12_20-36-14

thiagomacieira commented 2 years ago

Those images don't tell me anything.

Please get the kernel non-quiet boot log.

Marietto2008 commented 2 years ago
bhyve -S -c sockets=1,cores=2,threads=2 -m 4G -w -H -A \
-s 0,hostbridge \
-s 1,ahci-hd,/dev/$vmdisk2 \
-s 8:,virtio-net,tap20 \
-s 29,fbuf,tcp=0.0.0.0:5920,w=1600,h=950 \
-s 30,xhci,tablet \                      
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-l com1,stdio \
vm20

=

BdsDxe: loading Boot0001 "UEFI BHYVE SATA DISK BHYVE-122D-074E-7937" from PciRoot(0x0)/Pci(0x1,0x0)/Sata(0x0,0xFFFF,0x0)
BdsDxe: starting Boot0001 "UEFI BHYVE SATA DISK BHYVE-122D-074E-7937" from PciRoot(0x0)/Pci(0x1,0x0)/Sata(0x0,0xFFFF,0x0)
rdmsr to register 0x140 on vcpu 0
wrmsr to register 0x140(0) on vcpu 0
rdmsr to register 0x64d on vcpu 0
rdmsr to register 0x64e on vcpu 0
rdmsr to register 0x34 on vcpu 0
[    0.288552] kvm: no hardware support for 'kvm_intel'
[    0.724107] intel_powerclamp: CPU does not support MWAIT
rdmsr to register 0x64d on vcpu 0
rdmsr to register 0x48 on vcpu 0
rdmsr to register 0x122 on vcpu 0
rdmsr to register 0x10f on vcpu 0
rdmsr to register 0x123 on vcpu 0
rdmsr to register 0xc0011020 on vcpu 0
Unhandled ps2 mouse command 0xe1
clr-827c52e759364ad885ee8ed30a817164 login: marietto
Password: 
Login wrong

PC192 login: root
Password: 
root@PC192.168.1.4 ~ # uname -a
Linux PC192.168.1.4 5.18.9-1159.native #1 SMP Wed Jul 6 14:51:31 PDT 2022 x86_64 GNU/Linux
root@PC192.168.1.4 ~ # uname -r
5.18.9-1159.native
root@PC192.168.1.4 ~ # startx

xauth:  file /root/.serverauth.491 does not exist
xauth:  file /root/.Xauthority does not exist
xauth:  file /root/.Xauthority does not exist

X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
Current Operating System: Linux PC192.168.1.4 5.18.9-1159.native #1 SMP Wed Jul 6 14:51:31 PDT 2022 x86_64
Kernel command line: initrd=\EFI\org.clearlinux\freestanding-00-intel-ucode.cpio initrd=\EFI\org.clearlinux\freestanding-i915-firmware.cpio.xz root=PARTUUID=e7df100d-df12-4a37-bc89-2194815df4ef quiet console=tty0 console=ttyS0,115200n8 cryptomgr.notests init=/usr/bin/initra-desktop initcall_debug intel_iommu=igfx_off kvm-intel.nested=1 no_timer_check noreplace-smp page_alloc.shuffle=1 rcupdate.rcu_expedited=1 rootfstype=ext4,btrfs,xfs,f2fs tsc=reliable rw

Current version of pixman: 0.40.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 13 03:22:51 2022
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error