From patchwork Fri Dec 14 14:22:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 10731239 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F0646746 for ; Fri, 14 Dec 2018 14:22:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82E732D532 for ; Fri, 14 Dec 2018 14:22:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 767212D535; Fri, 14 Dec 2018 14:22:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3BA862D532 for ; Fri, 14 Dec 2018 14:22:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 161656F522; Fri, 14 Dec 2018 14:22:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id C27046F521 for ; Fri, 14 Dec 2018 14:22:32 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id 96so5616248wrb.2 for ; Fri, 14 Dec 2018 06:22:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=LfTTvp443Dgh5VY+fhlpQqhAl+xvk/ZihGH9oJSH5yk=; b=UBlMd6eJf8dOoGVnVfH4I63xf15srVzSRpvgVodgzL0T85X3SDv2oqnR349vLD1pDY MjZQ8i9YLcp89ZQQUTKET7eE9LTlL4KGovrbnJS9eoXKDkYj3fKWoDfkkqIs06AejCZI hGVlO6PNtEnKjta0+V3rAjIQpjh4EIzHPqyeIjRC9bUMgiVisxLnun2cJD/iJeoOPu0p 5CT0wh6rL8C7vPtSTcM/esIK/N4RPRpBgpw/wDW5N2xiXmejSfZ6rlcekBvtkAhRLZUz VM8vmoSWPTS0H6LRPeZscRyJxfTwTpeXSqbDet39m1iCaxVkrsBE0e8jCQFnvUXTQC5h 3Fvw== X-Gm-Message-State: AA+aEWbEhU8btJOLCAuFGh7FuirWb6zmJDcPPy4NaAMLeVkiP8CgryID +0GUMdz5YWx6ITdp2QwvQjYjYA== X-Google-Smtp-Source: AFSGD/XzDh+V9qnLFcjemCb+Bz/pOK7ogonfDvzpO1J8Hf9MpcK8apbfQLJDAgjthhnDNsaRy7m2Nw== X-Received: by 2002:adf:be8b:: with SMTP id i11mr2918872wrh.235.1544797351143; Fri, 14 Dec 2018 06:22:31 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:f:6020:ed2e:a6ad:f6ef:ff8e]) by smtp.gmail.com with ESMTPSA id m4sm25793829wmi.3.2018.12.14.06.22.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Dec 2018 06:22:30 -0800 (PST) From: Vincent Guittot To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, thara.gopinath@linaro.org, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/3] PM/pm_runtime: move on hrtimer and nsec Date: Fri, 14 Dec 2018 15:22:24 +0100 Message-Id: <1544797347-20601-1-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ulf.hansson@linaro.org, Vincent Guittot MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Move pm_runtime on hrtimer and raw ns time to get finer granularity Patch 1 moves runtime_pm autosuspend on hrtimer framework Patch 2 moves time accounting on raw ns. This patch initially used ktime instead of raw ns but it was easier to move i915 driver on raw ns than on ktime Patch 3 fixes drm/i915 driver that uses PM core fields Changes since v1: - updated commit message of patch 1 - Added patches 2 & 3 to move runtime_pm accounting on raw ns Thara Gopinath (1): PM/runtime:Replace jiffies based accouting with ktime based accounting Vincent Guittot (2): PM/pm_runtime: move autosuspend on hrtimer drm/i915: Move to new PM core fields drivers/base/power/runtime.c | 73 ++++++++++++++++++++++------------------- drivers/base/power/sysfs.c | 11 +++++-- drivers/gpu/drm/i915/i915_pmu.c | 12 +++---- drivers/gpu/drm/i915/i915_pmu.h | 4 +-- include/linux/pm.h | 11 ++++--- include/linux/pm_runtime.h | 6 ++-- 6 files changed, 64 insertions(+), 53 deletions(-)