Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3405597ybi; Mon, 29 Jul 2019 06:05:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0CMS4LRj7BAmr9Hj/7aoWIjJh/jCXqXM41GtmSUBXj5GJpL9HNqskNSY+W4yEKpS9JDPZ X-Received: by 2002:a17:90a:17c4:: with SMTP id q62mr113844515pja.104.1564405554377; Mon, 29 Jul 2019 06:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564405554; cv=none; d=google.com; s=arc-20160816; b=S1HMSRLYN19DWOEY4Z6cPnvlkU1wHkxCS3SA/+XPrq/ZrVyEzwGdO5xUnAyP54VUA9 589orRcsQRMdj30pZXntmrersiNAerW+7wMpPaBjE7Yvfcm0ipTZq4ZJ/DarmAfcm6rp 062+s5k2YPv1dtdiEj4olJVdFcVLbxNP3igdRY+KFBR6Xf/MyLYH8d7rs/3U4cy26/6Q osVjpJDYWi/giLvBgjPy9/VaNehs/aUOilA0+T2dzNYCs6hLbRs/PFrCGXdPUXjlrH72 VtwIiLCfArhmt0a3iwVw/Z6ly3elp1rmscBFZUZtxwcWQXhEkV/cGBim5XcHYjW0t9ZT JLGw== 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=CzaFJVRP7rz1Xn1j1tEOM0QcT+gEL6pO8dvc2N0dP2Y=; b=II5HHQnJ94Mhb/5QKNSHtlJw/dE2lTWcF6uAJ27RLSjr4Zght9DB2cFitbKiFnhJ2O N/tSqB1xJlEM16w5REvyQE7LOpQCOJQKOga/GPWwEtD3Hssq5mHo320mZOcrDq8T4TUE LdTRt3FB/kVO+St1LaZew0LDERi0JQLvyVtUXXOdHSNWIBIxjGhmkqjFFVmOqxrFUXBZ ihEsL9F1gb/wWvnLLxtE4p6XDZ28KJWlcCHQH0p2IVll/d8lfyWbZS2Jd0FejC4caxGV hWQ7rkpU5SujM3M6PgjfyfvlE4MKoBloj35jv6IyCZIa+8LycXqyqIcz8hNL6+yVDZjx MgFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C8j5yjkN; 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 k133si25876934pgc.425.2019.07.29.06.05.38; Mon, 29 Jul 2019 06:05:54 -0700 (PDT) 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=C8j5yjkN; 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 S1728089AbfG2JuX (ORCPT + 99 others); Mon, 29 Jul 2019 05:50:23 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:41533 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727819AbfG2JuX (ORCPT ); Mon, 29 Jul 2019 05:50:23 -0400 Received: by mail-vs1-f66.google.com with SMTP id 2so40302002vso.8 for ; Mon, 29 Jul 2019 02:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CzaFJVRP7rz1Xn1j1tEOM0QcT+gEL6pO8dvc2N0dP2Y=; b=C8j5yjkNZ6U/VPHZ4r62V8CWeH8KpzPm515Ag1x9FEsL4k5LgOauwRMq9s+vF+BHfX fFDTwZKzLi7ns6fudr/PsdNzbJQRfUt2hkSs1aY6tkz7xxYkzDZ3UFtieCr8kh+itmaP b5uMvUIDsqYX//X70H483L2sa60IKMlXfvYgBY2yjauqypYn367UNoUx7ovyiQIhcqWW 6wTZ3pZbLiWMTDClMOFRiTM7xK3JcdJIJPsG7LEeqeX3fbcQn1OV+N5KVhZGQXUMSU4p +mh8+9bXjLFF5yNmINoPvfv6qrS7SjoC+2lFQNGz964P3XcomoP1lugux4bdCCfpHDJX GoEg== 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=CzaFJVRP7rz1Xn1j1tEOM0QcT+gEL6pO8dvc2N0dP2Y=; b=KbiUMH5nleVsFILpQyorTmHNx+zqWlwDqBVAR2ZCHTtO7RED3AArDTc2QN/B4tSb5P gd6p2lKnQTrlS5hUHNsrQU6TIXWv+O43D3C3ZvBQYUNYeU/ajCSpKjIBgdnmzk9MDPat 4TyWvfl6opcPuaBDZcPrQrdaWh8SzpjeoV19U3E/FvsY3tjAUcGgT52fIrwbbkFavwz/ Lq1q7D5FwP9KJ/U7rwQewFj/BNwAGEnXeKcytENoilEubCzPmzkA6MTynDdIDRwRksSn n/1AUM4K7ivfk7oO9rZ2H7f5CvTYYpxZquO6m2eXAlFUnZE4reOuqGhVMM/EuIdQm0R9 hOww== X-Gm-Message-State: APjAAAVOACiUfqqsbA3LNtAk66GZ/X4Mml5/tgDrvGHyFJawtKCQqPDc kXruI5KfSXDiVrY1iVIr9uz5458YFT5I+91SvqM= X-Received: by 2002:a67:2e0e:: with SMTP id u14mr68681759vsu.182.1564393822065; Mon, 29 Jul 2019 02:50:22 -0700 (PDT) MIME-Version: 1.0 References: <20190729090735.GA897@onstation.org> <2123341.TWUfUUIiFt@g550jk> In-Reply-To: <2123341.TWUfUUIiFt@g550jk> From: Amit Kucheria Date: Mon, 29 Jul 2019 15:20:11 +0530 Message-ID: Subject: Re: [PATCH 00/15] thermal: qcom: tsens: Add interrupt support To: Luca Weiss , Niklas Cassel Cc: LKML , Brian Masney , linux-arm-msm , Bjorn Andersson , Eduardo Valentin , Andy Gross , Andy Gross , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui , Marc Gonzalez , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux PM list 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 On Mon, Jul 29, 2019 at 3:03 PM Luca Weiss wrote: > > On Montag, 29. Juli 2019 11:07:35 CEST Brian Masney wrote: > > On Sat, Jul 27, 2019 at 12:58:54PM +0530, Amit Kucheria wrote: > > > On Fri, Jul 26, 2019 at 4:59 PM Brian Masney wrote: > > > > On Fri, Jul 26, 2019 at 04:40:16PM +0530, Amit Kucheria wrote: > > > > > How well does cpufreq work on 8974? I haven't looked at it yet but > > > > > we'll need it for thermal throttling. > > > > > > > > I'm not sure how to tell if the frequency is dynamically changed during > > > > runtime on arm. x86-64 shows this information in /proc/cpuinfo. Here's > > > > > > > the /proc/cpuinfo on the Nexus 5: > > > Nah. /proc/cpuinfo won't show what we need. > > > > > > Try the following: > > > > > > $ grep "" /sys/devices/system/cpu/cpufreq/policy?/* > > > > > > More specifically, the following files have the information you need. > > > Run watch -n1 on them. > > > > > > $ grep "" /sys/devices/system/cpu/cpufreq/policy?/scaling_*_freq > > > > There's no cpufreq directory on msm8974: > > > > # ls -1 /sys/devices/system/cpu/ > > cpu0 > > cpu1 > > cpu2 > > cpu3 > > cpuidle > > hotplug > > isolated > > kernel_max > > modalias > > offline > > online > > possible > > power > > present > > smt > > uevent > > > > I'm using qcom_defconfig. > > > > Brian > > Hi Brian, > cpufreq isn't supported on msm8974 yet. > I have these patches [0] in my tree but I'm not sure they work correctly, but I haven't tested much with them. Feel free to try them on hammerhead. > > Luca > > [0] https://github.com/z3ntu/linux/compare/b0917f53ada0e929896a094b451219cd8091366e...6459ca6aff498c9d12acd35709b4903effc4c3f8 Niklas is working on refactoring some of the Krait code[1]. I'm not sure if he looked at 8974 directly as part of the refactor adding him here to get a better sense of the state of cpufreq on 8974. [1] https://lore.kernel.org/linux-arm-msm/20190726080823.xwhxagv5iuhudmic@vireshk-i7/T/#t