Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2536938pxb; Sat, 30 Jan 2021 05:55:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/6ALeEQfqv35pJM3akraRnjHiiVxCXhiGJmfO/e+FdZDRRgUHR9oBCPr9xfqjvTnqLxIw X-Received: by 2002:a17:907:3345:: with SMTP id yr5mr9274019ejb.50.1612014949387; Sat, 30 Jan 2021 05:55:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612014949; cv=none; d=google.com; s=arc-20160816; b=mnqYjKOXKURXleXj+dcDC4Ro2ej26lRckFGezc+JMYBOmEWhayQxPCVHg4JtVw1HEq 8IC9U7Nev3KANYKsAVaYEgqa3nQjzN0swhbR76SZOWw3/lpCn/fphXVAsqjAi+vhiU1q hrrS/0RDTIVp3bGbBLz7ZNAbDVWydiSJsREbU8UsJqRHMfgNg8WRVIcKGEFzAwBOB5CX 0bQJu2k0KqIdqOAMZUs2MxTVqf98A8cM5Nio/QBPPxwujcE5Aq7GOtqsbFFLefywMouc M1sxXwU0CpS1n/+fw2b8IvqnaayJ6PE591QcMt/ccDqLF+tMwt/kXYQ6hFwRETg50ocY bR2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=W3VBKfc+4tq/fmG30+/aKc2uMtbIAE8KQdiDwyUozgQ=; b=R+AnqVWcCcuSv6vKs44OnGoDX5v2fC3pQZk3QwHedxiCzrqIVnU77MRQHnBDotDJwf Dkbv5NbSjFClCtxvWnK/8qUoB9s1/TU0lTY5fLWPz/jxCuL/WBSkwZiOu3RYHOuscxYw 6DTilKDa4J4YuzLZvP8z6DT2G6KdpTKbt0D1Aqsmy8+0D4iyrHYD4qgSBpcaj96v91nQ Llz4ZjS6F634FVtgAFVdLCieDiqff3BiZreeYWJPjiUrE5Im7OrSHloPzfi6mJCa0D5h K52qONqqHHA9IEc/uuc0cN2P2ROV6Fu1PIK2iJAb/RBGJD/5PO0x3+tn4Z+6dpc7zoiX Is5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jaua0C33; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si7077302edv.498.2021.01.30.05.55.25; Sat, 30 Jan 2021 05:55:49 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=jaua0C33; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231792AbhA3NyM (ORCPT + 99 others); Sat, 30 Jan 2021 08:54:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231653AbhA3Nv7 (ORCPT ); Sat, 30 Jan 2021 08:51:59 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 183FDC061573 for ; Sat, 30 Jan 2021 05:51:18 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id e15so9337569wme.0 for ; Sat, 30 Jan 2021 05:51:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W3VBKfc+4tq/fmG30+/aKc2uMtbIAE8KQdiDwyUozgQ=; b=jaua0C33wX1KaPCmnOIdxz2s02T1wrTdS9POD92JnAdYIEBDQjNDOlkq9vu86BFLnr J+msOOLD/cC9D/76marTC4/e3flYSWPsM9IYTsH6zwJH2cjQIV4aiz/1fC1/esOJijSn T5q8m9EC5m9bRKPRcYgiZXVbHyXDlR28G152b5mMbktGoJFX71knwznIO0fEStgsZiYs aUU/VLdWvHwft/6r3hTpsgnwLX97ZA4m9LnJOnOSUaq5Y9j5UIkY0OjOwUyAdJ0SwxS6 0ChA4i6icWbj3dua9hwjo/Yi6LAuR3bQAHtzsxMkznZqmREtLcN9ZjLwXq/OAFjE00Qz L0qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W3VBKfc+4tq/fmG30+/aKc2uMtbIAE8KQdiDwyUozgQ=; b=D4rvEv4PNV6BpVId0dsXMj2x0o5/pqXwTwg6iszeMl2OtNX6ka6YH+so05WElkhU2A CP3QFu5KFv4Dbv0s8i0Iu4ZCYdTgG243RvHTk/277tBojEoxWyN9P4gZDRM+7MTxV/HR jMym3V6hM/VxqyoDL3Se2pf25B0wO35n0o0o8giFpaV//glUHtoAsRliUf/bplK7J50n gCUNHqJdFM9LrS2fH1V7McItN6rVBFgW1h06RiH+WcRETWq984zsIC/NIjiuXlcIlHkm qToIbA6gKuAb8skC7rcMQXlhphHCP31IF1o3va/yZ6R0OK0GL8kWYWTpYHWhCFHNLOLT e0PA== X-Gm-Message-State: AOAM53065fEgJRvVkB9OzTSh+zyeQw6QJ3yXFjCNM5S0YQCxPVHE9OjN /++3/KDssYk3VBUpseiAp3xwXfsNveUxuhGNaQbgrrrhLzM= X-Received: by 2002:a1c:688b:: with SMTP id d133mr7905587wmc.41.1612014676695; Sat, 30 Jan 2021 05:51:16 -0800 (PST) MIME-Version: 1.0 References: <20210127105121.20345-1-lukasz.luba@arm.com> In-Reply-To: <20210127105121.20345-1-lukasz.luba@arm.com> From: Qiang Yu Date: Sat, 30 Jan 2021 21:51:05 +0800 Message-ID: Subject: Re: [PATCH] drm/lima: Use delayed timer as default in devfreq profile To: Lukasz Luba Cc: Linux Kernel Mailing List , David Airlie , Daniel Vetter , lima@lists.freedesktop.org, dri-devel , christianshewitt@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the patch. But I can't observe any difference on glmark2 with or without this patch. Maybe you can provide other test which can benefit from it. Considering it will wake up CPU more frequently, and user may choose to change this by sysfs, I'd like to not apply it. Regards, Qiang On Wed, Jan 27, 2021 at 6:51 PM Lukasz Luba wrote: > > Devfreq framework supports 2 modes for monitoring devices. > Use delayed timer as default instead of deferrable timer > in order to monitor the GPU status regardless of CPU idle. > > Signed-off-by: Lukasz Luba > --- > Hi all, > > I've missed the Lima driver while working on Panfrost patch for fixing > the issue with default devfreq framework polling mode. More about this > and the patch, can be found here [1]. > > Regards, > Lukasz Luba > > [1] https://lore.kernel.org/lkml/20210105164111.30122-1-lukasz.luba@arm.com/ > > drivers/gpu/drm/lima/lima_devfreq.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/lima/lima_devfreq.c b/drivers/gpu/drm/lima/lima_devfreq.c > index 5686ad4aaf7c..f1c9eb3e71bd 100644 > --- a/drivers/gpu/drm/lima/lima_devfreq.c > +++ b/drivers/gpu/drm/lima/lima_devfreq.c > @@ -81,6 +81,7 @@ static int lima_devfreq_get_dev_status(struct device *dev, > } > > static struct devfreq_dev_profile lima_devfreq_profile = { > + .timer = DEVFREQ_TIMER_DELAYED, > .polling_ms = 50, /* ~3 frames */ > .target = lima_devfreq_target, > .get_dev_status = lima_devfreq_get_dev_status, > -- > 2.17.1 >