All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Hans de Goede <hdegoede@redhat.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Mark Brown <broonie@kernel.org>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: Re: [5.14 regression] "ALSA: core: Add continuous and vmalloc mmap ops" breaks Intel SST audio
Date: Sat, 31 Jul 2021 10:10:04 +0200	[thread overview]
Message-ID: <s5h35ru7vkz.wl-tiwai@suse.de> (raw)
In-Reply-To: <8d6674da-7d7b-803e-acc9-7de6cb1223fa@redhat.com>

On Fri, 30 Jul 2021 22:04:00 +0200,
Hans de Goede wrote:
> 
> Hi All;,
> 
> As discussed in the "5.14 regression, Intel SST (BYT) audio no longer works" thread,
> audio on X86 devices using the Intel SST driver no longer works with 5.14.
> 
> After poking at this for a while I've found the culprit:
> 30b7ba6972d5 ("ALSA: core: Add continuous and vmalloc mmap ops")
> 
> If I revert that single commit then everything works fine again with 5.14.

Does the patch below fix the problem?


thanks,

Takashi

---
--- a/sound/core/memalloc.c
+++ b/sound/core/memalloc.c
@@ -215,7 +215,7 @@ static int snd_dma_continuous_mmap(struct snd_dma_buffer *dmab,
 				   struct vm_area_struct *area)
 {
 	return remap_pfn_range(area, area->vm_start,
-			       dmab->addr >> PAGE_SHIFT,
+			       page_to_pfn(virt_to_page(dmab->area)),
 			       area->vm_end - area->vm_start,
 			       area->vm_page_prot);
 }

  reply	other threads:[~2021-07-31  8:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30 20:04 [5.14 regression] "ALSA: core: Add continuous and vmalloc mmap ops" breaks Intel SST audio Hans de Goede
2021-07-31  8:10 ` Takashi Iwai [this message]
2021-08-01 10:27   ` Hans de Goede
2021-08-01 11:35     ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h35ru7vkz.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=hdegoede@redhat.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.