Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3524850pxb; Fri, 5 Nov 2021 17:39:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5OHDe8EDkcYLV4EwIE1PwTAp9UfSGuaenXfRtAP/XeaWSPNecCuS0JrNY1MdT9ETYIsA3 X-Received: by 2002:a05:6e02:1606:: with SMTP id t6mr18816383ilu.40.1636159144362; Fri, 05 Nov 2021 17:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636159144; cv=none; d=google.com; s=arc-20160816; b=BxzVWvKQLuJxhWui5lFwTEaqNwk6zBel1jT/ZH1KCrglLSDE8yZypW11fcCr1Lh1HE 7kPMg48gom5y/ccTcQx885iX0i5A43eZnPxyEJURicEQo/gaAjM/PxNDYY8Outfp7XSe bOA6P+d4rqffcL0LyGkZ5TFLilwuJe7u+u/2L0SNUaDb6tcgtP0DQNoCavCn7WQvQsYQ ZIxIxU8M1Ao/9I2eSriEJzLk1PGmvo3w25AbwW11GNESsNkGyAHcKGne1Zry3vlSxk81 xbuJ90ZljCfY2/MNKRMI5DEqJ3SPz3Ntz+lLTx77wkusXRIWJYmNxwvSfPqPlg7/SYPp TKEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8JOiyVnxfxaZAhXkgjHfAK5HrLExH5oiye43Nc9y5lE=; b=kLD7I/uHvO4XDClAo3AXg6ES3liv1SPt0GmVVnKSjwHv1giGkrswZGVB+/wch4HHcT XIk2+iL26ISD+vbTlglP6VPVlDn/91StH0HmJSPayF4HXknTkA9Nl1lKkOuGn4uwEfbi cKaYJXocICUhOmCUH9RglKa1OEeDs3yU5rjA17MDudBwOCNcQx4hg1NuQVI1I5FONQpc 4VzPlVMp3e62ic4jKpJrNnM93keIjh5/PUuW5f1aDDD3slUIC9xrjCHyJp9+ENGPEBER +XpzD35iJdl5R0tahh+WrPGcWVjuM6KvWNDfiWePVIjTNS3gSigLA+0K0NgY/4N9vWXj 4bTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=Mkh7tjdb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si9522525ilv.42.2021.11.05.17.38.48; Fri, 05 Nov 2021 17:39:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=Mkh7tjdb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233625AbhKEUbp (ORCPT + 99 others); Fri, 5 Nov 2021 16:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233614AbhKEUbo (ORCPT ); Fri, 5 Nov 2021 16:31:44 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 630BDC061205 for ; Fri, 5 Nov 2021 13:29:04 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id u191so16272741oie.13 for ; Fri, 05 Nov 2021 13:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=8JOiyVnxfxaZAhXkgjHfAK5HrLExH5oiye43Nc9y5lE=; b=Mkh7tjdb+bN/TRolya14M3jL1kGZiyedL6PMEh8LA19iejEw/DTZsdk3WhwKP9870o gnhPaIE6lMNPDZXnoMl3bV4nqSkCnnVcBUV3WZyzt1Jlxzy1vhG8Z92AeNC+4BByn6GD cCblwnlHT/5PSL/T9MENFZI4KIBTqCwXE6ilRQrgZxV+XzkVuFDkfGZw8oq/y1igL6ZO p1JnAnwT4gQouVR3lGoiwxh/Eh2ljiQczHGJXxyMYIy848ciIc8G5EGt5DPONSQz7ldK 1WgeNYkxTZJbcX6UmDqXNRtz6/cLKOeC1vNFWWMo1rvp69mJCVwhxX5X2UvKrSl1pifH ADPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=8JOiyVnxfxaZAhXkgjHfAK5HrLExH5oiye43Nc9y5lE=; b=n6H8+87OifaB/H/xapNqxNc+85ycjrCAYNr+JJsWt5GUcp2Nj1Q70ifBsi+K++aTcL PPDqxTpguMFHAHergCM+xkr2I7r3QxruGrmAq5TWCXpgg/6+6QHSFC2wE5GbA5MtU405 MeJ3J3UsqEK9UMMEHi45MqyPQYNErj4UzZzSBkv4wL4JRHXCAz+wigY8pjBIAUmhvbl/ EpwayZb16Qc1rpTnSVwt2PcsV5Ujfa5mKyY+oZW2w3vfbDjO+1/cVrRj/cDFnRRQKkv3 Gd7q7spkXCPz8+cyNB/lUKBKwm8TR8VdVxFXNnUawtiz68P/qIucNThvBQ4hxYQ3Y1i3 jtug== X-Gm-Message-State: AOAM531bJYa9neugXJFQeVxHVXstQxEZvM+fzxW2BIYJMhOpwwuqU3J7 RZVIV2CAGI9RSQIBH8jipwBawQ== X-Received: by 2002:a05:6808:158c:: with SMTP id t12mr24051841oiw.24.1636144143770; Fri, 05 Nov 2021 13:29:03 -0700 (PDT) Received: from [192.168.11.48] (cpe-173-173-107-246.satx.res.rr.com. [173.173.107.246]) by smtp.gmail.com with ESMTPSA id c18sm3551722ots.64.2021.11.05.13.29.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Nov 2021 13:29:03 -0700 (PDT) Message-ID: Date: Fri, 5 Nov 2021 15:29:01 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v2] drm/msm/devfreq: Fix OPP refcnt leak Content-Language: en-US To: Rob Clark , dri-devel@lists.freedesktop.org Cc: linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Rob Clark , Douglas Anderson , Sean Paul , David Airlie , Daniel Vetter , open list References: <20211105202021.181092-1-robdclark@gmail.com> From: Steev Klimaszewski In-Reply-To: <20211105202021.181092-1-robdclark@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/5/21 3:20 PM, Rob Clark wrote: > From: Rob Clark > > Reported-by: Douglas Anderson > Fixes: 9bc95570175a ("drm/msm: Devfreq tuning") > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/msm_gpu_devfreq.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/msm/msm_gpu_devfreq.c b/drivers/gpu/drm/msm/msm_gpu_devfreq.c > index d32b729b4616..07f1169df89b 100644 > --- a/drivers/gpu/drm/msm/msm_gpu_devfreq.c > +++ b/drivers/gpu/drm/msm/msm_gpu_devfreq.c > @@ -20,6 +20,10 @@ static int msm_devfreq_target(struct device *dev, unsigned long *freq, > struct msm_gpu *gpu = dev_to_gpu(dev); > struct dev_pm_opp *opp; > > + /* > + * Note that devfreq_recommended_opp() can modify the freq > + * to something that actually is in the opp table: > + */ > opp = devfreq_recommended_opp(dev, freq, flags); > > /* > @@ -28,6 +32,7 @@ static int msm_devfreq_target(struct device *dev, unsigned long *freq, > */ > if (gpu->devfreq.idle_freq) { > gpu->devfreq.idle_freq = *freq; > + dev_pm_opp_put(opp); > return 0; > } > Tested on the Lenovo Yoga C630 and don't see the message from v1 :D Tested-By: Steev Klimaszewski