Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1428061pxv; Fri, 2 Jul 2021 03:38:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYcrFJkOJT1pyUoEfH36gh5dtEhguj8CTWTdD5SrgfETyyVU4PQiWHOjIDu8hmK5hP/JAm X-Received: by 2002:a17:907:3e88:: with SMTP id hs8mr4503038ejc.96.1625222337120; Fri, 02 Jul 2021 03:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625222337; cv=none; d=google.com; s=arc-20160816; b=M2r+dP8/K3PHfYG5h8DFjSHLTxncjFBE6v2mlhtFpUlkGOWtHCS3UlThblZ6U77MNr mrhDqi1zakyQddgT1QIQ5aIHOATAMVZbtsBDZ4LUJDnlbxCwYBYpUWud21iWSu+Yt/zm A3paXBKmMcroictb3mXDV9z175hNpqTsGOoOL9/zt6gbiBfDIBmfF4l6Uc1YBSysPrnj Uo+5L2bRxMCPvoA5k1WsOqMTOnDhjTj77PvWJRbLG2XBZQagcWIOmw+HSbpNbTAzHzqa ImP93iAQcX9UbzL0r2EZl3rBRJSUt1YU5lNf9EIpGjfQtvD6O+qBbJlrRv6A9MEKUwXb +PIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:from:cc:to; bh=cJ5FRyDG3coCqeh+bh2xhTLSYJ5sORIXv3B797tYFfs=; b=Tjo8WWZ/8kMTwQvZDSdCSGj4XLLqj8d1Uu//JxRWLqVji3YDhTO1fRe8Mdv1sIdiOp Jr6QhIqie5m4nRDKemKBt2GibVtFwsH1IbnQGwd89T0gnU4Hc6GcuU1iZ0avHPiIk3f9 FeMmcyiawzRmpnjbOH+uKR8lOvTC+hfsZg/3q07wyCypExbrKBO/fX2en7ejSB2pmEQo qGEWEtp2bP7PV9dE1pMFMYJLCi2tnuMFRRIC6H0gvOJQQRvO+yIqtQJUSHL+8TaqaGCX Z6u9yeQ4/eQ4gQxTjDV8E88VlOASdIE3P8hyGB8EmI0UOUDeKMjGQpj0naaTmQwUrI7E /fxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si2860604ejj.154.2021.07.02.03.38.30; Fri, 02 Jul 2021 03:38:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231561AbhGBKgt (ORCPT + 99 others); Fri, 2 Jul 2021 06:36:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231402AbhGBKgq (ORCPT ); Fri, 2 Jul 2021 06:36:46 -0400 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 698EBC061765 for ; Fri, 2 Jul 2021 03:34:14 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id AF1C8419BC; Fri, 2 Jul 2021 10:34:08 +0000 (UTC) To: Takashi Iwai Cc: Linux-ALSA , LKML From: Hector Martin Subject: [tiwai/for-next] hard lockups with pipewire and snd-usb-audio Message-ID: <4e71531f-4535-fd46-040e-506a3c256bbd@marcan.st> Date: Fri, 2 Jul 2021 19:34:06 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Takashi, I've been testing builds from your for-next branch to get the recent firewire fixes. All that works fine, but instead I've been getting hard lockups with pipewire and snd-usb-audio. I'm currently on 9a7b7ec3c6. Backtrace: do_raw_spin_lock+0x8e/0x90 _raw_spin_lock_irqsave+0x3e/0x50 ? snd_pcm_period_elapsed+0x10/0x30 [snd_pcm] snd_pcm_period_elapsed+0x10/0x30 [snd_pcm] snd_usb_endpoint_start+0xd8/0x270 [snd_usb_audio] start_endpoints+0x50/0x70 [snd_usb_audio] snd_usb_substream_playback_trigger+0x58/0x100 [snd_usb_audio] snd_pcm_action+0x74/0xb0 [snd_pcm] snd_pcm_action_lock_irq+0x36/0x80 [snd_pcm] snd_pcm_ioctl+0x1e/0x30 [snd_pcm] __x64_sys_ioctl+0x7d/0xb0 do_syscall_64+0x45/0x80 entry_SYSCALL_64_after_hwframe+0x44/0xae To me it looks like it's recursively trying to lock the stream spinlock. I'm not sure what version this is a regression from; I've only triggered it with pipewire so far, which I wasn't previously using. It's easy to reproduce. Usually, pulling up pavucontrol on pipewire with the USB audio device on an active profile will do it. Just thought you might want to know. Let me know if you need any more info. -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub