Received: by 10.223.185.116 with SMTP id b49csp1358698wrg; Wed, 21 Feb 2018 17:30:55 -0800 (PST) X-Google-Smtp-Source: AH8x226/S0mkjPJ8OEtv+iPj63wnnTTBoj/t1pqZwcw/mHSt0lCS+B/gxWsL41bJvgj/8VtGvVio X-Received: by 2002:a17:902:9885:: with SMTP id s5-v6mr4997935plp.400.1519263054900; Wed, 21 Feb 2018 17:30:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519263054; cv=none; d=google.com; s=arc-20160816; b=xNovXKtWfnRaGrOxDwx9TQZWl406Bc/JUvto7zASzPGYQFkcxhlAjamMYh3aZWz45y v4+kZwxzml6uRTJ89HdJW7bmb0nl90D/6G5OFY74rtBy/gEo85FU8WKsvlMiieZIU5tT t3nL3p7sH2S21dja9C/e5uTo5rdcU0jBStulRmKkZm+W8/2puZwngavqmaJDuGPzvzfq BpKVZEgrBpkZKKs9Bvwo4YC0eXr0eBiwNKiEnpVlCJVtxJBTDOMQ7Ipi9KDS/cJNKTmM xoy6CtOfBDfcpO6OIlbd40rfQGK4+oI6TFAhDSS5v81tz5oWCIg57Gr36xRrXlFqX5Eb fwLw== 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=orFUi0a2cexnt/HO3+V4Bw4PJAem06I+4U5Q9HKbXaM=; b=MMLfCA8/o4yduc0q0d0CU0GJaifNbuQ3R7MMuQervwQujDBD2p1kJYpCaVqhnWPVQ2 bcdj8JvQXti2QnHaLmFdifAi4h5aJNdswvmqGu8ZGNaha51331An/rz5zl0J4scrosRv v66EphpyYM3WWRUhjozKoF+HwR82kkbfW8ShxtkJCMWsrPbj+6A1563H/Hr370islPGG WKbYh3q/6wJScodaHrdeufRlRHca+gyjszP8o81Rkh34XTRhUMnPwPQH31/IwiMcTQhp rfRWigwiQkTygX/6MJY1NkKg6YgAv0lSCKG5tjug/6221UjIHFDIwyWT/xYh/4SRQxan Q01Q== 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 a26si1988977pfj.267.2018.02.21.17.30.40; Wed, 21 Feb 2018 17:30:54 -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 S1751784AbeBVB3a (ORCPT + 99 others); Wed, 21 Feb 2018 20:29:30 -0500 Received: from mga04.intel.com ([192.55.52.120]:43495 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751413AbeBVB33 (ORCPT ); Wed, 21 Feb 2018 20:29:29 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Feb 2018 17:29:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,376,1515484800"; d="scan'208";a="206056238" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.254.109.12]) ([10.254.109.12]) by fmsmga006.fm.intel.com with ESMTP; 21 Feb 2018 17:29:27 -0800 Subject: Re: [PATCH v2 7/8] [PATCH 7/8] drivers/hwmon: Add a generic PECI hwmon client driver To: Andrew Lunn Cc: Guenter Roeck , joel@jms.id.au, andrew@aj.id.au, arnd@arndb.de, gregkh@linuxfoundation.org, jdelvare@suse.com, benh@kernel.crashing.org, linux-kernel@vger.kernel.org, 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: Date: Wed, 21 Feb 2018 17:29:27 -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: <20180222003720.GA25250@lunn.ch> 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/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. :) Jae