Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6922120rwn; Tue, 13 Sep 2022 10:53:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR7vRovs2MBAtIDQNRgu/7+oO7c5sr9ERnZq2Ndrj0CrHnnCmjD6LkP074YIuSlUNKBSg7nV X-Received: by 2002:a17:90b:4a8a:b0:202:8eec:b87a with SMTP id lp10-20020a17090b4a8a00b002028eecb87amr468969pjb.48.1663091622780; Tue, 13 Sep 2022 10:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663091622; cv=none; d=google.com; s=arc-20160816; b=mKaIpMs2KWLV4ZtaQO7H/uO1rwX0+sl2YlzmT1I4sxEPO7st5VEwK2qKKyHdJcGVol i/sbuREbMEFY6wrZJRe+PwNb/b4KqJkqZms+tXXV+P0djxUXklGP+taLuoE9yi4w/SL+ IgnK+LqWp+4/QUCasrshN8OY/KRru+pNdI4M+oA19evIMpUJ1+livU7L9E5AeA6p0xwS Gcpf7aK/o3+GrjEj5mvD3PC1wNtOBFb+9vHSyquIXinBTrERiiBvkdMttiLvE/eekGF8 uLlRj8ELdy3WSsorBy14Jd3xsKVosHDR546KMeQj37mzqxylcohbYWvW8EiAFX1FV93v dbTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=i6Ou0tGYFgyxlm0QB8RKFCEbmvaqSg4zYpX1yg9WcmA=; b=zArUSLgyASJthFEU5HuFiUGd0NCGqJOOWoga5EGMWRAf/6ptymjszlgPWooyHATlRJ iT9J7Lo+QujNPYKeAUTZ+r297jRXq90/d2/bG925M7Yj8F5FEgpjHn1/65d4Bv8y31Y5 bbjqajz6/wz0d6+K15f72YgPTNCYqsXEAhx6XpAxK7wyUuH3SnVnzCCpNkPjnfxGDaJQ 3PEXIT37ihibIwvGkC8kjPZLZGePMg4fA2ai696FLl+DAyYI7LyDjBQMaQhY4vz7zzkI wia5fdLhcxsfGAxE0RmnQOumv1HhuML/8rpEHutq3DoX2w8Cl1KQQx2WNPmtwH7IWDNv VtRA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f125-20020a623883000000b00536bf099c14si11085680pfa.307.2022.09.13.10.53.30; Tue, 13 Sep 2022 10:53:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232569AbiIMRPE (ORCPT + 99 others); Tue, 13 Sep 2022 13:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232563AbiIMRO2 (ORCPT ); Tue, 13 Sep 2022 13:14:28 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91875E014 for ; Tue, 13 Sep 2022 09:03:01 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY8Hl-0003F9-NB; Tue, 13 Sep 2022 17:57:17 +0200 Received: from pengutronix.de (unknown [IPv6:2a03:f580:87bc:d400:e27a:1417:2420:c072]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 1A6D1E2363; Tue, 13 Sep 2022 15:57:17 +0000 (UTC) Date: Tue, 13 Sep 2022 17:57:09 +0200 From: Marc Kleine-Budde To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, =?utf-8?B?Q3PDs2vDoXM=?= Bence , Jakub Kicinski , Sasha Levin , Francesco Dolcini Subject: Re: [PATCH 5.10 59/79] net: fec: Use a spinlock to guard `fep->ptp_clk_on` Message-ID: <20220913155709.4xtmo3gephilcwk3@pengutronix.de> References: <20220913140350.291927556@linuxfoundation.org> <20220913140353.063220321@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6lghwa3xlo5fb2a3" Content-Disposition: inline In-Reply-To: <20220913140353.063220321@linuxfoundation.org> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 --6lghwa3xlo5fb2a3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 13.09.2022 16:05:04, Greg Kroah-Hartman wrote: > From: Cs=C3=B3k=C3=A1s Bence >=20 > [ Upstream commit b353b241f1eb9b6265358ffbe2632fdcb563354f ] >=20 > Mutexes cannot be taken in a non-preemptible context, > causing a panic in `fec_ptp_save_state()`. Replacing > `ptp_clk_mutex` by `tmreg_lock` fixes this. >=20 > Fixes: 6a4d7234ae9a ("net: fec: ptp: avoid register access when ipg clock= is disabled") > Fixes: f79959220fa5 ("fec: Restart PPS after link state change") > Reported-by: Marc Kleine-Budde > Link: https://lore.kernel.org/all/20220827160922.642zlcd5foopozru@pengutr= onix.de/ > Signed-off-by: Cs=C3=B3k=C3=A1s Bence > Tested-by: Francesco Dolcini # Toradex Ap= alis iMX6 > Link: https://lore.kernel.org/r/20220901140402.64804-1-csokas.bence@prola= n.hu > Signed-off-by: Jakub Kicinski > Signed-off-by: Sasha Levin If possible please drop this patch, a revert for this is pending. For details see: https://lore.kernel.org/all/20220913141917.ukoid65sqao5f4lg@pengutronix.de/ regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --6lghwa3xlo5fb2a3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmMgqFIACgkQrX5LkNig 012TTAf+P0rJtQK4dwHta/xlt6YZr7XEt4I0c6vwW0QOxPT0YP/tAckl0TPf9Y6r vkkokyECbOx0yjTow08sJDHvOpikQ0rcLCafpa4sY/emrxCBbMHJVAoXAsP2e3Mu hQBDq8jNfoFCgfg1Uvt9BU3ChI1JKkjbbf+Hmzw8MNfLW2QWOLglY/T13SNyEHQP 4wWbewWvgDU5bzUBcXMjUuxZukMTUOGiArjY2ruHt8D2PQgo3Snx+S4sAUIe6VrR W94t1xTk9rGV29Z/gxAL7GfyFH5vqVShz2H/RfN0h/yiM2y7DsEehO32vaDoLME/ iJs6D0Ie7sbkiIBiiB5N9R4LlmUATg== =Exn+ -----END PGP SIGNATURE----- --6lghwa3xlo5fb2a3--