Received: by 10.192.165.156 with SMTP id m28csp454588imm; Fri, 13 Apr 2018 02:02:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx49NHWMaQdSJmqfUt+yiCjBel4rczRAaSRWGHPLx3nP34Lc2b+eeSNV5DX8w55BdwlwZw7wL X-Received: by 10.98.190.2 with SMTP id l2mr5276055pff.224.1523610128284; Fri, 13 Apr 2018 02:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523610128; cv=none; d=google.com; s=arc-20160816; b=VAHNBdl5LSHekD23chZQOIMyVz0EJxVPPdCAoVSRfxq09TRKYVlxclhbPx2eE6xn6e xLhPp/W60aU0JpIM5/Ye9hl4iiFGt3seaxmY0yTFmM0QHMAxPkTzMOZeYkt+zk5xAcOa J71uQixYjl3WJfphuLf+IH4Ir4Z7vvrAQVAHzD1DO8nu6EDJ6jLKQVDEjTPx9nrqg3dq y2pUOD2q8QuCjWPChSi7ewSQ3bms/2ucsoBaA4/4UGy9Hg1hMaDL0EpKhn6WUMptuNEs u+y8mRnOW0mwKDe+dnETcruKyvW1ckUxyUwTB47UyRZQSvpa+QAFfO+MoNyDGxIsQ/Om 8GIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=oSEoLynqHVI7RKcMAYIZO72Ti4eRnBNxWp73N/ewThQ=; b=uxv9ppEUTHACCqr/iZ9fo1oq160Lri8os0QHYwnFGRBAvKlhVdTjh2jWpqGaCooxS+ 0/gN01z3J/sSdEBgGiqL5rXddZNuPqILDZDG0XazO0bS2zvpedfn3YWFw/lvAmLQ11uI bxlC7xVxp4OqBCJGkGBqBOjRweKdEnf2t5rsle+w7Q7vukGy0ufY8pbH2VvWTILyOftk DhjiBcLNXy///8r6fuyt0pYRYY6mq0nK6+ZzS779DUZzAzxr+jLEiq+MAUKQdWMSmxZJ jZBydPaZsnPCCpCSwCswqFK5fQ3hKnKyYmXdjmkfFRNlDmLQr3aMtdSdjx/h607RIN4P k0yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LhsTmVba; 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 a5-v6si5180320pls.571.2018.04.13.02.01.54; Fri, 13 Apr 2018 02:02:08 -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=LhsTmVba; 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 S1754150AbeDMJAt (ORCPT + 99 others); Fri, 13 Apr 2018 05:00:49 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:51808 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752669AbeDMJAr (ORCPT ); Fri, 13 Apr 2018 05:00:47 -0400 Received: by mail-wm0-f67.google.com with SMTP id u189so3665590wmd.1 for ; Fri, 13 Apr 2018 02:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oSEoLynqHVI7RKcMAYIZO72Ti4eRnBNxWp73N/ewThQ=; b=LhsTmVbatbt6RFQmg9U3G+8aWA1940Ic5NkXLvjh02vCe/2GY+7rpPHLQriWCoSF7R MMQS1Zz5i2A6yYGVBkByWFPnWPazeFB1ZmjKFePR/YKxG11hxfEp0RKG+UEgCYQVXi/S BXPbQL82i51Sol1gZU0oEQFMag4JTYP31nWJM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oSEoLynqHVI7RKcMAYIZO72Ti4eRnBNxWp73N/ewThQ=; b=dUhLXzETKs2OwnA/iqDGR7wejJsynZQx2MZVaGxQxvJZI6OXIzxoEYPEcHyX2WsSsN 6QW/aEeA/ASsIp0KePzXVuVqnTHCp3ZlRyadGktWGKbSEjTxMveXDhZ+AxYWu9oxdiue kAFbkG05rteSPes/+Olk7iJEQfNBgMmDWWMW7ig5nORwIDx7DqRSbddtKBCewx66nAav U19nXLMb1brxQ90FNxE60mI1D9WtYlWeDdrR1ZWsGcrfoiRgDSI2mNQ2G/Sm5ktrwJhA XAyt+bGoQjx1oBu90Bcns3K2d480wT0kGuD41/ZZx6zrwQkr7HrllMTyWZUkpv9IjpwC PZRw== X-Gm-Message-State: ALQs6tB+YQpBpWO3J7H5rz3J1uHLiPHHv3iLfbsyAj1uHcCoeV5xFs5F uaPlCQz1VeJjeu88w3z4Lx/X5g== X-Received: by 10.28.18.199 with SMTP id 190mr3256612wms.50.1523610045419; Fri, 13 Apr 2018 02:00:45 -0700 (PDT) Received: from [192.168.8.101] ([37.170.104.147]) by smtp.googlemail.com with ESMTPSA id a19sm1120083wme.45.2018.04.13.02.00.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Apr 2018 02:00:44 -0700 (PDT) Subject: Re: [GIT PULL] Thermal management updates for v4.17-rc1 To: Bartlomiej Zolnierkiewicz , Zhang Rui Cc: Eduardo Valentin , Linus Torvalds , LKML , Linux PM list , "Li, Philip" References: <1523436077.16235.5.camel@intel.com> <1523597945.16235.52.camel@intel.com> <2944702.qKZ0LXufY7@amdc3058> From: Daniel Lezcano Message-ID: <5afdb571-8aaa-941f-ff4f-7c4b031b5efb@linaro.org> Date: Fri, 13 Apr 2018 11:00:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <2944702.qKZ0LXufY7@amdc3058> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/04/2018 10:55, Bartlomiej Zolnierkiewicz wrote: > On Friday, April 13, 2018 01:39:05 PM Zhang Rui wrote: >> Hi, Eduardo, >> >> On 四, 2018-04-12 at 21:08 -0700, Eduardo Valentin wrote: >>> Hello, >>> >>> On Thu, Apr 12, 2018 at 09:55:19AM -0700, Linus Torvalds wrote: >>>> >>>> On Wed, Apr 11, 2018 at 10:08 PM, Zhang Rui >>>> wrote: >>>>> >>>>> >>>>> could you please illustrate me what the kconfig & warning is? >>>> Just "make allmodconfig" and the warning is about a uninitialized >>>> variable. >>>> >>>> Line 304 in drivers/thermal/samsung/exynos_tmu.c if my shell >>>> history >>>> is to be believed. >>>> >>>> Linus >>> Yeah, this has also passed my local compilation error. Somehow my >>> gcc4.9 >>> is not catching it. Using an older gcc (gcc4.6) does catch it. >>> >>> Anyways, given that the conversion functions are written to cover >>> for unexpected cal_type, the right way of fixing this is to rewrite >>> the conversion functions to allow for returning error codes and >>> adjusting the callers as expected. >>> >>> Rui, bzolnier, please consider the following fix: >>> >> as it is late in this merge window, I'd prefer to >> 1. drop all the thermal-soc material in the first pull request which I >> will send out soon. >> 2. you can prepare another pull request containing the thermal-soc >> materials except the exynos fixes >> 3. exynos fixes with the problem solved can be queued for -rc2 or >> later. > > Could you please just merge the obvious fix from Arnd instead? > > [ it was posted two weeks ago and ACKed by me ] > > https://patchwork.kernel.org/patch/10313313/ I'm not sure these are correct fixes. The change 480b5bfc16e1 tells: "There should be no functional changes caused by this patch." but the fix above returns 0 as a default value instead of '50' or '25' for the 5440 and that impacts the threshold etc ... IMO, the correct fix would be to define a default value '50', override it at init time to '25' if it is a 5440. And then the variable 'temp' and 'temp_code' get this value in the default case. > Best regards, > -- > Bartlomiej Zolnierkiewicz > Samsung R&D Institute Poland > Samsung Electronics > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog