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: 153854 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2130102ljp; Fri, 14 Dec 2018 06:22:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/XWCnHiiBJY2FUOsAdfJyndnP0yqx6IhiEzvc0LORFCkpeu6r7KjgJiDFc8po136sUO+qJK X-Received: by 2002:a63:d047:: with SMTP id s7mr2852706pgi.311.1544797355245; Fri, 14 Dec 2018 06:22:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544797355; cv=none; d=google.com; s=arc-20160816; b=mOlUs2ndxLJczCHygq+pKe7a7IgaoHdclji335U8yyfl0kLyn4sJG8Sl6UJWciDlXR v5wgLHULnEPx2xKr8+tt+aYphaBenOtQYcidl87pP1iAwn8srrvM8kcLPC3YhmM42Q1N O744IOwWKVUoB943n+09f5UCWxOwePpq+fzXcn+Ld3DCg3xl3PTlvRQLONY3E+r3qyf2 c0GTmV+zNZJzbO1L0blYH4C6UiU8/rSc0uX0vZ7RXsUNxO9592X05ip4JmUArR/Pnrno sqfUiHZwvNMcZIj2CHnEZguzW946ewzyG9wa9hoTh4gceiXHs6ljWH8PuTfc1eV914lj 3c8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=LfTTvp443Dgh5VY+fhlpQqhAl+xvk/ZihGH9oJSH5yk=; b=OyG4yt5LcCCrtDxCnYXYVuL44wD0ecFMZIDhckOfWDAGXkaHVswHxYC2KtjKUDvwrp HSlPHy485QjOEctVXQjQUS13OhQ9wMffc4vVyAnWL70aJPt2Z4uM3XRnakZLpKxeRJvF NOMF7jSwUvCdXO1t/743jOn978808DFhDEHA5X1LJt7Hmsrquqbs7/QtP+UoSOAUtjiL Y7Ec5zS+P6oNrE01ClKOSZvdbKu20aHLciRn4XVAHvtJg/04T3cgKjXJbIk1Gi5815y8 6f+cf39pdzSI/ddJOSOO5Gjp9x3PG+2PZsGIbJpgh/SBzr7zZMpXU+othSavUhO+7yh8 1XDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YrFhZXFx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21si4023462pgv.111.2018.12.14.06.22.34; Fri, 14 Dec 2018 06:22:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YrFhZXFx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729714AbeLNOWd (ORCPT + 31 others); Fri, 14 Dec 2018 09:22:33 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:33056 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbeLNOWd (ORCPT ); Fri, 14 Dec 2018 09:22:33 -0500 Received: by mail-wr1-f67.google.com with SMTP id c14so5636653wrr.0 for ; Fri, 14 Dec 2018 06:22:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=LfTTvp443Dgh5VY+fhlpQqhAl+xvk/ZihGH9oJSH5yk=; b=YrFhZXFxGPPCjxnRFsFiwu+dMSt/OBMPxtJKK6uG/oEhJrT5eW07WjO8dEKHUuw1Ys dcJT6tuXvOq/uP4mG+Ds0lv2P1TnJ4ACktYl43bqxr070EokgL9ABdcBoBUZsZC5tC6n c84xDFtc7DgnzFotuxIfyOoakytDwyQQD6uKM= 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=jbpxtRXjc8zU/LshMBFSSX9cwv5E1v7oBZEzCV1Cm2BSASHBEjhC0VNDZaaDt4jWgK mCxxv6BzmdGT4++tGWSgrFJiQmaF+yaDqO+27Ibg6797fnNS4e1UhO4vh8zeXtKAO53c iOl7EMOKuVGaM7UvPRgOTl1UuegjexinY4f4ZDxThppZ2pZqz98W0P2DWo6ArwV0dK0A V5Ipr+N4mSf0BRs5hL9Dkl7Q8Gey1ZqvMy+BTuYdCCs4EZdoWRyvLZEStwYN4RMuAg9m yW2UY8aQ+XHBlKSkIGF1HpznawEjSQsQ5N8nR6mQYvKohctsgpZyC6AJmkSr/n+eNOHC x3Fw== X-Gm-Message-State: AA+aEWZ4pLWJGWAMpqZyO42zo+OL2b2zu+iHJ6Ol6JUcdli3Z9dsPHF1 IzJKfqsbzQ3TTAEBacXJkVK+tw== 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 Cc: ulf.hansson@linaro.org, Vincent Guittot 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4 Reviewed-by: Ulf Hansson