A bug about cache inconsistency report
I did more test base on different Intel platform, and result is the same. Maybe I made some mistake? Can you do the test in yours platform?
Thank you!
Hans
-----邮件原件-----
发件人: Takashi Iwai [mailto:[email protected]]
发送时间: 31 July 2018 21:55
收件人: Hans Hu(SH-RD) <[email protected]>
抄送: '[email protected]' <[email protected]> 主题: Re: 答复: [alsa-devel] A bug about cache inconsistency report
Quoted 3 lines · Hans Hu(SH-RD)
I did the test and Oops report when install driver( both snoop and non-snoop mode)
I don't understand. Did my one-liner change the behavior or not?
thanks,
Takashi
Quoted 44 lines
-----邮件原件-----
发件人: Takashi Iwai [mailto:[email protected]]
发送时间: 31 July 2018 19:59
收件人: Hans Hu(SH-RD) <[email protected]>
抄送: '[email protected]' <[email protected]> 主题: Re: [alsa-devel] A bug about cache inconsistency reportQuoted 10 lines · Hans Hu(SH-RD)
Hi All,
Try send an email.
Appearance:
when use non-snoop + ioctl path combination, an issue occurs:
usage: aplay -D plughw:0,0 44100_S16_LE_2c.wav Ubuntu, it performance intermittently noise;Quoted 7 lines
Root case:
Functionset_pages_array_wcmarked the PTE of the original address; Functionset_memory_wcmarked the PTE both original and after vmaped address.
[cid:[email protected]]
However, cache or not in transmission process is based on the PTE of the later, and theset_pages_array_wcdid't mark it, so a cache inconsistency issue occurs.Related bug: SHA1 ID: 9ddf1aeb2134e72275c97a2c6ff2e3eb04f2f27aOK, so did you confirm that dropping the SG buffer support "fixes" the noise problem on your system? The easiest test would be like:
sound/pci/hda/hda_controller.c +1
-1@@ -770,7 +770,7 @@ int snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec, size = CONFIG_SND_HDA_PREALLOC_SIZE *1024 ;if (size >MAX_PREALLOC_SIZE ) size =MAX_PREALLOC_SIZE ; -snd_pcm_lib_preallocate_pages_for_all (pcm,SNDRV_DMA_TYPE_DEV_SG , +snd_pcm_lib_preallocate_pages_for_all (pcm,SNDRV_DMA_TYPE_DEV , chip->card->dev, size,MAX_PREALLOC_SIZE );return 0 ;thanks,
Quoted 7 lines
Takashi
保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 2 lines · Hans Hu(SH-RD)
I did more test base on different Intel platform, and result is the same.
Which platform did you test exactly?
Quoted 1 line
Maybe I made some mistake? Can you do the test in yours platform?
The negative test result implies that the analysis isn't right. Actually I haven't seen that problem on my test machines.
BTW, please avoid top-posting.
thanks,
Takashi
Quoted 71 lines
Thank you!
Hans-----邮件原件-----
发件人: Takashi Iwai [mailto:[email protected]]
发送时间: 31 July 2018 21:55
收件人: Hans Hu(SH-RD) <[email protected]>
抄送: '[email protected]' <[email protected]> 主题: Re: 答复: [alsa-devel] A bug about cache inconsistency reportQuoted 3 lines · Hans Hu(SH-RD)
I did the test and Oops report when install driver( both snoop and non-snoop mode)
I don't understand. Did my one-liner change the behavior or not?
thanks,
Takashi
Quoted 47 lines
-----邮件原件-----
发件人: Takashi Iwai [mailto:[email protected]]
发送时间: 31 July 2018 19:59
收件人: Hans Hu(SH-RD) <[email protected]>
抄送: '[email protected]' <[email protected]> 主题: Re: [alsa-devel] A bug about cache inconsistency reportQuoted 10 lines · Hans Hu(SH-RD)
Hi All,
Try send an email.
Appearance:
when use non-snoop + ioctl path combination, an issue occurs:
usage: aplay -D plughw:0,0 44100_S16_LE_2c.wav Ubuntu, it performance intermittently noise;Quoted 7 lines
Root case:
Functionset_pages_array_wcmarked the PTE of the original address; Functionset_memory_wcmarked the PTE both original and after vmaped address.
[cid:[email protected]]
However, cache or not in transmission process is based on the PTE of the later, and theset_pages_array_wcdid't mark it, so a cache inconsistency issue occurs.Related bug: SHA1 ID: 9ddf1aeb2134e72275c97a2c6ff2e3eb04f2f27aOK, so did you confirm that dropping the SG buffer support "fixes" the noise problem on your system? The easiest test would be like:
sound/pci/hda/hda_controller.c +1
-1@@ -770,7 +770,7 @@ int snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec, size = CONFIG_SND_HDA_PREALLOC_SIZE *1024 ;if (size >MAX_PREALLOC_SIZE ) size =MAX_PREALLOC_SIZE ; -snd_pcm_lib_preallocate_pages_for_all (pcm,SNDRV_DMA_TYPE_DEV_SG , +snd_pcm_lib_preallocate_pages_for_all (pcm,SNDRV_DMA_TYPE_DEV , chip->card->dev, size,MAX_PREALLOC_SIZE );return 0 ;thanks,
Takashi
Quoted 10 lines
Quoted 4 lines
保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel