From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Weiss Subject: Re: [PATCH 00/15] thermal: qcom: tsens: Add interrupt support Date: Mon, 29 Jul 2019 11:32:52 +0200 Message-ID: <2123341.TWUfUUIiFt@g550jk> References: <20190729090735.GA897@onstation.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2004695.fh42H4uLbJ"; micalg="pgp-sha256"; protocol="application/pgp-signature" Return-path: In-Reply-To: <20190729090735.GA897@onstation.org> Sender: linux-kernel-owner@vger.kernel.org To: linux-kernel@vger.kernel.org Cc: Brian Masney , Amit Kucheria , 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 List-Id: devicetree@vger.kernel.org --nextPart2004695.fh42H4uLbJ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 --nextPart2004695.fh42H4uLbJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE66ocILd+OiPORlvAOY2pEqPLBhkFAl0+vUQACgkQOY2pEqPL BhlwxQ/9FYvDo8UHyQXIQVJJGe70bpy3b2Ea/66omuwaw0BLmetJe2PvQq9IsiVD TV60M8z4yQdRLp2P3YKQWYg7z3dNRM2mVxX11KfrXdI9rM7xqF+VFwZ21qUY+fht canQPM1Ln11OJQaZ0fhrH1j9c6fbJ0DoQ3C4AG8CKxzRGIu8FPmWc6XObbxOhEYG pc3Dy6i0NvldNtgKrxiZ5e1YAjyqdpiKcsw5ZM4xdohcmNj7dLLC6BMebpxzzXRW NijyZsH9TJkjqLTGT7N7J7jQcEFhpgt0L+HrZOpcKncNpCAxVQDVWezI1AseFIuQ ZsYjG+QKay+JCfZ3AmwPPVpgm9I+yB3ywzYytb22nrsIX1WzKd2qv1Q7HhNYrJfv Nar7n7ecAi3cd7wxANrKTRn7FB3hcyIOmwXcoaeTxDRqtPqv6bbXiUGV5uaN2sd3 IHK1XnipnttdfaOnlGW/9JFngiMN6mmlENPiTLL+TMlaCBphOhe302bpK6FWcHI+ AQOXs/cDuYRfH16h/ArfrlnFl6L7Va6MQhKQxOFkhf/NorbJBYcA52E+bQelOChd Ud6cIOLCIZa64ohYrRZVB/Il8PyC8vl4o+buainb6YUC5yBKxVHzP3Gd2lHboh5T Gls7AeMsZNULixostOPRdA/KpwO72ePeqU2MtLi577P3qIu3uj4= =Ia3N -----END PGP SIGNATURE----- --nextPart2004695.fh42H4uLbJ--