Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp12079394ybi; Fri, 26 Jul 2019 04:27:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhItq/8N0/c9rcPnwx8gZRe3zXumJfMUiEjhfXi3XJXk7cv92qI2QdPRBjuL8+k86YnfRP X-Received: by 2002:a62:3347:: with SMTP id z68mr22301231pfz.174.1564140465358; Fri, 26 Jul 2019 04:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564140465; cv=none; d=google.com; s=arc-20160816; b=exWWhmFxvprKXTxPY/035nUtSoUB4ikYDQbH1lyg0m9jpAuiTeRHwDhhvC58HL9wYm qFd+yHqm2T/foS1JhPvkjfq999LKRel01EL+QgeQk8CByI1EeCCc4EmIO/dqppQMvIdu qU+88U5kLVZCc3sO87FVHlHg+5+GL0xbw6yrAeJVJ/VmxyAjMBRmNooEkiixnQjli9QB ycHvBKtgDBMZGM60tikvHzeHJbjJVtYTI4Bu8Drl9zLGqVc1s8MGGyiRA7hMBfLLxNHH xvteRs7QnpNBuGzpEefMSno2aLR4DmDAIr8dZXXwwnDNrk6fGsd+Uir5lqj3gkLLfLno ppZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Bi2Lx+MXlHPtHJ3wPnCKg+J2p8IKH1QPywvGohdTCio=; b=hQEXO1iOUG7dAbEbPcw4QWH81vmV77KxT7jfSTwOdvJwHTMG2azbmmtUtH/z8s+74r s4RU+FxwfW4zs7CC3RbRY64+rTRBOuYltEHcauUgLlaRJgbuy1RlTfuorrpOwgFyq+jP 4eQOdf7Aaw5YZfZBuKHkIPcbI89t06CsLAOxYi+A2gRkMS+NugRIFpKoZWf36tfblFtt 6IXStGobsbuf4zv5gib1hcazVUag+R8ddfJR1Hm0fUBWKouU7fVoWJpCUBbNL6I2PuOA 3EcoE/mBKlO64/Zje1kwKuZzF5kWGodWJ8W8a756c96q7gh7bBD9XpL2+3BxecXg81Zt EJ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b="DwJAR0l/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m127si20701169pgm.100.2019.07.26.04.27.30; Fri, 26 Jul 2019 04:27:45 -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 (test mode) header.i=@onstation.org header.s=default header.b="DwJAR0l/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726457AbfGZKgH (ORCPT + 99 others); Fri, 26 Jul 2019 06:36:07 -0400 Received: from onstation.org ([52.200.56.107]:52052 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfGZKgH (ORCPT ); Fri, 26 Jul 2019 06:36:07 -0400 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 458643E911; Fri, 26 Jul 2019 10:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1564137366; bh=lKvd7xwHN2gTtBvSBeM80nkC5+jI2IdP2zf9IWcj8NI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DwJAR0l/PlTB8EKtJeyHiFIrEplJUNzBELIsGzBbyaeN0ET539lJkNE8ewsKzw7IO bqIsQ4nMVsWps0/XoPEAe3PKLqr+5O24jkruC/66WXF+F9K9XuyHmcDJ14z7qAgMZH YyiT7dtR45ZxeDvE0fBNU1pmyozMlJ4lgCdvGZBg= Date: Fri, 26 Jul 2019 06:36:05 -0400 From: Brian Masney To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Andy Gross , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui , marc.w.gonzalez@free.fr, devicetree@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 00/15] thermal: qcom: tsens: Add interrupt support Message-ID: <20190726103605.GB3327@onstation.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amit, On Fri, Jul 26, 2019 at 03:48:35AM +0530, Amit Kucheria wrote: > Add interrupt support to TSENS. The first 6 patches are general fixes and > cleanups to the driver before interrupt support is introduced. > > This series has been developed against qcs404 and sdm845 and then tested on > msm8916. Testing on msm8998 and msm8974 would be appreciated since I don't > have hardware handy. Further, I plan to test on msm8996 and also submit to > kernelci. > > I'm sending this out for more review to get help with testing. I can test this on msm8974 for you using a Nexus 5. Here's what I've done so far: The device tree nodes appear in sysfs: / # ls -1 /sys/class/thermal/ cooling_device0 cooling_device1 thermal_zone0 thermal_zone1 thermal_zone2 thermal_zone3 thermal_zone4 thermal_zone5 thermal_zone6 thermal_zone7 thermal_zone8 thermal_zone9 The various temperatures were in the upper 40s and I threw some work at all four CPU cores to warm up the phone and watched the various temperatures rise: / # for i in $(seq 0 9) ; do > TYPE=$(cat /sys/class/thermal/thermal_zone$i/type) > TEMP=$(cat /sys/class/thermal/thermal_zone$i/temp) > echo "$TYPE = $TEMP" > done cpu-thermal0 = 66000 cpu-thermal1 = 66000 cpu-thermal2 = 66000 cpu-thermal3 = 66000 q6-dsp-thermal = 60000 modemtx-thermal = 57000 video-thermal = 61000 wlan-thermal = 65000 gpu-thermal-top = 61000 gpu-thermal-bottom = 59000 To test the interrupt support, I lowered all of the temperature trips to 51C but I'm not sure where to read that notification. I assume one of the cooling devices or a governor should be started? Sorry but I haven't done any work in the thermal subsystem yet and I'm short on time this morning to investigate right now. Brian