Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6259559iob; Tue, 10 May 2022 14:12:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPPvhVubam3MpmIKgw6kufOFtY/v8xF8bM0+hdnOFkh/z5mDxtIeZWCqg8phVKx6Ezif9p X-Received: by 2002:a17:902:ea06:b0:15e:8367:150b with SMTP id s6-20020a170902ea0600b0015e8367150bmr21442989plg.167.1652217156349; Tue, 10 May 2022 14:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652217156; cv=none; d=google.com; s=arc-20160816; b=l5IXtt14Hc07Qgzq3jNJRL6JMuuN0JITlDh5430TF+WVAQQyWwc/bs9HU7UKSC/Jnw nIrBh1K4xJ7dk5kYOfqFvsE9M+wQMPHjnXOJOt6RRmwo9dyS3lyG0H3hS1M5yPZwIYkV tmwO1StXtnw4Gmn8u9J4EGjIq/ud4gvZto7p1o/eoPmuNPbCqTqcWhGMQi1m9ZEV2JP6 tLMY4eORVaeRhapj+jeXm4Osu0LJuOi0leRoVvT4fGgOUh+VGzrim4BPcN3wVFxk2v9U I926zYqVTWEDnLW5TBv45cYDaDPJw2H6l3DItjpJyo/yZa3PRhMW3Dck20YVWrhYmx/+ ULTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1eBo+ZOXzLk7qpI/RwlvxORg8q5yppv21JW0AMyn7Vw=; b=pqoeMIBdIH85nDzpB79r7zFnIYHYqtBtkg62ryE1+4kJlMzltbAKVMkaPQnaGXxrdA dciWRg+nN7hzB5CD8P9xsiSP9PLUni/hbDqErrEzQnO9LPQij6zMsg0TieZ3hkZyEmsw 2ZI6M5pC4sxymzsl59Qfepr03YX4hKMrX6lWsRlmh0BYVToyfLoqO7LL9BT2wMFx3/FE 2KvTCH0+NXRS85iQl5FqACmYSfp/HWA0lAFhmJaK0D3iNW9iVLmy9zOd007h9mCOg1Rm 8t1ZmEo/j+/TOWXioPdeky0MjAqy/Zu0I2cD5JYQZmBtNEbKX+g35rlkXygkTCfKiBf1 BnUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=c0tGFpsf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a1709027c8a00b00156c1fb5366si99471pll.539.2022.05.10.14.12.20; Tue, 10 May 2022 14:12:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=c0tGFpsf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344090AbiEJOXp (ORCPT + 99 others); Tue, 10 May 2022 10:23:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245437AbiEJNwZ (ORCPT ); Tue, 10 May 2022 09:52:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7E6629B032; Tue, 10 May 2022 06:38:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 32990615F2; Tue, 10 May 2022 13:38:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2986BC385A6; Tue, 10 May 2022 13:37:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652189880; bh=rmlvZpm17lfrqvAW3UoK8aNjej5R95tUNQtmlikoKOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c0tGFpsft4zz7tEf3WjhT/nG/ix6rraN/ymA3fnyO0NRXSRfDo/HRMOMRcQ33/r6v ym0kBLelZTzCt9Dl90YKjv8sjTqxS0wW04OJYFKw7W1KHT6KQR6Q+JqJtdTqB0gSTK nhfu3auBd8AJMddnp6ikN5i8Xpcc7juQ6p90bLc0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Shmidt , Neil Armstrong , Jerome Brunet , Mark Brown Subject: [PATCH 5.17 059/140] ASoC: meson: axg-card: Fix nonatomic links Date: Tue, 10 May 2022 15:07:29 +0200 Message-Id: <20220510130743.307108990@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130741.600270947@linuxfoundation.org> References: <20220510130741.600270947@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Neil Armstrong commit 0c9b152c72e53016e96593bdbb8cffe2176694b9 upstream. This commit e138233e56e9829e65b6293887063a1a3ccb2d68 causes the following system crash when using audio on G12A/G12B & SM1 systems: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:282 in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 0, name: swapper/0 preempt_count: 10001, expected: 0 RCU nest depth: 0, expected: 0 Preemption disabled at: schedule_preempt_disabled+0x20/0x2c mutex_lock+0x24/0x60 _snd_pcm_stream_lock_irqsave+0x20/0x3c snd_pcm_period_elapsed+0x24/0xa4 axg_fifo_pcm_irq_block+0x64/0xdc __handle_irq_event_percpu+0x104/0x264 handle_irq_event+0x48/0xb4 ... start_kernel+0x3f0/0x484 __primary_switched+0xc0/0xc8 Revert this commit until the crash is fixed. Fixes: e138233e56e9829e65b6 ("ASoC: meson: axg-card: make links nonatomic") Reported-by: Dmitry Shmidt Signed-off-by: Neil Armstrong Acked-by: Jerome Brunet Link: https://lore.kernel.org/r/20220421155725.2589089-2-narmstrong@baylibre.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/meson/axg-card.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/meson/axg-card.c b/sound/soc/meson/axg-card.c index cbbaa55d92a6..2b77010c2c5c 100644 --- a/sound/soc/meson/axg-card.c +++ b/sound/soc/meson/axg-card.c @@ -320,7 +320,6 @@ static int axg_card_add_link(struct snd_soc_card *card, struct device_node *np, dai_link->cpus = cpu; dai_link->num_cpus = 1; - dai_link->nonatomic = true; ret = meson_card_parse_dai(card, np, &dai_link->cpus->of_node, &dai_link->cpus->dai_name); -- 2.36.1