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 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 CEABFC369AB for ; Tue, 15 Apr 2025 16:27:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zl5tn4AyuprTA62YOg6lW65TpgQbPWMR7wV63YQqopM=; b=y01RtjfkTFawmhMyIpI4W9O1Th 0sOilj7xvPsaL6fGELxziISkkk3Je3SrDsTl9kpYm8PRCs0/AdA5PX4vgie+64HSy2lQMlTJa8WKJ FGUmGBfa4Nlj6zsw4u1YKbp8F8yKIQUrULC73DwAlO6f3tHavBRUeXL1YMRZsV1mlY3wm54GiH7Zf 8JwsedjxPTG0RpqFZIpM8AnT+46b7+jR3EPfKHDND+hvJusOVaDM/Z0/C4zoaeShXf4NZXsen4Xog VLzwQy/uF52qvjVLWSfzjw4kvBS5Z77N7Z/Q08LREYMRvBtd1att3LfHkV3MYxFO5inrsFl6UQ9kw vPXb501Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4j8P-00000006PYR-3ZJB; Tue, 15 Apr 2025 16:27:41 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4iVX-00000006J3V-0l5G for linux-arm-kernel@lists.infradead.org; Tue, 15 Apr 2025 15:47:32 +0000 Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7B29C725; Tue, 15 Apr 2025 17:45:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1744731923; bh=bbkjmiJcxIoYe1Svw2F1maJ0updDHydTwr2isqonX3U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SUOUXvKeXcxohklxFHUkWWXRp0PbligOUf+58jeoCTYXSLluDxiPm7W4J1mvx7zGT 7Gic2UrUhA7FZTS7I/HHcCQy+S+f6KVM5mJ1B069/KntDGu2FYaENisZg7C3J33xWd +3dsmvNnfTy/N+W5ih9LAzE/vMibEOVXybehxp4k= Date: Tue, 15 Apr 2025 18:47:24 +0300 From: Laurent Pinchart To: POPESCU Catalin Cc: Jai Luthra , Shawn Guo , "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "devicetree@vger.kernel.org" , "imx@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "m.felsch@pengutronix.de" , GEO-CHHER-bsp-development , "stefan.klug@ideasonboard.com" Subject: Re: [PATCH] arm64: dts: imx8mp: add cpuidle state "cpu-pd-wait" Message-ID: <20250415154724.GG9439@pendragon.ideasonboard.com> References: <20241007134424.859467-1-catalin.popescu@leica-geosystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250415_084731_538629_642F4846 X-CRM114-Status: GOOD ( 22.67 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Catalin, On Tue, Apr 15, 2025 at 03:42:22PM +0000, POPESCU Catalin wrote: > Hi Jai, > > This issue was already reported by Stefan. The problem is that I don't > have a Debix board to investigate. > The main difference b/w WFI and cpu-pd-wait is that the first doesn't > call PSCI/TF-A. So, the issue looks to be related to some settings in > the TF-A. Jai, are you using mainline U-Boot and TF-A, or a downstream version of either (or both) ? > What I don't get is why I don't see this issue neither on our IMX8MP > specific design nor on the EVK, which uses the same PHY as the Debix board. > > On 14/04/2025 14:07, Jai Luthra wrote: > > On Oct 21, 2024 at 17:42:34 +0800, Shawn Guo wrote: > >> On Mon, Oct 07, 2024 at 03:44:24PM +0200, Catalin Popescu wrote: > >>> So far, only WFI is supported on i.MX8mp platform. Add support for > >>> deeper cpuidle state "cpu-pd-wait" that would allow for better power > >>> usage during runtime. This is a port from NXP downstream kernel. > >>> > > Since the introduction of this patch in mainline, I am facing sluggish > > network performance with my Debix Model-A board with i.MX8mp SoC. > > > > The network latency jumps to >1s after almost every other packet: > > > > PING debix (10.0.42.5) 56(84) bytes of data. > > 64 bytes from debix (10.0.42.5): icmp_seq=1 ttl=64 time=1008 ms > > 64 bytes from debix (10.0.42.5): icmp_seq=2 ttl=64 time=0.488 ms > > 64 bytes from debix (10.0.42.5): icmp_seq=3 ttl=64 time=1025 ms > > 64 bytes from debix (10.0.42.5): icmp_seq=4 ttl=64 time=0.810 ms > > 64 bytes from debix (10.0.42.5): icmp_seq=5 ttl=64 time=590 ms > > 64 bytes from debix (10.0.42.5): icmp_seq=6 ttl=64 time=0.351 ms > > ^C > > --- debix ping statistics --- > > 7 packets transmitted, 6 received, 14.2857% packet loss, time 6126ms > > rtt min/avg/max/mdev = 0.351/437.416/1024.755/459.370 ms, pipe 2 > > darkapex at freya in ~ > > > > If I revert the patch, or disable the deeper cpuidle state through > > sysfs, the issue goes away. > > > > # echo 1 > /sys/devices/system/cpu/cpu$i/cpuidle/state1/disable > > > > PING debix (10.0.42.5) 56(84) bytes of data. > > 64 bytes from debix (10.0.42.5): icmp_seq=1 ttl=64 time=0.482 ms > > 64 bytes from debix (10.0.42.5): icmp_seq=2 ttl=64 time=2.28 ms > > 64 bytes from debix (10.0.42.5): icmp_seq=3 ttl=64 time=2.26 ms > > 64 bytes from debix (10.0.42.5): icmp_seq=4 ttl=64 time=0.848 ms > > 64 bytes from debix (10.0.42.5): icmp_seq=5 ttl=64 time=0.406 ms > > ^C > > --- debix ping statistics --- > > 5 packets transmitted, 5 received, 0% packet loss, time 4051ms > > rtt min/avg/max/mdev = 0.406/1.255/2.280/0.842 ms > > > >>> Signed-off-by: Catalin Popescu > >> > >> Applied, thanks! -- Regards, Laurent Pinchart