From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA62DC63682 for ; Wed, 26 Jan 2022 09:08:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238771AbiAZJIq convert rfc822-to-8bit (ORCPT ); Wed, 26 Jan 2022 04:08:46 -0500 Received: from lithops.sigma-star.at ([195.201.40.130]:51450 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231573AbiAZJIp (ORCPT ); Wed, 26 Jan 2022 04:08:45 -0500 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id CD33060F6B7A; Wed, 26 Jan 2022 10:08:43 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id dIlqLNVsVTqD; Wed, 26 Jan 2022 10:08:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 5043362DA600; Wed, 26 Jan 2022 10:08:43 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id EiNRw8Th-YAu; Wed, 26 Jan 2022 10:08:43 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 2A48A62DA5F6; Wed, 26 Jan 2022 10:08:43 +0100 (CET) Date: Wed, 26 Jan 2022 10:08:43 +0100 (CET) From: Richard Weinberger To: David Decotigny Cc: linux-kernel , Miquel Raynal , Vignesh Raghavendra , linux-mtd , David Decotigny Message-ID: <1788102040.295765.1643188123063.JavaMail.zimbra@nod.at> In-Reply-To: <20220126085735.575625-1-decot+git@google.com> References: <20220126085735.575625-1-decot+git@google.com> Subject: Re: [PATCH RFC v1 1/1] mtd_blkdevs: avoid soft lockups with some mtd/spi devices MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF96 (Linux)/8.8.12_GA_3809) Thread-Topic: mtd_blkdevs: avoid soft lockups with some mtd/spi devices Thread-Index: 7VNwHvC77lwvVOD8Pm7M1mqeog4vaw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David, ----- Ursprüngliche Mail ----- > Von: "David Decotigny" > An: "linux-kernel" > CC: "Miquel Raynal" , "richard" , "Vignesh Raghavendra" , > "linux-mtd" , "David Decotigny" > Gesendet: Mittwoch, 26. Januar 2022 09:57:35 > Betreff: [PATCH RFC v1 1/1] mtd_blkdevs: avoid soft lockups with some mtd/spi devices > From: David Decotigny > > With some spi devices, the heavy cpu usage due to polling the spi > registers may lead to netdev timeouts, RCU complaints, etc. This can > be acute in the absence of CONFIG_PREEMPT. This patch allows to give > enough breathing room to avoid those false positives. is the problem real or not? From your description it is not clear to me. Please include lockdep splats and/or hung-task logs in the commit message. I have no problem with adding a cond_resched() but first we need to understand the issue a little better. Thanks, //richard