Return-Path: Received: from relmlor4.renesas.com ([210.160.252.174]:60792 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726094AbeIDKa1 (ORCPT ); Tue, 4 Sep 2018 06:30:27 -0400 Message-ID: <87efe9ls4n.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Linux-Renesas Cc: Geert Uytterhoeven , Rob Herring Subject: of_dma_request_slave_channel() failed ? MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Date: Tue, 4 Sep 2018 06:06:46 +0000 Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: Hi Renesas ML Cc Rob I noticed that Sound driver is using PIO mode on latest kernel. ... rcar_sound ec500000.sound: src[0] : probe error -11 rcar_sound ec500000.sound: ssi[0] fallback to PIO mode rcar_sound ec500000.sound: src[1] : probe error -11 rcar_sound ec500000.sound: ssi[1] fallback to PIO mode rcar_sound ec500000.sound: ssi[2] : probe error -11 rcar_sound ec500000.sound: ssi[2] fallback to PIO mode rcar_sound ec500000.sound: ssi[3] : probe error -11 rcar_sound ec500000.sound: ssi[3] fallback to PIO mode rcar_sound ec500000.sound: probed ... Sound can use DMA mode and PIO mode. It automatically fallbacks to PIO mode if it can't use DMA. I bisected this issue, and found the 1st bad commit ----------------------------------------------------- commit ac6bbf0cdf4206c517ac9789814c23e372ebce4d Author: Rob Herring Date: Mon Jul 9 09:41:52 2018 -0600 iommu: Remove IOMMU_OF_DECLARE Now that we use the driver core to stop deferred probe for missing drivers, IOMMU_OF_DECLARE can be removed. This is slightly less optimal than having a list of built-in drivers in that we'll now defer probe twice before giving up. This shouldn't have a significant impact on boot times as past discussions about deferred probe have given no evidence of deferred probe having a substantial impact. ... ----------------------------------------------------- In more detail, it seems it can't find DMA controller, and of_dma_request_slave_channel() returns -EPROBE_DEFER from this commit. struct dma_chan *of_dma_request_slave_channel(struct device_node *np, const char *name) { ... ofdma = of_dma_find_controller(&dma_spec); if (ofdma) { chan = ofdma->of_dma_xlate(&dma_spec, ofdma); } else { => ret_no_channel = -EPROBE_DEFER; chan = NULL; } ... => return ERR_PTR(ret_no_channel); } Is this known issue ? Or sound shouldn't fallbacks to PIO mode ? Best regards --- Kuninori Morimoto