Received: by 10.223.185.116 with SMTP id b49csp1670308wrg; Sat, 24 Feb 2018 01:34:01 -0800 (PST) X-Google-Smtp-Source: AH8x224LCCwcrlX2c/41c9ytbYC3Paog2FRP7kbPCpODvGsmlKYcChovs/Y2Lre5pNw0uikaArVe X-Received: by 10.98.194.87 with SMTP id l84mr4475848pfg.6.1519464841481; Sat, 24 Feb 2018 01:34:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519464841; cv=none; d=google.com; s=arc-20160816; b=kkfUP6Yn/b7VCewuAiDUsfn2ttfoK3kCOg6Bylw0bTTY/afuf8P50ysKgWZH03bZWg ERuWL5BS7YnP1GDOo6Ji/orEia9rROQMaxMWTqi+d4kN0gIZgBNUmlCr1LHCVMeOaokp RLPRmKg0Rm37kyqoYfzceWSCrand6qrJ5ydwo4i/qIpcuGD7CBOm14igmw9NIvcmy7qy Xj1AFqzkicbqIhJtbe78RiwHh07+O6kj9ezjxuOpfDqcvBEci3vHu2kqVX22EabtEyyz oishzPlBqpLny/4LNvXXuHsWYa3yKEqXB+gW6mLEvz9WCD519+ybYqST+UQFM+jY2WTu noqA== 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:arc-authentication-results; bh=F2EcZbJdqyu3yRwJqy2BOS3avdhsgrxrxJ+8nMADdLA=; b=JVrEXibIu9D0YlAdQ5IFflmT+ERFpVPugsGeJxACXiofsCO+oK7fbDmjlDlKE/wGbt vEsPdLEHUYIsnTaLf4m6QuRvHgL9Gba1rkj1o65fN3rz2jXE6qgtr3C9v4XhnnRCaug8 FFwc+raP2g/pYOVMDnyI4Ce0BBX34mdmycHGq2hOF4rSZlSeigMnyrEjNkTAGnn7hvY+ os0vVuhcCMvVHEDy0+ZNcVbWI9j1iNlfwFCWVbGW/s7oUAZvEy5dkjo3c23woav0lU53 0zDNqH7+1WsKI5CTWoK1KLBuWDBzFgmTfE6ivPzr6P3DawmtQpj5w/OMb0gkyCJIl8Dy FTNg== ARC-Authentication-Results: i=1; mx.google.com; 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 j8-v6si3208491plk.634.2018.02.24.01.33.45; Sat, 24 Feb 2018 01:34:01 -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; 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 S1751410AbeBXJdC (ORCPT + 99 others); Sat, 24 Feb 2018 04:33:02 -0500 Received: from mga06.intel.com ([134.134.136.31]:36221 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeBXJc6 (ORCPT ); Sat, 24 Feb 2018 04:32:58 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2018 01:32:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,386,1515484800"; d="scan'208";a="22764187" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.252.132.62]) ([10.252.132.62]) by fmsmga002.fm.intel.com with ESMTP; 24 Feb 2018 01:32:53 -0800 Subject: Re: [PATCH v2 7/8] [PATCH 7/8] drivers/hwmon: Add a generic PECI hwmon client driver To: Miguel Ojeda Cc: Andrew Lunn , Guenter Roeck , joel@jms.id.au, andrew@aj.id.au, Arnd Bergmann , Greg KH , jdelvare@suse.com, benh@kernel.crashing.org, linux-kernel , linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org References: <20180221161606.32247-1-jae.hyun.yoo@linux.intel.com> <20180221161606.32247-8-jae.hyun.yoo@linux.intel.com> <20180221182608.GA11635@roeck-us.net> <618f34cd-ee43-d8e4-4fb0-3c23bf03835f@linux.intel.com> <20180221214859.GA30263@roeck-us.net> <576a50c6-c302-654c-ceb3-aaf820b7738a@linux.intel.com> <20180222003720.GA25250@lunn.ch> From: Jae Hyun Yoo Message-ID: <85f66284-2e18-2a74-1e7b-9378353ab43e@linux.intel.com> Date: Sat, 24 Feb 2018 01:32:53 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/23/2018 4:00 PM, Miguel Ojeda wrote: > On Thu, Feb 22, 2018 at 2:29 AM, Jae Hyun Yoo > wrote: >> On 2/21/2018 4:37 PM, Andrew Lunn wrote: >>>> >>>> But even with this change, it still needs to use delayed creation >>>> because BMC side kernel doesn't know how many DIMMs are populated on >>>> a remote server before the remote server completes its memory >>>> training and testing in BIOS, but it needs to check the remote >>>> server's CPU temperature as immediate as possible to make >>>> appropriate thermal control based on the remote CPU's temperature to >>>> avoid any critical thermal issue. What would be a better solution in >>>> this case? >>> >>> >>> You could change this driver so that it supports one DIMM. Move the >>> 'hotplug' part into another driver which creates and destroys >>> instances of the hwmon DIMM device as the DIMMS come and go. >>> >>> Also, do you need to handle CPU hotplug? You could split the CPU >>> temperature part into a separate hwmon driver? And again create and >>> destroy devices as CPUs come and go? >>> >>> Andrew >>> >> >> That seems like a possible option. I'll rewrite the hwmon driver again like >> that. >> >> Thanks for the good idea. :) > > By the way, in the rewrite, please try to avoid the create*workqueue() > functions (they are deprecated :). > > Cheers, > Miguel > Hi Miguel, Thanks for letting me know that. I'll replace that with alloc_workqueue(). :) Regards, Jae >> >> Jae