Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F76AC4338F for ; Sat, 31 Jul 2021 08:11:11 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 98CA06054E for ; Sat, 31 Jul 2021 08:11:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 98CA06054E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3A42F1FBB; Sat, 31 Jul 2021 10:10:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3A42F1FBB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1627719067; bh=MB9ELgQioPPASfKT9IBj8udO+SmKjfUALUyiFxhMY78=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=h4Q9JYh+VQRT+dIPSWXUtrc6V5TbqIvJQQLNPamqlqqd1/cvcKIVNJ7rZaep6IPGE Yak5Mng6iy9722MAN1Eh0vvwompDVq86yXNtRpWVQHJMfdeRWFuxtCWRPtlRWXTFI5 +2yF5u7lh6lHRV5CaSIArtq5JTu0OY75S/Ei83gg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id AC99AF8026C; Sat, 31 Jul 2021 10:10:16 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8CC38F80276; Sat, 31 Jul 2021 10:10:14 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 306DCF80258 for ; Sat, 31 Jul 2021 10:10:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 306DCF80258 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="jmEMMsXz"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="JwitLStD" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id D740C2240F; Sat, 31 Jul 2021 08:10:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1627719004; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gT1dDClDLalcTxPbn4Jo6JruJDpREuBbFs7MF3zkOqA=; b=jmEMMsXz1NLGu0+5koH0mzI3hfGJF2Hp/92WGimHGIkNYjXk8oWqKeRPaUYNd3wKTr6eLE IgDVhTl5Eh9zH8jCyQ8hJTfMl6dkGlnPaYzxmTv0c9CXqZGLrzZJqp/UL9qu8sddJyv2Ai g5lBVxXuFZXiYSnAW2jPT+wGxgwGWQs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1627719004; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gT1dDClDLalcTxPbn4Jo6JruJDpREuBbFs7MF3zkOqA=; b=JwitLStDFOep9zUEQJOStKqcamruDYUCzqPxPYBowGLEpTw8ehjFgFVW1xf+HjkeXuBAkr CKWg5aNHQRVPw8Bw== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 9DF32A3B8C; Sat, 31 Jul 2021 08:10:04 +0000 (UTC) Date: Sat, 31 Jul 2021 10:10:04 +0200 Message-ID: From: Takashi Iwai To: Hans de Goede Subject: Re: [5.14 regression] "ALSA: core: Add continuous and vmalloc mmap ops" breaks Intel SST audio In-Reply-To: <8d6674da-7d7b-803e-acc9-7de6cb1223fa@redhat.com> References: <8d6674da-7d7b-803e-acc9-7de6cb1223fa@redhat.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: "alsa-devel@alsa-project.org" , Mark Brown , Pierre-Louis Bossart X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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); }