From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751309AbdGQKRQ convert rfc822-to-8bit (ORCPT ); Mon, 17 Jul 2017 06:17:16 -0400 Received: from muru.com ([72.249.23.125]:54920 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751272AbdGQKRO (ORCPT ); Mon, 17 Jul 2017 06:17:14 -0400 Date: Mon, 17 Jul 2017 03:17:10 -0700 From: Tony Lindgren To: Sebastian Reichel Cc: Liam Girdwood , Mark Brown , Rob Herring , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 0/6] Motorola Droid 4 Audio Support Message-ID: <20170717101709.GI10026@atomide.com> References: <20170712151846.24621-1-sebastian.reichel@collabora.co.uk> <20170717092904.GG10026@atomide.com> <20170717101258.llyly7kwfnwtoftr@earth> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20170717101258.llyly7kwfnwtoftr@earth> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Sebastian Reichel [170717 03:13]: > Hi, > > On Mon, Jul 17, 2017 at 02:29:04AM -0700, Tony Lindgren wrote: > > * Sebastian Reichel [170712 08:19]: > > > * Switch from simple-audio-card to audio-graph-card > > > > Gave this a quick try against v4.13-rc1 with SND_AUDIO_GRAPH_CARD > > enabled as a loadable module. However loading it oopses for me, > > see below. Maybe some dependencies are missing? > > It works for me on top of v4.13-rc1 (my kernel is monolithic). > Looking at the stacktrace it seems to be a bug in audio graph > card and not in the codec driver. OK I do also have: CONFIG_DEBUG_LOCKDEP=y CONFIG_DEBUG_ATOMIC_SLEEP=y Tony > > 8< -------------------- > > BUG: sleeping function called from invalid context at kernel/locking/mutex.c:747 > > in_atomic(): 1, irqs_disabled(): 128, pid: 1590, name: modprobe > > INFO: lockdep is turned off. > > irq event stamp: 0 > > hardirqs last enabled at (0): [< (null)>] (null) > > hardirqs last disabled at (0): [] copy_process.part.5+0x2c4/0x1ac8 > > softirqs last enabled at (0): [] copy_process.part.5+0x2c4/0x1ac8 > > softirqs last disabled at (0): [< (null)>] (null) > > CPU: 0 PID: 1590 Comm: modprobe Tainted: G W 4.13.0-rc1+ #126 > > Hardware name: Generic OMAP4 (Flattened Device Tree) > > [] (unwind_backtrace) from [] (show_stack+0x10/0x14) > > [] (show_stack) from [] (dump_stack+0xac/0xe0) > > [] (dump_stack) from [] (___might_sleep+0x228/0x2ac) > > [] (___might_sleep) from [] (__mutex_lock+0x28/0x9fc) > > [] (__mutex_lock) from [] (mutex_lock_nested+0x1c/0x24) > > [] (mutex_lock_nested) from [] (kernfs_remove+0x18/0x30) > > [] (kernfs_remove) from [] (kobject_del+0x14/0x44) > > [] (kobject_del) from [] (kobject_put+0x114/0x224) > > [] (kobject_put) from [] (of_get_next_parent+0x2c/0x4c) > > [] (of_get_next_parent) from [] (of_graph_get_port_parent+0x10/0x70) > > [] (of_graph_get_port_parent) from [] (asoc_simple_card_parse_graph_dai+0x98/0xe0 [snd_soc_simple_card_utils]) > > [] (asoc_simple_card_parse_graph_dai [snd_soc_simple_card_utils]) from [] (asoc_graph_card_probe+0x200/0x444 [snd_soc_audio_graph_card]) > > [] (asoc_graph_card_probe [snd_soc_audio_graph_card]) from [] (platform_drv_probe+0x50/0xb0) > > [] (platform_drv_probe) from [] (driver_probe_device+0x33c/0x478) > > [] (driver_probe_device) from [] (__driver_attach+0xe8/0x110) > > [] (__driver_attach) from [] (bus_for_each_dev+0x6c/0xa0) > > [] (bus_for_each_dev) from [] (bus_add_driver+0x198/0x270) > > [] (bus_add_driver) from [] (driver_register+0x78/0xf4) > > [] (driver_register) from [] (do_one_initcall+0x3c/0x170) > > [] (do_one_initcall) from [] (do_init_module+0x5c/0x1e0) > > [] (do_init_module) from [] (load_module+0x1270/0x14ec) > > [] (load_module) from [] (SyS_finit_module+0xa8/0xec) > > [] (SyS_finit_module) from [] (ret_fast_syscall+0x0/0x1c) > > OF: ERROR: Bad of_node_put() on /ocp/spi@48098000/pmic@0/audio-codec/port@0/endpoint