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 X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D24D1C35646 for ; Fri, 21 Feb 2020 14:58:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A1D7524650 for ; Fri, 21 Feb 2020 14:58:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ipb0gqKp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728937AbgBUO6x (ORCPT ); Fri, 21 Feb 2020 09:58:53 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43752 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728699AbgBUO6w (ORCPT ); Fri, 21 Feb 2020 09:58:52 -0500 Received: by mail-wr1-f67.google.com with SMTP id r11so2397364wrq.10 for ; Fri, 21 Feb 2020 06:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oEykVJQOde/kw8FuzYyK6TbVeNPZu6MWcUJ10Pto0IA=; b=ipb0gqKpnH8eZQgist6/WhFHScfIIDaUKF+YlbE6HPBeFQIemlkloXs81cSL1ZN4iZ mTkfja6gIWCuppriqnMHuyB1am2J5DJYqQlrQ1HcbraCInK3TJESZy+li98cpiIEKEbP 3Urd/YdG2Xo4GXDBzarxrAO+CgdH44P3OeR2Ff8gfoGNyJLRPZKeC9J39b41W1GJ9uWk 18JrOBUtIvKTSGblB/mw1Bylv5ErmL/bxLhSrf/Gz2BXKca9J1xPWNFtivCbmdMWUIQa GhPNOirMvH/3Y5kPYR2jHURDfNOSD70w79VpYYODoogSQAGDhzrHoFKgeyu9jtA33sBK aZhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oEykVJQOde/kw8FuzYyK6TbVeNPZu6MWcUJ10Pto0IA=; b=UDBDBLI5GU5x0c55OEdlMojQKRk8JPyroUCjhxpacVnb67r5plS4VsXXTMb1vlsRs+ HzmPfdzOxosA8cea+q83huVZythseRRpi6V6SZd8glaRY8MFt7175PHCEe8+2Zu48duw h5Fztd3a2Q4Ggpa95T78u9sRNchXZQeQ66nqLrJ7V6vV3f07Vgm6lKVW9Wtfkn7cromc brEJ2dFdnxv6XO3DS2MWXDeGuTRojtyjSR2EKWbGfvy4MWMo3jSAkl9991upvOqKmiCp SS4+4ACMWahMoJ8LDqzPDofZu2iRlvogciAsweKU8lvjw2GaKHOjRFkfn0p9eCJoaQk7 1PAA== X-Gm-Message-State: APjAAAXpms4c6B7g6zRrsgfvRQuajjyidEYhx2Zwv1GzaitzFY1HEhjM bAmU7nsLVZ5DPA1YBG6cqpqUdg== X-Google-Smtp-Source: APXvYqw5xErxKhMBv5gx7PiJTT4buaJCBAgeciEkFL3HX/fDBfWZq5ZsZ5zArg6gc4dn9bxvuaNzFQ== X-Received: by 2002:adf:b352:: with SMTP id k18mr48018831wrd.242.1582297130530; Fri, 21 Feb 2020 06:58:50 -0800 (PST) Received: from linaro.org ([2a01:e34:ed2f:f020:903b:a048:f296:e3ae]) by smtp.gmail.com with ESMTPSA id b21sm4153587wmd.37.2020.02.21.06.58.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Feb 2020 06:58:49 -0800 (PST) Date: Fri, 21 Feb 2020 15:58:47 +0100 From: Daniel Lezcano To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Peter De Schrijver , "Rafael J. Wysocki" , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Jasper Korten , David Heidelberg , Peter Geis , linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 03/17] ARM: tegra: Remove pen-locking from cpuidle-tegra20 Message-ID: <20200221145847.GH10516@linaro.org> References: <20200212235134.12638-1-digetx@gmail.com> <20200212235134.12638-4-digetx@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200212235134.12638-4-digetx@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Thu, Feb 13, 2020 at 02:51:20AM +0300, Dmitry Osipenko wrote: > Pen-locking is meant to block CPU0 if CPU1 wakes up during of entering > into LP2 because of some interrupt firing up, preventing unnecessary LP2 > enter that will be resumed immediately. Apparently this case doesn't > happen often in practice, I checked how often it takes place and found > that after ~20 hours of browsing web, managing email, watching videos and > idling (15+ hours) there is only a dozen of early LP2 entering abortions > and they all happened while device was idling. Thus let's remove the > pen-locking and make LP2 entering uninterruptible, simplifying code quite > a lot. This will also become very handy for the upcoming unified cpuidle > driver, allowing to have a common LP2 code-path across of different > hardware generations. > > Acked-by: Peter De Schrijver > Tested-by: Peter Geis > Tested-by: Jasper Korten > Tested-by: David Heidelberg > Signed-off-by: Dmitry Osipenko Acked-by: Daniel Lezcano