Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EA7EC00528 for ; Mon, 7 Aug 2023 13:41:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jd6QSQb0TmLxg7b3dbfuvlP21UzD6SVNmzBlBSTHoHc=; b=PN+YDBN3naB/in 7JTlYszz1oy0cNfjRkWzvMXKY6n+UnKQHE0hRrxg+nmfpoeiTAXweFhzTbBhQ4Z2rHcZd5Niyg+h7 P5yL40Kxl/U4TG9+NQdZOwy2v0c/RYNMLC55AkkbzLTUBvIs+0wczSe2Gn2nlv2ZAabEQJQHVo/WH N89L99YyDhRGAy2mp1A/vWcJ9uVMGjxzHP2sYMo7owfKk5NMAYxponG2//+uQk9UnawJMNRP2vjAC L0P3RH7Cxk2Ckx+eXqCMoYTLKchEcGM31FBy5Rr0PSjhYL+413N14jvWi7Ki8zsuE4/0YOtYLdIX7 uhBUGZPThffHg5ZO2SlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qT0TT-00HQFB-12; Mon, 07 Aug 2023 13:40:43 +0000 Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qT0TP-00HQDQ-2s for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2023 13:40:41 +0000 Date: Mon, 7 Aug 2023 15:40:34 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691415635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8HbwuGRoab64jNr6WfTTqfse3Fi51ai1CDmJlXYwjDI=; b=K+GSUUxN/SLGCwYcKI+dNuDFK2JX8h0eJC5sHSYSF45eiRsIFA2c6xKudioIIg+KEGFuxS Wr74ss3mj84mdnknrVva7TeA8mqAh/yXYuo3HIYLrMf1kQ1TT+oxy3ohhmTGm6UW0jD+Tl HUKczPlLZL8/6bfbVEp43lwC08c5OLfANRTHaK5EFfkoVprnKkMoJLUQFsAgtWSzekcVmL /N3wFh4B6tg73yow8OWb8EGTq6VHyXp7XoLf2PWoGRoGvVRP4Ske3ca4erK9db6r12tlY1 UgRolJ0Ih0IlBKXUapFnuFky53oohSEu/Bxh6qV3TDebD4DcKytOj6yVqLoWhQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691415635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8HbwuGRoab64jNr6WfTTqfse3Fi51ai1CDmJlXYwjDI=; b=zOaBCsAA2Y43ouiK+7lmeg+9dLuINEyURwR4vvjS43Sgxto7FxXUL4nlpWw8U61Bn50Y5v A3VooxwtorSYj5Dw== From: Sebastian Siewior To: quanyang.wang@windriver.com Cc: Suzuki K Poulose , Alexander Shishkin , Greg Kroah-Hartman , Tingwei Zhang , Mathieu Poirier , Kim Phillips , Thomas Gleixner , Steven Rostedt , linux-rt-users@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] coresight: etm3x: convert struct etm_drvdata's spinlock to raw_spinlock Message-ID: <20230807134034.CBCA22uP@linutronix.de> References: <20230711070536.3944458-1-quanyang.wang@windriver.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230711070536.3944458-1-quanyang.wang@windriver.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230807_064040_095850_9CB3854F X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2023-07-11 15:05:36 [+0800], quanyang.wang@windriver.com wrote: > diff --git a/drivers/hwtracing/coresight/coresight-etm3x-core.c b/drivers/hwtracing/coresight/coresight-etm3x-core.c > index 116a91d90ac2..af34fb82f4bb 100644 > --- a/drivers/hwtracing/coresight/coresight-etm3x-core.c > +++ b/drivers/hwtracing/coresight/coresight-etm3x-core.c > @@ -518,7 +518,7 @@ static int etm_enable_sysfs(struct coresight_device *csdev) > struct etm_enable_arg arg = { }; > int ret; > > - spin_lock(&drvdata->spinlock); > + raw_spin_lock(&drvdata->spinlock); > > /* sysfs needs to allocate and set a trace ID */ > ret = etm_read_alloc_trace_id(drvdata); This is not going to work because etm_read_alloc_trace_id() acquires later in the call chain id_map_lock which is a spinlock_t. This should also lead to a splat like the one you complain about. Sebastian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel