Received: by 10.213.65.68 with SMTP id h4csp1596997imn; Wed, 4 Apr 2018 23:52:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+h5KM0fBxSHZH1qIe4U/idyhvadBJ1GKHXXPighT36ndktRp6QFBaxlJIY1YAm4aeyYmYs X-Received: by 10.98.103.199 with SMTP id t68mr16138740pfj.24.1522911166692; Wed, 04 Apr 2018 23:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522911166; cv=none; d=google.com; s=arc-20160816; b=mEYpRlzNKy0ftQoRHYRNTuQJa7N1VPsLtVuP27/yJgBIY0UYrRbch0xDKF4Gg+Myzo sgFur34cT6X6yxsFsmTVtP9hMZdPSnky7LHPFA8oCTHxJfvocxrcUdHtdyl0J+eo+iIz p5kyeMmrfH/5gofY9mdQKudPM/DgnmyUhZ6QpIEYJd6FHbTZeAhTt7Y+wGCmueFC+Z04 wXoO7j0667sYNVsBjoctDQmhk2LKdYboc7pDXoZ1QGvhn7TzT472Uppwx9neYhoxtysn Jr5bFhjRzGVcPmjptdfO4FCK3r/yP1v604C7oh+t+ZWLtn8JiCBc0VL0kRbX3ezyhTBg qOUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=blKXymejRZXBct3HooPTYNL8CFQQgHT4qefwle08IM0=; b=d6qqqvvpoNXLOO8F17FXiz6+JaH4y4X70QehH0zBr/xPyRWtFeR+w1lqrceg5vi6WI kuejqPAQ+frW2k5mqwIkA6U5efene+tq7qfmuQifuTgrQCT43kb6Q5wimWZU0HDuzHD2 4EuzB0X/UGNFU3erozv1K7RjSwf6kIzAXVsbgyuONHbvDQrfDHVS747/yd33Cm0MBLg7 Q1nnfP2mMV/gE1gOOmJCUloV+QfIf+4HvnfYuVpc+p2DYCS8GRDnGXHe9j1QSy4w+CoG Ofw/tMQAXHumnzVEux60ahEkPFWM0EMbr5n0hxlwzsuBmQ83VloDeJ4TEfmEVzVkGv7y Bbaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15-v6si5230581pls.232.2018.04.04.23.52.32; Wed, 04 Apr 2018 23:52:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751359AbeDEGvb (ORCPT + 99 others); Thu, 5 Apr 2018 02:51:31 -0400 Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:30026 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750915AbeDEGv3 (ORCPT ); Thu, 5 Apr 2018 02:51:29 -0400 Received: from belgarion ([86.201.130.131]) by mwinf5d05 with ME id WWrD1x00K2qEl8e03WrExQ; Thu, 05 Apr 2018 08:51:28 +0200 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Thu, 05 Apr 2018 08:51:28 +0200 X-ME-IP: 86.201.130.131 From: Robert Jarzmik To: Arnd Bergmann Cc: Daniel Mack , Haojian Zhuang , Vinod Koul , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , Linux ARM , Linux Kernel Mailing List , alsa-devel@alsa-project.org Subject: Re: [PATCH 14/15] ARM: pxa: change SSP devices allocation References: <20180402142656.26815-1-robert.jarzmik@free.fr> <20180402142656.26815-15-robert.jarzmik@free.fr> <87lge4485x.fsf@belgarion.home> X-URL: http://belgarath.falguerolles.org/ Date: Thu, 05 Apr 2018 08:51:13 +0200 In-Reply-To: (Arnd Bergmann's message of "Tue, 3 Apr 2018 17:53:25 +0200") Message-ID: <87zi2i2ljy.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > I'm still unable to follow through that code, but I understand now that > the device you pass to dma_request_slave_channel() is not the one > we'd like it to be here. > > Where exactly does that call to dma_request_chan() happen? Is this > the one in dmaengine_pcm_new()? Could we perhaps put a > pointer to the SSP device into snd_dmaengine_dai_dma_data? This is a sample stack I captured with an added WARN_ON(1), triggered by a userland "aplay Sultans_Of_Swing.wav" :) [ 299.216743] [] (unwind_backtrace) from [] (show_stack+0x20/0x24) [ 299.223986] [] (show_stack) from [] (dump_stack+0x20/0x28) [ 299.231321] [] (dump_stack) from [] (__warn+0xf0/0x11c) [ 299.238183] [] (__warn) from [] (warn_slowpath_null+0x4c/0x58) [ 299.245234] [] (warn_slowpath_null) from [] (dma_request_chan+0x40/0x228) [ 299.252550] [] (dma_request_chan) from [] (dma_request_slave_channel+0x18/0x24) [ 299.259855] [] (dma_request_slave_channel) from [] (__pxa2xx_pcm_open+0xf4/0x110) [ 299.266789] [] (__pxa2xx_pcm_open) from [] (soc_pcm_open+0xf8/0x9c8) [ 299.273932] [] (soc_pcm_open) from [] (snd_pcm_open_substream+0x9c/0x134) [ 299.281290] [] (snd_pcm_open_substream) from [] (snd_pcm_open+0xbc/0x22c) [ 299.288255] [] (snd_pcm_open) from [] (snd_pcm_playback_open+0x50/0x88) [ 299.295468] [] (snd_pcm_playback_open) from [] (snd_open+0x124/0x144) [ 299.302897] [] (snd_open) from [] (chrdev_open+0x1a0/0x1f0) [ 299.310296] [] (chrdev_open) from [] (do_dentry_open.constprop.0+0x1d4/0x31c) [ 299.317345] [] (do_dentry_open.constprop.0) from [] (vfs_open+0x7c/0x80) [ 299.324597] [] (vfs_open) from [] (path_openat+0xbe8/0xf90) [ 299.332003] [] (path_openat) from [] (do_filp_open+0x80/0xe4) [ 299.339044] [] (do_filp_open) from [] (do_sys_open+0x148/0x1f8) [ 299.346225] [] (do_sys_open) from [] (SyS_open+0x2c/0x30) [ 299.353505] [] (SyS_open) from [] (ret_fast_syscall+0x0/0x28) Cheers. -- Robert