From mboxrd@z Thu Jan 1 00:00:00 1970 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=-11.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 40EFBC4338F for ; Mon, 2 Aug 2021 07:31:00 +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 955BF60F58 for ; Mon, 2 Aug 2021 07:30:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 955BF60F58 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 EF14417E7; Mon, 2 Aug 2021 09:30:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz EF14417E7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1627889458; bh=ZaOpVjhPP2p3OS1WT2K6NOnw9dVOEoE/rKrK/fI2Xtw=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=HVViGEsdLWi45zJCWGJ1biFnbAY2drWdKwwiEodc5j97t77oKPUg7BV7AbyDJalXE qMvCmZP/TnYkYhLmWDnIa5PqOZKCNmZw3c8W/+IFwegLkoeuJsjiYZmIbBIHVcEF4D PO7LMXIkM5fQmvSl3meUsEOHQw1ovreI97OeiU4c= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 69D7BF804F1; Mon, 2 Aug 2021 09:28:44 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 25B7EF804E7; Mon, 2 Aug 2021 09:28:32 +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 8731FF80268 for ; Mon, 2 Aug 2021 09:28:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8731FF80268 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="rjZPib5z"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="WoOj+F3V" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id B3D5F21FB6; Mon, 2 Aug 2021 07:28:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1627889297; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MLt9hWM/aWAAzoIXQKnea2DoJBhKXeFzq8jPIgaX2i4=; b=rjZPib5zP4TQCYudBWClQZlo4QCURAxsxnMqaIFgqlmxEGgWr3fenIA9qddtiKkYsPzk+8 EebGeNLl0u7v3mh80T0fNoZyEeV8Bw2kBa1MvAK2NY4T1FZ0zSPpeZUlozFK5SBuvejTol 7bGzcmBlqxiGWwZbttohvP8wTDURS38= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1627889297; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MLt9hWM/aWAAzoIXQKnea2DoJBhKXeFzq8jPIgaX2i4=; b=WoOj+F3VHm59LOWshaTCKPm8bQiYpqyW8Shs/wgci3f8+6MQk411a2wiqUoHt2gpaDmALq trm4AOOUBc3dcgDw== Received: from alsa1.nue.suse.com (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 8F634A3B83; Mon, 2 Aug 2021 07:28:17 +0000 (UTC) From: Takashi Iwai To: alsa-devel@alsa-project.org Subject: [PATCH 00/15] ALSA: Improved WC memory handling Date: Mon, 2 Aug 2021 09:28:00 +0200 Message-Id: <20210802072815.13551-1-tiwai@suse.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Banajit Goswami , Xiubo Li , Robert Jarzmik , Shengjiu Wang , Haojian Zhuang , Nicolin Chen , Mark Brown , Fabio Estevam , Daniel Mack 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" Hi, this is a patchset to enhance the ALSA memory allocation helper to support the allocation of WC pages more generically as well as supporting the fixed size buffer allocation. It allows us to reduce lots of redundant code in various ASoC drivers that still haven't used the standard preallocation. Takashi === Takashi Iwai (15): ALSA: memalloc: Minor refactoring ALSA: memalloc: Correctly name as WC ALSA: pcm: Allow exact buffer preallocation ALSA: memalloc: Support WC allocation on all architectures ALSA: pxa2xx: Use managed PCM buffer allocation ASoC: bcm: Use managed PCM buffer allocation ASoC: fsl: imx-pcm-fiq: Use managed buffer allocation ASoC: fsl: imx-pcm-rpmsg: Use managed buffer allocation ASoC: tegra: Use managed buffer allocation ASoC: fsl_asrc_dma: Use managed buffer allocation ASoC: fsl_dma: Use managed buffer allocation ASoC: mpc5200: Use managed buffer allocation ASoC: qcom: lpass: Use managed buffer allocation ASoC: qcom: qdsp6: Use managed buffer allocation ASoC: sprd: Use managed buffer allocation include/sound/memalloc.h | 6 +- include/sound/pcm.h | 47 ++++++++++++-- include/sound/pxa2xx-lib.h | 13 +--- sound/arm/pxa2xx-ac97.c | 18 ++---- sound/arm/pxa2xx-pcm-lib.c | 90 ++------------------------ sound/core/memalloc.c | 94 +++++++++++++++++----------- sound/core/memalloc_local.h | 2 +- sound/core/pcm_memory.c | 67 +++++++++++++++----- sound/core/sgbuf.c | 21 ++++--- sound/pci/hda/hda_controller.c | 2 +- sound/pci/hda/hda_intel.c | 2 +- sound/pci/intel8x0.c | 2 +- sound/soc/bcm/bcm63xx-pcm-whistler.c | 82 ++---------------------- sound/soc/fsl/fsl_asrc_dma.c | 47 +------------- sound/soc/fsl/fsl_dma.c | 50 +-------------- sound/soc/fsl/imx-pcm-fiq.c | 75 +--------------------- sound/soc/fsl/imx-pcm-rpmsg.c | 89 +------------------------- sound/soc/fsl/mpc5200_dma.c | 63 +------------------ sound/soc/pxa/pxa-ssp.c | 3 - sound/soc/pxa/pxa2xx-ac97.c | 3 - sound/soc/pxa/pxa2xx-i2s.c | 3 - sound/soc/pxa/pxa2xx-pcm.c | 3 - sound/soc/qcom/lpass-platform.c | 60 +----------------- sound/soc/qcom/qdsp6/q6asm-dai.c | 63 +------------------ sound/soc/sprd/sprd-pcm-dma.c | 67 +------------------- sound/soc/tegra/tegra210_admaif.c | 6 -- sound/soc/tegra/tegra_pcm.c | 93 +-------------------------- sound/soc/tegra/tegra_pcm.h | 7 --- sound/x86/intel_hdmi_audio.c | 2 +- 29 files changed, 209 insertions(+), 871 deletions(-) === Cc: Banajit Goswami Cc: Daniel Mack Cc: Fabio Estevam Cc: Haojian Zhuang Cc: Nicolin Chen Cc: Robert Jarzmik Cc: Shengjiu Wang Cc: Srinivas Kandagatla Cc: Xiubo Li -- 2.26.2