Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5466396pxb; Wed, 26 Jan 2022 12:39:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwluW5X7n9jirpHkebdKMaZMPrITBcEnqnCvg0c0bFaQVmA6e+6PzrVJBcl9LEKWGnbnE8W X-Received: by 2002:a17:903:1209:: with SMTP id l9mr122054plh.3.1643229589221; Wed, 26 Jan 2022 12:39:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643229589; cv=none; d=google.com; s=arc-20160816; b=Yl6IgFaowrLgk4KBOVeC7751MKe/qZu2ZCL+LcL68b3wAD5x2b/WbGkC25QyoM2XAz aEBXPkYJHa6wyOzxJjZic/poX5YMdr1N29bAHpyNWyOHUk37XzimVd6xQaRjUQrBg2gT i30mvB5lyFFEkhy/vnLCIVmOZqsXe2HivGUO9HGs9I1Nv9O3LRF5431Yvc3gChnaL6YG SMEQDZyY2B0C6qj4wakwAjcTeg7leBwTtkLoqPfxryXz0lUUfBtWyknXLC7n3OcvXSsE E3lZ0AmLXDg2q+KiO96tryQ64VatEVsJhIPknAuiUciyywiLeaUGcialBJioCVd5C4F1 6png== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=jhWQQT2X1ufUc9vxZjnrSIj40LNmlW7bD/LWLutqm64=; b=YyZtQmHDt18M6oM4i4k4ZiaGh9m7g2wtxyIDDa+utqyApbXNFQmgtKt1iQepikdOnW GK0QtMNrtCpR04DF97xDQrs4HQwU7lwhmxg7x7EfUUgX/rTS6vDTM6usPBSfz7ctBKWQ wphQiKj3VmGdwsx88ybUt9LSnepDhP/HN/97QV9rksN52XmzQN5DTkCMUt6e7ZVQFMhh G5CXx4QerO7hQCIgXWEGIX9MhVJid3hP9+F4iWTwATR5f5r6CVaDGj1Z9cbnELRfDLuP 27XDiZkiFy6pKvE9xRBcHn2rLC/NLIeNoZKqvQ3UoMwPSDiIsnuiSJzMOxOiCsF0fvew 2jYQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si218286plo.378.2022.01.26.12.39.36; Wed, 26 Jan 2022 12:39:49 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238769AbiAZJIq convert rfc822-to-8bit (ORCPT + 99 others); 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