From patchwork Mon Aug 27 08:59:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 10576911 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 729AB5A4 for ; Mon, 27 Aug 2018 10:55:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6166C2933B for ; Mon, 27 Aug 2018 10:55:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 557A329780; Mon, 27 Aug 2018 10:55:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C06AD29773 for ; Mon, 27 Aug 2018 10:55:10 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1A3CE267871; Mon, 27 Aug 2018 11:00:11 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 996E226786E; Mon, 27 Aug 2018 11:00:06 +0200 (CEST) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id CF231267849 for ; Mon, 27 Aug 2018 11:00:00 +0200 (CEST) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D56A2AEE1; Mon, 27 Aug 2018 08:59:59 +0000 (UTC) From: Takashi Iwai To: alsa-devel@alsa-project.org Date: Mon, 27 Aug 2018 10:59:45 +0200 Message-Id: <20180827085953.10614-1-tiwai@suse.de> X-Mailer: git-send-email 2.18.0 Cc: Hans Hu Subject: [alsa-devel] [PATCH 0/8] ALSA: non-cached memalloc helper X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, this is a patchset to add the non-cached page handling in the memory allocation helpers, which have been implemented individually in several driver codes. This also fixes a long-time bug of HD-audio non-mmap behavior in the non-snoop mode, which was reported recently. Takashi === Takashi Iwai (8): ALSA: memalloc: Don't align the size to power-of-two ALSA: memalloc: Simplify snd_malloc_dev_pages() calls ALSA: memalloc: Add non-cached buffer type ALSA: hda: Check the non-cached stream buffers more explicitly ALSA: hda: Use new non-cached allocation for non-snoop mode ALSA: hda: Remove substream allocation/free ops ALSA: intel8x0: Use the new non-cached allocation for 440MX workaround ALSA: intel_hdmi: Use the new non-cached allocation include/sound/memalloc.h | 3 + sound/core/memalloc.c | 40 ++++++++----- sound/core/sgbuf.c | 15 ++++- sound/pci/hda/hda_controller.c | 13 +++-- sound/pci/hda/hda_controller.h | 7 +-- sound/pci/hda/hda_intel.c | 103 ++++----------------------------- sound/pci/hda/hda_tegra.c | 18 +----- sound/pci/intel8x0.c | 89 ++++------------------------ sound/x86/intel_hdmi_audio.c | 29 +--------- 9 files changed, 75 insertions(+), 242 deletions(-)