Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6920044rwn; Tue, 13 Sep 2022 10:51:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR63BNsV1VraUvJBoUCs3SggYUi6WTPS0lZ0tfVwfFGXFPdRF6Z2FXs6JNRaw2sKtK+JDu/f X-Received: by 2002:a05:6a00:1a89:b0:536:5dca:a673 with SMTP id e9-20020a056a001a8900b005365dcaa673mr33511168pfv.71.1663091489193; Tue, 13 Sep 2022 10:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663091489; cv=none; d=google.com; s=arc-20160816; b=e43fACwRtO4KEZxD7fFwkFOassolJr1iPTKU58BfMSUvmSXvkEAQcuuxoayhv8OXmT +m2X/NcfUEiL/Q+5vZO7ePHIykp4zHpZff74Cs9v2Di3Yf88bxYislT7bpK7HFf7Cpgb phAoNdVK448BljPJCVEhIDzVpIqclWScXDQ0ran4N3VeV1xrgGOxHdvGajgew+9NnsG0 61zzQsjaEx7VLoO8FZ6wB13HBHtLR9EoQrKqQ7HfCIB+F3oo2Qgkrt8Zt6t35J0FpzYX 0yIJIMBieJ2r4YipcnU+Cod9kY3s9kLF2/YUdWQN00Mvl4uekrwXwM8ys+i8qpmEql07 0pyw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=c0GX2KUy/64DRDBkIvpqwuLdSlm4IORmoI5sumqxLI0=; b=Jo0uO9Cu8uGGuMdZBATj23Q7K2sNa+1hCzzdGp0NWdH5gO2Ky1wQW4SHuxrfJm7aBj 5RdqzbBPOlReeFWZSsam0MQPmdAyff6jJ7dvlNa+Z74MX+6bw+0sbeENJuDBUOPzERBb Ap4SFCTgp4ftCXhW3v2gzgkuZFpHesUoMGadW2qLS4z6YjLf1zL72GuHhJ25rlz4+9HP XnICVA/ihYm1pLAtPY0Os2G6dXkVFB0Isj5r2d77mRAqnVAxKj+bHm6anjxABK6qf0W3 QRTIVzrB//l27wdfo9PorjvgIqLMQNtpIEaT26oncY1FB5cfSNbGfDWappcYD7mlG0dc bfgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vJJt/wbK"; 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 g12-20020a63fa4c000000b0042b6e87d125si13293120pgk.218.2022.09.13.10.51.17; Tue, 13 Sep 2022 10:51:29 -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="vJJt/wbK"; 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 S232988AbiIMR0T (ORCPT + 99 others); Tue, 13 Sep 2022 13:26:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232797AbiIMRZs (ORCPT ); Tue, 13 Sep 2022 13:25:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D1D19F743; Tue, 13 Sep 2022 09:13:00 -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 3EAE9614FF; Tue, 13 Sep 2022 16:12:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28261C433D7; Tue, 13 Sep 2022 16:12:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1663085577; bh=qnvPs8zuOVXMLGic2bOXDptky5r4yPlzmOAuJGbqcLc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vJJt/wbK3ARGVFQAK83Sxh87+bFDfPW6vruBlq5svqco/4V01EyhiP4eGlJ3oLhYz 5roq4pvJofEzz/VSf4XmqXe4W2hbwdLqUywCqg5ddfAL7xQSrqvngxp0050X/5zzvF KjlQwUZ1EvytWPB4xRHWrDn/iGfapWuIMJA+IVT8= Date: Tue, 13 Sep 2022 18:13:21 +0200 From: Greg Kroah-Hartman To: Marc Kleine-Budde Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, =?iso-8859-1?B?Q3Pza+Fz?= Bence , Jakub Kicinski , Sasha Levin , Francesco Dolcini Subject: Re: [PATCH 5.19 123/192] net: fec: Use a spinlock to guard `fep->ptp_clk_on` Message-ID: References: <20220913140410.043243217@linuxfoundation.org> <20220913140416.124325107@linuxfoundation.org> <20220913141917.ukoid65sqao5f4lg@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220913141917.ukoid65sqao5f4lg@pengutronix.de> X-Spam-Status: No, score=-7.1 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 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 On Tue, Sep 13, 2022 at 04:19:17PM +0200, Marc Kleine-Budde wrote: > Hello Greg, > > On 13.09.2022 16:03:49, Greg Kroah-Hartman wrote: > > From: Cs?k?s Bence > > > > [ Upstream commit b353b241f1eb9b6265358ffbe2632fdcb563354f ] > > > > 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. > > > > 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@pengutronix.de/ > > Signed-off-by: Cs?k?s Bence > > Tested-by: Francesco Dolcini # Toradex Apalis iMX6 > > Link: https://lore.kernel.org/r/20220901140402.64804-1-csokas.bence@prolan.hu > > Signed-off-by: Jakub Kicinski > > Signed-off-by: Sasha Levin > > there's a revert pending for this patch: > > | https://lore.kernel.org/all/20220912070143.98153-1-francesco.dolcini@toradex.com > > ...as it causes troubles in 6.0-rc4: > > | https://lore.kernel.org/all/20220907143915.5w65kainpykfobte@pengutronix.de/ > | https://lore.kernel.org/all/CAHk-=wj1obPoTu1AHj9Bd_BGYjdjDyPP+vT5WMj8eheb3A9WHw@mail.gmail.com/ > > please drop this patch. Now dropped from all 3 queues, thanks. greg k-h