Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7485993ybl; Tue, 24 Dec 2019 03:30:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyrfe9vevnWmS+kuuqg9vRA3gtqX8xejYlY1H1h5hzL5dk3r+bTv1RgEufY80mXQGS9Hwc8 X-Received: by 2002:a9d:2c68:: with SMTP id f95mr38649196otb.33.1577187036850; Tue, 24 Dec 2019 03:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577187036; cv=none; d=google.com; s=arc-20160816; b=iVw9DEGhnCwwDZBkOHAiNyVC4FW4dY55j3FXXQaILB27X8YFEYJuh+FLMVcYM547SZ pDEjAVK8glEYp9yfUwx37t9z9Q2T7BCrIQCgiHb60exkF83+ZcY7P2bMmhrPqmkOItG4 goT7e06PpPc1HzoFv2czuBU626d56T7E3ylKHvaLWgBCTA76V+ykp3mqDvpiIRhSg/Er boLCCWj4dSZTxoEszqOERzNNqwLOAyEcyTD08Kikhe0MJWihKvDQmLEguElJcro1ak5j qvPIn8vCITm2mKEcke+PPUbk/4MTQu94ofSemETWYiUWdMbp1i9lALJ7bNwNl6dOnXbZ rPQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Yaa4+iEZ46im79+sodnyaIwi0xim0AIqzXbOWPR6HKg=; b=bcOAcsLxhG5Ik6itkQgJd633+luVtvnJyQ0ZhvrR4XG9VSb22iYhLXF9cdU7mXSfF+ vfSJgzfsWyG+YmoBw6QtdvWVKnK2+4I7c9dHzNb4o+vkgTxPOyZNAMVAx8ehptFk16Lt xO9NLvkYcBR3BokNSiYr+wr50FZI7kRt2GwO1QUIat+GkZKMtX5Zld6gj5ur4ts1VNmp GGBJLkPk9LLW5GBRRs/MEHruITOdaLoy+d0i/SF4QfCLPFX/cRHl9eaMQr3b0+AKV4b9 FjmyeY5cLpDNAoc9cjmNSuVGwapgX96senIUg8JzTwxe1GdIwR9ChaIbRnOV9qNbTyuS pvZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=sIrcJv4T; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p26si11892110oto.240.2019.12.24.03.30.25; Tue, 24 Dec 2019 03:30:36 -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=@googlemail.com header.s=20161025 header.b=sIrcJv4T; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726331AbfLXL2z (ORCPT + 99 others); Tue, 24 Dec 2019 06:28:55 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:41782 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbfLXL2y (ORCPT ); Tue, 24 Dec 2019 06:28:54 -0500 Received: by mail-ed1-f65.google.com with SMTP id c26so17701948eds.8 for ; Tue, 24 Dec 2019 03:28:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Yaa4+iEZ46im79+sodnyaIwi0xim0AIqzXbOWPR6HKg=; b=sIrcJv4TUYAe5BHQg2t71AAnx6Nx94wYr993rP4u32UoTOgjy3LEDQ3fDxVI+G7AHK q+sWW3GX1SAXlPCCrPXm+Ws7/5w6Bd2hhYhLv5JGLqnOj6hcUij5REcUN7+DSPz8Pp5t Yhv5GTY5XZzc4Mr9gNU4jpakCj1sn9ItanhF0MU43kVy+hd0g8wpaFGq9kZSQ4EvzfeU Wf0meWFnOAL2fyNrs4I4u9OyAmncTZvIIfMzDlSsFfrG0YwsvX4mEdIlQQDcKqk4STgI QLYaGp6Dtm0ekk3Y2seHZbvCuLFJyZKaGXwGK3SZCpwHzwzoRNU1bZ0jeCvdseMJ9zHJ 9VWg== 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=Yaa4+iEZ46im79+sodnyaIwi0xim0AIqzXbOWPR6HKg=; b=W5Kp1bZSJKFm9UG5Qd55MMFf9Hzx4SNXo2FTWMpZZFtzDrlsevwSv/hzrgO+ZSPSe8 sIgrDUuLIOpK4xdTM3G07llc29KaAUPvlvQdWACtqwXcnBbuRX//3gl29zjHqBifrQlV nBRSKZfQCSsmYkZaB1c3gEBX0hxo8cWtcSEVgagzf44PBD+a/BqZqpWIvNXRVvlRMygR 5a6Ng334hq8w0LFePuVRV1TWoRs9g5j1daxlzG/cz9nY20jgPLKxal4wbtNw2xpa3uYI 2oN9Dz7vEuXWDlFa0+qXiPDTADy0CQ5o+Aa1hurlKSLuB5f/SLlEjhBB6FmM9JmAeKhR PKvA== X-Gm-Message-State: APjAAAV+5Z93q/SCnlb2p1ahh+7ZAGc9kukrKLKhnnzIuvGivbdzrKQi T37KnjBpFqxB4fY9gytF5b1HK5LdUb/+W5vvwnc= X-Received: by 2002:a17:906:260b:: with SMTP id h11mr37038328ejc.327.1577186932440; Tue, 24 Dec 2019 03:28:52 -0800 (PST) MIME-Version: 1.0 References: <20191215211223.1451499-1-martin.blumenstingl@googlemail.com> <20191216154803.GA3921@kevin> In-Reply-To: <20191216154803.GA3921@kevin> From: Martin Blumenstingl Date: Tue, 24 Dec 2019 12:28:41 +0100 Message-ID: Subject: Re: [RFC v1 0/1] drm: lima: devfreq and cooling device support To: Alyssa Rosenzweig Cc: yuq825@gmail.com, dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org, airlied@linux.ie, daniel@ffwll.ch, linux-kernel@vger.kernel.org, tomeu.vizoso@collabora.com, robh@kernel.org, steven.price@arm.com, linux-amlogic@lists.infradead.org, linux-rockchip@lists.infradead.org, wens@csie.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alyssa, On Mon, Dec 16, 2019 at 4:48 PM Alyssa Rosenzweig wrote: > > If so much code is being duplicated over, I'm wondering if it makes > sense for us to move some of the common devfreq code to core DRM > helpers? if you have any recommendation where to put it then please let me know (I am not familiar with the DRM subsystem at all) my initial idea was that the devfreq logic needs the same information that the scheduler needs (whether we're submitting something to be executed, there was a timeout, ...). however, looking at drivers/gpu/drm/scheduler/ this seems pretty stand-alone so I'm not sure it should go there also the Mali-4x0 GPUs have some "PMU" which *may* be used instead of polling the statistics internally so this is where I realize that with my current knowledge I don't know enough about lima, panfrost, DRM or the devfreq subsystem to get a good idea where to put the code. Martin