From: Kuninori Morimoto Subject: [PATCH 0/2 v2][resend] ASoC: rsnd: DMA power fix and IOMMU support Date: Mon, 14 Nov 2016 01:23:56 +0000 Message-ID: <8737iulus1.wl-kuninori.morimoto.gx@renesas.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from relmlie4.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by alsa0.perex.cz (Postfix) with ESMTP id 5E67C2667E0 for ; Mon, 14 Nov 2016 02:24:12 +0100 (CET) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: Linux-ALSA , Simon , Laurent List-Id: alsa-devel@alsa-project.org Hi Mark Cc Laurent These are v2 remain of Renesas sound DMA patches. [1/4] [2/4] were accepted, [3/4] [4/4] are not. 1) patch controls Audio-DMAC power. Current driver gets DMAEngile handle when .probe() timing, and release it on .remove() timing. But Audio-DMAC power ON/OFF are related to this timing. This means Audio-DMAC always ON Now. Basically, this kind of DMAC power control should be handled by DMAEngile, but current DMAEngile can't handle pm_runtime_xxx on atomic context. Because of this DMAEngile API issue, the *better* solution is get DMAEngile handle on every playback timing. Kuninori Morimoto (2): 1) ASoC: rsnd: Request/Release DMA channel each time 2) ASoC: rsnd: use dma_sync_single_for_xxx() for IOMMU sound/soc/sh/rcar/core.c | 4 +-- sound/soc/sh/rcar/dma.c | 266 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------ Best regards --- Kuninori Morimoto