[Sound-open-firmware] Problems booting byt in qemu

Dragos Tarcatu dragos_tarcatu at mentor.com
Wed Jun 5 11:59:36 CEST 2019


Hi,

I've been trying to put together a qemu test environment for byt but I'm 
struggling to get the firmware to properly boot up.

My setup is as following:
- x86 host VM: Linux kernel from topic/sof-dev configured for 
x86_64_defconfig + sof for Baytrail (acpi) with forced nocodec mode, on 
top of some Ubuntu root file system
- DSP VM: sof firmware from master built for byt according to the sof 
documentation
- qemu from sof-stable
- topology: sof-byt-nocodec

I'm launching the qemu VMs using:
     xtensa-host.sh byt -d
and
     x86-host.sh byt <my-ubuntu-image>

Shortly after the x86 VM boots up, the DSP VM starts logging a lot of 
shim.io messages, but the linux driver fails after:

    [    3.054963] sof-audio-acpi 80860F28:00: ACPI DSP detected
    [    3.054966] sof-audio-acpi 80860F28:00: IOSF_MBI not available,
    no BYT-CR detection
    [    3.054967] sof-audio-acpi 80860F28:00: Force to use nocodec mode
    [    3.054971] sof-audio-acpi 80860F28:00: LPE PHY base at
    0xf1400000 size 0x200000
    [    3.054981] sof-audio-acpi 80860F28:00: LPE VADDR 000000009309825a
    [    3.054982] sof-audio-acpi 80860F28:00: IMR not set by BIOS. Ignoring
    [    3.054984] sof-audio-acpi 80860F28:00: using IRQ 11
    [    3.058424] sof-audio-acpi 80860F28:00: loading firmware
    [    3.070402] sof-audio-acpi 80860F28:00: header size=0x15e60
    modules=0x1 abi=0x1 size=16
    [    3.070504] sof-audio-acpi 80860F28:00: new module size 0x15e54
    blocks 0x11 type 0x0
    [    3.070506] sof-audio-acpi 80860F28:00: block 0 type 0x1 size
    0xf0 ==>  offset 0xc0000
    [    3.070524] sof-audio-acpi 80860F28:00: block 1 type 0x1 size
    0x16c ==>  offset 0xc0400
    [    3.070525] sof-audio-acpi 80860F28:00: block 2 type 0x1 size 0x8
    ==>  offset 0xc057c
    [    3.070527] sof-audio-acpi 80860F28:00: block 3 type 0x1 size 0x8
    ==>  offset 0xc059c
    [    3.070528] sof-audio-acpi 80860F28:00: block 4 type 0x1 size 0x8
    ==>  offset 0xc05bc
    [    3.070529] sof-audio-acpi 80860F28:00: block 5 type 0x1 size 0x8
    ==>  offset 0xc05dc
    [    3.070530] sof-audio-acpi 80860F28:00: block 6 type 0x1 size 0x8
    ==>  offset 0xc05fc
    [    3.070532] sof-audio-acpi 80860F28:00: block 7 type 0x1 size 0x4
    ==>  offset 0xc061c
    [    3.070533] sof-audio-acpi 80860F28:00: block 8 type 0x1 size 0x8
    ==>  offset 0xc063c
    [    3.070534] sof-audio-acpi 80860F28:00: block 9 type 0x1 size 0x4
    ==>  offset 0xc0658
    [    3.070536] sof-audio-acpi 80860F28:00: block 10 type 0x1 size
    0x18 ==>  offset 0xc065c
    [    3.070537] sof-audio-acpi 80860F28:00: block 11 type 0x1 size
    0x8 ==>  offset 0xc067c
    [    3.070539] sof-audio-acpi 80860F28:00: block 12 type 0x1 size
    0x12660 ==>  offset 0xc06c0
    [    3.070599] sof-audio-acpi 80860F28:00: block 13 type 0x2 size
    0x21e8 ==>  offset 0x100008
    [    3.070611] sof-audio-acpi 80860F28:00: block 14 type 0x2 size
    0x28 ==>  offset 0x1021f0
    [    3.070613] sof-audio-acpi 80860F28:00: block 15 type 0x2 size
    0x11f8 ==>  offset 0x102218
    [    3.070617] sof-audio-acpi 80860F28:00: block 16 type 0x2 size
    0x6c ==>  offset 0x103a98
    [    3.070623] sof-audio-acpi 80860F28:00: booting DSP firmware
    [    3.172697] sof-audio-acpi 80860F28:00: error: firmware boot failure
    [    3.176674] sof-audio-acpi 80860F28:00: error: unexpected fault
    0x70028800 trace 0x00000000
    [    3.177125] sof-audio-acpi 80860F28:00: error: failed to boot DSP
    firmware -5
    [    3.181048] sof-audio-acpi 80860F28:00: error: failed to probe
    DSP hardware!
    [    3.181477] sof-audio-acpi: probe of 80860F28:00 failed with error -5

Any idea what may be wrong?

Thanks,
     Dragoș



More information about the Sound-open-firmware mailing list