Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1451460ybv; Thu, 13 Feb 2020 23:42:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxBH7XIB/pNH/ua2e0msinqrPivfyYZfcTTVYCGgIpNZQ0RyNIPJEqLtFBS3xrg5iH32LQ+ X-Received: by 2002:a05:6830:15d2:: with SMTP id j18mr1272691otr.216.1581666149396; Thu, 13 Feb 2020 23:42:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581666149; cv=none; d=google.com; s=arc-20160816; b=YkCelkpG2bP9Ft5OrYzrBOuP08IddEVrp+jot6Z4WLvWj0TtGPcmwFCx1qHGukMB9d wBmeX/2SBD0QEPzOISdNZvR+N90GGFzZ9rpAjakbcA+nNhJHrCjIqiYtHGxEthAz8+dw LiDS0w9brKOcVn9USTicgV1jq7IUIzAa4ACM9eL6idm+wFd0LiE0va+pSjpYSIkbEKDV 3vLTSTMFVx74oWOMP0C9Jh6v8kspvhNS7LwnsxI+LE4u1GYg5lDmO01iExrwpxoIpQg+ 4nJT5SOOfRuQVdglx+hDPTDRq1cT9yYEhIjwxi1CkXo1n2VwNfioIYP125URyNo5lzZl umqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=2kAvSpKX8FB15U6aXFEST3lnxEZWG/FEGmzrxTUzKkI=; b=N0e3j1geEC7Zb8c4I1EyJq+AY+PKqf54WtvyqS+qJ/rch4MNLeQ3BvDeCzvrML+HLn 30YDhpyvnMeBguQzeE5GZflIUluhTjUSWaeikJvcx1QdnXwX6IcVRWeRwVJ9+CGao+ww fBt8jEdo2T2IJnh+rDATzqhp1okR54ZWtAjyMzUb2d8L1+Atz58jlYidN3qkrSLWwF36 37LP+8JE4mlwMaxp8krBpIKf1uW5gQxAROGVS3D4z2dx/WpyZDPgHqu64NoXKUtQw9bZ RFUVdu3aGfwiuT/+oOByboLDZC4RKZ7ayc9u4ErhkyF7IE+LdyHf97w34ZnLfq7LNuGO rUSQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t192si2211390oif.75.2020.02.13.23.42.17; Thu, 13 Feb 2020 23:42:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728914AbgBNHmC (ORCPT + 99 others); Fri, 14 Feb 2020 02:42:02 -0500 Received: from mga11.intel.com ([192.55.52.93]:49587 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbgBNHmC (ORCPT ); Fri, 14 Feb 2020 02:42:02 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2020 23:42:01 -0800 X-IronPort-AV: E=Sophos;i="5.70,439,1574150400"; d="scan'208";a="227513170" Received: from ablank-mobl.ger.corp.intel.com (HELO localhost) ([10.252.39.179]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2020 23:41:59 -0800 From: Jani Nikula To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Amit Kucheria , Joonas Lahtinen , Rodrigo Vivi , intel-gfx@lists.freedesktop.org Subject: Re: [PATCH 16/28] drm: i915: Call cpu_latency_qos_*() instead of pm_qos_*() In-Reply-To: <1759702.XAW9B0MHEz@kreacher> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <1654227.8mz0SueHsU@kreacher> <1759702.XAW9B0MHEz@kreacher> Date: Fri, 14 Feb 2020 09:42:26 +0200 Message-ID: <87k14p62e5.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Feb 2020, "Rafael J. Wysocki" wrote: > From: "Rafael J. Wysocki" > > Call cpu_latency_qos_add/update/remove_request() instead of > pm_qos_add/update/remove_request(), respectively, because the > latter are going to be dropped. > > No intentional functional impact. Heh, that's careful, I usually boldly claim "no functional changes" on patches like this. For merging via whichever tree suits you, Acked-by: Jani Nikula > > Signed-off-by: Rafael J. Wysocki > --- > drivers/gpu/drm/i915/display/intel_dp.c | 4 ++-- > drivers/gpu/drm/i915/i915_drv.c | 12 +++++------- > drivers/gpu/drm/i915/intel_sideband.c | 5 +++-- > 3 files changed, 10 insertions(+), 11 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c > index c7424e2a04a3..208457005a11 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -1360,7 +1360,7 @@ intel_dp_aux_xfer(struct intel_dp *intel_dp, > * lowest possible wakeup latency and so prevent the cpu from going into > * deep sleep states. > */ > - pm_qos_update_request(&i915->pm_qos, 0); > + cpu_latency_qos_update_request(&i915->pm_qos, 0); > > intel_dp_check_edp(intel_dp); > > @@ -1488,7 +1488,7 @@ intel_dp_aux_xfer(struct intel_dp *intel_dp, > > ret = recv_bytes; > out: > - pm_qos_update_request(&i915->pm_qos, PM_QOS_DEFAULT_VALUE); > + cpu_latency_qos_update_request(&i915->pm_qos, PM_QOS_DEFAULT_VALUE); > > if (vdd) > edp_panel_vdd_off(intel_dp, false); > diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c > index f7385abdd74b..74481a189cfc 100644 > --- a/drivers/gpu/drm/i915/i915_drv.c > +++ b/drivers/gpu/drm/i915/i915_drv.c > @@ -502,8 +502,7 @@ static int i915_driver_early_probe(struct drm_i915_private *dev_priv) > mutex_init(&dev_priv->backlight_lock); > > mutex_init(&dev_priv->sb_lock); > - pm_qos_add_request(&dev_priv->sb_qos, > - PM_QOS_CPU_DMA_LATENCY, PM_QOS_DEFAULT_VALUE); > + cpu_latency_qos_add_request(&dev_priv->sb_qos, PM_QOS_DEFAULT_VALUE); > > mutex_init(&dev_priv->av_mutex); > mutex_init(&dev_priv->wm.wm_mutex); > @@ -568,7 +567,7 @@ static void i915_driver_late_release(struct drm_i915_private *dev_priv) > vlv_free_s0ix_state(dev_priv); > i915_workqueues_cleanup(dev_priv); > > - pm_qos_remove_request(&dev_priv->sb_qos); > + cpu_latency_qos_remove_request(&dev_priv->sb_qos); > mutex_destroy(&dev_priv->sb_lock); > } > > @@ -1226,8 +1225,7 @@ static int i915_driver_hw_probe(struct drm_i915_private *dev_priv) > } > } > > - pm_qos_add_request(&dev_priv->pm_qos, PM_QOS_CPU_DMA_LATENCY, > - PM_QOS_DEFAULT_VALUE); > + cpu_latency_qos_add_request(&dev_priv->pm_qos, PM_QOS_DEFAULT_VALUE); > > intel_gt_init_workarounds(dev_priv); > > @@ -1273,7 +1271,7 @@ static int i915_driver_hw_probe(struct drm_i915_private *dev_priv) > err_msi: > if (pdev->msi_enabled) > pci_disable_msi(pdev); > - pm_qos_remove_request(&dev_priv->pm_qos); > + cpu_latency_qos_remove_request(&dev_priv->pm_qos); > err_mem_regions: > intel_memory_regions_driver_release(dev_priv); > err_ggtt: > @@ -1296,7 +1294,7 @@ static void i915_driver_hw_remove(struct drm_i915_private *dev_priv) > if (pdev->msi_enabled) > pci_disable_msi(pdev); > > - pm_qos_remove_request(&dev_priv->pm_qos); > + cpu_latency_qos_remove_request(&dev_priv->pm_qos); > } > > /** > diff --git a/drivers/gpu/drm/i915/intel_sideband.c b/drivers/gpu/drm/i915/intel_sideband.c > index cbfb7171d62d..0648eda309e4 100644 > --- a/drivers/gpu/drm/i915/intel_sideband.c > +++ b/drivers/gpu/drm/i915/intel_sideband.c > @@ -60,7 +60,7 @@ static void __vlv_punit_get(struct drm_i915_private *i915) > * to the Valleyview P-unit and not all sideband communications. > */ > if (IS_VALLEYVIEW(i915)) { > - pm_qos_update_request(&i915->sb_qos, 0); > + cpu_latency_qos_update_request(&i915->sb_qos, 0); > on_each_cpu(ping, NULL, 1); > } > } > @@ -68,7 +68,8 @@ static void __vlv_punit_get(struct drm_i915_private *i915) > static void __vlv_punit_put(struct drm_i915_private *i915) > { > if (IS_VALLEYVIEW(i915)) > - pm_qos_update_request(&i915->sb_qos, PM_QOS_DEFAULT_VALUE); > + cpu_latency_qos_update_request(&i915->sb_qos, > + PM_QOS_DEFAULT_VALUE); > > iosf_mbi_punit_release(); > } -- Jani Nikula, Intel Open Source Graphics Center