Skip to content

[WHL] Unable to boot linux to UI with SOF enabled for 4.19 kernel #250

Closed

Description

@emilchudzik

Builded kernel with default config - can boot to UI.
Steps:

git clone https://github.com/thesofproject/linux.git
cd linux
git status

branch: sof-dev
commit: af44aa9

make defconfig
make deb-pkg -j16 KCONFIG_CONFIG=.config

After install this image there is a possibility to boot linux to UI.

When I use config where is enabled SOF, HDA, CNL and codec for WHL (from RanderWang) there is an issue during boot.

branch: sof-dev
commit: af44aa9

cp ../Rander/hda_config ./.config
make menuconfig KCONFIG_CONFIG=.config -> check options: SOF, HDA, CNL, codec
make deb-pkg -j16 KCONFIG_CONFIG=.config

During boot I have this issue:
image

Activity

  1. lgirdwood commented on Nov 7, 2018

    @lgirdwood
    Member

    @echudzi sorry, there is not much info realted to audio on the screenshot. Can you attached the output from dmesg so @RanderWang can check.

  2. RanderWang commented on Nov 7, 2018

    @RanderWang

    l test this config on three whl ,no such issue. and kernel config depends on hw, so my config maybe not suitable for yours. lt boot failed before loading sof. l can't debug it

  3. emilchudzik commented on Nov 7, 2018

    @emilchudzik
    Author

    @lgirdwood there is no dmesg, I see only this screen after boot.
    @RanderWang How did you generate your config? I know where SOF/HDA/CNL and codec enable. But I need stable base config.

  4. emilchudzik commented on Nov 7, 2018

    @emilchudzik
    Author

    I just make on commit af44aa9 (sof-dev branch):

    make defconfig

    I can boot to UI, but there is an issue on dmesg:

    [    2.805079] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
    ...
    [    2.809040] ALSA device list:
    [    2.809040]   No soundcards found.
    ...
    [    2.984838] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops 0xffffffff8a298d00)
    [    3.003333] hdaudio hdaudioC0D0: Unable to bind the codec
    [    3.003502] hdaudio hdaudioC0D2: Unable to bind the codec
    ...
    
  5. emilchudzik commented on Nov 7, 2018

    @emilchudzik
    Author

    And this is the config file based on "make defconfig":
    config_af44aa9_def-hdaconfig.txt

    @RanderWang could you check what is still to be done in the config? Maybe you will need to add the missing settings to the Wiki?

  6. plbossart commented on Nov 7, 2018

    @plbossart
    Member

    @RanderWang please submit a PR for the Kconfig repository (https://github.com/thesofproject/kconfig)
    so that we have your setup maintained and reproduced. It's not good practice to maintain your own config shared privately.
    we only want the deltas on top of defconfig, not the whole thing.
    Thanks!

  7. plbossart commented on Nov 7, 2018

    @plbossart
    Member

    @echudzi you may want to use ktest to simplify the kernel updates. There is no need to use the Debian packages. See https://github.com/thesofproject/sof-docs/blob/master/getting_started/setup/setup_ktest_environment.rst

  8. RanderWang commented on Nov 8, 2018

    @RanderWang

    @RanderWang please submit a PR for the Kconfig repository (https://github.com/thesofproject/kconfig)
    so that we have your setup maintained and reproduced. It's not good practice to maintain your own config shared privately.
    we only want the deltas on top of defconfig, not the whole thing.
    Thanks!

    Yes, I will do it

  9. RanderWang commented on Nov 8, 2018

    @RanderWang

    @plbossart @echudzi

    I try make defconfig to make a default config. And then I build a image without any change. I get kernel crash. I tried your idea a few month ago on CNL, also failed.

    crash

    You may find hda info in this picture, but it is not related to it. I disabled audio driver and got another crash at different point.

    make defconfig doesn't work on WHL. please see my wikipage to build kernel image. Please try it, I just first remove .config and make menuconfig (it will select almost all the items, more than make defconfig) then select SOF. It works well

  10. emilchudzik commented on Nov 8, 2018

    @emilchudzik
    Author

    @plbossart @RanderWang when I delete .config file from repository then command "make menuconfig" create new .config based on local machine where it will be built.
    In my case this is dev machine with linux (some market desktop). I think this is not good solution to use this config for WHL.
    image

  11. emilchudzik commented on Nov 8, 2018

    @emilchudzik
    Author

    But with that config (based on my local dev machine from market) I can boot linux with HDA and SOF enabled to UI and playback/capture works well.

    We can close issue, but for me this in to good way to prepare config for any platform.

  12. plbossart commented on Nov 8, 2018

    @plbossart
    Member

    @emilchudzik please use the recommended path of doing "make defconfig" then use merge_config.sh to add the needed options. We cannot reproduce any of your problems if you use a locally generated config based on a kernel that is 4 generations older than the one you are testing.
    There's a reason why I worked on these kconfig fragments... only use "make menuconfig" to alter a configuration, never to start from scratch. Thank you.

  13. emilchudzik commented on Nov 9, 2018

    @emilchudzik
    Author

    @plbossart your method in my WHL doesn't work, I still can't boot to UI, when I use "make defconfig" and then follow steps from https://github.com/thesofproject/kconfig.

    when I use Rander method - I can boot to UI, but this steps I still think is not good idea:
    rm .config
    make menuconfig
    It enable a lot of options in kernel, time of building is long, but it works.
    I try to explain it in ths topic, for me it is still not clear.
    If only I met this problems we can close this issue.

  14. plbossart commented on Nov 9, 2018

    @plbossart
    Member

    @xiulipan can you confirm if the configs on https://github.com/thesofproject/kconfig work for WHL and if not work with @RanderWang to fix this? If @emilchudzik is right, we have a gap in our configs. Thanks!

  15. 7 remaining items

  16. emilchudzik commented on Nov 15, 2018

    @emilchudzik
    Author

    Here is an alsa-info output when used Rander method (created config based on local machine config).
    Status: playback and capture works.
    alsa-info.txt.dN7IBDWdtd_usingRanderMethod.txt

    Here is an alsa-info output when used kconfig to prepare .config file.
    Status: loaded sof-cnl.tplg instead of sof-hda-generic.tplg
    alsa-info.txt.kz4taOuHFc_usingKconfig.txt

    BIOS settings not changed - from the Rander Wiki

  17. plbossart commented on Nov 15, 2018

    @plbossart
    Member

    @emilchudzik the log does not include anything related to ACPI devices?
    the chunk of alsa-info.sh is this:

    # Check for ACPI device status
    if [ -d /sys/bus/acpi/devices ]; then
        for f in /sys/bus/acpi/devices/*/status; do
    	ACPI_STATUS=$(cat $f 2>/dev/null);
    	if [[ "$ACPI_STATUS" -ne 0 ]]; then
    	    echo $f $'\t' $ACPI_STATUS >>$TEMPDIR/acpidevicestatus.tmp;
    	fi
        done
    fi

    We need to figure out why you have an I2S-related ACPI ID. Chances are the config you use locally does not include anything but HDAudio support, while the generic one includes both HDaudio and I2S support for CNL-rt274, and the latter is likely selected. Keep in mind that HDaudio is selected as a fall-back when I2S devices are not detected.

  18. added
    bugSomething isn't working
    P2Critical bugs or normal features
    on Nov 22, 2018
  19. mengdonglin commented on Nov 25, 2018

    @mengdonglin

    @emilchudzik Closing this issue since Ubuntu can boot to UI now. Please file a new bug if you still see the proper HDaudio machine driver cannot be selected on you WHL RVP.

  20. added a commit that references this issue on May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Critical bugs or normal featuresWHLApplies to WhiskeyLake platformbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions