Skip to content

[topology] Add KWD tplg for TGL - #2405

Merged
lbetlej merged 5 commits into
thesofproject:masterfrom
xiulipan:pr/hdakwd
Apr 2, 2020
Merged

[topology] Add KWD tplg for TGL#2405
lbetlej merged 5 commits into
thesofproject:masterfrom
xiulipan:pr/hdakwd

Conversation

@xiulipan

@xiulipanxiulipan commented Feb 19, 2020

Copy link
Copy Markdown
Contributor

Add vol-kfbm pipe
Add DMIC KWD template for intel.
Add KWD pipeline in hda_generic pipeline with above template

@lgirdwood

Copy link
Copy Markdown
Member

@slawblauciak@mengdonglin@xiulipan@tlauda it appears we still have the DAI IPC timeout (unrelated to this PR but in the CI results)

kernel: [ 285.192629] sof-audio-pci 0000:00:0e.0: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
kernel: [ 285.192763] sof-audio-pci 0000:00:0e.0: ipc tx succeeded: 0x80010000: GLB_DAI_MSG: CONFIG
kernel: [ 285.192770] sof-audio-pci 0000:00:0e.0: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
kernel: [ 285.697819] sof-audio-pci 0000:00:0e.0: error: ipc timed out for 0x80010000 size 120
kernel: [ 285.697831] sof-audio-pci 0000:00:0e.0: info: preventing DSP entering D3 state to preserve context
kernel: [ 285.697856] sof-audio-pci 0000:00:0e.0: status: fw entered - code 00000005
kernel: [ 285.697900] sof-audio-pci 0000:00:0e.0: error: unexpected fault 0x00000000 trace 0x00004000
kernel: [ 285.697908] sof-audio-pci 0000:00:0e.0: error: hda irq intsts 0x00000000 intlctl 0xc0000001 rirb 00
kernel: [ 285.697911] sof-audio-pci 0000:00:0e.0: error: dsp irq ppsts 0x00000000 adspis 0x00000000
kernel: [ 285.697917] sof-audio-pci 0000:00:0e.0: error: host status 0x00000000 dsp status 0x00000000 mask 0x00000003
kernel: [ 285.697920] sof-audio-pci 0000:00:0e.0: error: waking up any trace sleepers
kernel: [ 285.697931] sof-audio-pci 0000:00:0e.0: error: failed to set dai config for NoCodec-5
kernel: [ 285.697935] sof-audio-pci 0000:00:0e.0: error: failed to restore pipeline after resume -110

@xiulipan

Copy link
Copy Markdown
ContributorAuthor

@lgirdwood It seems the XCC FW for CI is not enabled for this PR test. I will try to re-run this test to see if the same issue can be seen.
https://sof-ci.01.org/sofpr/PR2405/build4923/devicetest/APL_UP2_NOCODEC/verify-sof-firmware-load.sh/verify-sof-firmware-load.sh.txt

kernel: [ 3.340637] sof-audio-pci 0000:00:0e.0: Firmware info: used compiler XCC 12:0:8 xtensa-apl-elf used optimization flags O2

@xiulipan

Copy link
Copy Markdown
ContributorAuthor

SOFCI TEST

2 similar comments
@lgirdwood

Copy link
Copy Markdown
Member

SOFCI TEST

@lgirdwood

Copy link
Copy Markdown
Member

SOFCI TEST

@juimonenjuimonen left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit message: dection -> detection, also dmis -> dmic (?)

@lgirdwood

Copy link
Copy Markdown
Member

SOFCI TEST

@lgirdwood

Copy link
Copy Markdown
Member

The WHL DUT has been rebooted so retest.

@xiulipan

Copy link
Copy Markdown
ContributorAuthor

@lgirdwood Maybe we need to wait for the TGL FW update here. I actually removed all HDMI PCM to make this tplg loaded on TGL.

@lgirdwood

Copy link
Copy Markdown
Member

SOFCI TEST

@lgirdwood

Copy link
Copy Markdown
Member

Licence server timeout on CI

@xiulipanxiulipan changed the title [topology] Add KWD tplg for HDA platforms[topology] Add KWD tplg for TGLMar 23, 2020
@xiulipan
xiulipanforce-pushed the pr/hdakwd branch 2 times, most recently from c9012be to 4df04beCompareMarch 23, 2020 09:42
@xiulipan

Copy link
Copy Markdown
ContributorAuthor

@sathya-nujella@RDharageswari could you help to test and review?

@lgirdwood

Copy link
Copy Markdown
Member

Jenkins known issues.

Comment threadtools/topology/sof-hda-generic-kwd.m4 Outdated
Comment threadtools/topology/platform/intel/intel-generic-dmic-kwd.m4 Outdated
@xiulipan

Copy link
Copy Markdown
ContributorAuthor

@RDharageswari@keqiaozhang Could you help to test the new tplg with vol in KDW pipeline?

@keqiaozhang

Copy link
Copy Markdown
Collaborator

@xiulipan Verified this new tplg on TGL, KWD works, no obvious issues found.

Comment threadtools/topology/platform/intel/intel-generic-dmic-kwd.m4 Outdated
Comment threadtools/topology/sof-tgl-max98373-rt5682.m4 Outdated
@xiulipan

Copy link
Copy Markdown
ContributorAuthor

@lgirdwood@jajanusz updated, ping for review.

@lgirdwoodlgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some macros are in the wrong place ?

Comment threadtools/topology/sof-hda-generic-kwd.m4 Outdated
The PCM ID should use PCM_ID instead for PIPELINE_ID
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add vol comp before kfbm comp in pipe-vol-kfbm-capture.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add generic dmic kwd template.
Need to define flowing variable to make it work:
CHANNELS: channel for the DMIC
KFBM_TYPE: kfpm or vol-kfpm
DMIC_PCM_48K_ID: PCM ID for 48K DMIC
DMIC_PIPELINE_48k_ID: pipeline ID for 48K DMIC
DMIC_DAI_LINK_48K_ID: dai link ID in machine dirver for
48K DMIC
DMIC_PCM_16k_ID: PCM ID for KWD 16K DMIC
DMIC_PIPELINE_16k_ID: pipeline ID for 16K DMIC
DMIC_PIPELINE_KWD_ID: pipeline ID for KWD
DMIC_DAI_LINK_16k_ID: dai link ID in machine driver
for 16K DMIC
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add KWD pipeline with kfpm only for HDA generic topology.
DMIC 48K have PCM 6
DMIC 16K have PCM 7
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add KWD pipelines with vol-kfpm pipe using intel-generic-dmic-kwd tmplate.
48K DMIC still uses PCM 99
Add 16K DMIC KWD on PCM 100
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
@xiulipan

Copy link
Copy Markdown
ContributorAuthor

@lgirdwood@RDharageswari updated, ping for review.

@xiulipan

Copy link
Copy Markdown
ContributorAuthor

@jajanusz Can you check update and merge this PR

@lgirdwood

Copy link
Copy Markdown
Member

CI known issues. @jajanusz good to go once you are ready.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@xiulipan@lgirdwood@keqiaozhang@juimonen@RDharageswari@jajanusz@sathya-nujella@jairaj-arava@lbetlej